mirror of
https://github.com/ghndrx/nmap.git
synced 2026-02-10 06:55:03 +00:00
Update nmap.py
I have aligned the menu options in a neat and organized manner, making it easier to read for the user. I added a colon after the "Choose from above" prompt to make it clear that it is a question. I changed the case of the selected message from all upper case to Title case for readability.
This commit is contained in:
29
nmap.py
29
nmap.py
@@ -10,35 +10,34 @@ def fpingTxt():
|
|||||||
|
|
||||||
def menu():
|
def menu():
|
||||||
print("""
|
print("""
|
||||||
#############################
|
########################################
|
||||||
# #
|
# #
|
||||||
# CHOOSE ARGUMENTS #
|
# CHOOSE ARGUMENTS FOR NMAP SCAN #
|
||||||
# FOR NMAP #
|
# #
|
||||||
# #
|
########################################
|
||||||
#############################
|
|
||||||
|
|
||||||
This is a list of precompiled slightly modular cmds
|
This is a list of precompiled, slightly modular cmds
|
||||||
By default all NMAP cmds are set to -T4
|
By default all NMAP cmds are set to -T4
|
||||||
-T4 sends packets at an aggressive rate or 1.25p/s
|
-T4 sends packets at an aggressive rate or 1.25p/s
|
||||||
|
|
||||||
#############################
|
########################################
|
||||||
0. HOST DISCOVERER - USES NMAP TO CHECK IF TARGET(s) ARE ALIVE
|
0. HOST DISCOVERER - USES NMAP TO CHECK IF TARGET(s) ARE ALIVE
|
||||||
1. FULL SCAN - ALL PORTS (0-65,535)
|
1. FULL SCAN - ALL PORTS (0-65,535)
|
||||||
2. TCP CONNECT, OS, DETAILED SERVICE SCAN FOR OPEN PORTS
|
2. TCP CONNECT, OS, DETAILED SERVICE SCAN FOR OPEN PORTS
|
||||||
3. VIOLATE TCP CONNECTION WITH XMAS
|
3. VIOLATE TCP CONNECTION WITH XMAS
|
||||||
4. MASSCAN PORT 80 OF TARGET(s)
|
4. MASSCAN PORT 80 OF TARGET(s)
|
||||||
Anything else to exit.
|
Anything else to exit.
|
||||||
#############################
|
########################################
|
||||||
""")
|
""")
|
||||||
|
|
||||||
def menuSelector():
|
def menuSelector():
|
||||||
menuChoice = input("Choose from above")
|
menuChoice = input("Choose from above: ")
|
||||||
switch = {
|
switch = {
|
||||||
"0": "0.Selected Host Discoverer...",
|
"0": "0. Selected Host Discoverer...",
|
||||||
"1": "1.Selected Full Scan...",
|
"1": "1. Selected Full Scan...",
|
||||||
"2": "2.Selected TCP Connect...",
|
"2": "2. Selected TCP Connect...",
|
||||||
"3": "3.Selected TCP Violation...",
|
"3": "3. Selected TCP Violation...",
|
||||||
"4": "4.Selected Masscan..."
|
"4": "4. Selected Masscan..."
|
||||||
}
|
}
|
||||||
print(switch.get(menuChoice, "Exiting..."))
|
print(switch.get(menuChoice, "Exiting..."))
|
||||||
return menuChoice
|
return menuChoice
|
||||||
|
|||||||
Reference in New Issue
Block a user