O
O
OSCP Notes
Search
⌃K
Introduction
Port scanning
Passive Information Gathering
Ports enum:
Recon Tools
Tech Skills Needed
msfvenom
meterpreter commands
Web Apps
python scripts
Windows hacks
Port Forwarding
Reverse shells
Binary exploitation
Transfering Modules
Buffer Overflow
Cracking!
shellshock
Active Directory
Antivirus Evasion
Windows Priv Esc
Linux Priv Esc
Active Directory Case Studies
Pivoting
C program analysis
Misc
Steg
Memory Dump
Oracle exploitation:
Notes
default credentials
New Empire!
Scripts I built
Got creds? do this
How to add path variables
Good Passwords & Username file locations on kali
fcrackzip (crack common zip pass)
Extracting file from the target and analyze it with ltrace
Hack the box Write-ups
THM Offensive Security Path
Proving Ground
Cyber Sec Labs
Powered By GitBook

Scripts I built

put nmap ports into one line.
#!/bin/bash
# this script takes nmap scan result (ports) and put them in one line with a comma seperator
# i.e) 22,80,459,2222
#
​
​
echo "Please enter the file name you want to use:"
​
read file_name
combine_ports() {
cat $file_name | awk '{print $1}'| sed 's/\/tcp//g' | sed 's/,$//g'
​
}
combine_ports
​
​
Now we can use to scan with nmap like:
nmap -p 22,80,459,2222 -Pn IP -A -sC
Previous
start
Next
Got creds? do this
Last modified 1yr ago
Copy link