NetScan Function For Bash RC File

Go down

NetScan Function For Bash RC File

Post by jamied_uk on 30th March 2018, 17:24

Vid

You will need nmap installed

Code:
sudo apt install -y nmap



Code:
function netscan(){
if [ $# -eq 0 ]
  then
    echo "Enter Target"
    read myvar
 fi
sudo nmap -sS $myvar
}

Put above into your bash rc file

Code:
sudo gedit .bashrc



To use type netscan (target-name)
avatar
jamied_uk
Admin

Posts : 2425
Join date : 2010-05-09
Age : 35
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: NetScan Function For Bash RC File

Post by jamied_uk on 30th March 2018, 17:40



Same sort of thing but with masscan

Code:
sudo apt install -y masscan



Code:
function mscan(){
if [ $# -eq 0 ]
  then
    echo "Enter Target IP"
    read myvar
 fi
# echo "Enter port"
echo "Enter Network Example 24"
    read mysvar
echo "Enter Port Range End"
    read mypvar
sudo masscan -p80,01-$mypvar $myvar/$mysvar
}



from command line type
Code:
mscan


Then inpit IP of target to scan and then enter, then the network for example 24.
avatar
jamied_uk
Admin

Posts : 2425
Join date : 2010-05-09
Age : 35
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: NetScan Function For Bash RC File

Post by jamied_uk on 30th March 2018, 18:08

More Interesting Links

youtube.com/user/Jamieduk999/videos

jnet.forumotion.com/t900-network-scanning-recon-python-scanner
avatar
jamied_uk
Admin

Posts : 2425
Join date : 2010-05-09
Age : 35
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: NetScan Function For Bash RC File

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum