Skip to content

Commit d9553e9

Browse files
authored
Add files via upload
1 parent d94d1d7 commit d9553e9

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

responder.py

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
try:
2+
import requests
3+
from time import sleep
4+
import os.path
5+
import sys
6+
except ImportError:
7+
exit("install requests/dependencies and try again ...")
8+
9+
banner = """
10+
_ _ _ _ _ _ _ _ _ _ _ _ _
11+
/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \
12+
( U | R | L | | R | e | s | p | o | n | d | e | r )
13+
\_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
14+
15+
Author: Codie Shiv
16+
Special Thanks: Mr. Ichigo kurosaki
17+
Instagram : www.instagram.com/codie_shiv
18+
Github: www.github.com/codie-shiv
19+
"""
20+
21+
22+
23+
def responder(lst):
24+
lis = open(lst,'r')
25+
read_lis = lis.readlines()
26+
for i in read_lis:
27+
i = i.replace('\n', '')
28+
try:
29+
if i.startswith("http://") is False:
30+
i = "http://" + i
31+
response = requests.get(i)
32+
status = response.status_code
33+
print(i + " --> " + str(status))
34+
sleep(1)
35+
except KeyboardInterrupt:
36+
print; exit()
37+
except:
38+
print(i + " --> could not connect!! try again..")
39+
40+
41+
42+
def main(__bn__):
43+
print(__bn__)
44+
print(" ")
45+
print("NOTE: \"The target file should be in the same directory as this file is...\" \n\"If not, then copy/move it here\"\n")
46+
while True:
47+
try:
48+
a = input("Enter your file name: ")
49+
if not os.path.isfile(a):
50+
print("file '%s' not found"%(a))
51+
continue
52+
else:
53+
break
54+
except KeyboardInterrupt:
55+
print; exit()
56+
responder(a)
57+
58+
if __name__ == "__main__":
59+
main(banner)
60+
61+

0 commit comments

Comments
 (0)