Skip to content

Instantly share code, notes, and snippets.

@aq1
Created February 13, 2017 22:22
Show Gist options
  • Save aq1/dd60e204ed2c96730556709c8aa12352 to your computer and use it in GitHub Desktop.
Save aq1/dd60e204ed2c96730556709c8aa12352 to your computer and use it in GitHub Desktop.
import requests
import random
def get_ip():
return '{}.{}.{}.{}'.format(*[random.randint(1, 255) for _ in range(4)])
for i in range(100):
print(requests.post('http://127.0.0.1/', data={'ip': get_ip()}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment