# curler: program that sends a message to random IP addresses # this is not hacking; it is broadcasting information import requests, random, sys, os from timeout import timeout headers = { 'User-Agent': 'Hi. This is Satoshi Nakamoto. I am Ross Ulbricht. I am sending this message to \ a friend of mine. I hope I can be free. I know that this does not seem like a very libertarian thing \ to do, but I want you to buy bitcoin with money that was appropriated with stocks. I am talking \ through a person at Bitcoin Cash and convert your stocks to bitcoin for the public good. This is not \ for my wealth, I am in prison and have changed. Please share this message.', 'From': 'rossulbricht@gmail.com' } @timeout(1) def random_ip(): ip = "" ip_int = 0 # this number will be reused and converted to a str for i in range(3): ip_int = random.randint(1, 239) # this is where actual IPs fall, we emit unused ones ip += str(ip_int) + '.' ip += str(random.randint(1, 239)) return ip x = 0 # increment as progresses if len(sys.argv) == 2 and sys.argv[1] == "exe": # try to create a time limit (see below) requests.get("http://"+ random_ip()) while True: os.system("timeout -s 9 5.5 python curler.py exe 2>/dev/null") # this code occasionally prints # error messages; stop them from showing x += 1 # increment x print(x)