-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostexploit.py
43 lines (33 loc) · 1 KB
/
postexploit.py
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
class Post:
def __init__(self) -> None:
return None
def getack2(self):
return str([line.strip() for line in open("ack2.txt", 'r')][0])
def getseq2(self):
return str([line.strip() for line in open("seq2.txt", 'r')][0])
def getack3(self):
return str([line.strip() for line in open("ack3.txt", 'r')][0])
def getseq3(self):
return str([line.strip() for line in open("seq3.txt", 'r')][0])
def setack2(self, t):
with open("ack2.txt", "w") as f:
f.write(str(t))
def setseq2(self, t):
with open("seq2.txt", "w") as f:
f.write(str(t))
def setack3(self, t):
with open("ack3.txt", "w") as f:
f.write(str(t))
def setseq3(self, t):
with open("seq3.txt", "w") as f:
f.write(str(t))
def resetall(self):
with open("ack2.txt", "w") as f:
f.write("51")
with open("seq2.txt", "w") as f:
f.write("22")
with open("ack3.txt", "w") as f:
f.write("1001")
with open("seq3.txt", "w") as f:
f.write("201")
poste = Post()