Created
July 17, 2012 15:44
-
-
Save sclarson/3130192 to your computer and use it in GitHub Desktop.
Messing with the intern
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
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