Commit Graph

2269 Commits

Author SHA1 Message Date
mtu 0900b82024 Add OCSP ASN.1 packets 2017-02-08 15:39:50 +01:00
mtu 03f612aa82 Use python-cryptography for TLS 2017-02-08 15:39:50 +01:00
mtu 1bc79c805b Add TLS parsing/building support, TLS basic automatons, TLS tests 2017-02-08 15:39:50 +01:00
gpotter2 e7932e63fa [coverage] Improved main.py tests (#478)
* Improved main.py tests

* Small fixes
2017-02-08 14:44:38 +01:00
gpotter2 edd94bc751 [Windows] Whois support (#474)
* Fix whois on Windows

* Better whois server and parsing

* Small fixes
2017-02-08 11:28:10 +01:00
Guillaume Valadon 97af816569 Merge pull request #493 from guedou/codecov_6
[coverage] Tests for scapy/asn1/*
2017-02-07 14:41:04 +01:00
Guillaume Valadon 63d2c120fc Merge pull request #442 from X-Cli/cb_enum
Add callbacks to EnumFields for large ranges
2017-02-07 13:39:19 +01:00
Guillaume Valadon fecb98049f Merge pull request #494 from mtury/ipsec_warning
Ask for python-cryptography v1.7+ in warnings and documentation
2017-02-07 13:13:33 +01:00
mtu 7c5bcf3a92 Add isCryptographyValid() docstring 2017-02-07 11:02:10 +01:00
mtu e758a218ea Ask for python-cryptography v1.7+ in warnings and documentation 2017-02-07 10:56:49 +01:00
Florian Maury c8261e4dc7 Adding callbacks to EnumField and lots of EnumField tests
- this feature allows conversion of large ranges where
    all entries coalesce to the same representation without bloating
    a dict. For instance, 0x0 to 0xffff all display as "toto" except
    a few odds 0x2 which are displayed as "tutu".
    Before this feature, you needed to write
    enum = {x: 'toto' for x in xrange(0, 0xffff)
    enum[2] = 'tutu'
    XShortEnumField('test', 0, enum)
2017-02-07 10:18:43 +01:00
Florian Maury 784f44c880 Moving into another file the unit tests related to fields 2017-02-07 10:18:41 +01:00
Pierre Lalet e8b5a18944 Merge pull request #500 from gpotter2/fix-completion
[Windows/Two lines fix] autocompletion
2017-02-06 08:39:01 +00:00
gpotter2 90c00d71e1 Fix auto-completion when not available 2017-02-05 23:39:39 +01:00
Guillaume Valadon 3642cb9533 Merge pull request #438 from mtury/master
Fix issue #408 : complex ASN1 fields randval()
2017-02-03 16:25:26 +01:00
Pierre Lalet afec3130e3 Merge pull request #480 from jsebechlebsky/pptp_support
PPTP support (Enhanced GRE, PPP LCP, PPTP Control Connection)
2017-02-02 18:24:07 +00:00
Pierre Lalet ee86aa50eb Merge pull request #489 from gpotter2/fix-sendpfast
[OneLineFix/TCPreplay] Replaced file_cache by preload_pcap
2017-02-01 23:03:40 +00:00
mtu 9888e6c471 Fix complex ASN1 fields randval() 2017-02-01 13:36:22 +01:00
Guillaume Valadon 00101f0a72 Tests for scapy/asn1/* 2017-02-01 13:28:56 +01:00
Pierre Lalet b2884fde1b Merge pull request #497 from guedou/codecov_7
[coverage] Dot11 tests
2017-01-31 17:58:36 +00:00
Guillaume Valadon a6589c9f18 Dot11 unit tests 2017-01-31 12:57:35 +01:00
Guillaume Valadon b29cd28ae3 Useless comments removed 2017-01-31 12:56:43 +01:00
Jan Sebechlebsky 836390ee15 Add PPTP related tests 2017-01-31 11:31:17 +01:00
Jan Sebechlebsky 5c4c4175af Add support for PPTP Control Connection protocol 2017-01-30 19:03:28 +01:00
Jan Sebechlebsky d79c849e96 Add support for PPP Link Control Protocol 2017-01-30 19:03:27 +01:00
Jan Sebechlebsky d95249d019 Add support for RFC 2637 (PPTP) GRE 2017-01-30 19:03:27 +01:00
Guillaume Valadon 67ee2f3b7a Merge pull request #495 from p-l-/fix-inet6addr
inet_{pton,ntop}: reorganize, cleanup and improve tests
2017-01-30 16:28:20 +01:00
Pierre Lalet d2f960092b Merge pull request #483 from guedou/codecov_5
[coverage] SCTP & DHCP tests
2017-01-29 15:17:02 +00:00
Pierre LALET 01110e502e inet_{pton,ntop}: reorganize, cleanup and improve tests 2017-01-29 16:04:12 +01:00
Pierre LALET e2c89ae0fb Cleanup IPv6 addresses with "::" handling 2017-01-29 13:22:40 +01:00
Pierre LALET 6119102469 Cleanup IPv4 in IPv6 address handling 2017-01-29 13:09:54 +01:00
Guillaume Valadon 85d43059d0 Merge pull request #492 from hdnivara/pr/ipv4-addr-check
Error out incorrect IPv4 format in IPv6 addresses in inet_pton
2017-01-28 08:41:54 +01:00
Guillaume Valadon a4ff0423d2 Merge pull request #491 from p-l-/fix-ls
Enhance and fix ls()
2017-01-28 08:33:46 +01:00
Aravindhan Dhanasekaran 2e95845562 Unit tests for IPv6 addresses with inet_pton 2017-01-26 10:32:19 -08:00
Aravindhan Dhanasekaran dc9041b52c Error out incorrect IPv4 format in IPv6 addresses in inet_pton 2017-01-25 13:39:37 -08:00
Pierre LALET c1cc3bd600 ls(): fix tuple values display like "ls(IP(ttl=(1,10)))" 2017-01-25 19:27:46 +01:00
Pierre LALET 5531c34679 ls(): do not display "Emph" for Emph fields 2017-01-25 19:12:28 +01:00
Pierre LALET 3dfad350e3 ls(): fix flags display when verbose=1 2017-01-25 19:11:56 +01:00
Pierre Lalet fd150e7799 Merge pull request #490 from p-l-/fix-typo-tests
Fix typo in tests
2017-01-25 17:51:23 +00:00
Pierre LALET f1b41e4213 Fix typo in tests 2017-01-25 18:48:30 +01:00
gpotter2 63c6ba369a Replaced file_cache by preload_pcap 2017-01-25 17:08:53 +01:00
Guillaume Valadon 180abb8a97 Merge pull request #484 from p-l-/fix-64bits
Fix 64 bits architectures detection
2017-01-25 13:33:07 +01:00
Guillaume Valadon 73b92e79b0 Merge pull request #487 from p-l-/fix-whoistest
Retry .whois() test on failure
2017-01-25 13:31:09 +01:00
Pierre LALET 158350c279 Retry .whois() test on failure 2017-01-24 22:10:03 +01:00
Pierre LALET c37d00a9cc Fix 64 bits architectures detection 2017-01-24 20:26:26 +01:00
plorinquer 2c9092a612 EAPOL-MKA (MACsec Key Agreement protocol) support. (#446) 2017-01-24 18:20:52 +00:00
Guillaume Valadon 89837a1d3f Register a Scapy command 2017-01-24 11:38:26 +01:00
Guillaume Valadon e4ed84e06e DHCP tests 2017-01-24 11:38:26 +01:00
Guillaume Valadon ee950aaa2a SCTP tests 2017-01-24 11:38:26 +01:00
ngkokkee e63ecd7bc4 Fix IA_PD length error (#428)
* Fix IA_PD length error

I tested this and noticed wireshark wasn't parsing the message correctly. Turns out the length is wrong.

* Update regression.uts

Fix test for DHCP6OptIA_PD

* Update length of DHCP6OptIA_PD in test.
2017-01-24 11:34:33 +01:00