rtfm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rtfm [2016/07/25 20:45] – walkeradminrtfm [2017/01/12 20:11] (current) – walkeradmin
Line 1: Line 1:
 ====== Red Team Field Manual (RTFM) ====== ====== Red Team Field Manual (RTFM) ======
 +<color darkorange>2016</color>
 +\\ 
 \\  \\ 
 \\  \\ 
Line 6: Line 8:
 \\  \\ 
 ===== Linux Network Commands ===== ===== Linux Network Commands =====
-\\  
     watch ss -tp                                          Network connections     watch ss -tp                                          Network connections
     netstat -ant                                          Tcp connections -anu=udp     netstat -ant                                          Tcp connections -anu=udp
Line 35: Line 36:
 \\  \\ 
 \\  \\ 
 +===== Linux System Info ===== 
 +    nbstat -A ip                                          Get hostname for IP 
 +    id                                                    Current username  
 +    w                                                     Logged on Users 
 +    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                                                 Mounted file systems 
 +    getent passwd                                         Show list of users 
 +    PATH~$PATH:/home/mypath                               Add to PATH variable  
 +    kill pid                                              Kill process with pid 
 +    cat /etc/issue                                        Show OS info 
 +    cat /etc/'release'                                    Show OS Version info 
 +    cat /proc/version                                     Show Kernel info 
 +    rpm --query -all                                      Installed pkgs (Redhat) 
 +    rpm -ivh '.rpm                                        Install RPM (-e=remove) 
 +    dpkg -get-selections                                  Installed pkgs (Obuntu)  
 +    dpkg -I '.deb                                         Install DEB (-r~remove)  
 +    pkginfo                                               Installed pkgs (Solaris)  
 +    which tscsh/csh/ksh/bash                              Show location of executable  
 +    chmod -5o tcsh/csh/ksh                                Disable shell , force bash 
 +\\  
 +\\  
 +===== Linux Utility Commands ===== 
 +    wget http:// url -O url.txt -o /dev/null              Grab url 
 +    rdesktop ip                                           Remote Desktop to ip 
 +    scp /tmp/file user@x.x.x.x:/tmp/file                  Put file 
 +    scp user@ remoteip :/tmp/file /tmp/file               Get file  
 +    useradd -m user                                       Add user 
 +    passwd user                                           Change user password 
 +    rmuser uname                                          Remove user 
 +    script -a outfile                                     Record shell : Ctrl-D stops 
 +    apropos subject                                       Find related command 
 +    history                                               View users command history 
 +    ! num                                                 Executes line # in history 
 +\\  
 +\\ 
rtfm.1469479500.txt.gz · Last modified: (external edit)