$ cat /etc/resolv.conf
cat /etc/resolv.conf
cat /etc/resolv.conf
nameserver 127.0.0.53
options edns0 trust-ad
search home
nameserver 127.0.0.53
options edns0 trust-ad
search home
nameserver 127.0.0.53
options edns0 trust-ad
search home
cat /proc/net/route
cat /proc/net/route
cat /proc/net/route
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
eth0 00000000 0101A8C0 0003 0 0 100 00000000 0 0 0
eth0 0001A8C0 00000000 0001 0 0 100 00FFFFFF 0 0 0
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
eth0 00000000 0101A8C0 0003 0 0 100 00000000 0 0 0
eth0 0001A8C0 00000000 0001 0 0 100 00FFFFFF 0 0 0
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
eth0 00000000 0101A8C0 0003 0 0 100 00000000 0 0 0
eth0 0001A8C0 00000000 0001 0 0 100 00FFFFFF 0 0 0
cat /etc/passwd | head -3
cat /etc/passwd | head -3
cat /etc/passwd | head -3
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
-weight: 600;">sudo cat /etc/shadow | head -1
-weight: 600;">sudo cat /etc/shadow | head -1
-weight: 600;">sudo cat /etc/shadow | head -1
root:$6$rounds=5000$xyz...:19200:0:99999:7:::
root:$6$rounds=5000$xyz...:19200:0:99999:7:::
root:$6$rounds=5000$xyz...:19200:0:99999:7:::
ls -la /proc/$$/fd
ls -la /proc/$$/fd
ls -la /proc/$$/fd
lrwxrwxrwx 1 user user 64 Apr 20 10:01 0 -> /dev/pts/0
lrwxrwxrwx 1 user user 64 Apr 20 10:01 1 -> /dev/pts/0
lrwxrwxrwx 1 user user 64 Apr 20 10:01 2 -> /dev/pts/0
lrwxrwxrwx 1 user user 64 Apr 20 10:01 0 -> /dev/pts/0
lrwxrwxrwx 1 user user 64 Apr 20 10:01 1 -> /dev/pts/0
lrwxrwxrwx 1 user user 64 Apr 20 10:01 2 -> /dev/pts/0
lrwxrwxrwx 1 user user 64 Apr 20 10:01 0 -> /dev/pts/0
lrwxrwxrwx 1 user user 64 Apr 20 10:01 1 -> /dev/pts/0
lrwxrwxrwx 1 user user 64 Apr 20 10:01 2 -> /dev/pts/0
ls -la /proc/$(pgrep nginx | head -1)/fd
ls -la /proc/$(pgrep nginx | head -1)/fd
ls -la /proc/$(pgrep nginx | head -1)/fd
cat /etc/hosts
cat /etc/hosts
cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 myhostname
::1 localhost ip6-localhost ip6-loopback
127.0.0.1 localhost
127.0.1.1 myhostname
::1 localhost ip6-localhost ip6-loopback
127.0.0.1 localhost
127.0.1.1 myhostname
::1 localhost ip6-localhost ip6-loopback
grep hosts /etc/nsswitch.conf
# hosts: files mdns4_minimal [NOTFOUND=return] dns
grep hosts /etc/nsswitch.conf
# hosts: files mdns4_minimal [NOTFOUND=return] dns
grep hosts /etc/nsswitch.conf
# hosts: files mdns4_minimal [NOTFOUND=return] dns
cat /lib/systemd/system/ssh.-weight: 500;">service
cat /lib/systemd/system/ssh.-weight: 500;">service
cat /lib/systemd/system/ssh.-weight: 500;">service
[Unit]
Description=OpenBSD Secure Shell server
After=network.target auditd.-weight: 500;">service
ConditionPathExists=!/etc/ssh/sshd_not_to_be_run [Service]
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure [Install]
WantedBy=multi-user.target
[Unit]
Description=OpenBSD Secure Shell server
After=network.target auditd.-weight: 500;">service
ConditionPathExists=!/etc/ssh/sshd_not_to_be_run [Service]
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure [Install]
WantedBy=multi-user.target
[Unit]
Description=OpenBSD Secure Shell server
After=network.target auditd.-weight: 500;">service
ConditionPathExists=!/etc/ssh/sshd_not_to_be_run [Service]
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure [Install]
WantedBy=multi-user.target
-weight: 600;">sudo grep "Failed password" /var/log/auth.log | tail -5
-weight: 600;">sudo grep "Failed password" /var/log/auth.log | tail -5
-weight: 600;">sudo grep "Failed password" /var/log/auth.log | tail -5
Apr 20 03:14:22 host sshd[4821]: Failed password for root from 185.220.101.x port 52344 ssh2
Apr 20 03:14:25 host sshd[4821]: Failed password for root from 185.220.101.x port 52391 ssh2
Apr 20 03:14:22 host sshd[4821]: Failed password for root from 185.220.101.x port 52344 ssh2
Apr 20 03:14:25 host sshd[4821]: Failed password for root from 185.220.101.x port 52391 ssh2
Apr 20 03:14:22 host sshd[4821]: Failed password for root from 185.220.101.x port 52344 ssh2
Apr 20 03:14:25 host sshd[4821]: Failed password for root from 185.220.101.x port 52391 ssh2
# Silence all output
command 2>/dev/null # Generate a 1MB file of zeros
dd if=/dev/zero of=zeros.bin bs=1M count=1 # Generate cryptographically secure random bytes
head -c 32 /dev/urandom | base64
# Silence all output
command 2>/dev/null # Generate a 1MB file of zeros
dd if=/dev/zero of=zeros.bin bs=1M count=1 # Generate cryptographically secure random bytes
head -c 32 /dev/urandom | base64
# Silence all output
command 2>/dev/null # Generate a 1MB file of zeros
dd if=/dev/zero of=zeros.bin bs=1M count=1 # Generate cryptographically secure random bytes
head -c 32 /dev/urandom | base64
cat /proc/meminfo | grep -E "MemTotal|MemFree|Buffers|Cached|MemAvailable"
cat /proc/meminfo | grep -E "MemTotal|MemFree|Buffers|Cached|MemAvailable"
cat /proc/meminfo | grep -E "MemTotal|MemFree|Buffers|Cached|MemAvailable"
MemTotal: 16237568 kB
MemFree: 423108 kB
Buffers: 312440 kB
Cached: 5621700 kB
MemAvailable: 7840200 kB
MemTotal: 16237568 kB
MemFree: 423108 kB
Buffers: 312440 kB
Cached: 5621700 kB
MemAvailable: 7840200 kB
MemTotal: 16237568 kB
MemFree: 423108 kB
Buffers: 312440 kB
Cached: 5621700 kB
MemAvailable: 7840200 kB
cat /proc/cpuinfo | grep "model name" | uniq
cat /proc/cpuinfo | grep "model name" | uniq
cat /proc/cpuinfo | grep "model name" | uniq
-weight: 600;">sudo grep -A5 "menuentry" /boot/grub/grub.cfg | head -10
-weight: 600;">sudo grep -A5 "menuentry" /boot/grub/grub.cfg | head -10
-weight: 600;">sudo grep -A5 "menuentry" /boot/grub/grub.cfg | head -10
menuentry 'Ubuntu' { linux /boot/vmlinuz-6.5.0-generic root=UUID=xxxx ro quiet splash initrd /boot/initrd.img-6.5.0-generic
}
menuentry 'Ubuntu' { linux /boot/vmlinuz-6.5.0-generic root=UUID=xxxx ro quiet splash initrd /boot/initrd.img-6.5.0-generic
}
menuentry 'Ubuntu' { linux /boot/vmlinuz-6.5.0-generic root=UUID=xxxx ro quiet splash initrd /boot/initrd.img-6.5.0-generic
} - /dev/null — a black hole. Writes disappear. Reads return EOF immediately.
- /dev/zero — infinite stream of zero bytes. Used for zeroing disks and memory.
- /dev/urandom — reads entropy from the kernel's CSPRNG, seeded by hardware interrupts, disk I/O timing, and network events. - /sys/class/net/ — live network interface stats including dropped packets per interface
- /etc/cron.d/ — scheduled tasks; a favourite persistence location for attackers
- /proc/net/tcp — all active TCP connections in raw hex format
- /etc/ld.so.conf — controls which directories the dynamic linker searches for shared libraries
- /proc/sys/kernel/ — live-tunable kernel parameters (also writable via sysctl)