Advertisement
metalx1000

Quick Network Scan BASH

Jul 18th, 2015
808
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. arpfile="/home/arp-scan_$(date +%s).log"
  4. arp-scan -l -I wlan0 > $arpfile
  5. cat $arpfile
  6.  
  7. range="$(ifconfig|grep wlan0 -A1|tail -n1|cut -d\: -f2|cut -d\. -f1,2,3).1-255"
  8. nmap -T4 -v $range --open -oG /home/nmap_$(date +%s).log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement