-
Notifications
You must be signed in to change notification settings - Fork 2
/
adminFinder.py
105 lines (93 loc) · 5.61 KB
/
adminFinder.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
#! /usr/bin/python
import httplib,socket,sys
import subprocess as me
import optparse
if sys.platform == 'linux' or sys.platform == 'linux2':
me.call("clear",shell=True)
else:
me.call("cls",shell=True)
cetak="""
\t\t###################################################
\t\t# Angga Lanuma #
\t\t# #
\t\t# [email protected] [email protected] #
\t\t# #
\t\t# Thanks to Malang Cyber Crew #
\t\t###################################################"""
parser=optparse.OptionParser(usage='python %s -t http://target.com' %(sys.argv[0]))
parser.add_option("-t", action="store",dest="target",help="target site", default="")
(options,args) = parser.parse_args()
if options.target=="":
print (cetak)
print ("Type \"python %s -h\" for help"%sys.argv[0])
else:
try:
var1=0
var2=0
php = ['admin/','administrator/','admin1/','admin2/','admin3/','admin4/','admin5/','usuarios/','usuario/','administrator/','moderator/','webadmin/','adminarea/','bb-admin/','adminLogin/','admin_area/','panel-administracion/','instadmin/',
'memberadmin/','administratorlogin/','adm/','admin/account.php','admin/index.php','admin/login.php','admin/admin.php','admin/account.php',
'admin_area/admin.php','admin_area/login.php','siteadmin/login.php','siteadmin/index.php','siteadmin/login.html','admin/account.html','admin/index.html','admin/login.html','admin/admin.html',
'admin_area/index.php','bb-admin/index.php','bb-admin/login.php','bb-admin/admin.php','admin/home.php','admin_area/login.html','admin_area/index.html',
'admin/controlpanel.php','admin.php','admincp/index.asp','admincp/login.asp','admincp/index.html','admin/account.html','adminpanel.html','webadmin.html',
'webadmin/index.html','webadmin/admin.html','webadmin/login.html','admin/admin_login.html','admin_login.html','panel-administracion/login.html',
'admin/cp.php','cp.php','administrator/index.php','administrator/login.php','nsw/admin/login.php','webadmin/login.php','admin/admin_login.php','admin_login.php',
'administrator/account.php','administrator.php','admin_area/admin.html','pages/admin/admin-login.php','admin/admin-login.php','admin-login.php',
'bb-admin/index.html','bb-admin/login.html','acceso.php','bb-admin/admin.html','admin/home.html','login.php','modelsearch/login.php','moderator.php','moderator/login.php',
'moderator/admin.php','account.php','pages/admin/admin-login.html','admin/admin-login.html','admin-login.html','controlpanel.php','admincontrol.php',
'admin/adminLogin.html','adminLogin.html','admin/adminLogin.html','home.html','rcjakar/admin/login.php','adminarea/index.html','adminarea/admin.html',
'webadmin.php','webadmin/index.php','webadmin/admin.php','admin/controlpanel.html','admin.html','admin/cp.html','cp.html','adminpanel.php','moderator.html',
'administrator/index.html','administrator/login.html','user.html','administrator/account.html','administrator.html','login.html','modelsearch/login.html',
'moderator/login.html','adminarea/login.html','panel-administracion/index.html','panel-administracion/admin.html','modelsearch/index.html','modelsearch/admin.html',
'admincontrol/login.html','adm/index.html','adm.html','moderator/admin.html','user.php','account.html','controlpanel.html','admincontrol.html',
'panel-administracion/login.php','wp-login.php','adminLogin.php','admin/adminLogin.php','home.php','admin.php','adminarea/index.php',
'adminarea/admin.php','adminarea/login.php','panel-administracion/index.php','panel-administracion/admin.php','modelsearch/index.php',
'modelsearch/admin.php','admincontrol/login.php','adm/admloginuser.php','admloginuser.php','admin2.php','admin2/login.php','admin2/index.php','usuarios/login.php',
'adm/index.php','adm.php','affiliate.php','adm_auth.php','memberadmin.php','administratorlogin.php','/adminpanel']
try:
print (cetak)
alamat=options.target #raw_input("Masukkan Alamat WebSite: ")
alamat=alamat.replace("http://","")
print ("Check " + alamat + " dulu bozz!!....")
konek=httplib.HTTPConnection(alamat)
konek.connect()
print "[$]Siip.. Website Online..\n"
except (httplib.HTTPResponse, socket.error) as Exit:
raw_input("[!] ups, server offline atau alamat web salah")
exit()
#print "Masukkan site source"
#print "1. PHP (default)"
angka=1 #input("> ")
if angka == 1:
print "\t[+] Scanning " + alamat + "...."
i=0
for admin in php:
admin=admin.replace("\n","")
admin="/" + admin
host=alamat + admin
print ("\t[#]Cek " + alamat + "/"+ php[i] + "...")
koneksi=httplib.HTTPConnection(alamat)
koneksi.request("GET",admin)
respon=koneksi.getresponse()
var2=var2+1
i=i+1
if respon.status==200:
var1=var1+1
print "%s %s" % ( "\n\n>>>" + host, "Admin page ditemukan!")
raw_input("Tekan Enter untuk melanjutkan.\n")
elif respon.status == 404:
var2 = var2
elif respon.status == 302:
print "%s %s" % ("\n>>>" + host, "Possible admin page (302 - Redirect)")
else:
print "%s %s %s" % (host, " Interesting response:", respon.status)
koneksi.close()
print("\n\nSelesai!!! \n")
print var1, " Halaman admin ditemukan"
print var2, " total pages scanned"
raw_input("[/] Selesai; Tekan Enter untuk keluar")
except (httplib.HTTPResponse, socket.error):
print "\n\t[!] Session Cancelled; Error occured. Check internet settings"
except (KeyboardInterrupt, SystemExit):
print "\n\t[!] Session cancelled"
except:
print "\n\t[!] Unknown Error... Exit!"