PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

NetScan Function For Bash RC File

Go down

NetScan Function For Bash RC File Empty NetScan Function For Bash RC File

Post by jamied_uk 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)
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

NetScan Function For Bash RC File Empty Re: NetScan Function For Bash RC File

Post by jamied_uk 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.
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

NetScan Function For Bash RC File Empty Re: NetScan Function For Bash RC File

Post by jamied_uk 30th March 2018, 18:08

More Interesting Links

youtube.com/user/Jamieduk999/videos

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

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

NetScan Function For Bash RC File Empty 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