nettitude / PoshC2

A proxy aware C2 framework used to aid red teamers with post-exploitation and lateral movement.
BSD 3-Clause "New" or "Revised" License
1.78k stars 323 forks source link

fix Slack notification and support apps/webhooks #273

Open armysick opened 1 year ago

armysick commented 1 year ago

poshc2/server/Implant.py was lacking import of json , making conn.request("POST", connurl,json.dumps(message), headers) throw an Exception.

Usage of "https://[YourSlackName].slack.com/apps/A0F7YS25R" is also no longer recommended by Slack and I failed to make it work, so I've developed support for a Slack App/Bot using Slack WebHooks (hooks.slack.com) instead.