Can an attacker with root edit your logs?
Seal them: journalctl --setup-keys, then --verify. Bonus: -D reads a dead box's journal.
#DFIR #InfoSecMonkey
1
1
54
Stop piping journalctl to grep.
-b -1 -p err for last boot errors, -g for built-in grep, _COMM=sudo for field filters.
#Linux #InfoSecMonkey
1
27
Type once, run on every server.
tmux setw synchronize-panes on, check uptime and package versions across the fleet, then turn it OFF before anyone types reboot. Part 3 of 3.
#tmux #InfoSecMonkey
34
Your tmux scrollback is quietly caching your secrets.
pipe-pane -o logs the change window. capture-pane -pS - dumps all of it. clear-history wipes the keys. Part 2 of 3.
#tmux #InfoSecMonkey
24
Your VPN dropped mid-change. Your session did not.
tmux new -A -s fw-change on the jump host: creates the session the first time, reattaches every time after. Part 1 of 3.
#tmux #InfoSecMonkey
23
Build any reverse shell with one msfvenom line.
Then catch it with multi/handler. Payloads must match or nothing connects.
#msfvenom #pentest #InfoSecMonkey
1
56
Metasploit in four commands: search, use, set, exploit.
Thousands of exploits, one loop to a shell.
#metasploit #redteam
51
Part 3: schedule a reboot without cron.
systemctl reboot --when=+10min
systemctl soft-reboot
systemctl reboot --firmware-setup
Needs systemd 254 or newer.
#Linux #InfoSecMonkey
Part 2: which service owns PID 4721?
systemctl whoami 4721
Then systemctl show -p NRestarts. Status said "running". It had crashed 37 times.
#Linux #InfoSecMonkey
71
Don't kill that runaway service. Freeze it.
systemctl set-property --runtime caps CPU live. systemctl freeze pauses it. thaw resumes exactly where it stopped.
#Linux #InfoSecMonkey
1
128
Make curl and Python talk through Burp.
-x plus --cacert for one request. HTTPS_PROXY plus CURL_CA_BUNDLE and REQUESTS_CA_BUNDLE for the session. Unset them when you're done.
#burpsuite #InfoSecMonkey
77
Burp Suite installed and trusted in five commands.
Right build, verified hash, 8080 on loopback, then pull and inspect your unique CA before trusting it.
#burpsuite #InfoSecMonkey
80
Windows has tail. It is hiding in PowerShell.
Get-Content .\app.log -Tail 5 -Wait
Filter live with Select-String. Gotcha: no -F mode, so rotation stops it.
#PowerShell #InfoSecMonkey
6
Part 2: tail tricks nobody shows you.
tail -n +2 skips the header
tail -c 1 checks the last byte
tail --pid exits with the writer
tail ---disable-inotify (yes, three dashes)
#Linux #InfoSecMonkey
11
Your tail -f went silent. The app is still logging.
Log rotation moved the file. Lowercase -f stays on the old inode. tail -F follows the name and reopens the new log.
#Linux #InfoSecMonkey
1
70
Part 2: the FortiGate side. Each VDI IP maps to one user and their AD groups. Shared RDSH host? One IP cannot hold many users, use the TS Agent.
#FSSO #InfoSecMonkey
72

