< All Advanced Penetration Testing Notes

johndcx45 | Advanced Penetration Testing | Module 1 - Linux

By: johndcx45 | Related Course: Advanced Penetration Testing | Published: August 23, 2017 | Modified: August 24, 2017
Join Cybrary

NotepadDirectories, myfile, Nano

exit

cd /home/georgia

touch myfile

ls

mkdir mydirectory

cd mydirectory/

ls

cp /home/root/myfile /home/root/myfile

mv delete the actual file and moves  to the directory

rm myfile2 // remove files

echo hi john > myfile // overwrite what’s written on the file

cat myfile

echo hi john >> myfile

nano myfile

 

vi

I – Insert

DD – delete line

esc – command line

:wq write quit

 


NotepadIp addressing and netcat

service apache2 start

netstat -antp

ifconfig

Kali uses dhcp

nano /etc/network/interfaces

allow hotplug eth0

iface eth0 inet static

address 192.168.1.77

netmask 255.255.255.0

gateway 192.168.1.1

ping – ICMP echo

netcat -lvp 1234 -e /bin/bash


NotepadLinux basic commands

adduser lizzey

su lizzey

adduser lizzey sudo


< 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?

Continue
Cancel