HackSociety - Grey Hat Hacking Forums
Welcome, Guest
Log In Log In   Register Register
 
We have already recieved 20% of our goal.



  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
reply 

[FREE] PHP IP Grabber

08-09-2012, 04:03 AM
Post: #1
[FREE] PHP IP Grabber
Here's something I knocked up quickly a while ago. Easy PHP IP Grabber/Logger.

PHP Code:
<?php

//Stewie's IP Grabber

//Variables

$protocol $_SERVER['SERVER_PROTOCOL'];
$ip $_SERVER['REMOTE_ADDR'];
$port $_SERVER['REMOTE_PORT'];
$agent $_SERVER['HTTP_USER_AGENT'];
$ref $_SERVER['HTTP_REFERER'];
$hostname gethostbyaddr($_SERVER['REMOTE_ADDR']);

//Print IP, Hostname, Port Number, User Agent and Referer To Log.TXT

$fh fopen('log.txt''a'); 
fwrite($fh'IP Address: '."".$ip ."\n");
fwrite($fh'Hostname: '."".$hostname ."\n");
fwrite($fh'Port Number: '."".$port ."\n");
fwrite($fh'User Agent: '."".$agent ."\n");
fwrite($fh'HTTP Referer: '."".$ref ."\n\n");
fclose($fh);
?>

Just add to the top of any page and you're grabbing IP's.[/php]


You must reply to see links

For Hacking Challenges, Quizzes & Tutorials
Visit

You must reply to see links

reply
08-09-2012, 08:38 PM
Post: #2


RE: [FREE] PHP IP Grabber
NICE BRO !!!!!!!!!!!!!<-----thumbs up for you

[Image: webscr?cmd=_s-xclick&amp;hosted_butt...G6573ENC5N]

reply
08-10-2012, 11:24 AM
Post: #3


RE: [FREE] PHP IP Grabber
This is old and ubiquitous. Not to mention virtually useless since this doesn't even have support for the simplest proxy forwards.

[Image: ratswing.png]


You must reply to see links
Want me to code something for you? Just send me a private message with what you want done and we'll see what can be done.

If you need to contact me, it's better to add me on Skype, where I am always online. My username is "rodaxoleaux"

Only expect a legitimate conversation or reaction from me if I am sober. In other words, on weekdays.

reply
08-10-2012, 12:37 PM
Post: #4
RE: [FREE] PHP IP Grabber
(08-10-2012 11:24 AM)Rodaxoleaux the Lab Rat Wrote:

You must reply to see links
This is old and ubiquitous. Not to mention virtually useless since this doesn't even have support for the simplest proxy forwards.

I coded it in about 15mins, and isn't meant to do anything other than log the defined Headers lol. It isn't exactly 'useless'.


You must reply to see links

For Hacking Challenges, Quizzes & Tutorials
Visit

You must reply to see links

reply
08-10-2012, 02:23 PM
Post: #5


RE: [FREE] PHP IP Grabber
Well if it works then it works! Thanks for adding content to the forum!

[Image: 2cfs4fl.png]

reply

reply 


Thread Options


User(s) browsing this thread: 1 Guest(s)

Powered By MyBB, © 2002-2013 MyBB Group

Donation's plugin by Naoar.com
Congratulations to
The top poster in the past 24 hours.