![]() scans/netmap.txt scan$nextfile.zip cat /home/pi/pentest/scans/netmap.txt | mutt -a /home/pi/pentest/scan$nextfile.zip -s "Netscan:"$ip" complete!" - rm -r /home/pi/pentest/scans/*. Sshpass -p 'password1234' scp -P 2245 /home/pi/pentest/scan$nextfile.zip -e "\e[1 31mSending email to Network team\e[0m" bin/echo -e "\e[1 31mUploading scan results:scan"$nextfile".zip" bin/echo -e "\e[1 31mFile created:scan"$nextfile".zip\e[0m" Zip /home/pi/pentest/scan$nextfile netmap.txt speedtest.txt customer.nmap customer.html Sudo xsltproc /home/pi/pentest/scans/customer.xml -o /home/pi/pentest/scans/customer.html bin/echo -e "\e[1 31mLast scan file:scan"$lastfile".zip\e[0m" Ip=$(ip addr show eth0 | grep "inet\b"|awk '' | cut -d "." -f1| cut -d "n" -f2 | sort -rn | head -n 1) It uses RGB led for scan progress:īLUE blinking: doing fast scan, 10-20 seconds So i have root access to the linux box inside customer network for some manual work if needed. ![]() The RaspberryPI even OpenVPN connects back to headquarters as soon as it gets the IP address over DHCP. So the script does gather all the above info sends it to email and upload to some SCP server, to sure get the info. Advance nmap scan for open ports on devices in the same LAN as RaspberryPI Latency to gateway, our data-center and internet Traceroute to the internet, gateway, our data-center Vendors of the MAC addresses for some quick look into the “customer arsenal” The Destination file pathway will appear. Once again, right click on each of these and click Extract All in the drop down menu. Copy the dataset folder (s) into that you have into that new folder. Network devices that are connected to the same LAN, their IP and MAC addresses Step 3: Within C:\NetMap (or other local drive:\NetMap, create a third folder called NetMap Datasets). LAN segment RaspberryPI is connected to, RaspberryPI DHCP address What i wanted to achieve with this script is, that i can give the small RaspberryPI even to not so skilled technican and i dont even need to go to the customer site to get a lot of useful informations about the customers network.įirst i wrote down the things that we always check about the customer network, and choose the things that are worth the effort to automate, so the final list was: But for smaller customers this script is really usefull, and you can just save all the output as a part of current network configuration too. They are very convient, they can be used with the power-bank even for 24h or more, depends on the need.Įvery time when we where taking over some customers network, we always done a lot of things manualy (some still do, no other way). I use them for console servers, remote debuging and analyzing network. Iam ussing RaspberryPis a lot as network engineer, i have at least 8 PIs around house and at the office.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |