Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 517 Vote(s) - 3.54 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PHP] Steal IP

#1
This is my script.. I hope you will use it..

PHP Code:
<?

$file 
"ip.txt";

$ip $_SERVER['REMOTE_ADDR'];

$handle fopen($file'a');

fwrite($handle"IP Address: ");
fwrite($handle"$ip");
fwrite($handle"\n");

fclose($handle);
?>

Reply

#2
This is my script.. I hope you will use it..

PHP Code:
<?

$file 
"ip.txt";

$ip $_SERVER['REMOTE_ADDR'];

$handle fopen($file'a');

fwrite($handle"IP Address: ");
fwrite($handle"$ip");
fwrite($handle"\n");

fclose($handle);
?>

Reply

#3
be sure i am gonna use it :smile:. thank you. will you explain all the lines, i am trying to learn php myself. thanks again.
Reply

#4
be sure i am gonna use it :smile:. thank you. will you explain all the lines, i am trying to learn php myself. thanks again.
Reply

#5
tnx...i will explain to you, but i am busy right now.. Maybe tommorow.. I don't know...
I am sure somebody can do it today... If nobody do it i will do it tommorow ! :biggrin:

And if you like it give me +1 !
Reply

#6
tnx...i will explain to you, but i am busy right now.. Maybe tommorow.. I don't know...
I am sure somebody can do it today... If nobody do it i will do it tommorow ! :biggrin:

And if you like it give me +1 !
Reply

#7

[To see links please register here]


:epic:


Explanation:

$file = "ip.txt" is a variable saying file is a string containing "ip.txt"

$ip = $_SERVER['REMOTE_ADDR']; is a variable which gets a environment value. $_SERVER['REMOTE_ADDR'] will return your ip.

$handle = fopen($file, 'a'); Create a handle type variable for writing to the ip.txt. a handle is needed for both reading and writing. the 'a' is for appending. 'w' for overwriting. 'r' for reading.

fwrite($handle, "IP Address: "); uses the handle to write to that file saying "IP Adress: "

fwrite($handle, "$ip"); writes your ip adress stored in a variable to the file

fwrite($handle, "\n"); adds a New line to the file like <br> in HTML

fclose($handle); closes the handle in a variable and releases all resources



tell me if i missed anything :smile:


Reply

#8
Oh..I see that but i have already posted it, and i dont can to erase
Reply

#9
no no keep it i don't mind
Reply

#10
no no keep it i don't mind
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through