27 Mart 2019 12:45

Muslu Y.

Python

Python3 threading ile eş zamanlı SSH bağlantı saldırısı

Anasayfa

Python

Python3 threading ile eş zamanlı SSH bağlantı sald...

Python3 ile eş zamanlı SSH bağlantı saldırı testi yapmak için örnek kod

def ssh_baglan(i):
from pexpect import pxssh
try:
  s = pxssh.pxssh()
  if not s.login('12.34.56.78', 'root', 'P@rol0m'):
    print("SSH bağlantısı yapılamadı!")
  else:
    print("SSH girişi yapıldı")
    s.logout()
except Exception as e:
  print("Hata: {}".format(e))


for i in range(10):
  from threading import Thread

    t = Thread(target=ssh_baglan, args=(i,))
    t.start()

Python

hakkında diğer konular

Makdos Bilişim Teknolojileri 2015 - 2025