-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdead.py
135 lines (122 loc) · 4.9 KB
/
dead.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#By SxNade
#https://github.com/SxNade/Bullet
#CONTRIBUTE
import os
import sys
from termcolor import colored
import requests
import time
#importing the required libraries
n2 = 0
golo = '''
.___.
/) ,-^ ^-.
// / \
.-------| |--------------/ __ __ \-------------------.__
|WMWMWMW| |>>>>>>>>>>>>> | />>\ />>\ |>>>>>>>>>>>>>>>>>>>>>>:>
`-------| |--------------| \__/ \__/ |-------------------'^^
\\ \ /|\ /
\) \ \_/ /
| |
|+H+H+H+|
\ /
^-----^'''
if len(sys.argv) != 3:
print("python3 dead.py <password-file-name(or path)> <server-url>")
sys.exit(0)
#check for system argumenst length
dead_countdown = '''
..:::::::::..
..:::aad8888888baa:::..
.::::d:?88888888888?::8b::::.
.:::d8888:?88888888??a888888b:::.
.:::d8888888a8888888aa8888888888b:::.
::::dP::::::::88888888888::::::::Yb::::
::::dP:::::::::Y888888888P:::::::::Yb::::
::::d8:::::::::::Y8888888P:::::::::::8b::::
.::::88::::::::::::Y88888P::::::::::::88::::.
:::::Y8baaaaaaaaaa88P:T:Y88aaaaaaaaaad8P:::::
:::::::Y88888888888P::|::Y88888888888P:::::::
::::::::::::::::888:::|:::888::::::::::::::::
`:::::::::::::::8888888888888b::::::::::::::'
:::::::::::::::88888888888888::::::::::::::
:::::::::::::d88888888888888:::::::::::::
::::::::::::88::88::88:::88::::::::::::
`::::::::::88::88::88:::88::::::::::'
`::::::::88::88::P::::88::::::::'
`::::::88::88:::::::88::::::'
``:::::::::::::::::::''
``:::::::::''
'''
already_dead = '''
.""--.._
[] `'--.._
||__ `'-,
`)||_ ```'--.. \
_ /|//} ``--._ |
.'` `'. /////} `\/
/ .""".\ //{///
/ /_ _`\\ // `||
| |(_)(_)|| _// ||
| | /\ )| _///\ ||
| |L====J | / |/ | ||
/ /'-..-' / .'` \ | ||
/ | :: | |_.-` | \ ||
/| `\-::.| | \ | ||
/` `| / | | | / ||
|` \ | / / \ | ||
| `\_| |/ ,.__. \ | ||
/ /` `\ || ||
| . / \|| ||
| | |/ ||
/ / | ( ||
/ . / ) ||
| \ | ||
/ | / ||
|\ / | ||
\ `-._ | / ||
\ ,//`\ /` | ||
///\ \ | \ ||
|||| ) |__/ | ||
|||| `.( | ||
`\\` /` / ||
/` / ||
/ | ||
| \ ||
/ | ||
/` \ ||
/` | ||
`-.___,-. .-. ___,' ||
`---'` `'----'`
'''
print(dead_countdown + "\n\n")
print(colored("STARTING DEAD-MAN SWITCH IN 30 SECONDS...", 'red', attrs=['reverse', 'blink', 'bold']))
print("[*]Hit Contorl+C to cancel")
#setting the countdown time
time.sleep(30)
print(colored("\nSWITCH IS ACTIVE NOW!\n", 'red', attrs=['bold']))
print(golo)
try:
while True:
time.sleep(5)
#make a get request to file url(server) given by the user
r = requests.get(sys.argv[2])
#check for status code that is if the file exists on the server or not
if r.status_code == 200:
#for calculating the number of requests made each time!
n = n2
print(colored(f"request no.{n2} OK", 'green'))
n2 = int(n) + int(1)
pass
else:
#if the file was not found
print(colored("[*]SWITCH TRIGGERRED!", 'red', attrs=['reverse', 'blink']))
time.sleep(2)
#running the bullet.py script to encrypt the file contents
os.system(f"python3 bullet.py {sys.argv[1]} {sys.argv[2]}")
print(already_dead)
sys.exit(0)
except KeyboardInterrupt:
#Avoiding keyboard interrupt errors to be displayed on screen (CLEAN!!)
print(colored("Exiting CountDown....!!", 'red', attrs=['reverse', 'blink']))
sys.exit(0)