Skip to content

Commit cf78247

Browse files
Create nmap-find-hostname.sh
1 parent 06e0ab9 commit cf78247

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nmap-find-hostname.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
nmap -sn $1 -oG - | awk '$4=="Status:" && $5=="Up" {print $2, $3}'

0 commit comments

Comments
 (0)