Created
October 5, 2015 06:41
-
-
Save 0x27/606dab0817a53d6faf06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
# coding: utf-8 | |
# Script to troll anyone going through logs of your web history, | |
# or anyone running driftnet on a network you are on, or, well, | |
# anycunt who tries retain your data. | |
# @dailydavedavids // 0x27.me | |
import urllib2 | |
import random | |
import string | |
import sys | |
def rand_str(): | |
return ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(random.randint(1,10))) | |
def send_req(url): | |
# add some lol random vars to stop caches. this needs optimizing... | |
tweaked_url = "%s?%s=%s" %(url, rand_str(), rand_str()) | |
try: | |
urllib2.urlopen(tweaked_url) | |
except Exception: | |
pass | |
def random_url(): | |
# need a big fucking list. images are best for this. | |
offensive_images = ['http://goatse.info/hello.jpg', | |
'http://www.specialfriedrice.net/sfr.jpg', | |
'http://www.bluewaffle.net/bw.jpg' | |
'http://www.tubgirl.ca/tubgirl.jpg', | |
'http://hai2u.com/HotBlowjob.jpg', | |
'http://lemonparty.org/punishhh.png', | |
'http://lemonparty.org/lemonparteye.jpg'] # it was at this point I realized I was on a monitored connection. | |
url = random.choice(offensive_images) | |
return url | |
def endless_loop(): | |
print "{+} Requesting some horrible things from the intercybers. No output. To stop, [ctrl]+c" | |
request_counter = 0 | |
while True: | |
try: | |
send_req(url=random_url()) | |
request_counter += 1 | |
except KeyboardInterrupt: | |
sys.exit("{!} CTRL + C Hit. Our statistics show that %d requests were performed." %(request_counter)) | |
# it shouldn't make it here, but if it does, we still want to die calmly. | |
return request_counter | |
def main(): | |
try: | |
request_counter = endless_loop() | |
except KeyboardInterrupt: | |
sys.exit("{!} CTRL + C Hit. Our statistics show that %d requests were performed." %(request_counter)) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment