Advanced Penetration Testing Notes

Copy Commands and crontab

Automate tasks with crontab.cd /etc   then ->  ls | grep cron then -> nano crontab this is a list of jobsthat we can set.-> service cron restart-> netstat -antp [view]

By: | Related Lesson: Linux (part 6) Copy Commands and crontab | Modified: July 26, 2017

IP Addressing and netcat

service apache2 startnetstat -antpifconfignano /etc/network/interfacenetcat (or nc)Listen to a port nc -lvp 1234 Connect to a port nc *ip adress* listen and connect on the same timenc -lvp 1234 -e /bin/bash Listener and when someone connects it [view]

By: | Related Lesson: Linux (part 5) IP Addressing and netcat | Modified: July 26, 2017

chmod, manipulation and packages

Change permission chmod 750(owner[full permission],group(read,write),everyone[no permissions]) filename;chmod +x (execute permission for everyone) filename;Data manipulation : cat filename | grep cut -d ” ” -f 1 (grabs the first part of t [view]

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

Directories, myfile and Nano

Create a file touch fileName;ls mkdir mydirectorycd mydirectory/ Copy cp /home/user/fileName /home/user/mydirectory/fileNameMove a file mv filename myfile2Remove rm filenameText echo some text > filenameTo see file content cat (concat) filename [view]

By: | Related Lesson: Linux (part 3) - Directories, myfile and Nano | Modified: July 26, 2017

Kali Linux Commands

pwd – current directoryy man (manual) – for information, commands about things man ls – list directory contest ls / ls -a – hidden directories [view]

By: | Related Lesson: Linux (part 2) Kali Linux Commands | Modified: July 26, 2017

netcat

nc -lvp 1234 -e /bin/bash netcat -listen,verbose,port 1234(port) -e (execute) bin/bash [view]

By: bubbyw | Related Lesson: Linux (part 5) IP Addressing and netcat | Modified: July 26, 2017

chmod and grep

3 lists of security (owner, group, everyone) change with chmod grep or cut cat myfile | cut -d ” ” -f 1 -d means delimiter (set to ” ”) -f is field can multiple pipe cat myfile | cut -d ” ” -f 1 | sort -u [view]

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

VI

touch to make file VI: i is insert dd is delete line shift colon to save and exit : wq (write quit) [view]

By: bubbyw | Related Lesson: Linux (part 3) - Directories, myfile and Nano | Modified: July 26, 2017

Traffic capture (arp)

Address Resolution Protocol (ARP)   translate the ip address to Mac address of the network Adapter Tells host where to send traffic If we can trick host into sending traffic to the wrong place we can capture traffic in wireshark ——— [view]

By: Oishi | Related Lesson: Traffic Capture (part 3) Address Resolution Protocol ARP | Modified: July 26, 2017

Linux (part3)

1. Everything in Linux is a file 2. touch => create a file 3. mkdir => create a directory 4. cp <source> <dest> (keeps the source) 5. mv <source> <dest> (delets the source); can be used for renaming of files 6. rm <fi [view]

By: codeitch | Related Lesson: Linux (part 3) - Directories, myfile and Nano | Modified: July 26, 2017

« First ‹ Previous 1 11 101 109 110 111 112 113 121 211 243 Next › Last »

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free 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.

Support Cybrary

Donate Here to Get This Month's Donor Badge

 

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel