Skip to content

Instantly share code, notes, and snippets.

View taeyeonssupdate's full-sized avatar
🐈
想想自己為何找到這了

지안 taeyeonssupdate

🐈
想想自己為何找到這了
View GitHub Profile
#!/bin/bash
# fileless_eicar.sh
# EICAR 測試字串
EICAR='X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*'
# 用 /dev/shm 建立記憶體檔案 (tmpfs)
MEMFILE=$(mktemp -u /dev/shm/eicar.XXXX)
echo -n "$EICAR" > "$MEMFILE"