Advanced Penetration Testing Notes

python.py

#!/usr/bin/python import socket ip = raw_imput(”Enter the IP address: ”) port = imput(”Enter the port number: ”) sock = scoket.socket(socket.AF_INET, socket.SOCK_STREAM) if sock.connect_ex((ip.port)): print ”PortR [view]

By: Dormata | Related Lesson: Programming (part 4) Python for Port Scanning | Modified: September 27, 2017

ping.sh

#!/bin/bash if [ ”$1” == ””] then echo ”Usage: ./ping.sh [network]” echo ”Example ./ping.sh 192.168.1” fi [view]

By: Dormata | Related Lesson: Programming (part 2) Bash Scripting and If/Then Command | Modified: September 27, 2017

cprogram.c

#include <stadio.h> int main(int argc, char *argv[]) {        if (argc < 2)        {                printf(”%s\n”, ”Pass your name as an argument”);                return -1;   [view]

By: Dormata | Related Lesson: Programming (part 5) Python Import Command | Modified: September 27, 2017

Linux File commanda

rm filename echo text > filename echo text  to update >> filename nano filename cat filename – To view the content of filename :WQ on VI editor to exit dd on vi editor to delete whole line. [view]

By: Anita | Related Lesson: Linux (part 3) - Directories, myfile and Nano | Modified: September 27, 2017

ping.sh

#!/bin/bash if [ ”$1” == ”” ] then echo ”Usage: ./ping.sh [network]” echo ”Example: ./ping.sh 192.168.1.1” else for x in `seq 1 254` ; do ping -c 1 $1.$x | grep ”64 bytes” | c [view]

By: Dormata | Related Lesson: Programming (part 3) Network Pings | Modified: September 27, 2017

Pentesting

netstart -antp [view]

By: eletuibrahim | Related Lesson: Linux (part 4) chmod, manipulation and packages | Modified: September 26, 2017

Module 2 Network Pings

          add else for if there is a command line argument  #!/bin/bash if [ ”$1” == ”” ] then echo ”Usage: ./ping.sh [network]” echo ”Example: ./ping.sh 192.168.1 Call it from directory-  ./ping.sh el [view]

By: morgan0711 | Related Lesson: Programming (part 3) Network Pings | Modified: September 25, 2017

Module 2 Bash Scripting and If/Then Command

Bash scripting EX. nano ping.sh    what interpreter you are going to use (#!) #!/bin/bash if [ ”$1” == ”” ] then echo ”Usage: ./ping.sh [network]” echo ”Example: ./ping.sh 192.168.1 Call it from directory- [view]

By: morgan0711 | Related Lesson: Programming (part 2) Bash Scripting and If/Then Command | Modified: September 25, 2017

commends

mv rm echo cat cp nano editor vi editor   [view]

By: ss971632 | Related Lesson: Linux (part 3) - Directories, myfile and Nano | Modified: September 25, 2017

comments

PWD PRESENG WORKING  MAN PWD,MAN LS ls /,ls-a / ,ls-l/ cd /, cs/root,cd..,cd ../../etc.,cd Desktop rm-rf adduser georgia,enter your password,su geogia   [view]

By: ss971632 | Related Lesson: Linux (part 2) Kali Linux Commands | Modified: September 25, 2017

« First ‹ Previous 1 76 84 85 86 87 88 96 186 243 Next › Last »

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?

Continue
Cancel