ptnetinspector 0.1.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. ptnetinspector-0.1.6/.github/workflows/release.yaml +26 -0
  2. ptnetinspector-0.1.6/.gitignore +168 -0
  3. ptnetinspector-0.1.6/CHANGELOG.md +34 -0
  4. ptnetinspector-0.1.6/LICENSE +674 -0
  5. ptnetinspector-0.1.6/MANIFEST.in +6 -0
  6. ptnetinspector-0.1.6/PKG-INFO +224 -0
  7. ptnetinspector-0.1.6/README.md +177 -0
  8. ptnetinspector-0.1.6/doc/captures/active-mode-v1.pcapng +0 -0
  9. ptnetinspector-0.1.6/doc/captures/active-mode-v2.pcapng +0 -0
  10. ptnetinspector-0.1.6/doc/images/agresivni.drawio.pdf +0 -0
  11. ptnetinspector-0.1.6/doc/images/agresivni_nakres.drawio.pdf +0 -0
  12. ptnetinspector-0.1.6/doc/images/agresivni_po_rozsireni.drawio.pdf +0 -0
  13. ptnetinspector-0.1.6/doc/images/aktivni.drawio.pdf +0 -0
  14. ptnetinspector-0.1.6/doc/images/aktivni_po_rozsireni.drawio.pdf +0 -0
  15. ptnetinspector-0.1.6/doc/images/horizontal_penterep_logo_normal_3562db3de4.svg +1 -0
  16. ptnetinspector-0.1.6/doc/images/ipv4aktivni.drawio.pdf +0 -0
  17. ptnetinspector-0.1.6/doc/images/mac_addr_block.drawio.pdf +0 -0
  18. ptnetinspector-0.1.6/doc/images/navrh.drawio.pdf +0 -0
  19. ptnetinspector-0.1.6/doc/images/pasivni.drawio.pdf +0 -0
  20. ptnetinspector-0.1.6/doc/images/pasivni_po_rozsireni.drawio.pdf +0 -0
  21. ptnetinspector-0.1.6/doc/images/role.drawio.pdf +0 -0
  22. ptnetinspector-0.1.6/doc/images/rozdeleni.drawio.pdf +0 -0
  23. ptnetinspector-0.1.6/doc/images/struktura.drawio.pdf +0 -0
  24. ptnetinspector-0.1.6/doc/images/validace.drawio.pdf +0 -0
  25. ptnetinspector-0.1.6/doc/ptnetinspector/Application structure--updates-also-with-separate-modes 7.drawio +3053 -0
  26. ptnetinspector-0.1.6/doc/ptnetinspector/list_defined_vulnerability.csv +55 -0
  27. ptnetinspector-0.1.6/ptnetinspector/__init__.py +0 -0
  28. ptnetinspector-0.1.6/ptnetinspector/__main__.py +2 -0
  29. ptnetinspector-0.1.6/ptnetinspector/_version.py +1 -0
  30. ptnetinspector-0.1.6/ptnetinspector/data/manuf +53280 -0
  31. ptnetinspector-0.1.6/ptnetinspector/entities/__init__.py +0 -0
  32. ptnetinspector-0.1.6/ptnetinspector/entities/default_gw.py +30 -0
  33. ptnetinspector-0.1.6/ptnetinspector/entities/dhcp.py +51 -0
  34. ptnetinspector-0.1.6/ptnetinspector/entities/eap.py +47 -0
  35. ptnetinspector-0.1.6/ptnetinspector/entities/igmpv1v2.py +30 -0
  36. ptnetinspector-0.1.6/ptnetinspector/entities/igmpv3.py +35 -0
  37. ptnetinspector-0.1.6/ptnetinspector/entities/llmnr.py +52 -0
  38. ptnetinspector-0.1.6/ptnetinspector/entities/mdns.py +52 -0
  39. ptnetinspector-0.1.6/ptnetinspector/entities/mldv1.py +50 -0
  40. ptnetinspector-0.1.6/ptnetinspector/entities/mldv2.py +56 -0
  41. ptnetinspector-0.1.6/ptnetinspector/entities/networks.py +133 -0
  42. ptnetinspector-0.1.6/ptnetinspector/entities/node.py +167 -0
  43. ptnetinspector-0.1.6/ptnetinspector/entities/remote_node.py +54 -0
  44. ptnetinspector-0.1.6/ptnetinspector/entities/router.py +109 -0
  45. ptnetinspector-0.1.6/ptnetinspector/entities/time.py +76 -0
  46. ptnetinspector-0.1.6/ptnetinspector/entities/wsdiscovery.py +89 -0
  47. ptnetinspector-0.1.6/ptnetinspector/main.py +330 -0
  48. ptnetinspector-0.1.6/ptnetinspector/output/__init__.py +0 -0
  49. ptnetinspector-0.1.6/ptnetinspector/output/json.py +179 -0
  50. ptnetinspector-0.1.6/ptnetinspector/output/non_json.py +500 -0
  51. ptnetinspector-0.1.6/ptnetinspector/output/tmp/IGMPv1v2.csv +1 -0
  52. ptnetinspector-0.1.6/ptnetinspector/output/tmp/IGMPv3.csv +1 -0
  53. ptnetinspector-0.1.6/ptnetinspector/output/tmp/LLMNR.csv +1 -0
  54. ptnetinspector-0.1.6/ptnetinspector/output/tmp/MDNS.csv +1 -0
  55. ptnetinspector-0.1.6/ptnetinspector/output/tmp/MLDv1.csv +1 -0
  56. ptnetinspector-0.1.6/ptnetinspector/output/tmp/MLDv2.csv +1 -0
  57. ptnetinspector-0.1.6/ptnetinspector/output/tmp/RA.csv +1 -0
  58. ptnetinspector-0.1.6/ptnetinspector/output/tmp/addresses.csv +2 -0
  59. ptnetinspector-0.1.6/ptnetinspector/output/tmp/addresses_unfiltered.csv +21 -0
  60. ptnetinspector-0.1.6/ptnetinspector/output/tmp/default_gw.csv +1 -0
  61. ptnetinspector-0.1.6/ptnetinspector/output/tmp/dhcp.csv +1 -0
  62. ptnetinspector-0.1.6/ptnetinspector/output/tmp/eap.csv +1 -0
  63. ptnetinspector-0.1.6/ptnetinspector/output/tmp/ipv4_route_table.csv +1 -0
  64. ptnetinspector-0.1.6/ptnetinspector/output/tmp/ipv6_route_table.csv +1 -0
  65. ptnetinspector-0.1.6/ptnetinspector/output/tmp/localname.csv +1 -0
  66. ptnetinspector-0.1.6/ptnetinspector/output/tmp/networks.csv +3 -0
  67. ptnetinspector-0.1.6/ptnetinspector/output/tmp/packets.csv +14 -0
  68. ptnetinspector-0.1.6/ptnetinspector/output/tmp/remote_node.csv +1 -0
  69. ptnetinspector-0.1.6/ptnetinspector/output/tmp/role_node.csv +2 -0
  70. ptnetinspector-0.1.6/ptnetinspector/output/tmp/routers.csv +1 -0
  71. ptnetinspector-0.1.6/ptnetinspector/output/tmp/start_end_mode.csv +3 -0
  72. ptnetinspector-0.1.6/ptnetinspector/output/tmp/time_all.csv +14 -0
  73. ptnetinspector-0.1.6/ptnetinspector/output/tmp/time_incoming.csv +7 -0
  74. ptnetinspector-0.1.6/ptnetinspector/output/tmp/time_outgoing.csv +8 -0
  75. ptnetinspector-0.1.6/ptnetinspector/output/tmp/vendors.csv +2 -0
  76. ptnetinspector-0.1.6/ptnetinspector/output/tmp/vulnerability.csv +2 -0
  77. ptnetinspector-0.1.6/ptnetinspector/output/tmp/wsdiscovery.csv +1 -0
  78. ptnetinspector-0.1.6/ptnetinspector/scan.py +475 -0
  79. ptnetinspector-0.1.6/ptnetinspector/send/__init__.py +0 -0
  80. ptnetinspector-0.1.6/ptnetinspector/send/send.py +226 -0
  81. ptnetinspector-0.1.6/ptnetinspector/send/send_ipv4.py +378 -0
  82. ptnetinspector-0.1.6/ptnetinspector/send/send_ipv6.py +775 -0
  83. ptnetinspector-0.1.6/ptnetinspector/utils/__init__.py +0 -0
  84. ptnetinspector-0.1.6/ptnetinspector/utils/address_control.py +154 -0
  85. ptnetinspector-0.1.6/ptnetinspector/utils/cli.py +693 -0
  86. ptnetinspector-0.1.6/ptnetinspector/utils/csv_helpers.py +438 -0
  87. ptnetinspector-0.1.6/ptnetinspector/utils/interface.py +412 -0
  88. ptnetinspector-0.1.6/ptnetinspector/utils/ip_utils.py +681 -0
  89. ptnetinspector-0.1.6/ptnetinspector/utils/oui.py +145 -0
  90. ptnetinspector-0.1.6/ptnetinspector/utils/path.py +60 -0
  91. ptnetinspector-0.1.6/ptnetinspector/vulnerability.py +1020 -0
  92. ptnetinspector-0.1.6/ptnetinspector.egg-info/PKG-INFO +224 -0
  93. ptnetinspector-0.1.6/ptnetinspector.egg-info/SOURCES.txt +111 -0
  94. ptnetinspector-0.1.6/ptnetinspector.egg-info/dependency_links.txt +1 -0
  95. ptnetinspector-0.1.6/ptnetinspector.egg-info/entry_points.txt +2 -0
  96. ptnetinspector-0.1.6/ptnetinspector.egg-info/not-zip-safe +1 -0
  97. ptnetinspector-0.1.6/ptnetinspector.egg-info/requires.txt +17 -0
  98. ptnetinspector-0.1.6/ptnetinspector.egg-info/top_level.txt +1 -0
  99. ptnetinspector-0.1.6/pyproject.toml +63 -0
  100. ptnetinspector-0.1.6/requirements.txt +17 -0
  101. ptnetinspector-0.1.6/setup.cfg +4 -0
  102. ptnetinspector-0.1.6/setup.py +67 -0
  103. ptnetinspector-0.1.6/test/README_TESTING.md +301 -0
  104. ptnetinspector-0.1.6/test/__init__.py +1 -0
  105. ptnetinspector-0.1.6/test/conftest.py +27 -0
  106. ptnetinspector-0.1.6/test/requirements-test.txt +5 -0
  107. ptnetinspector-0.1.6/test/test_cli.py +79 -0
  108. ptnetinspector-0.1.6/test/test_csv_helpers.py +99 -0
  109. ptnetinspector-0.1.6/test/test_end_to_end.py +587 -0
  110. ptnetinspector-0.1.6/test/test_integration.py +191 -0
  111. ptnetinspector-0.1.6/test/test_interface.py +149 -0
  112. ptnetinspector-0.1.6/test/test_ip_utils.py +128 -0
  113. ptnetinspector-0.1.6/test/test_path.py +31 -0
