*⚠️ For education purposes only. I do not take and responsibility in any unauthorized or malicious use of this software!*⚠️
I used this as an opportuinity to learn golang and try out new stuff, also using telegram as a c2
was an old idea i had a while ago that i wanted to test out and see how can you abuse legitimate services
to work as your c2.
- Command Execution
- Download files from remote PC
- builtin wget like option (upload files using a 3d party hosting service)
- Screenshot
go install github.com/go-telegram-bot-api/telegram-bot-api@latest
go install github.com/kbinani/screenshot@latest
in general you should follow the official telegram tutorial on how to set up your first bot using the link:
https://core.telegram.org/bots
In project file change your apiKey var in the main.go file to your api key, should look something like
var apiKey = "1234567890:AAAAAAA-AA-AAAAAAAAAAAAAA_AAAAA-AAA"
You should probably compile using the nogui flag in go
go build -ldflags -H=windowsgui telebrat
After you run your compiled program you should start a conversation with your bot, only then you can interact with it.
you can also try the /test to check if everything is working and the /help command to see whats command are available
- Windows 7
- windows 8.1
- windows 10
- windows server 2008
- Add options for a costume timeout for command execution.
- Add more execution options, PS, LOLBAS etc...
- Get an autostart system
- Use system proxy
- Maybe add some AV evasion etc... probably a different project...