packetsnitch 1.5.599

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 (54) hide show
  1. package/.eslintrc.json +28 -0
  2. package/.webpack/x64/main/index.js +2 -0
  3. package/.webpack/x64/main/index.js.map +1 -0
  4. package/.webpack/x64/renderer/assets/css/rubikglitch.woff2 +0 -0
  5. package/.webpack/x64/renderer/assets/css/style.css +1916 -0
  6. package/.webpack/x64/renderer/assets/images/loading.gif +0 -0
  7. package/.webpack/x64/renderer/assets/images/logo.webp +0 -0
  8. package/.webpack/x64/renderer/assets/images/packet-snitch-tag.webp +0 -0
  9. package/.webpack/x64/renderer/main_window/index.html +3 -0
  10. package/.webpack/x64/renderer/main_window/index.js +3 -0
  11. package/.webpack/x64/renderer/main_window/index.js.LICENSE.txt +36 -0
  12. package/.webpack/x64/renderer/main_window/index.js.map +1 -0
  13. package/.webpack/x64/renderer/main_window/preload.js +2 -0
  14. package/.webpack/x64/renderer/main_window/preload.js.map +1 -0
  15. package/backend/common/GeoLite2-City.mmdb +0 -0
  16. package/backend/common/mac-vendors-export.csv +56923 -0
  17. package/backend/common/service-names-port-numbers.csv +15368 -0
  18. package/backend/requirements.txt +14 -0
  19. package/backend/snitch.py +3611 -0
  20. package/forge.config.js +80 -0
  21. package/package.json +102 -0
  22. package/ps-icon.ico +0 -0
  23. package/snitch.spec +44 -0
  24. package/src/assets/css/rubikglitch.woff2 +0 -0
  25. package/src/assets/css/style.css +1916 -0
  26. package/src/assets/images/loading.gif +0 -0
  27. package/src/assets/images/logo.webp +0 -0
  28. package/src/assets/images/packet-snitch-tag.webp +0 -0
  29. package/src/back-comm.js +70 -0
  30. package/src/decoders.js +579 -0
  31. package/src/filter.js +461 -0
  32. package/src/front.js +10 -0
  33. package/src/index.html +1036 -0
  34. package/src/logging.js +150 -0
  35. package/src/main.js +571 -0
  36. package/src/preload.js +73 -0
  37. package/src/renderer.js +30 -0
  38. package/src/ui/common-frontend.js +13 -0
  39. package/src/ui/context-menu.js +88 -0
  40. package/src/ui/decoders.js +1 -0
  41. package/src/ui/main-frontend.js +4957 -0
  42. package/src/ui/panels/crypt-panel.js +565 -0
  43. package/src/ui/panels/data-panel.js +151 -0
  44. package/src/ui/panels/data-tools-panel.js +939 -0
  45. package/src/ui/panels/install-screen.js +59 -0
  46. package/src/ui/panels/keystore-panel.js +1248 -0
  47. package/src/ui/panels/list-panel.js +403 -0
  48. package/src/ui/panels/stats-panel.js +351 -0
  49. package/src/ui/panels/summary-panel.js +63 -0
  50. package/webpack.main.config.js +11 -0
  51. package/webpack.plugins.js +13 -0
  52. package/webpack.preload.config.js +7 -0
  53. package/webpack.renderer.config.js +30 -0
  54. package/webpack.rules.js +35 -0
