forked from cuuupid/shillscript
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbackup.py
50 lines (44 loc) · 1.46 KB
/
backup.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
44
45
46
47
48
49
50
import sys, os
class MonicaLewinsky:
prompted = []
lastCmd = ""
def __init__(self):
self.prompted = []
def processCommand(self, cmd):
if("teleprompter prompt" in cmd):
self.prompted.append("")
for x in range(19,len(cmd)):
self.prompted[-1] += list(cmd)[x]
if("hillary read from teleprompter" in cmd):
print(self.prompted[0])
self.prompted.remove(self.prompted[0])
if("hillary repeat" in cmd and "hillary repeat" not in self.lastCmd):
self.processCommand(self.lastCmd)
self.lastCmd = cmd
def main():
print("[+] Welcome to the Clinton Campaign")
print()
filename = sys.argv[1]
if(".benghazi" not in filename):
print("Filenames must end in .benghazi")
exit()
f=open(filename,'r')
MadameSecretary = MonicaLewinsky()
lineNum = 0
for line in f.readlines():
if(lineNum == 0):
if("I will make history as the first female president" not in line):
print("You forgot to declare yourself")
exit()
else:
MadameSecretary.processCommand(line)
lineNum = lineNum + 1
f.close()
f=open(filename, 'w')
f.write('')
f.close()
print("[+] Finished running. Accidentally deleted everything.")
print()
print("Sorry folks, I\'ve got to split and rig a primary. I\'m hip! Vote for me kids.")
if __name__ == "__main__":
main()