Pierre LALET
ec80e3538d
Enable Python 3 (3.3 to 3.6) tests
...
This also fixes the Python version used for the test and to
install the packages.
2018-01-03 17:35:24 +01:00
Guillaume Valadon
7a0a17991c
Display if coverage is installed
2017-12-22 12:56:35 +01:00
Guillaume Valadon
945457ec70
Bad characters removed
2017-12-22 12:56:35 +01:00
Guillaume Valadon
eeaa4c0d9e
Display sys.path
2017-12-22 12:56:35 +01:00
Guillaume Valadon
4733cce0a4
Print Python version
2017-12-22 12:56:35 +01:00
Guillaume Valadon
d1f7bccd8c
Display if pcap & dumbnet are installed
2017-12-22 12:56:35 +01:00
Guillaume Valadon
20bb4692de
PacketList methods regression tests
2017-09-26 14:38:13 +02:00
gpotter2
a3618a0988
Simplify Net and Net6 conversion
2017-09-17 18:08:29 +02:00
Pierre Lalet
1d057bfd91
Merge pull request #674 from gpotter2/fix-str-bytes
...
[Python 2 to 3] Bytes fixes
2017-09-14 19:40:08 +02:00
Pierre LALET
a8b3739699
Add tests for TUN sockets & bridge_and_sniff()
2017-09-12 16:07:59 +02:00
gpotter2
5e88574100
Bytes conversion, chb, raw, minor fixes
2017-09-02 02:01:39 +02:00
Guillaume Valadon
398e52e616
Six import error in mock
2017-07-31 14:49:41 +02:00
mtury
72720872d4
[TLS] Major module overhaul ( #542 )
...
* TLS module major overhaul
* Clean TLS directory
* TLS 1.3 packets and basic client automaton (+ session fixes)
* Fix multiple key share entries
* Convergence py3
* Support features from cryptography v2.0
* Validate CertificateVerify signatures
* Small fix on TLS signature parsing
* Small fixes in TLS module
* Enhance Encrypted PMS support
* Convergence py3 - print
* Revert useless changes
* Strengthen crypto lib validation
2017-07-06 07:52:04 +02:00
gpotter2
653d114f04
[coverage] Several tests + coverage stability ( #637 )
...
* Simplify construct_source_candidate_set
* New tests: _CipherSuitesField and construct_source_candidate_set
* Fix run_tests.bat
* New nmap.uts tests
* Add LLMNR tests
* Add TLS failing tests
* STP, linux + bpf random tests
* Add DHCP6 tests
2017-06-22 10:19:02 +02:00
Guillaume Valadon
84d5cf965a
TCP automaton unit tests on Linux
2017-04-27 11:38:33 +02:00
Guillaume Valadon
4bbee3b741
[coverage] More unit tests for scapy/*.py & bug fixes ( #522 )
...
* Code cleaning, unit tests
* Fix manuf DB path
* Specify seed in volatile objects using RandomEnumeration
* pypy fixes
2017-04-10 17:33:08 +02:00
gpotter2
f2201b7f82
Add UTscapy multi-file support
2017-03-05 02:14:36 +01:00
gpotter2
59b16b4577
[TLS/coverage] Migrate to UTS + Bug ( #508 )
2017-02-14 23:26:42 +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
90da76f56b
[Networking/Windows] Added IPv6 support ( #398 )
...
Fix IPv6 support on Windows
2017-01-13 07:25:04 +00:00
Pierre LALET
6b8a0cd0e0
Tests: combined_modes can be tested everywhere
2017-01-06 13:56:05 +01:00
Pierre LALET
b1b741c5f1
Tests: introduce "crypto" keyword
...
Pypy won't run crypto tests on Travis CI because the cryptography
module cannot be installed with the Pypy version used.
2017-01-06 13:56:05 +01:00
Pierre LALET
6957d3c89e
Disable AES-CCM test
...
See
- https://github.com/pyca/cryptography/issues/2968 (discussion)
- https://github.com/pyca/cryptography/issues/1141 (older)
2017-01-06 13:56:05 +01:00
Pierre LALET
149791c5b5
Fix cyrptography install for Travis-CI tests with PyPy
2017-01-06 13:55:28 +01:00
Thomas Faivre
c24298b956
switch from PyCrypto to cryptography lib
...
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: Thomas Faivre <thomas.faivre@6wind.com>
2017-01-06 13:55:27 +01:00
Pierre LALET
598bdae8c8
Introduce tcpdump() function
...
One can now use tcpdump or tshark to dissect packets from
Scapy. This can help, for example, to check Scapy's dissectors
2016-12-28 17:37:14 +01:00
Guillaume Valadon
8fc77d5eb7
codecov support
2016-12-27 20:34:16 +01:00
Pierre Lalet
7ec0af2c09
Support (BPF) filter in sniff() with offline parameter set ( #394 )
...
* 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
2016-12-20 07:46:27 +01:00
Pierre Lalet
cbcb87b29f
Merge pull request #361 from guedou/travis_osx_sudo
...
OS X Travis tests fixed
2016-12-05 21:58:00 +00:00
Guillaume Valadon
35f97efc53
Native Mac OS X and *BSD support ( #221 )
2016-12-02 07:07:09 +00:00
Guillaume Valadon
37997002bd
OS X Travis tests fixed
2016-11-24 12:59:34 +01:00
Guillaume Valadon
584b649e11
Replace IPSec with IPsec
2016-11-14 11:37:17 +01:00
Pierre LALET
a9937bef6d
Travis CI: fix install & tests
2016-11-10 08:23:37 +01:00
Daniel Collins
620f195c65
Corrected ICV length for AES-GCM and AES-CCM in IPSec layer. Added un… ( #269 )
...
* Corrected ICV length for AES-GCM and AES-CCM in IPSec layer. Added unit tests to the ipsec campaign.
* Added travis support for pycrypto 2.7a1 combined modes.
* Updated documentation for pycrypto installation.
2016-10-26 10:03:37 +02:00
Guillaume Valadon
5b5bd11933
Travis CI improvements ( #258 )
2016-08-12 11:36:08 +00:00
mtury
4faaaac043
cert.py improvements ( #175 )
...
cert.py improvements
* Improve cert.py : independence from openssl, ECDSA support, sign/verify capabilities
* Make travis install python-ecdsa
* Clarify ECDSA support
* Cleaning up for cert.py
2016-07-20 14:17:12 +02:00
Guillaume Valadon
6317ba089a
Run unit tests on Linux and OS X - root and non-root
2016-06-08 09:53:11 +02:00