Skip to content

Instantly share code, notes, and snippets.

View lamenezes's full-sized avatar

Luiz Menezes lamenezes

  • São Carlos, Brazil
View GitHub Profile
@lamenezes
lamenezes / ssh_brute_force.py
Created November 28, 2015 00:51
ssh connection when you don't know the target IP using brute force
from concurrent import futures
import paramiko
ssh = paramiko.SSHClient()
def attempt_ssh_connection(ip, timeout=5):
print('Attemp connection on {}'.format(ip))
try:
ssh.connect(ip, username='pi', password='raspberry', timeout=timeout)