rtfm
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
rtfm [2016/07/25 21:39] – created walkeradmin | rtfm [2016/12/13 21:28] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
The Red Team Field Manual is a kind of reference guide to Linux, Windows, Cisco etc. It contains all the really useful information in a book small enough to carry around everywhere. Some of the really useful pages I will be keeping on here for 'my own' reference. You didn't see this page right (i'll fork bomb u if you did) | The Red Team Field Manual is a kind of reference guide to Linux, Windows, Cisco etc. It contains all the really useful information in a book small enough to carry around everywhere. Some of the really useful pages I will be keeping on here for 'my own' reference. You didn't see this page right (i'll fork bomb u if you did) | ||
\\ | \\ | ||
+ | \\ | ||
+ | ===== Linux Network Commands ===== | ||
+ | watch ss -tp Network connections | ||
+ | netstat -ant Tcp connections -anu=udp | ||
+ | netstat -tulpn | ||
+ | lsof -i | ||
+ | smb:// ip / | ||
+ | share user x.x.x.x c$ Mount Windows share | ||
+ | smbclient -U user\\\\ ip \\ share SMB connect | ||
+ | ifconfig eth# ip I cidr Set IP and netmask | ||
+ | ifconfig ethO:l ip I cidr Set virtual interface | ||
+ | route add default gw gw lp Set GW | ||
+ | ifconfig eth# mtu [size] | ||
+ | export MAC=xx: XX: XX: XX: XX: XX | ||
+ | ifconfig int hw ether MAC | ||
+ | macchanger -m MAC int | ||
+ | iwlist int scan | ||
+ | dig -x ip | ||
+ | host ip | ||
+ | host -t SRV service tcp.url.com | ||
+ | dig @ ip domain -t AXFR DNS Zone Xfer | ||
+ | host -l domain namesvr | ||
+ | ip xfrm state list Print existing VPN keys | ||
+ | ip addr add ip / cidr dev ethO Adds ' | ||
+ | / | ||
+ | tcpkill host ip and port port Block ip: | ||
+ | echo " | ||
+ | echo '' | ||
+ | \\ | ||
+ | \\ | ||
+ | ===== Linux System Info ===== | ||
+ | nbstat -A ip Get hostname for IP | ||
+ | id Current username | ||
+ | w | ||
+ | who -a User information | ||
+ | last -a Last users logged on | ||
+ | ps -ef Process listing (top) | ||
+ | df -h Disk usage (free) | ||
+ | uname -a Kernel version/CPU Info | ||
+ | mount | ||
+ | getent passwd | ||
+ | PATH~$PATH:/ | ||
+ | kill pid Kill process with pid | ||
+ | cat / | ||
+ | cat / | ||
+ | cat / | ||
+ | rpm --query -all Installed pkgs (Redhat) | ||
+ | rpm -ivh ' | ||
+ | dpkg -get-selections | ||
+ | dpkg -I ' | ||
+ | pkginfo | ||
+ | which tscsh/ | ||
+ | chmod -5o tcsh/ | ||
+ | \\ | ||
+ | \\ | ||
+ | ===== Linux Utility Commands ===== | ||
+ | wget http:// url -O url.txt -o / | ||
+ | rdesktop ip | ||
+ | scp /tmp/file user@x.x.x.x:/ | ||
+ | scp user@ remoteip :/tmp/file / | ||
+ | useradd -m user Add user | ||
+ | passwd user | ||
+ | rmuser uname Remove user | ||
+ | script -a outfile | ||
+ | apropos subject | ||
+ | history | ||
+ | ! num | ||
\\ | \\ | ||
\\ | \\ | ||
- | watch ss -tp Network connections | ||
- | netstat -ant Tcp connections -anu=udp | ||
- | netstat -tulpn | ||
- | lsof -i | ||
- | smb:// ip / | ||
- | share user x.x.x.x c$ Mount Windows share | ||
- | smbclient -U user\\\\ ip \\ share | ||
- | ifconfig eth# ip I cidr | ||
- | ifconfig ethO:l ip I cidr | ||
- | route add default gw gw lp | ||
- | ifconfig eth# mtu [size] | ||
- | export MAC=xx: XX: XX: XX: XX: XX | ||
- | ifconfig int hw ether MAC | ||
- | macchanger -m MAC int | ||
- | iwlist int scan | ||
- | dig -x ip | ||
- | host ip | ||
- | host -t SRV service tcp.url.com | ||
- | dig @ ip domain -t AXFR | ||
- | host -l domain namesvr | ||
- | ip xfrm state list | ||
- | ip addr add ip / cidr dev ethO | ||
- | / | ||
- | tcpkill host ip and port port | ||
- | echo " | ||
- | echo '' | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- |
rtfm.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1