nmaping 2.0__tar.gz → 2.2__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.
nmaping-2.2/PKG-INFO ADDED
@@ -0,0 +1,284 @@
1
+ Metadata-Version: 2.4
2
+ Name: nmaping
3
+ Version: 2.2
4
+ Summary: An automation and network scanning utility tool.
5
+ Author-email: "Mr. Tan" <mrtanvai@gmail.com>
6
+ License: Custom License
7
+ Project-URL: Homepage, https://github.com/Mr74nX/nmaping
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Operating System :: POSIX :: Linux
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: requests
13
+
14
+ # 🚀 nmaping
15
+
16
+ **nmaping** is a simple, colorful, menu-based tool that helps you run Nmap scans without remembering any commands. Pick a scan from the menu, enter a target, and get your results. Everything is saved automatically.
17
+
18
+ Made by **Mr Tan**.
19
+
20
+ ---
21
+
22
+ ## 📖 What Does It Do?
23
+
24
+ Nmap is a powerful network scanner, but its commands are long and hard to remember. nmaping does the hard part for you:
25
+
26
+ - Shows all scan types in a clean numbered menu
27
+ - Asks for your target (IP address, website, or a whole network range)
28
+ - Lets you choose how fast or how quiet the scan should be
29
+ - Runs the scan and shows the result on screen
30
+ - Saves the result to a file and keeps a history of everything you scanned
31
+
32
+ ---
33
+
34
+ ## ✅ Before You Start
35
+
36
+ You need two things on your computer:
37
+
38
+ 1. **Python 3.8 or newer**
39
+ 2. **Nmap**
40
+
41
+ **Install Nmap:**
42
+
43
+ | System | Command |
44
+ |--------|---------|
45
+ | Kali / Ubuntu / Debian | `sudo apt update && sudo apt install -y nmap` |
46
+ | Fedora | `sudo dnf install nmap` |
47
+ | Arch | `sudo pacman -S nmap` |
48
+ | Windows | Download from https://nmap.org/download.html and tick **"Add to PATH"** during setup |
49
+
50
+ ---
51
+
52
+ ## 📦 How to Install
53
+
54
+ ### Linux (recommended: pipx)
55
+
56
+ ```bash
57
+ sudo apt install -y pipx
58
+ pipx ensurepath
59
+ ```
60
+
61
+ Close and reopen your terminal, then:
62
+
63
+ ```bash
64
+ pipx install nmaping
65
+ ```
66
+
67
+ ### Linux / Mac (using pip)
68
+
69
+ New Linux versions don't allow plain `pip install`, so create a small environment first:
70
+
71
+ ```bash
72
+ python3 -m venv ~/.nmaping-venv
73
+ source ~/.nmaping-venv/bin/activate
74
+ pip install nmaping
75
+ ```
76
+
77
+ > Every time you want to use it later, run `source ~/.nmaping-venv/bin/activate` first.
78
+
79
+ ### Windows
80
+
81
+ Open PowerShell and run:
82
+
83
+ ```powershell
84
+ python -m pip install --user pipx
85
+ python -m pipx ensurepath
86
+ ```
87
+
88
+ Close and reopen PowerShell, then:
89
+
90
+ ```powershell
91
+ pipx install nmaping
92
+ ```
93
+
94
+ ---
95
+
96
+ ## ▶️ How to Run
97
+
98
+ Just type:
99
+
100
+ ```bash
101
+ nmaping
102
+ ```
103
+
104
+ ---
105
+
106
+ ## 🧭 How to Use (Step by Step)
107
+
108
+ 1. Run `nmaping`. The main menu appears with the logo and a live clock.
109
+ 2. Type the **number** of the scan you want and press Enter.
110
+ 3. Enter your **target**, for example:
111
+ - `192.168.1.1` (one device)
112
+ - `example.com` (a website)
113
+ - `192.168.1.0/24` (a whole network)
114
+ 4. Confirm that you have **permission** to scan the target (type `y`).
115
+ 5. Choose a **speed** from 0 to 5 (just press Enter for the default).
116
+ 6. Wait for the scan to finish. The result is shown and saved automatically.
117
+ 7. Press Enter to return to the menu.
118
+
119
+ In the main menu:
120
+ - Type **H** to see your scan history
121
+ - Type **0** to exit
122
+
123
+ ---
124
+
125
+ ## 🔍 Scan Types Explained
126
+
127
+ | No. | Scan | What it does |
128
+ |-----|------|--------------|
129
+ | 1 | SYN Scan | Fast, quiet scan for open ports |
130
+ | 2 | Version Detection | Finds which software and version runs on each open port |
131
+ | 3 | Vulnerability Scan | Checks for known security weaknesses |
132
+ | 4 | OS Detection | Guesses the operating system of the target |
133
+ | 5 | Host Discovery | Checks which devices are online, no port scan |
134
+ | 6 | Specific Port | Scans only the port(s) you choose (e.g. `80,443`) |
135
+ | 7 | Top 1000 Ports | Scans the 1000 most common ports |
136
+ | 8 | UDP Scan | Scans UDP ports (slower) |
137
+ | 9 | Aggressive Scan | OS, version, scripts and traceroute in one go |
138
+ | 10 | Firewall / ACK Scan | Helps find out if a firewall is filtering ports |
139
+ | 11 | Default Script Scan | Runs Nmap's standard safe scripts |
140
+ | 12 | Traceroute | Shows the path your traffic takes to the target |
141
+ | 13 | All Ports | Scans all 65,535 ports (slow) |
142
+ | 14 | Ping Scan | Checks if the target responds to ping |
143
+ | 15 | No Ping Scan | Scans even if the target ignores ping |
144
+ | 16 | TCP Connect | Normal connection scan, works without root |
145
+ | 17 | Xmas Scan | Special stealth scan |
146
+ | 18 | FIN Scan | Special stealth scan |
147
+ | 19 | Null Scan | Special stealth scan |
148
+ | 20 | Custom | Type your own Nmap options |
149
+ | 21 | Full Deep Scan | Everything combined (very slow) |
150
+
151
+ ---
152
+
153
+ ## ⏱️ Speed Levels
154
+
155
+ | Level | Name | Best for |
156
+ |-------|------|----------|
157
+ | 0 | Paranoid | Maximum stealth, extremely slow |
158
+ | 1 | Sneaky | Very slow, hard to detect |
159
+ | 2 | Polite | Gentle on the network |
160
+ | 3 | Normal | Default, good for most cases |
161
+ | 4 | Aggressive | Fast, recommended on good networks |
162
+ | 5 | Insane | Fastest, use only in your own lab |
163
+
164
+ ---
165
+
166
+ ## ⌨️ Quick Commands (Without the Menu)
167
+
168
+ If you already know what you want, skip the menu:
169
+
170
+ ```bash
171
+ nmaping -t 192.168.1.1 -s 2 -T 4
172
+ ```
173
+
174
+ Meaning: scan `192.168.1.1`, scan type `2` (Version Detection), speed `4`.
175
+
176
+ | Option | Meaning |
177
+ |--------|---------|
178
+ | `-t` | Target |
179
+ | `-s` | Scan number (1 to 21) |
180
+ | `-T` | Speed (0 to 5) |
181
+ | `-p` | Port(s), used with scan 6 |
182
+ | `--no-save` | Don't save the result file |
183
+ | `--list` | Show all scan types |
184
+ | `-y` | Skip the permission question |
185
+
186
+ More examples:
187
+
188
+ ```bash
189
+ nmaping -t example.com -s 6 -p 80,443
190
+ nmaping -t 192.168.1.0/24 -s 5
191
+ nmaping --list
192
+ ```
193
+
194
+ ---
195
+
196
+ ## 🔑 Scans That Need Root (Linux)
197
+
198
+ Scans 1, 4, 8, 17, 18, 19 (and some others) need administrator rights. Run:
199
+
200
+ ```bash
201
+ sudo "$(which nmaping)"
202
+ ```
203
+
204
+ When run with `sudo`, files are saved in `/root/.nmaping/` instead of your own folder.
205
+
206
+ ---
207
+
208
+ ## 🔄 How to Update to a New Version
209
+
210
+ When a new version is released, update with one command.
211
+
212
+ **If you installed with pipx:**
213
+
214
+ ```bash
215
+ pipx upgrade nmaping
216
+ ```
217
+
218
+ If it says nothing changed, force the update:
219
+
220
+ ```bash
221
+ pipx install --force nmaping
222
+ ```
223
+
224
+ **If you installed with pip:**
225
+
226
+ ```bash
227
+ pip install --upgrade --force-reinstall nmaping
228
+ ```
229
+
230
+ (Activate your environment first if you used one: `source ~/.nmaping-venv/bin/activate`)
231
+
232
+ The logo shows your current version (`v=1.0`). Check the GitHub page to see if a newer one is available.
233
+
234
+ ---
235
+
236
+ ## 🗑️ How to Uninstall
237
+
238
+ ```bash
239
+ pipx uninstall nmaping
240
+ ```
241
+
242
+ or, if you used pip:
243
+
244
+ ```bash
245
+ pip uninstall nmaping
246
+ ```
247
+
248
+ Your saved results stay in `~/.nmaping/`. Delete that folder if you want to remove them too.
249
+
250
+ ---
251
+
252
+ ## 📁 Where Are My Results?
253
+
254
+ | What | Location |
255
+ |------|----------|
256
+ | Scan results | `~/.nmaping/results/` |
257
+ | Scan history | `~/.nmaping/history.log` |
258
+
259
+ Each result file is named with the target, scan type, and date/time.
260
+
261
+ ---
262
+
263
+ ## 🛠️ Problems and Fixes
264
+
265
+ | Problem | Fix |
266
+ |---------|-----|
267
+ | `nmaping: command not found` | Run `pipx ensurepath`, then close and reopen the terminal |
268
+ | `externally-managed-environment` | Use pipx, or the pip method with a virtual environment |
269
+ | `nmap not found` | Install Nmap (see "Before You Start") |
270
+ | `requires root privileges` | Run with `sudo "$(which nmaping)"` |
271
+ | Strange boxes instead of the logo on Windows | Use Windows Terminal, or run `chcp 65001` first |
272
+ | Clock not beside the logo | Make your terminal window taller or maximize it |
273
+
274
+ ---
275
+
276
+ ## ⚠️ Legal Notice
277
+
278
+ Use this tool **only on systems you own or have written permission to test**. Scanning other people's networks without permission can be illegal and may lead to serious consequences. nmaping asks you to confirm permission before every scan, but **you are fully responsible** for how you use it.
279
+
280
+ ---
281
+
282
+ ## 📜 License
283
+
284
+ For educational and ethical use only. See `LICENSE` for details.
nmaping-2.2/README.md ADDED
@@ -0,0 +1,271 @@
1
+ # 🚀 nmaping
2
+
3
+ **nmaping** is a simple, colorful, menu-based tool that helps you run Nmap scans without remembering any commands. Pick a scan from the menu, enter a target, and get your results. Everything is saved automatically.
4
+
5
+ Made by **Mr Tan**.
6
+
7
+ ---
8
+
9
+ ## 📖 What Does It Do?
10
+
11
+ Nmap is a powerful network scanner, but its commands are long and hard to remember. nmaping does the hard part for you:
12
+
13
+ - Shows all scan types in a clean numbered menu
14
+ - Asks for your target (IP address, website, or a whole network range)
15
+ - Lets you choose how fast or how quiet the scan should be
16
+ - Runs the scan and shows the result on screen
17
+ - Saves the result to a file and keeps a history of everything you scanned
18
+
19
+ ---
20
+
21
+ ## ✅ Before You Start
22
+
23
+ You need two things on your computer:
24
+
25
+ 1. **Python 3.8 or newer**
26
+ 2. **Nmap**
27
+
28
+ **Install Nmap:**
29
+
30
+ | System | Command |
31
+ |--------|---------|
32
+ | Kali / Ubuntu / Debian | `sudo apt update && sudo apt install -y nmap` |
33
+ | Fedora | `sudo dnf install nmap` |
34
+ | Arch | `sudo pacman -S nmap` |
35
+ | Windows | Download from https://nmap.org/download.html and tick **"Add to PATH"** during setup |
36
+
37
+ ---
38
+
39
+ ## 📦 How to Install
40
+
41
+ ### Linux (recommended: pipx)
42
+
43
+ ```bash
44
+ sudo apt install -y pipx
45
+ pipx ensurepath
46
+ ```
47
+
48
+ Close and reopen your terminal, then:
49
+
50
+ ```bash
51
+ pipx install nmaping
52
+ ```
53
+
54
+ ### Linux / Mac (using pip)
55
+
56
+ New Linux versions don't allow plain `pip install`, so create a small environment first:
57
+
58
+ ```bash
59
+ python3 -m venv ~/.nmaping-venv
60
+ source ~/.nmaping-venv/bin/activate
61
+ pip install nmaping
62
+ ```
63
+
64
+ > Every time you want to use it later, run `source ~/.nmaping-venv/bin/activate` first.
65
+
66
+ ### Windows
67
+
68
+ Open PowerShell and run:
69
+
70
+ ```powershell
71
+ python -m pip install --user pipx
72
+ python -m pipx ensurepath
73
+ ```
74
+
75
+ Close and reopen PowerShell, then:
76
+
77
+ ```powershell
78
+ pipx install nmaping
79
+ ```
80
+
81
+ ---
82
+
83
+ ## ▶️ How to Run
84
+
85
+ Just type:
86
+
87
+ ```bash
88
+ nmaping
89
+ ```
90
+
91
+ ---
92
+
93
+ ## 🧭 How to Use (Step by Step)
94
+
95
+ 1. Run `nmaping`. The main menu appears with the logo and a live clock.
96
+ 2. Type the **number** of the scan you want and press Enter.
97
+ 3. Enter your **target**, for example:
98
+ - `192.168.1.1` (one device)
99
+ - `example.com` (a website)
100
+ - `192.168.1.0/24` (a whole network)
101
+ 4. Confirm that you have **permission** to scan the target (type `y`).
102
+ 5. Choose a **speed** from 0 to 5 (just press Enter for the default).
103
+ 6. Wait for the scan to finish. The result is shown and saved automatically.
104
+ 7. Press Enter to return to the menu.
105
+
106
+ In the main menu:
107
+ - Type **H** to see your scan history
108
+ - Type **0** to exit
109
+
110
+ ---
111
+
112
+ ## 🔍 Scan Types Explained
113
+
114
+ | No. | Scan | What it does |
115
+ |-----|------|--------------|
116
+ | 1 | SYN Scan | Fast, quiet scan for open ports |
117
+ | 2 | Version Detection | Finds which software and version runs on each open port |
118
+ | 3 | Vulnerability Scan | Checks for known security weaknesses |
119
+ | 4 | OS Detection | Guesses the operating system of the target |
120
+ | 5 | Host Discovery | Checks which devices are online, no port scan |
121
+ | 6 | Specific Port | Scans only the port(s) you choose (e.g. `80,443`) |
122
+ | 7 | Top 1000 Ports | Scans the 1000 most common ports |
123
+ | 8 | UDP Scan | Scans UDP ports (slower) |
124
+ | 9 | Aggressive Scan | OS, version, scripts and traceroute in one go |
125
+ | 10 | Firewall / ACK Scan | Helps find out if a firewall is filtering ports |
126
+ | 11 | Default Script Scan | Runs Nmap's standard safe scripts |
127
+ | 12 | Traceroute | Shows the path your traffic takes to the target |
128
+ | 13 | All Ports | Scans all 65,535 ports (slow) |
129
+ | 14 | Ping Scan | Checks if the target responds to ping |
130
+ | 15 | No Ping Scan | Scans even if the target ignores ping |
131
+ | 16 | TCP Connect | Normal connection scan, works without root |
132
+ | 17 | Xmas Scan | Special stealth scan |
133
+ | 18 | FIN Scan | Special stealth scan |
134
+ | 19 | Null Scan | Special stealth scan |
135
+ | 20 | Custom | Type your own Nmap options |
136
+ | 21 | Full Deep Scan | Everything combined (very slow) |
137
+
138
+ ---
139
+
140
+ ## ⏱️ Speed Levels
141
+
142
+ | Level | Name | Best for |
143
+ |-------|------|----------|
144
+ | 0 | Paranoid | Maximum stealth, extremely slow |
145
+ | 1 | Sneaky | Very slow, hard to detect |
146
+ | 2 | Polite | Gentle on the network |
147
+ | 3 | Normal | Default, good for most cases |
148
+ | 4 | Aggressive | Fast, recommended on good networks |
149
+ | 5 | Insane | Fastest, use only in your own lab |
150
+
151
+ ---
152
+
153
+ ## ⌨️ Quick Commands (Without the Menu)
154
+
155
+ If you already know what you want, skip the menu:
156
+
157
+ ```bash
158
+ nmaping -t 192.168.1.1 -s 2 -T 4
159
+ ```
160
+
161
+ Meaning: scan `192.168.1.1`, scan type `2` (Version Detection), speed `4`.
162
+
163
+ | Option | Meaning |
164
+ |--------|---------|
165
+ | `-t` | Target |
166
+ | `-s` | Scan number (1 to 21) |
167
+ | `-T` | Speed (0 to 5) |
168
+ | `-p` | Port(s), used with scan 6 |
169
+ | `--no-save` | Don't save the result file |
170
+ | `--list` | Show all scan types |
171
+ | `-y` | Skip the permission question |
172
+
173
+ More examples:
174
+
175
+ ```bash
176
+ nmaping -t example.com -s 6 -p 80,443
177
+ nmaping -t 192.168.1.0/24 -s 5
178
+ nmaping --list
179
+ ```
180
+
181
+ ---
182
+
183
+ ## 🔑 Scans That Need Root (Linux)
184
+
185
+ Scans 1, 4, 8, 17, 18, 19 (and some others) need administrator rights. Run:
186
+
187
+ ```bash
188
+ sudo "$(which nmaping)"
189
+ ```
190
+
191
+ When run with `sudo`, files are saved in `/root/.nmaping/` instead of your own folder.
192
+
193
+ ---
194
+
195
+ ## 🔄 How to Update to a New Version
196
+
197
+ When a new version is released, update with one command.
198
+
199
+ **If you installed with pipx:**
200
+
201
+ ```bash
202
+ pipx upgrade nmaping
203
+ ```
204
+
205
+ If it says nothing changed, force the update:
206
+
207
+ ```bash
208
+ pipx install --force nmaping
209
+ ```
210
+
211
+ **If you installed with pip:**
212
+
213
+ ```bash
214
+ pip install --upgrade --force-reinstall nmaping
215
+ ```
216
+
217
+ (Activate your environment first if you used one: `source ~/.nmaping-venv/bin/activate`)
218
+
219
+ The logo shows your current version (`v=1.0`). Check the GitHub page to see if a newer one is available.
220
+
221
+ ---
222
+
223
+ ## 🗑️ How to Uninstall
224
+
225
+ ```bash
226
+ pipx uninstall nmaping
227
+ ```
228
+
229
+ or, if you used pip:
230
+
231
+ ```bash
232
+ pip uninstall nmaping
233
+ ```
234
+
235
+ Your saved results stay in `~/.nmaping/`. Delete that folder if you want to remove them too.
236
+
237
+ ---
238
+
239
+ ## 📁 Where Are My Results?
240
+
241
+ | What | Location |
242
+ |------|----------|
243
+ | Scan results | `~/.nmaping/results/` |
244
+ | Scan history | `~/.nmaping/history.log` |
245
+
246
+ Each result file is named with the target, scan type, and date/time.
247
+
248
+ ---
249
+
250
+ ## 🛠️ Problems and Fixes
251
+
252
+ | Problem | Fix |
253
+ |---------|-----|
254
+ | `nmaping: command not found` | Run `pipx ensurepath`, then close and reopen the terminal |
255
+ | `externally-managed-environment` | Use pipx, or the pip method with a virtual environment |
256
+ | `nmap not found` | Install Nmap (see "Before You Start") |
257
+ | `requires root privileges` | Run with `sudo "$(which nmaping)"` |
258
+ | Strange boxes instead of the logo on Windows | Use Windows Terminal, or run `chcp 65001` first |
259
+ | Clock not beside the logo | Make your terminal window taller or maximize it |
260
+
261
+ ---
262
+
263
+ ## ⚠️ Legal Notice
264
+
265
+ Use this tool **only on systems you own or have written permission to test**. Scanning other people's networks without permission can be illegal and may lead to serious consequences. nmaping asks you to confirm permission before every scan, but **you are fully responsible** for how you use it.
266
+
267
+ ---
268
+
269
+ ## 📜 License
270
+
271
+ For educational and ethical use only. See `LICENSE` for details.