NetworkSniffer


NameNetworkSniffer JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/mauricelambert/NetworkSniffer
SummaryThis module sniffs network communications without any requirements
upload_time2023-03-20 12:13:28
maintainerMaurice Lambert
docs_urlNone
authorMaurice Lambert
requires_python>=3.8
licenseGPL-3.0 License
keywords sniffer network analysis forensic ethernet ip security tcp udp
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![NetworkSniffer logo](https://mauricelambert.github.io/info/python/security/NetworkSniffer_small.png "NetworkSniffer logo")

# NetworkSniffer

## Description

This module sniffs network communications without any requirements (without scapy/npcap/winpcap).

## Requirements

This package require:
 - python3
 - python3 Standard Library

## Installation

```bash
pip install NetworkSniffer
```

## Usages

### Command line

```bash
python3 -m NetworkSniffer
python3 NetworkSniffer.pyz -x -s -c
NetworkSniffer -x -X -c
NetworkSniffer -x -s -t -c
NetworkSniffer -x -s -u -c
NetworkSniffer -x -s -4 -c
NetworkSniffer -x -s -6 -c
NetworkSniffer -x -s -c -n '192.168.56.0/24'
NetworkSniffer -x -s -c -n '10.0.0.0/8' '192.168.56.0/24'
NetworkSniffer -x -s -c -p 80
NetworkSniffer -x -s -c -p 80 53
NetworkSniffer -x -s -c -m '00:00:00:00:00:00'
NetworkSniffer -x -s -c -m '00:00:00:00:00:00' '08:00:27:b1:9d:67'
NetworkSniffer -x -s -c -i '192.168.56.101'
NetworkSniffer -x -s -c -i '192.168.56.101' '10.0.2.15'
NetworkSniffer -c -l 20
NetworkSniffer -x -s -f 'test.txt'
```

### Python script

```python
from NetworkSniffer import *

sniffer = Sniffer(
    [('192.168.0.47', 0), ('192.168.56.1', 0)],
    [('fe80:0000:0000:0000:6cc8:2732:3de4:496b', 0, 0, 18)],
    (summary, hexadecimal),
)
sniffer.sniff() 

SnifferFilters = new_class(
    "SnifferFilters",
    (TcpFilter, Sniffer),
    {},
)
sniffer = SnifferFilters(
    [('192.168.0.47', 0), ('192.168.56.1', 0)],
    [('fe80:0000:0000:0000:6cc8:2732:3de4:496b', 0, 0, 18)],
    (summary, hexadecimal),
    tcp_filter=True,
)
sniffer.sniff() 

ipv4_addresses, ipv6_addresses = get_addresses()
sniffer = Sniffer(
    ipv4_addresses,
    ipv6_addresses,
    (raw,),
)
sniffer.sniff() 
```

## Links

 - [Github Page](https://github.com/mauricelambert/NetworkSniffer/)
 - [Documentation](https://mauricelambert.github.io/info/python/security/NetworkSniffer.html)
 - [Pypi package](https://pypi.org/project/NetworkSniffer/)
 - [Executable](https://mauricelambert.github.io/info/python/security/NetworkSniffer.pyz)

## Licence

Licensed under the [GPL, version 3](https://www.gnu.org/licenses/).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mauricelambert/NetworkSniffer",
    "name": "NetworkSniffer",
    "maintainer": "Maurice Lambert",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "mauricelambert434@gmail.com",
    "keywords": "Sniffer,Network,Analysis,Forensic,Ethernet,IP,Security,TCP,UDP",
    "author": "Maurice Lambert",
    "author_email": "mauricelambert434@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/39/bd/51b3b17657c0a235dd5e522fd3963ecd76d1bb7cdb957f91a9db7a709071/NetworkSniffer-0.0.3.tar.gz",
    "platform": "Windows",
    "description": "![NetworkSniffer logo](https://mauricelambert.github.io/info/python/security/NetworkSniffer_small.png \"NetworkSniffer logo\")\n\n# NetworkSniffer\n\n## Description\n\nThis module sniffs network communications without any requirements (without scapy/npcap/winpcap).\n\n## Requirements\n\nThis package require:\n - python3\n - python3 Standard Library\n\n## Installation\n\n```bash\npip install NetworkSniffer\n```\n\n## Usages\n\n### Command line\n\n```bash\npython3 -m NetworkSniffer\npython3 NetworkSniffer.pyz -x -s -c\nNetworkSniffer -x -X -c\nNetworkSniffer -x -s -t -c\nNetworkSniffer -x -s -u -c\nNetworkSniffer -x -s -4 -c\nNetworkSniffer -x -s -6 -c\nNetworkSniffer -x -s -c -n '192.168.56.0/24'\nNetworkSniffer -x -s -c -n '10.0.0.0/8' '192.168.56.0/24'\nNetworkSniffer -x -s -c -p 80\nNetworkSniffer -x -s -c -p 80 53\nNetworkSniffer -x -s -c -m '00:00:00:00:00:00'\nNetworkSniffer -x -s -c -m '00:00:00:00:00:00' '08:00:27:b1:9d:67'\nNetworkSniffer -x -s -c -i '192.168.56.101'\nNetworkSniffer -x -s -c -i '192.168.56.101' '10.0.2.15'\nNetworkSniffer -c -l 20\nNetworkSniffer -x -s -f 'test.txt'\n```\n\n### Python script\n\n```python\nfrom NetworkSniffer import *\n\nsniffer = Sniffer(\n    [('192.168.0.47', 0), ('192.168.56.1', 0)],\n    [('fe80:0000:0000:0000:6cc8:2732:3de4:496b', 0, 0, 18)],\n    (summary, hexadecimal),\n)\nsniffer.sniff() \n\nSnifferFilters = new_class(\n    \"SnifferFilters\",\n    (TcpFilter, Sniffer),\n    {},\n)\nsniffer = SnifferFilters(\n    [('192.168.0.47', 0), ('192.168.56.1', 0)],\n    [('fe80:0000:0000:0000:6cc8:2732:3de4:496b', 0, 0, 18)],\n    (summary, hexadecimal),\n    tcp_filter=True,\n)\nsniffer.sniff() \n\nipv4_addresses, ipv6_addresses = get_addresses()\nsniffer = Sniffer(\n    ipv4_addresses,\n    ipv6_addresses,\n    (raw,),\n)\nsniffer.sniff() \n```\n\n## Links\n\n - [Github Page](https://github.com/mauricelambert/NetworkSniffer/)\n - [Documentation](https://mauricelambert.github.io/info/python/security/NetworkSniffer.html)\n - [Pypi package](https://pypi.org/project/NetworkSniffer/)\n - [Executable](https://mauricelambert.github.io/info/python/security/NetworkSniffer.pyz)\n\n## Licence\n\nLicensed under the [GPL, version 3](https://www.gnu.org/licenses/).\n",
    "bugtrack_url": null,
    "license": "GPL-3.0 License",
    "summary": "This module sniffs network communications without any requirements",
    "version": "0.0.3",
    "split_keywords": [
        "sniffer",
        "network",
        "analysis",
        "forensic",
        "ethernet",
        "ip",
        "security",
        "tcp",
        "udp"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "39bd51b3b17657c0a235dd5e522fd3963ecd76d1bb7cdb957f91a9db7a709071",
                "md5": "35ed0d491dec4088740d6942103954b5",
                "sha256": "59950f7e67b97f2850fc7184c0fd8574e9bc1b7ab177e5f19c4ee12b5fc31764"
            },
            "downloads": -1,
            "filename": "NetworkSniffer-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "35ed0d491dec4088740d6942103954b5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 26457,
            "upload_time": "2023-03-20T12:13:28",
            "upload_time_iso_8601": "2023-03-20T12:13:28.450542Z",
            "url": "https://files.pythonhosted.org/packages/39/bd/51b3b17657c0a235dd5e522fd3963ecd76d1bb7cdb957f91a9db7a709071/NetworkSniffer-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-20 12:13:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "mauricelambert",
    "github_project": "NetworkSniffer",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "networksniffer"
}
        
Elapsed time: 0.32115s