/backdoor

Primary LanguageGoMIT LicenseMIT

backdoor

backdoor allow you to execute any command as root in linux machine with authorize group.

How to setup

First compile into a binary

env GOOS=linux GOARCH=amd64 go build -o backdoor main.go

Setuid for backdoor binary and permission for group execution only

chmod 4710 backdoor

Set owner of binary to root and group to desire group

chown root:group backdoor

Setup is now completed. Verify by executing below command with user belong to group set above.

backdoor whoami

User should return root.

How to use backdoor

Backdoor can be use to execute any commands as a root

Example

backdoor ls -ltr
backdoor vi test.txt
backdoor sudo su - user1