-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKG-INFO
122 lines (98 loc) · 3.99 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
Metadata-Version: 2.1
Name: PacketAnalysis
Version: 1.1.0
Summary: This package prints and sniffs the packets.
Home-page: https://github.com/mauricelambert/PacketAnalysis
Author: Maurice Lambert
Author-email: mauricelambert434@gmail.com
Maintainer: Maurice Lambert
Maintainer-email: mauricelambert434@gmail.com
License: GPL-3.0 License
Project-URL: Sniffer doc, https://mauricelambert.github.io/info/python/security/PacketAnalysis/Sniffer.html
Project-URL: PacketPrinter doc, https://mauricelambert.github.io/info/python/security/PacketAnalysis/PacketPrinter.html
Project-URL: Executable, https://mauricelambert.github.io/info/python/security/PacketAnalysis/PacketAnalysis.pyz
Keywords: traffic,network,packet,analysis
Platform: Windows
Platform: Linux
Platform: MacOS
Classifier: Programming Language :: Python
Classifier: Development Status :: 5 - Production/Stable
Classifier: Topic :: System :: Networking
Classifier: Topic :: Security
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: MacOS
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.txt
![PacketAnalysis logo](https://mauricelambert.github.io/info/python/security/PacketAnalysis/logo_small.png "PacketAnalysis logo")
# PacketAnalysis
## Description
This package prints and sniffs the packets.
## Requirements
This package require:
- python3
- python3 Standard Library
- Scapy
## Installation
```bash
pip install PacketAnalysis
```
## Examples
### Command lines
```bash
python3 -m PacketAnalysis
python3 -m PacketAnalysis.Sniffer
python3 PacketAnalysis.pyz
PacketAnalysis -h
PacketAnalysis --help
PacketAnalysis
PacketAnalysis -v -H -s -d -D -p -r -i -f "tcp port 80 or udp" -S capture.pcap -I 172.16.10.
PacketAnalysis -R capture.pcap
```
### Python3
```python
from PacketAnalysis import PacketPrinter, Sniffer
sniffer = Sniffer(PacketPrinter())
sniffer.start()
sniffer.stop()
sniffer = Sniffer(PacketPrinter(), "tcp port 80 or udp", "capture.pcap", None, "172.16.10.")
sniffer = Sniffer(PacketPrinter(), filetoread="capture.pcap")
```
## Links
- [Github Page](https://github.com/mauricelambert/PacketAnalysis)
- [Pypi](https://pypi.org/project/PacketAnalysis/)
- [Documentation PacketPrinter](https://mauricelambert.github.io/info/python/security/PacketAnalysis/PacketPrinter.html)
- [Documentation Sniffer](https://mauricelambert.github.io/info/python/security/PacketAnalysis/Sniffer.html)
- [Download as python executable](https://mauricelambert.github.io/info/python/security/PacketAnalysis/PacketAnalysis.pyz)
## Help
```text
usage: PacketAnalysis.pyz [-h] [--verbose] [--no-hexa-printer] [--summary-printer] [--details-printer] [--details2-printer] [--python-printer] [--raw-printer] [--info-printer] [--filter FILTER]
[--savefilename SAVEFILENAME] [--packet-file PACKET_FILE] [--iface IFACE]
optional arguments:
-h, --help show this help message and exit
--verbose, -v Mode verbose (print debug message)
--no-hexa-printer, -H
Do not print the hexadecimal packet
--summary-printer, -s
Print the packet summary
--details-printer, -d
Print packet details
--details2-printer, -D
Print packet details type 2
--python-printer, -p Print the scapy command to build the package.
--raw-printer, -r Print raw packet
--info-printer, -i Print packet information
--filter FILTER, -f FILTER
Scapy filter to select packets
--savefilename SAVEFILENAME, -S SAVEFILENAME
Pcap file to save packets
--packet-file PACKET_FILE, -R PACKET_FILE
Pcap file to read for analysis
--iface IFACE, -I IFACE
Part of the IP, MAC or name of the interface
```
## Licence
Licensed under the [GPL, version 3](https://www.gnu.org/licenses/).