< All Advanced Penetration Testing Notes

ex0dus0x | Advanced Penetration Testing | Module 1 - Linux

By: ex0dus0x | Related Course: Advanced Penetration Testing | Published: August 28, 2017 | Modified: August 28, 2017
Join Cybrary


`/etc/crontab` – cronjobs

You can add tasks to this config.

NotepadLinux Commands

`cd` – change directory.
~ is an alias for __root__ directory.

`pwd` – current working directory

`man ` – provide manual pages for specific command / library

`ls ` – list directory’s content

`.` directory – current directory

`..` directory – parent directory

Kali – you are a root user! No need for `sudo`

`adduser` – create a new user.

`su ` – login to different user

`exit` – quits session


`netstat -antp` – check active connections, including ports that are listening

`ifconfig` – check local area network address

Netmask – how many bits of IP address belong to IP network.

e.g <– 255 represents bits belonging to network. Can be represented by

Bcast – how computer communicates wit other hosts


By default, DHCP grabs dynamic IP address. You can manually configure static IP address.

vim /etc/network/interfaces

iface eth0 inet static
address 192.168.1.xx
gateway (usually)

ping – send bytes of data, represents ability to talk to another host

nc – Netcat "TCP/IP swiss army knife"

`nc -lvp 1234` – listens on port (1234) on incoming connections

`nc 192.168.1.xx 1234` – active connection, listening host responds

`nc -lvp 1234 -e /bin/bash` – executes a bash session once someone connects to listener.

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