forked from OlympicCode/vHackXTBot-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbotnet.py
More file actions
34 lines (29 loc) · 1.37 KB
/
Copy pathbotnet.py
File metadata and controls
34 lines (29 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/python2.7
#-*- coding: utf-8
from classes import API
from utils import Utils
class Botnet:
def getInfo(self):
ut = Utils()
temp = ut.requestString("user::::pass::::uhash", self.api.getUsername() + "::::" + self.api.getPassword() + "::::" + "userHash_not_needed", "vh_botnetInfo.php")
arr = temp.split('","canAtt')
l = []
for i1 in arr[1:]:
l.append(i1.split(':')[1].split('"')[1])
return l
def attackable(self):
t = self.getInfo()
attack = False
for i1 in t:
if "1" in i1:
attack = True
return attack
def attackall(self):
ut = Utils()
temp = ut.requestString("user::::pass::::uhash::::cID", self.api.getUsername() + "::::" + self.api.getPassword() + "::::" + "userHash_not_needed" + "::::" + "1", "vh_attackCompany.php")
temp = ut.requestString("user::::pass::::uhash::::cID", self.api.getUsername() + "::::" + self.api.getPassword() + "::::" + "userHash_not_needed" + "::::" + "2", "vh_attackCompany2.php")
temp = ut.requestString("user::::pass::::uhash::::cID", self.api.getUsername() + "::::" + self.api.getPassword() + "::::" + "userHash_not_needed" + "::::" + "3", "vh_attackCompany3.php")
temp = ut.requestString("user::::pass::::uhash::::cID", self.api.getUsername() + "::::" + self.api.getPassword() + "::::" + "userHash_not_needed" + "::::" + "4", "vh_attackCompany4.php")
return temp
def __init__(self,api):
self.api = api