Tidies bin folder and adds open-ports script
This commit is contained in:
parent
62e95a50ef
commit
a313b122ab
5 changed files with 13 additions and 42 deletions
11
bin/.bin/nmap/open-ports
Executable file
11
bin/.bin/nmap/open-ports
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
IP="$1"
|
||||
|
||||
if [ -n "$IP" ]; then
|
||||
nmap $IP -p0- | # Get the nmap output
|
||||
cut -d '/' -f1 | #
|
||||
sed -n '/^[0-9]/p'
|
||||
else
|
||||
echo "Print an ip address"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue