< 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

Notepadcrontab

`/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


NotepadNetworking

`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.255.255.0 <– 255 represents bits belonging to network. Can be represented by 192.168.1.1/24

Bcast – how computer communicates wit other hosts

e.g 192.168.1.255

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
netmask 255.255.255.0
gateway 192.168.1.1 (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 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