-
Notifications
You must be signed in to change notification settings - Fork 1
/
web.py
37 lines (34 loc) · 848 Bytes
/
web.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
"""
==========================================
Name:Commandant Author: Lalevin Martin
Mailbox: [email protected]
Github: http://github.com/nacglalevin
Written in 2023-10-5
==================NACG==================
"""
import urllib
import urllib2
import threading
import sys
try:
url = sys.argv[1]
except:
print "[!] Usage: [target_url] "
sys.exit(0)
try:
fp = open("all.txt","r")
fp_file = fp.readlines()
fp.close()
except:
print "[!] File to error."
sys.exit(0)
try:
for url_word in fp_file:
_url_ = "%s/%s"%(url, url_word)
r = urllib2.Request(_url_)
url_data = urllib2.urlopen(r)
if len(url_data.read()):
print "[%d] ==> %s"%(url_data.code, _url_)
except KeyboardInterrupt:
print "[!] Stop"
sys.exit(0)