Skip to content
Snippets Groups Projects
  1. Jan 04, 2017
  2. Dec 28, 2016
    • Pierre LALET's avatar
      Introduce tcpdump() function · 598bdae8
      Pierre LALET authored
      One can now use tcpdump or tshark to dissect packets from
      Scapy. This can help, for example, to check Scapy's dissectors
      598bdae8
  3. Dec 23, 2016
  4. Dec 22, 2016
  5. Dec 21, 2016
  6. Dec 20, 2016
    • Pierre Lalet's avatar
      Add conf.checkIPinIP (#387) · db7c72f0
      Pierre Lalet authored
      * Add conf.checkIPinIP
      
      This setting, when set to False, will exclude IP layers which encapsulate
      another IP layer from the checks to tell if a packet is an answer to
      another one.
      
      Fixes #383
      
      * conf.checkIPinIP affects both IP() and IPv6()
      
      Setting conf.checkIPinIP will handle IP()/IP(), IP()/IPv6(),
      IPv6()/IP(), IPv6()/IPv6().
      
      Thanks @guedou!
      
      * Clean-up IP.hashret and .answers code
      
      * Add tests for .hashret() and .answers()
      db7c72f0
    • Pierre Lalet's avatar
      Support (BPF) filter in sniff() with offline parameter set (#394) · 7ec0af2c
      Pierre Lalet authored
      * Support (BPF) filter in sniff() with offline parameter set
      
      Fixes #393
      Also, fixes #355
      
      * Add tests for wrpcap() and sniff(offline=)
      
      as suggested by Guillaume.
      
      Also, cleanup regression.uts since it was a pain to find a place
      to add those tests.
      
      * Fix PATH for tcpdump with non-root user
      
      * Do not run tcpdump tests when tcpdump is not available
      
      * Appveyor tests: install WinDump.exe
      
      Thanks @gpotter2
      7ec0af2c
  7. Dec 15, 2016
  8. Dec 14, 2016
  9. Dec 02, 2016
  10. Nov 03, 2016
  11. Oct 26, 2016
  12. Aug 30, 2016
    • Allain Legacy's avatar
      vxlan: fixed incorrect field layout specification · 9e276ec9
      Allain Legacy authored
      
      The "NextProtocol" field was added as an unconditional field which made the
      VXLAN packet header consume an additional 8-bts when used in a Legacy VXLAN
      deployments (flags=0x08) or in GPID deployments (flags=0x88).  The resulting
      regression caused incorrect parsing of subsequent headers.  For example, if an
      Ethernet header followed the VXLAN header then it would not be interpreted as
      an Ethernet header.  The actually interpretation would depend on what value was
      stored in the Ether.dst field.
      
      This change updates the field layout specification such that the NextProtocol
      field is conditional on flags=0x04, and shortens the reserved field by 8-bits
      if that condition is true.
      
      fixes bug #281
      
      Signed-off-by: default avatarAllain Legacy <allain.legacy@windriver.com>
      9e276ec9
  13. Aug 26, 2016
  14. Aug 22, 2016
  15. Aug 12, 2016
    • Guillaume Valadon's avatar
      Workaround to ignore interfaces name truncated by netstat · 02ae08b4
      Guillaume Valadon authored
      When interface names are longer than 7 characters, netstat will truncate
      them to the first 7 chars which leads to looking up an invalid interface
      name.
      We attempt to guess the name of the interface based on the output of
      ifconfig -l. If there is only one candidate we consider it, otherwise we
      ignore it.
      02ae08b4
  16. Aug 05, 2016
    • plorinquer's avatar
      NTP module update (#254) · 164a52c0
      plorinquer authored
      * References to the 'Raw' class were replaced by conf.raw_layer.
      * Fix potential infinite loop in NTPExtPacketListField::getfield() + typo.
      * Added regression test (Extension dissection test).
      164a52c0
  17. Aug 04, 2016
  18. Aug 01, 2016
    • Robin Jarry's avatar
      Fix individual modules import · 60579063
      Robin Jarry authored
      
      When using scapy as a third party library, we do not "benefit" from the
      loading routine that puts all symbols in the __builtin__ namespace. This
      implies that all modules must be "importable" without any errors for
      undefined symbols.
      
      This patch fixes importing every scapy module individually. Some
      circular imports were fixed (between inet6 and dhcp6).
      
      Most errors were detected by using pylint with the right configuration
      (scapy produces a *lot* of errors). Other errors were detected with the
      following shell script:
      
          export PYTHONPATH=".:$PYTHONPATH"
          for f in $(find scapy/ -name '*.py'); do
              f=${f%/__init__.py}
              module=$(echo ${f%.py} | sed 's,/,.,g')
              python -c "import $module; print $module"
          done
      
      Also, replace all implicit relative imports by absolute imports to avoid
      surprises with some python versions.
      
      Signed-off-by: default avatarRobin Jarry <robin.jarry@6wind.com>
      60579063
    • plorinquer's avatar
      NTP module update · 1e48e13f
      plorinquer authored
      1e48e13f
  19. Jul 22, 2016
  20. Jul 06, 2016
  21. May 20, 2016
  22. May 06, 2016
  23. May 05, 2016
  24. Apr 27, 2016
  25. Apr 13, 2016
  26. Apr 05, 2016
  27. Mar 28, 2016
  28. Mar 13, 2016
  29. Feb 26, 2016
  30. Feb 24, 2016
  31. Feb 10, 2016
  32. Feb 09, 2016
Loading