14 lines
581 B
Bash
14 lines
581 B
Bash
#!/bin/bash
|
|
set -e
|
|
apt-get install -y squashfs-tools >/tmp/apt-sq.log 2>&1 || true
|
|
W=/root/krd24
|
|
cd "$W"
|
|
# извлечь squashfs из ISO
|
|
[ -f filesystem.squashfs ] || xorriso -osirrox on -indev /path/to/pf/KRD/krd.iso -extract /live/filesystem.squashfs filesystem.squashfs >/dev/null 2>&1
|
|
ls -l filesystem.squashfs
|
|
echo "=== файлы/скрипты, связанные с krd:"
|
|
unsquashfs -l filesystem.squashfs 2>/dev/null | grep -iE 'krd|kaspersky|\.srm' | head -40
|
|
echo
|
|
echo "=== root-level dirs:"
|
|
unsquashfs -l filesystem.squashfs 2>/dev/null | awk -F/ 'NF<=3' | head -40
|