icon picker
HTB academy

linux fundamentals

system information

intro to basic linux commands for system info
cheat sheet has lots of common commands
You can start your own instance and display full screen in another tab/window
Then you spawn a target system which you access via the terminal in your own instance
ssh username@hostIPaddress
then enter password
hostname
machine hardware name: uname
path to home dir: pwd
path to mail: env
shell for user: env
kernel version: uname -r (google)
network interface details: ifconfig
user commands
long version means use 2 dashes
--lock
-L
Which option needs to be set to execute a command as a different user using the "su" command?
--command

Basic Tools

service scanning
0
command
description
1
nmap 10.129.42.253
Run nmap on an IP
2
nmap -sV -sC -p- 10.129.42.253
Run an nmap script scan on an IP
3
locate scripts/citrix
List various available nmap scripts
4
nmap --script smb-os-discovery.nse -p445 10.10.10.40
Run an nmap script on an IP
5
netcat 10.10.10.10 22
Grab banner of an open port
6
smbclient -N -L \\\\10.129.42.253
List SMB Shares
7
smbclient \\\\10.129.42.253\\users
Connect to an SMB share
8
snmpwalk -v 2c -c public 10.129.42.253 1.3.6.1.2.1.1.5.0
Scan SNMP on an IP
9
onesixtyone -c dict.txt 10.129.42.254
Brute force SNMP secret string
There are no rows in this table
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.