@@ -0,0 +1,26 @@
1
+ name: Release Python Package
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ build-and-publish:
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+
13
+ - uses: actions/setup-python@v4
14
+ with:
15
+ python-version: '3.13'
16
+
17
+ - run: |
18
+ python -m pip install --upgrade pip
19
+ pip install build twine
20
+
21
+ - run: python -m build
22
+
23
+ - run: twine upload dist/*
24
+ env:
25
+ TWINE_USERNAME: __token__
26
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,168 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ /*/__pycache__
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # Distribution / packaging
7
+ .Python
8
+ build/
9
+ develop-eggs/
10
+ dist/
11
+ downloads/
12
+ eggs/
13
+ .eggs/
14
+ lib/
15
+ lib64/
16
+ parts/
17
+ sdist/
18
+ var/
19
+ wheels/
20
+ share/python-wheels/
21
+ *.egg-info/
22
+ .installed.cfg
23
+ *.egg
24
+ MANIFEST
25
+
26
+ # PyInstaller
27
+ # Usually these files are written by a python script from a template
28
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
29
+ *.manifest
30
+ *.spec
31
+
32
+ # Installer logs
33
+ pip-log.txt
34
+ pip-delete-this-directory.txt
35
+
36
+ # Unit test / coverage reports
37
+ htmlcov/
38
+ .tox/
39
+ .nox/
40
+ .coverage
41
+ .coverage.*
42
+ .cache
43
+ nosetests.xml
44
+ coverage.xml
45
+ *.cover
46
+ *.py,cover
47
+ .hypothesis/
48
+ .pytest_cache/
49
+ cover/
50
+
51
+ # Translations
52
+ *.mo
53
+ *.pot
54
+
55
+ # Django stuff:
56
+ *.log
57
+ local_settings.py
58
+ db.sqlite3
59
+ db.sqlite3-journal
60
+
61
+ # Flask stuff:
62
+ instance/
63
+ .webassets-cache
64
+
65
+ # Scrapy stuff:
66
+ .scrapy
67
+
68
+ # Sphinx documentation
69
+ docs/_build/
70
+
71
+ # PyBuilder
72
+ .pybuilder/
73
+ target/
74
+
75
+ # Jupyter Notebook
76
+ .ipynb_checkpoints
77
+
78
+ # IPython
79
+ profile_default/
80
+ ipython_config.py
81
+
82
+ # pyenv
83
+ # For a library or package, you might want to ignore these files since the code is
84
+ # intended to run in multiple environments; otherwise, check them in:
85
+ # .python-version
86
+
87
+ # pipenv
88
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
90
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
91
+ # install all needed dependencies.
92
+ #Pipfile.lock
93
+
94
+ # UV
95
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
96
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
97
+ # commonly ignored for libraries.
98
+ #uv.lock
99
+
100
+ # poetry
101
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
102
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
103
+ # commonly ignored for libraries.
104
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
105
+ #poetry.lock
106
+
107
+ # pdm
108
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
109
+ #pdm.lock
110
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
111
+ # in version control.
112
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
113
+ .pdm.toml
114
+ .pdm-python
115
+ .pdm-build/
116
+
117
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
118
+ __pypackages__/
119
+
120
+ # Celery stuff
121
+ celerybeat-schedule
122
+ celerybeat.pid
123
+
124
+ # SageMath parsed files
125
+ *.sage.py
126
+
127
+ # Environments
128
+ .env
129
+ .venv
130
+ env/
131
+ venv/
132
+ ENV/
133
+ env.bak/
134
+ venv.bak/
135
+
136
+ # Spyder project settings
137
+ .spyderproject
138
+ .spyproject
139
+
140
+ # Rope project settings
141
+ .ropeproject
142
+
143
+ # mkdocs documentation
144
+ /site
145
+
146
+ # mypy
147
+ .mypy_cache/
148
+ .dmypy.json
149
+ dmypy.json
150
+
151
+ # Pyre type checker
152
+ .pyre/
153
+
154
+ # pytype static type analyzer
155
+ .pytype/
156
+
157
+ # Cython debug symbols
158
+ cython_debug/
159
+
160
+ # PyCharm
161
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
162
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
163
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
164
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
165
+ #.idea/
166
+
167
+ # PyPI configuration file
168
+ .pypirc
@@ -0,0 +1,34 @@
1
+ ## Version History
2
+
3
+ Version 0.1.0
4
+ -------------
5
+ - Initial release.
6
+
7
+ Version 0.1.1
8
+ -------------
9
+ - Adding network and device vulnerability related to Response to ICMPv6.
10
+
11
+ Version 0.1.2
12
+ -------------
13
+ - Adding device vulnerability summary table for the devices.
14
+ - Updating the structure of vulnerability analysis.
15
+ - Fixing bugs.
16
+
17
+ Version 0.1.3
18
+ -------------
19
+ - Adding device vulnerability summary table for the network.
20
+ - Separating vulnerabilities among modes.
21
+ - Showing how devices respond to each packet (IPv6 only).
22
+
23
+ Version 0.1.4
24
+ -------------
25
+ - Separating vulnerabilities for the case of IP version mode (-4 or -6)
26
+
27
+ Version 0.1.5
28
+ -------------
29
+ - Separating vulnerabilities tables for the case of IP version mode (-4 or -6)
30
+
31
+ Version 0.1.6
32
+ -------------
33
+ - Adding more vulnerabilities related to DNS-SD, WS-Discovery, IPv6 addresses
34
+ - Fixing N/A output of vulnerabilities