Rocket Chat
Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking:
HackTricks Training GCP Red Team Expert (GRTE)
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2Fpentest.eu%2FRENDER_WebSec_10fps_21sec_9MB_29042024.gif&width=768&dpr=4&quality=100&sign=bc0743d1&sv=1)
RCE
Ako ste admin unutar Rocket Chat-a, možete dobiti RCE.
Idite na
Integrations
i izaberiteNew Integration
i odaberite bilo koju:Incoming WebHook
iliOutgoing WebHook
./admin/integrations/incoming
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F3850298721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fs712eRnz5qRNRafWqq3N%252Fuploads%252Fgit-blob-fce3191e91d7c184b2b75e07d47be5ec4f98bff3%252Fimage%2520%28266%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=9be928ac&sv=1)
Prema dokumentaciji, oba koriste ES2015 / ECMAScript 6 (u suštini JavaScript) za obradu podataka. Tako da uzmimo rev shell za javascript kao:
Konfigurišite WebHook (kanal i post kao korisničko ime moraju postojati):
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F3850298721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fs712eRnz5qRNRafWqq3N%252Fuploads%252Fgit-blob-bbff6c5f4ab0ed17241ca5540c530e4ec4cd7d49%252Fimage%2520%28905%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=af78a86b&sv=1)
Konfigurišite WebHook skriptu:
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F3850298721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fs712eRnz5qRNRafWqq3N%252Fuploads%252Fgit-blob-163b502deb9aecff582ab6f262e8153e3bff5404%252Fimage%2520%28572%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=1be52488&sv=1)
Sačuvajte promene
Dobijte generisani WebHook URL:
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F3850298721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fs712eRnz5qRNRafWqq3N%252Fuploads%252Fgit-blob-eb57ea914240b4f2d2c6c1137712561d6c4b6a90%252Fimage%2520%28937%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=63fa09c4&sv=1)
Pozovite ga sa curl i trebali biste primiti rev shell
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2Fpentest.eu%2FRENDER_WebSec_10fps_21sec_9MB_29042024.gif&width=768&dpr=4&quality=100&sign=bc0743d1&sv=1)
Učite i vežbajte AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Učite i vežbajte GCP Hacking:
HackTricks Training GCP Red Team Expert (GRTE)
Last updated