emmaunel / DiscordGo

Discord C2 for Redteam....Need a better name
102 stars 25 forks source link

bot returns error!! #22

Open atanu2679 opened 2 years ago

atanu2679 commented 2 years ago

Snow — Today at 20:12 whoami

Hacked---BOT — Today at 20:12 Command didn't return anything

admin help!!!!

m4nbat commented 1 year ago

Getting the same issue with the Windows agent:

image

I'm curious if something has gone wrong with build? The bot has admin permissions on the server in discord and heartbeat is working.

m4nbat commented 1 year ago

Go version:

Screenshot_20230503-211931_Chrome.jpg

m4nbat commented 1 year ago

It appears it's got a bug and is not passing through the parameter to the agent. Is there something I'm doing wrong? Help would be appreciated. Thanks.

image

e-fin commented 1 year ago

I have found the solution (atleast for me!)

You have to enable "Message Content Intent" in the discord app developer portal for your bot,

its under Settings > Bot > Message Content Intent

Its described in this issue here:

https://github.com/bwmarrin/discordgo/issues/1270

m4nbat commented 1 year ago

I have found the solution (atleast for me!)

You have to enable "Message Content Intent" in the discord app developer portal for your bot,

its under Settings > Bot > Message Content Intent

Its described in this issue here:

bwmarrin/discordgo#1270

Did you have to rebuild the agent binary? Where did you set s.Identify.Intents |= discordgo.IntentMessageContent"