Skip to content
Snippets Groups Projects
  1. Jan 15, 2017
  2. Jan 13, 2017
  3. Jan 11, 2017
  4. Jan 09, 2017
  5. Jan 06, 2017
  6. Jan 04, 2017
  7. Dec 29, 2016
    • gpotter2's avatar
      Fix misplaced quotes · 5daf27ed
      gpotter2 authored
      I had not tested it last time... 
      When running  `python`, the first parameter is the file. So here all the arguments were passed as the file name...
      5daf27ed
  8. 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
  9. Dec 26, 2016
  10. Dec 23, 2016
  11. Dec 22, 2016
  12. Dec 21, 2016
  13. 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
  14. Dec 15, 2016
  15. Dec 14, 2016
  16. Dec 02, 2016
  17. Nov 03, 2016
  18. Oct 26, 2016
  19. Oct 18, 2016
    • Gabriel Potter's avatar
      Fixed windows circular import (#298) · 6c331b78
      Gabriel Potter authored
      Moved all modifications to modules not needed in arch that were causing
      crashed to another file next to __init__ (in arch.windows).
      
      Fixed "run_tests.bat" crash: the old usage of the %DATE% param was no more supported.
      6c331b78
  20. 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
  21. Aug 26, 2016
  22. Aug 22, 2016
  23. 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
  24. 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
  25. Aug 04, 2016
  26. 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
Loading