forked from OlympicCode/vHackXTBot-Python
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclasses.py
More file actions
Latest commit
44 lines (34 loc) · 817 Bytes
/
Copy pathclasses.py
File metadata and controls
44 lines (34 loc) · 817 Bytes
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
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/python2.7
#-*- coding: utf-8
classAPI:
defgetUsername(self):
returnself.username
defgetPassword(self):
returnself.password
def__init__(self,username, password):
self.username=username
self.password=password
classPasswords:
defgetImage1(self):
returnself.img1
def__init__(self,arr):
iflen(arr) ==5:
self.img1=arr[0].split(":")[1]
else:
self.img1="null"
classIP:
defgetIP(self):
returnself.ip
defgetFirewallLevel(self):
returnself.firewallLevel
defgetAttacked(self):
returnself.attacked
def__init__(self,arr):
iflen(arr) ==3:
self.ip=arr[0].split(":")[1]
self.firewallLevel=int(arr[1].split(":")[1])
self.attacked=int(arr[2].split(":")[1])
else:
self.ip=""
self.firewallLevel=0
self.attacked=0