-
Notifications
You must be signed in to change notification settings - Fork 491
/
Copy pathbrut3k1t.py
33 lines (26 loc) · 1.07 KB
/
brut3k1t.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
#!/usr/bin/python
'''
brut3k1t - main application that calls upon dependencies and
other libraries / modules
'''
from src.brut3k1t import *
def main():
os.system("rm -rf tmp/") # delete tmp if created from previous usage
b = Bruteforce(service=None, username=None, wordlist=None, address=None, port=None, delay=1, proxy=None)
protocols = ["ssh", "ftp", "smtp", "telnet"]
web = ["instagram", "twitter", "facebook"]
if b.service in protocols:
ProtocolBruteforce(b.service, b.address, b.username, b.wordlist, b.port, b.delay)
elif b.service in web:
if b.address or b.port:
print R + "[!] NOTE: You don't need to provide an address OR port [!]" + W
exit(1)
WebBruteforce(b.service, b.username, b.wordlist, b.delay)
elif b.service == 'xmpp':
xmppBruteforce(b.address, b.port, b.username, b.wordlist, b.delay)
if __name__ == '__main__':
try:
main()
except KeyboardInterrupt:
print R + "\n[!] Keyboard Interrupt detected! Killing program... [!]" + W
exit(1)