Skip to content
Snippets Groups Projects
  1. Jan 13, 2017
  2. Jan 11, 2017
  3. Jan 09, 2017
  4. Jan 06, 2017
    • Pierre LALET's avatar
      Tests: introduce "crypto" keyword · b1b741c5
      Pierre LALET authored
      Pypy won't run crypto tests on Travis CI because the cryptography
      module cannot be installed with the Pypy version used.
      b1b741c5
    • Thomas Faivre's avatar
      switch from PyCrypto to cryptography lib · c24298b9
      Thomas Faivre authored
      
      Change the cryptographic library used in the following layers:
       * IPSec
       * TLS
       * Dot11
      
      Notes:
       * Fix the WEP key in regression.uts: Should be a 40 bits key (5 ASCII)
         and 24 bits nonce for 64 bits WEP. The key was 8 ASCII => 88 bits
         in total
       * AES-GCM and AES-CMAC algorithms are now native in cryptography: add
         tests in ipsec.uts
       * cryptography only supports Python 2.6+
       * Fix the docstring for the pad method
      
      Removed:
       * MD2 and MD4 hash algorithms for RSA in tls/crypto/pkcs1.py
       * AES-XCBC-96 not supported by cryptography.
      
      Signed-off-by: default avatarThomas Faivre <thomas.faivre@6wind.com>
      c24298b9
  5. Jan 04, 2017
  6. 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
  7. Dec 23, 2016
  8. Dec 22, 2016
  9. Dec 21, 2016
  10. 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
  11. Dec 15, 2016
  12. Dec 14, 2016
  13. Dec 02, 2016
  14. Nov 03, 2016
  15. Oct 26, 2016
  16. 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
  17. Aug 26, 2016
  18. Aug 22, 2016
  19. 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
  20. 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
  21. Aug 04, 2016
  22. 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
  23. Jul 22, 2016
  24. Jul 06, 2016
  25. May 20, 2016
  26. May 06, 2016
  27. May 05, 2016
Loading