Commit Graph

27 Commits (a217ca8bc7995cafaad5ed95243c247cf527cf7c)

Author SHA1 Message Date
Tod Beardsley daf5465bbd Whitespace Cleanup 2012-12-27 09:08:40 -06:00
Alexandre Maloteaux 91ad23f79e pcaprub typo 2012-12-25 19:33:07 +01:00
HD Moore cc4fdcc8f7 Merge in a PCAP_NETMASK_UNKNOWN condition define to build with pcap 1.0.0. See https://github.com/shadowbq/pcaprub/issues/8 2011-11-25 15:46:58 -06:00
HD Moore d6cf3dbf9f Fixes #5420 by merging in a simple patch, thank you 2011-11-10 19:59:33 -06:00
amaloteaux df73c7e88e remove some comments
git-svn-id: file:///home/svn/framework3/trunk@13624 4d416f70-5f16-0410-b530-b9f4589650da
2011-08-24 20:37:27 +00:00
amaloteaux 8b6440468c pcaprub :
- netiface and paprub are now using the same interface name under windows
- add a function to retrieve some additionnal information on network interfaces under windows


git-svn-id: file:///home/svn/framework3/trunk@13622 4d416f70-5f16-0410-b530-b9f4589650da
2011-08-24 20:27:55 +00:00
HD Moore afa11f51a4 Fix up check for IPv6 constant, some minor grammar typos
git-svn-id: file:///home/svn/framework3/trunk@12811 4d416f70-5f16-0410-b530-b9f4589650da
2011-06-02 00:29:28 +00:00
amaloteaux 40f06cd3e1 pcaprub : -add several native function to get all the informations about the network intefaces, original code is a python c extension called netifaces
-add also some initial wrappers into capture mixin
-Fixes #4376


git-svn-id: file:///home/svn/framework3/trunk@12799 4d416f70-5f16-0410-b530-b9f4589650da
2011-06-01 17:22:48 +00:00
amaloteaux c022ac447e pcaprub : make it compilable under mingw on windows , need some more testing but it looks like it is running too, see issue #4554 for comment
git-svn-id: file:///home/svn/framework3/trunk@12770 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-30 18:26:20 +00:00
amaloteaux b536d25b38 pcaprub: add a function lookupaddrs(dev) to retrieve the list of ipv4 adresses of a given interfaces
to test, recompile and in irb Pcap.lookupaddrs("eth0")


git-svn-id: file:///home/svn/framework3/trunk@12326 4d416f70-5f16-0410-b530-b9f4589650da
2011-04-15 20:31:46 +00:00
HD Moore fca00693a2 Fix trailing ruby 1.9 compat issue
git-svn-id: file:///home/svn/framework3/trunk@11652 4d416f70-5f16-0410-b530-b9f4589650da
2011-01-26 22:02:20 +00:00
HD Moore ea54f3e013 Minor tweaks for formatting
git-svn-id: file:///home/svn/framework3/trunk@7343 4d416f70-5f16-0410-b530-b9f4589650da
2009-11-04 01:18:37 +00:00
HD Moore 3b99a513ec Fixes #352 and fixes #350. Can no longer reproduce memory corruption or packet loss with this code
git-svn-id: file:///home/svn/framework3/trunk@7287 4d416f70-5f16-0410-b530-b9f4589650da
2009-10-26 22:49:43 +00:00
kris 93dd1f2901 Fix pcaprub compilation errors (not warnings) for Ruby 1.9
git-svn-id: file:///home/svn/framework3/trunk@7119 4d416f70-5f16-0410-b530-b9f4589650da
2009-10-03 02:45:15 +00:00
HD Moore a97abcf837 Cleaning up pcaprub, interface closing will still be handled by the GC
git-svn-id: file:///home/svn/framework3/trunk@6859 4d416f70-5f16-0410-b530-b9f4589650da
2009-07-21 19:36:37 +00:00
HD Moore 9db072b2e4 cleans up the pcaprub code a little bit during packet receives
git-svn-id: file:///home/svn/framework3/trunk@6820 4d416f70-5f16-0410-b530-b9f4589650da
2009-07-17 16:14:07 +00:00
HD Moore 697d89c8cf Wait on the pcap file handle to reduce cpu consumption during sniffing
git-svn-id: file:///home/svn/framework3/trunk@6814 4d416f70-5f16-0410-b530-b9f4589650da
2009-07-17 02:24:21 +00:00
HD Moore 8c0b0fdf69 Import a new patch from Darren Kemp, adds open_dead and pcap_dump
git-svn-id: file:///home/svn/framework3/trunk@6335 4d416f70-5f16-0410-b530-b9f4589650da
2009-03-12 01:07:38 +00:00
James Lee 567f4844fb Make Pcap.next really non-blocking
git-svn-id: file:///home/svn/framework3/trunk@6212 4d416f70-5f16-0410-b530-b9f4589650da
2009-02-12 16:21:13 +00:00
HD Moore 9bb89b8387 Remove debugging line
git-svn-id: file:///home/svn/framework3/trunk@6211 4d416f70-5f16-0410-b530-b9f4589650da
2009-02-11 05:20:12 +00:00
root 345a816394 Fix up offline mode for pcaprun
git-svn-id: file:///home/svn/framework3/trunk@6210 4d416f70-5f16-0410-b530-b9f4589650da
2009-02-10 15:54:52 +00:00
druid 5e930f686b Added build and install instructions
git-svn-id: file:///home/svn/framework3/trunk@6057 4d416f70-5f16-0410-b530-b9f4589650da
2009-01-02 21:04:06 +00:00
HD Moore 3c30d7aefd Correct a typo in offline mode detection
git-svn-id: file:///home/svn/framework3/trunk@5701 4d416f70-5f16-0410-b530-b9f4589650da
2008-09-30 21:46:01 +00:00
HD Moore f41234b110 Offline support for pcaprub
git-svn-id: file:///home/svn/framework3/trunk@5555 4d416f70-5f16-0410-b530-b9f4589650da
2008-07-14 05:37:38 +00:00
HD Moore 8c244f4422 This patch makes pcap.next non-blocking from a Ruby thread perspective. It does eat more CPU if there are no select() loops in the calling Ruby parent, but this isnt too common and never an issue for MSF
git-svn-id: file:///home/svn/framework3/trunk@5534 4d416f70-5f16-0410-b530-b9f4589650da
2008-06-22 17:14:11 +00:00
HD Moore b2f9397be2 Commit a patch from warl0ck
git-svn-id: file:///home/svn/framework3/trunk@5418 4d416f70-5f16-0410-b530-b9f4589650da
2008-02-14 19:50:56 +00:00
HD Moore dea7fdfe39 Shiny new packet capture library
git-svn-id: file:///home/svn/framework3/trunk@5139 4d416f70-5f16-0410-b530-b9f4589650da
2007-10-08 23:16:31 +00:00