< All Advanced Penetration Testing Notes

saadibabar | Advanced Penetration Testing | Module 2 - Programming

By: 574r570rm | Related Course: Advanced Penetration Testing | Published: August 29, 2017 | Modified: August 31, 2017
Join Cybrary



if  [ ”$1” == ”” ]


echo ” Usage: ./ping.sh [network]”

echo ”Example: ./ping.sh 192.168.1”


for x in {1..254}  ;  do

ping -c 1 $1.$x | grep ”64 bytes” | cut -d ” ” -f 4 | sed ’s/.$//’



Notepadport scanning python

import socket
ip = raw_input(”Enter the IP Address: ”)
port = input(”Enter the Port Number: ”)
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if sock.connect_ex((ip,port)):
        print ”Port”,port, ”is closed”
        print ”Port”,port, ”is open”

< All Advanced Penetration Testing Notes
Join Cybrary

Our Revolution

We believe Cyber Security training should accessible for everyone, everywhere. Everyone deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is the world's largest community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

We recommend always using caution when following any link

Are you sure you want to continue?