@@ -0,0 +1,80 @@
1
+ const { FusesPlugin } = require("@electron-forge/plugin-fuses");
2
+ const { FuseV1Options, FuseVersion } = require("@electron/fuses");
3
+ const path = require("path");
4
+ module.exports = {
5
+ packagerConfig: {
6
+ asar: true,
7
+ extraResource: ["./backend/"],
8
+ icon: path.resolve(__dirname, "ps-icon.ico"),
9
+ setupIcon: path.resolve(__dirname, "ps-icon.ico"),
10
+ },
11
+ rebuildConfig: {},
12
+ makers: [
13
+ {
14
+ name: "@electron-forge/maker-squirrel",
15
+ config: {
16
+ name: "PacketSnitch",
17
+ },
18
+ },
19
+ // {
20
+ // name: "@electron-forge/maker-flatpak",
21
+ // config: {
22
+ // name: "org.oxasploits.packetsnitch",
23
+ // options: {
24
+ // categories: ["Video"],
25
+ // mimeType: ["video/h264"],
26
+ // },
27
+ // },
28
+ // },
29
+ {
30
+ name: "@electron-forge/maker-zip",
31
+ platforms: ["darwin"],
32
+ },
33
+ {
34
+ name: "@electron-forge/maker-deb",
35
+ config: {},
36
+ },
37
+ {
38
+ name: "@electron-forge/maker-rpm",
39
+ config: {
40
+ skipRpathValidation: true, // necessary to build the package on fedora
41
+ },
42
+ },
43
+ ],
44
+ plugins: [
45
+ {
46
+ name: "@electron-forge/plugin-auto-unpack-natives",
47
+ config: {},
48
+ },
49
+ {
50
+ name: "@electron-forge/plugin-webpack",
51
+ config: {
52
+ mainConfig: "./webpack.main.config.js",
53
+ renderer: {
54
+ config: "./webpack.renderer.config.js",
55
+ entryPoints: [
56
+ {
57
+ html: "./src/index.html",
58
+ js: "./src/renderer.js",
59
+ name: "main_window",
60
+ preload: {
61
+ js: "./src/preload.js",
62
+ },
63
+ },
64
+ ],
65
+ },
66
+ },
67
+ },
68
+ // Fuses are used to enable/disable various Electron functionality
69
+ // at package time, before code signing the application
70
+ new FusesPlugin({
71
+ version: FuseVersion.V1,
72
+ [FuseV1Options.RunAsNode]: false,
73
+ [FuseV1Options.EnableCookieEncryption]: true,
74
+ [FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
75
+ [FuseV1Options.EnableNodeCliInspectArguments]: false,
76
+ [FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
77
+ [FuseV1Options.OnlyLoadAppFromAsar]: true,
78
+ }),
79
+ ],
80
+ };
package/package.json ADDED
@@ -0,0 +1,102 @@
1
+ {
2
+ "name": "packetsnitch",
3
+ "executableName": "PacketSnitch",
4
+ "productName": "PacketSnitch",
5
+ "version": "1.5.599",
6
+ "description": "A High Level Network Analysis Tool",
7
+ "main": ".webpack/main",
8
+ "private": false,
9
+ "scripts": {
10
+ "start": "electron-forge start",
11
+ "package": "npm run build-python && electron-forge package",
12
+ "make": "npm run build-python && QA_SKIP_RPATHS=1 electron-forge make",
13
+ "build-python": "python3 -m PyInstaller --onedir -y --add-data \"backend/common:common\" --distpath backend ./backend/snitch.py",
14
+ "publish": "electron-forge publish"
15
+ },
16
+ "engines": {
17
+ "node": ">=12.11.0"
18
+ },
19
+ "build": {
20
+ "win": {
21
+ "target": "nsis",
22
+ "icon": "ps-icon.ico"
23
+ }
24
+ },
25
+ "keywords": [
26
+ "packet sniffer",
27
+ "network analysis",
28
+ "network monitoring",
29
+ "packet capture",
30
+ "protocol analysis",
31
+ "traffic analysis",
32
+ "network security",
33
+ "packets",
34
+ "networking",
35
+ "cybersecurity",
36
+ "network troubleshooting",
37
+ "network performance",
38
+ "network diagnostics",
39
+ "network forensics",
40
+ "network visualization",
41
+ "network management",
42
+ "pcap decoder",
43
+ "pcapng decoder",
44
+ "packet inspector"
45
+ ],
46
+ "author": {
47
+ "name": "Marshall Whittaker",
48
+ "email": "marshall@oxasploits.com"
49
+ },
50
+ "license": "GPL-3.0",
51
+ "devDependencies": {
52
+ "@electron-forge/cli": "^7.11.1",
53
+ "@electron-forge/maker-deb": "^7.11.1",
54
+ "@electron-forge/maker-flatpak": "^7.11.2",
55
+ "@electron-forge/maker-rpm": "^7.11.2",
56
+ "@electron-forge/maker-squirrel": "^7.11.1",
57
+ "@electron-forge/maker-zip": "^7.11.1",
58
+ "@electron-forge/plugin-auto-unpack-natives": "^7.11.1",
59
+ "@electron-forge/plugin-fuses": "^7.11.1",
60
+ "@electron-forge/plugin-webpack": "^7.11.1",
61
+ "@electron/fuses": "^1.8.0",
62
+ "@vercel/webpack-asset-relocator-loader": "^1.7.3",
63
+ "copy-webpack-plugin": "^13.0.1",
64
+ "css-loader": "^6.11.0",
65
+ "electron": "^40.6.1",
66
+ "globals": "^17.5.0",
67
+ "node-loader": "^2.1.0",
68
+ "style-loader": "^3.3.4",
69
+ "webpack-cli": "^7.0.2"
70
+ },
71
+ "dependencies": {
72
+ "buffer": "^6.0.3",
73
+ "crypto-browserify": "^3.12.1",
74
+ "crypto-js": "^4.2.0",
75
+ "electron-squirrel-startup": "^1.0.1",
76
+ "fs": "^0.0.1-security",
77
+ "js-sha3": "^0.9.3",
78
+ "process": "^0.11.10",
79
+ "stream-browserify": "^3.0.0",
80
+ "vm-browserify": "^1.1.2",
81
+ "whirlpool-js": "^1.0.0"
82
+ },
83
+ "plugins": [
84
+ [
85
+ "@electron-forge/plugin-webpack",
86
+ {
87
+ "mainConfig": "./webpack.main.config.js",
88
+ "renderer": {
89
+ "config": "./webpack.renderer.config.js",
90
+ "entryPoints": [
91
+ {
92
+ "html": "./src/index.html",
93
+ "js": "./src/renderer.js",
94
+ "name": "main_window",
95
+ "devContentSecurityPolicy": "default-src 'self' https://fonts.googleapis.com https://fonts.gstatic.com 'unsafe-inline' data:;"
96
+ }
97
+ ]
98
+ }
99
+ }
100
+ ]
101
+ ]
102
+ }
package/ps-icon.ico ADDED
Binary file
package/snitch.spec ADDED
@@ -0,0 +1,44 @@
1
+ # -*- mode: python ; coding: utf-8 -*-
2
+
3
+
4
+ a = Analysis(
5
+ ['backend/snitch.py'],
6
+ pathex=[],
7
+ binaries=[],
8
+ datas=[('backend/common', 'common')],
9
+ hiddenimports=[],
10
+ hookspath=[],
11
+ hooksconfig={},
12
+ runtime_hooks=[],
13
+ excludes=[],
14
+ noarchive=False,
15
+ optimize=0,
16
+ )
17
+ pyz = PYZ(a.pure)
18
+
19
+ exe = EXE(
20
+ pyz,
21
+ a.scripts,
22
+ [],
23
+ exclude_binaries=True,
24
+ name='snitch',
25
+ debug=False,
26
+ bootloader_ignore_signals=False,
27
+ strip=False,
28
+ upx=True,
29
+ console=True,
30
+ disable_windowed_traceback=False,
31
+ argv_emulation=False,
32
+ target_arch=None,
33
+ codesign_identity=None,
34
+ entitlements_file=None,
35
+ )
36
+ coll = COLLECT(
37
+ exe,
38
+ a.binaries,
39
+ a.datas,
40
+ strip=False,
41
+ upx=True,
42
+ upx_exclude=[],
43
+ name='snitch',
44
+ )
Binary file