Skip to content

Commit

Permalink
Dont run ifconfig on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
HD Moore committed Feb 4, 2012
1 parent f630d67 commit 6f54f06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/msf/core/exploit/capture.rb
Expand Up @@ -99,7 +99,11 @@ def open_pcap(opts={})
self.capture = ::Pcap.open_offline(cap)
else
dev ||= ::Pcap.lookupdev
system("ifconfig", dev, "up")

unless RUBY_PLATFORM == "i386-mingw32"
system("ifconfig", dev, "up")
end

self.capture = ::Pcap.open_live(dev, len, true, tim)
if arp
self.arp_capture = ::Pcap.open_live(dev, 512, true, tim)
Expand Down

0 comments on commit 6f54f06

Please sign in to comment.