Changeset 903:8817bc10bca4
- Timestamp:
- 09/03/08 21:11:40
(4 months ago)
- Author:
- Phil <phil@secdev.org>
- Message:
Fixed some imports
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r894 |
r903 |
|
| 22 | 22 | log_loading.info("Can't import PyX. Won't be able to use psdump() or pdfdump().") |
|---|
| 23 | 23 | PYX=0 |
|---|
| 24 | | |
|---|
| 25 | | try: |
|---|
| 26 | | from Crypto.Cipher import ARC4 |
|---|
| 27 | | except ImportError: |
|---|
| 28 | | log_loading.info("Can't import python Crypto lib. Won't be able to decrypt WEP.") |
|---|
| 29 | | |
|---|
| 30 | | |
|---|
| 31 | 24 | |
|---|
| 32 | 25 | |
|---|
| r900 |
r903 |
|
| 13 | 13 | from scapy.data import * |
|---|
| 14 | 14 | from scapy.supersocket import SuperSocket |
|---|
| | 15 | import scapy.arch |
|---|
| 15 | 16 | |
|---|
| 16 | 17 | |
|---|
| … | … | |
| 109 | 110 | return |
|---|
| 110 | 111 | try: |
|---|
| 111 | | f = os.popen("%s -i %s -ddd -s 1600 '%s'" % (config.conf.prog.tcpdump,config.conf.iface,filter)) |
|---|
| | 112 | f = os.popen("%s -i %s -ddd -s 1600 '%s'" % (conf.prog.tcpdump,conf.iface,filter)) |
|---|
| 112 | 113 | except OSError,msg: |
|---|
| 113 | 114 | log_interactive.warning("Failed to execute tcpdump: (%s)") |
|---|
| … | … | |
| 123 | 124 | # XXX. Argl! We need to give the kernel a pointer on the BPF, |
|---|
| 124 | 125 | # python object header seems to be 20 bytes. 36 bytes for x86 64bits arch. |
|---|
| 125 | | if X86_64: |
|---|
| | 126 | if scapy.arch.X86_64: |
|---|
| 126 | 127 | bpfh = struct.pack("HL", nb, id(bpf)+36) |
|---|
| 127 | 128 | else: |
|---|
| r862 |
r903 |
|
| 10 | 10 | from scapy.plist import PacketList |
|---|
| 11 | 11 | from scapy.layers.l2 import * |
|---|
| | 12 | |
|---|
| | 13 | |
|---|
| | 14 | try: |
|---|
| | 15 | from Crypto.Cipher import ARC4 |
|---|
| | 16 | except ImportError: |
|---|
| | 17 | log_loading.info("Can't import python Crypto lib. Won't be able to decrypt WEP.") |
|---|
| | 18 | |
|---|
| 12 | 19 | |
|---|
| 13 | 20 | ### Fields |
|---|