Troubleshooting
Gopher Agent Generation
Problem
Need to generate an agent implant for LINUX TARGET (see diagram), but receive unhelpful error code in the AdaptixClient UI (exit code 1).
Solution
./adaptixserver -profile profile.json
Launch adaptixserver with profile
ltrace -S -s 1000000000 -p `pidof adaptixserver` -o ltrace.log
Attach ltrace to PID and try and generate a Gopher agent in the AdaptixClient UI
59181 <... read resumed> , "error obtaining VCS status: exit status 128\n\tUse -buildvcs=false to disable VCS stamping.\n", 512) = 90
59183 <... read resumed> , "error obtaining VCS status: exit status 128\n\tUse -buildvcs=false to disable VCS stamping.\n", 512) = 90
59179 read@SYS(15, "error obtaining VCS status: exit status 128\n\tUse -buildvcs=false to disable VCS stamping.\n", 512) = 90
59181 read@SYS(15, "error obtaining VCS status: exit status 128\n\tUse -buildvcs=false to disable VCS stamping.\n", 512) = 90
59179 <... read resumed> , "error obtaining VCS status: exit status 128\n\tUse -buildvcs=false to disable VCS stamping.\n", 512) = 90
59181 read@SYS(15, "error obtaining VCS status: exit status 128\n\tUse -buildvcs=false to disable VCS stamping.\n", 512) = 90
59183 <... read resumed> , "error obtaining VCS status: exit status 128\n\tUse -buildvcs=false to disable VCS stamping.\n", 512) = 90
Log lines that appear to indicate the issue
rm -rf /opt/AdaptixC2/dist/extenders
cd /opt/AdaptixC2
go env -w GOFLAGS=-buildvcs=false
make extenders
Upon doing this, I am now able to generate the Gopher TCP agent.