Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/auxiliary/vsploit/malware/dns/dns_zeus.rb
Views: 11766
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Auxiliary67def initialize8super(9'Name' => 'VSploit Zeus DNS Query Module',10'Description' => 'This module queries known Zeus Botnet DNS records.',11'Author' => 'MJC',12'License' => MSF_LICENSE,13'References' =>14[15[ 'URL', 'https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist']16]17)18register_options(19[20OptString.new('DNS_SERVER',[false, "Specifies a DNS Server"]),21OptInt.new('COUNT', [false, "Number of intervals to loop",1]),22OptInt.new('DELAY', [false, "Delay in seconds between intervals",3])23])24end2526def run27@res = Net::DNS::Resolver.new()2829domain = [30"allspring.net","antifoher.biz","asdfasdgqghgsw.cx.cc",31"ashnmjjpoljfnl.info","atlaz.net","b3l.org","back.boroborogold.ru",32"bandwithcheckstart.com","batmanrobinho.com","bellicbridge.ru",33"bestfihteerdr.com","bestprice2you.net","billyd.com.au",34"bitschoonerop.com","blackskullbg.sytes.net","botikov.eu.tf",35"botnetdown.gicp.net","boutique.vcm-mode.it","brandc.name",36"bxkkuskgdjskdn.com","c0re.su","cdvqvnjqqtkqhsoo.info",37"christmassuper.com","ciritas.ru","citi-spb.ru","clavn.ru",38"client.trackups.org","client.upsclients.net","cnewsus.ru",39"cnnus.ru","concapow.in","consoleencydd.com","cqoqgzqmkpkrmlo.com",40"ctllutheran.org","currencytradechat.com","cyytmmlxsthywst.com",41"damaka.com","datacricketuf.ru","deimingames.com",42"dfhhdkdddqjda.start.tl","djerk.info","djpeterblue.com.br",43"dlmsonisfzksioqq.org","domio.pwomega.ru","favdstgssdqdsfg.start.tl",44"favoritopilodjd.com","favqnornkwvkwfxv.biz","fdhjkfhskas.com",45"federalreserve-report.com","federetoktyt.net"46]4748if datastore['DNS_SERVER']49@res.nameservers = datastore['DNS_SERVER']50end5152count = 05354while count < datastore['COUNT']5556domain.each do |name|57query = @res.query(name, "A")58time = Time.new59time = time.strftime("%Y-%m-%d %H:%M:%S")60print_status("#{time} - DNS Query sent for => #{name}")61if query.answer.length == 062print_error("#{time} - #{name} => No Record Found")63else64a = query.answer[0].to_s.split(/[\s,]+/)65print_good("#{time} - #{name} => #{a[-1]}")66end67end68unless count == (datastore['COUNT'] - 1)69time = Time.new70time = time.strftime("%Y-%m-%d %H:%M:%S")71print_status("#{time} - Waiting #{datastore['DELAY']} seconds to query")72select(nil, nil, nil, datastore['DELAY'])73end74count += 175end76end77end787980