Skip to content

Instantly share code, notes, and snippets.

@sclarson
Created July 17, 2012 15:44
Show Gist options
  • Save sclarson/3130192 to your computer and use it in GitHub Desktop.
Save sclarson/3130192 to your computer and use it in GitHub Desktop.
Messing with the intern
import requests
url = 'http://lazyeyedhacker.com/wp-comments-post.php'
headers = {'user-agent':'Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0', 'referrer':'http://lazyeyedhacker.com'}
for n in range(3,10000):
payload = {'author':'mua ha ha','email':'muahaha@lazyeyedhacker.com','url':'http://muahaha.lazyeyedhacker.com','comment':'blah','comment_post_ID':'1'}
payload['comment'] = 'muahaha ' * n
r = requests.post(url,data=payload,headers=headers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment