Advanced Penetration Testing Notes

Python import

#include<stdio.h> int main ( int argc , char *argv[]) { if(argc < 2) { print(”Enter an argument”); return -1; } else  { printf(”Hello %s \n”); return 0; } } compiling  gcc cprogram.c -o cprogram chmod +x cprogram ./ [view]

By: sanjaybs | Related Lesson: Programming (part 5) Python Import Command | Modified: April 15, 2017

Python for Port Scanning

#!/usr/bin/python import socket ip = raw_input(”Enter the IP Address: ”) port = input(”Enter the port number: ”) sock = socket.socket(scoket.AF_INET, socket.SOCK_STREAM) if sock.connect_ex((ip.port)):      print ”Port [view]

By: sanjaybs | Related Lesson: Programming (part 4) Python for Port Scanning | Modified: April 15, 2017

Network Pings

#!/bin/bash if [ ”$1” == ””] then echo ”Usage ./ping.sh  [network]” echo ”Ex: ./ping.sh 192.168.1” else for x in seq 1 254 ; do ping -c 1 $1.$x | grep ”64 bytes” | cut -d ” ” -f 4 | sed ’s/.$//’ do [view]

By: sanjaybs | Related Lesson: Programming (part 3) Network Pings | Modified: April 15, 2017

Bash Scripting

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

By: sanjaybs | Related Lesson: Programming (part 2) Bash Scripting and If/Then Command | Modified: April 15, 2017

Codes

mkd, vi,nano, mv,cp [view]

By: lucky choudhary | Related Lesson: Linux (part 3) - Directories, myfile and Nano | Modified: April 15, 2017

Copy Commands and crontab

press ctrl c and then… # cat myfile3 returns message saved into myfile4: ”this is a secret”     [view]

By: enigma1000 | Related Lesson: Linux (part 6) Copy Commands and crontab | Modified: April 15, 2017

IP Addressing and netcat

# service apache2 start [check port listening] # netstat -antp tcp6    0    0  :::  80                :::* LISTEN [returns port 80 – typical port for web servers] [stop app listening] # service apache2 stop # ifconfig [gives your [view]

By: enigma1000 | Related Lesson: Linux (part 5) IP Addressing and netcat | Modified: April 15, 2017

chmod, manipulation

file permissions – read/write/execute file examples: reading/writing 1) passwords – read access 2) source code for web server – write access to deface someone’’s website 3) secret key – access functinality pay for [view]

By: enigma1000 | Related Lesson: Linux (part 4) chmod, manipulation and packages | Modified: April 15, 2017

Linux - Directories, myfile

Files? Everything in Linux is a FILE! #1 How to create a file: # touch myfile [create a new file in current directory] # mkdir mydirectory [create a new directory called ”mydirectory”] # cd mydirectory #cp ../seraphina ../mydirectory [cop [view]

By: enigma1000 | Related Lesson: Linux (part 3) - Directories, myfile and Nano | Modified: April 15, 2017

Kali commands

                       Owner Group drwxr -xr -x root root wxr = Owner has read write execute permissions xr = Root group members other than root have read and execute permissions x = the others have execute permission Change permissions [view]

By: Redrascal | Related Lesson: Linux (part 4) chmod, manipulation and packages | Modified: April 15, 2017

« First ‹ Previous 1 53 143 151 152 153 154 155 163 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