Commit Graph

2101 Commits

Author SHA1 Message Date
Pierre LALET 8c93b479d9 Add & test DNS over TCP, update dnstypes 2016-12-22 11:53:20 +01:00
Guillaume Valadon 44e8b8ac98 Merge pull request #409 from p-l-/fix-tiny-bugs
Fix tiny bugs
2016-12-21 14:20:26 +01:00
Pierre LALET 2725e5a6ba Fix & test MIP6MH_HoT.answers() 2016-12-21 12:56:58 +01:00
Pierre LALET 300e96a7c5 Fix & test Route6.ifchange() 2016-12-21 12:56:18 +01:00
Pierre LALET a0821eb475 Clean-up & fix DHCP pools 2016-12-21 12:55:34 +01:00
Pierre LALET d73ddffc97 Fix warning format messages 2016-12-21 12:55:05 +01:00
Pierre LALET e1114942a1 Add missing import 2016-12-21 12:54:19 +01:00
Pierre LALET f53402a82b Fix some PacketList() methods 2016-12-21 12:53:20 +01:00
Pierre LALET dc4ecee0f4 Define missing config elements 2016-12-21 12:52:31 +01:00
Pierre LALET 7a13b92ebb Fix super() call 2016-12-21 12:52:08 +01:00
Pierre LALET bd8f96a325 Remove double class declaration 2016-12-21 12:51:54 +01:00
gpotter2 83c748efcf [Windows/Networking] Support no wpcap.dll (#406) 2016-12-20 18:03:55 +00:00
gpotter2 a454ef4836 [Windows/Networking] Fix LOOPBACK_NAME + IPv4 read_routes (#405) 2016-12-20 14:15:32 +00:00
Pierre Lalet db7c72f041 Add conf.checkIPinIP (#387)
* 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()
2016-12-20 09:08:57 +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 8d78adb738 Merge pull request #402 from gpotter2/patch-1
Added roadmap link
2016-12-19 18:41:05 +00:00
gpotter2 ee4b5a3a66 Added roadmap link 2016-12-19 19:38:46 +01:00
mkaliszan f912538b79 [isis.py] Add support for some SubTLVs (#305)
* [isis.py] Add support for some SubTLVs
* [isis.py, isis.uts] Fix, (unit-)test and extend SubTLVs support
2016-12-16 09:45:55 +00:00
Pierre Lalet 45c59302ce Merge pull request #329 from guedou/BB_copy_flag
Fixed the invalid copy_flag in some ip options
2016-12-16 00:45:41 +00:00
Pierre Lalet e30c0525f0 Merge pull request #388 from X-Cli/http2
HTTP/2 support
2016-12-16 00:43:47 +00:00
Guillaume Valadon 67e7fac115 Merge pull request #391 from p-l-/appveyor-badge
Add AppVeyor badge
2016-12-15 11:13:06 +01:00
Pierre LALET 9825669749 Add AppVeyor badge 2016-12-15 10:04:51 +01:00
Pierre Lalet aa8d452736 Merge pull request #389 from guedou/appveyor
AppVeyor support
2016-12-15 08:39:31 +00:00
Pierre Lalet 97326605cf Merge pull request #373 from 6WIND/gitarchive-version
fix version when installing from git archive
2016-12-15 08:36:47 +00:00
Guillaume Valadon 4a37721d58 Merge pull request #384 from ddubson/master
[bug] fix issue with python-pcapy interface next() function
2016-12-15 09:35:03 +01:00
Guillaume Valadon 58fdc06cd1 AppVeyor support 2016-12-15 08:03:41 +01:00
Florian Maury 237b956da0 add HTTP/2 tutorial 2016-12-14 13:48:24 +01:00
Florian Maury 7c94745fa6 initial http/2 support 2016-12-14 13:48:24 +01:00
Florian Maury 0c892a5b12 Add MultiFlagsField 2016-12-14 13:48:24 +01:00
Pierre Lalet 6d9e1a2f1a Merge pull request #386 from gpotter2/fix-3-console
[Windows] Fix autocompletion crash
2016-12-14 10:23:55 +00:00
gpotter2 96df796711 Fix autocompletion crash 2016-12-14 10:40:56 +01:00
Dmitriy Dubson f9cd967bfa [bug] fix issue with python-pcapy interface next() function not properly catching if next packet does not exist. 2016-12-13 18:29:54 -05:00
Guillaume Valadon 4b8e850c2c Merge pull request #382 from gpotter2/fix-2
[Windows] Updated bin scripts
2016-12-13 14:27:08 +01:00
gpotter2 7c41c9ae65 Updated scripts 2016-12-12 22:07:50 +01:00
Pierre Lalet b6c976b9a7 Merge pull request #372 from guedou/utscapy_exit
Return a correct exit code
2016-12-10 12:04:48 +00:00
Guillaume Valadon d3d79785f6 Merge pull request #376 from bluhm/sndrcv-promisc
Allow to set promisc mode in sndrcv().
2016-12-09 09:51:28 +01:00
Guillaume Valadon 6bec097643 Merge pull request #375 from bluhm/sndrcv-openbsd
Use special code path for OpenBSD in sndrcv.
2016-12-09 09:45:45 +01:00
Alexander Bluhm e41627769f Allow to set promisc mode in sndrcv().
In the pcapdnet() backend it was not possible to run the
L{2,3}{pcap,dnet}Socket in promiscuous mode.  Add a promisc option
to sr(), sr1(), srp(), srp1(), srflood(), srpflood() so that the
user can choose the behavior.

Keep the default non-promiscuous as in most cases sndrcv() sniffs
an answer that is directed to the sender.
2016-12-08 00:54:14 +01:00
Alexander Bluhm 3983433a3b Use special code path for OpenBSD in sndrcv.
On OpenBSD use the non-blocking recv() after select() in sndrcv().
That was already done for FreeBSD and Darwin.  This fixes sniffing
on real hardware with libdnet backend.
2016-12-07 23:20:44 +01:00
Robin Jarry 9d6409e75c fix version when installing from git archive
When installing from a git archive downloaded from github, the file
scapy/VERSION is not present since it is generated when building a
source archive with:

    ./setup.py sdist

To work around the problem, use the export-subst git attribute to make
git archive write the current revison information in scapy/__init__.py.

Signed-off-by: Robin Jarry <robin.jarry@6wind.com>
2016-12-06 17:42:10 +01:00
Guillaume Valadon 04b26acd74 Return a correct exit code 2016-12-06 17:07:25 +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 ceac80c337 Merge pull request #370 from p-l-/fix-setup
setup: add scapy.arch.bpf module
2016-12-05 22:03:02 +01:00
Pierre LALET 0e1b920682 setup: add scapy.arch.bpf module 2016-12-03 17:25:59 +01:00
Pierre Lalet b88fece5c2 Merge pull request #363 from guedou/Issue_#359
Use socket.pton & socket.ntop is available
2016-12-03 15:58:07 +00:00
Pierre Lalet 77739c1562 Merge pull request #364 from guedou/Issue_#350
UDP checksum computation fixed
2016-12-03 15:57:10 +00:00
Pierre Lalet 1cc73cbf4e Merge pull request #366 from guedou/UTScapy_typos
Typo fixed
2016-12-03 15:56:27 +00:00
Pierre Lalet c3d2de9123 Merge pull request #369 from guedou/bpf_windows_broken
Fix broken import on Windows
2016-12-03 15:56:03 +00:00
Guillaume Valadon fc53ffddeb Fix broken import on Windows 2016-12-02 10:29:56 +01:00
Guillaume Valadon 35f97efc53 Native Mac OS X and *BSD support (#221) 2016-12-02 07:07:09 +00:00