recon_via_commandline

Once you have shell access to a device (running some form of *nix), run through these to quickly learn as much as possible

Commands to try:

    whoami
    pwd
    ps auxwww -- to see all running processes and wide enough display to capture all flags of running commands
    cat /proc/cpuinfo || lscpu
    cat /etc/resolv.conf
    ifconfig -a
    uname -a
    date - to determine timezone as well as current date/time)
    df -h - human-readable storage sizes 
    mount
    crontab -l
    netstat    -antp,  -ar,   -atp
    set
    printenv
    uptime
    lsblk - list block devices
    lsusb - list USB devices
    lspci
    lshw
    ls
    lsmod - list loaded kernel modules
    lsblk - list block devices
    lsof (if installed)
    hwinfo —short - probe for hardware
    last - shows recent user logins AND reboot/shutdown/crash

Directories of interest:

Files of interest:

Last updated