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
34 lines (26 loc) · 752 Bytes
/
classes.py
File metadata and controls
34 lines (26 loc) · 752 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
#!/usr/bin/python2.7
# -*- coding: utf-8
class Passwords:
def getImage1(self):
return self.img1
def __init__(self, arr):
if len(arr) == 5:
self.img1 = arr[0].split(":")[1]
else:
self.img1 = "null"
class IP:
def getIP(self):
return self.ip
def getFirewallLevel(self):
return self.firewallLevel
def getAttacked(self):
return self.attacked
def __init__(self, arr):
if len(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