From a6375dde6925767545e58d73a335f2d5d631afcc Mon Sep 17 00:00:00 2001 From: julle Date: Fri, 21 Nov 2025 17:23:10 +0100 Subject: [PATCH] update tool nmap --- .obsidian/workspace.json | 44 ++++++++++++++++++++-------------------- Tools/nmap.md | 30 +++++++++++++++++++-------- 2 files changed, 43 insertions(+), 31 deletions(-) diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index e1f7e90..d7c5c92 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -13,12 +13,12 @@ "state": { "type": "markdown", "state": { - "file": "Proof.md", + "file": "Linux/Shell.md", "mode": "source", "source": false }, "icon": "lucide-file", - "title": "Proof" + "title": "Shell" } } ] @@ -94,7 +94,7 @@ "state": { "type": "backlink", "state": { - "file": "Proof.md", + "file": "Linux/Shell.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -104,7 +104,7 @@ "unlinkedCollapsed": true }, "icon": "links-coming-in", - "title": "Backlinks for Proof" + "title": "Backlinks for Shell" } }, { @@ -164,8 +164,25 @@ "webpage-html-export:Export Vault to HTML": false } }, - "active": "7cefa59e3501848a", + "active": "04550972536d9a99", "lastOpenFiles": [ + "Linux/portscanning.md", + "Linux/Perm.md", + "Linux/LFI.md", + "Linux/Crontab.md", + "Linux/Cap.md", + "Linux/_etc_passwd.md", + "Linux/Tunnel/sshuttle.md", + "Linux/Tunnel/ssh.md", + "Linux/Tunnel/Socat.md", + "Linux/Tunnel/chisel.md", + "Software/php/LFI.md", + "Tools/nmap.md", + "Tools/autorecon.md", + "Proof.md", + "Labs.md", + "2024-10-28.md", + "20 EoP - Leveraging Windows Services.md", "Windows/WWW.md", "Windows/SMB.md", "Windows/Scheduled Tasks.md", @@ -175,23 +192,6 @@ "Windows/Tunnel/ligolo.md", "Windows/Tunnel/chisel.md", "Windows/SMB/crackmapexec.md", - "Windows/Services/Unquoted Service Paths.md", - "Windows/Services/DLL Hijacking.md", - "Windows/Services/Binary Hijacking.md", - "Windows/Privesc/Juicypotato.md", - "Windows/Information Gathering/Username and Hostname.md", - "Windows/Information Gathering/Network.md", - "Windows/Information Gathering/Locate files.md", - "Windows/Information Gathering/Installed Program.md", - "Windows/Information Gathering/History.md", - "Windows/CMD/Power_Reboot.md", - "Windows/CMD/Permission.md", - "Windows/CMD/File Transfer.md", - "Windows/CMD/Backup.md", - "Windows/Active Directory for OSCP/NTDS.dir cracking with SYSTEM.md", - "Windows/Active Directory for OSCP/Mimikatz.md", - "Windows/Active Directory for OSCP/Enumeration.md", - "Windows/Active Directory for OSCP/We have User Name but no Password/Password Spray.md", "Windows/unnamed_b656515f39144863bbdaa2d5851c417c.png", "MindMap/AD Mindmap/AD - OSCP.canvas", "MindMap/WiFi/WiFi Mindmap.canvas", diff --git a/Tools/nmap.md b/Tools/nmap.md index 93d3388..1ec21bc 100644 --- a/Tools/nmap.md +++ b/Tools/nmap.md @@ -1,46 +1,58 @@ -``` +```bash nmap -p- -T5 nmap -p 22,25,80 -A ``` -``` +``` bash nmap -p- --min-rate 5000 ``` -``` +```bash nmap -sn 192.168.102.0/24 -T4 -oN discovery.nmap nmap -iL output.txt -T4 -sV -sC -p- -Pn -n --open -A -oN version.nmap ``` -``` +```bash nmap -sU -p- --min-rate 5000 ``` - Conduct a full UDP port scan (may be all `open|filtered`) because open ports rarely respond to empty probes. No response --> open port or dropped by firewall. -``` +```bash nmap -A -sV -sC -sU 10.11.1.111 --script=*enum --top-ports 20 ``` - When version scanning is enabled with -sV (or -A), it will send UDP probes to every `open|filtered` port. If any of the probes elicit a response from an `open|filtered`port, the state is changed to open. -``` +```bash nmap script=vuln 192.168.193.211 ``` - Nmap scripts location `/usr/share/nmap/scripts/` -``` +```bash proxychains nmap --top-ports=20 -sT -Pn 10.5.5.20 ``` - SOCKS proxies require a TCP connection to be made and thus a half-open or SYN scan cannot be used with ProxyChains -Scans thru Socks proxy +## Scans thru Socks proxy -``` +```bash nmap --proxies socks4://proxy-ip:8080 target-ip +``` + +## SYN-Scan of a Filtered Port + +```bash +sudo nmap 10.129.2.28 -p50000 -sS -Pn -n --disable-arp-ping --packet-trace +``` + +## SYN-Scan From DNS Port + +```bash +sudo nmap 10.129.2.28 -p50000 -sS -Pn -n --disable-arp-ping --packet-trace --source-port 53 ``` \ No newline at end of file