Rocket Chat
AWS 해킹 배우기 및 연습하기:HackTricks Training AWS Red Team Expert (ARTE)
GCP 해킹 배우기 및 연습하기:
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
로켓 챗에서 관리자인 경우 RCE를 얻을 수 있습니다.
**
통합
**으로 가서 **새 통합
**을 선택하고수신 웹후크
또는발신 웹후크
중 하나를 선택합니다./admin/integrations/incoming
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F311514708-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1ImEu59kE9yiIA7SmB7z%252Fuploads%252Fgit-blob-fce3191e91d7c184b2b75e07d47be5ec4f98bff3%252Fimage%2520%28266%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=95d9d7c&sv=1)
문서에 따르면, 두 가지 모두 데이터를 처리하기 위해 ES2015 / ECMAScript 6 (기본적으로 자바스크립트)를 사용합니다. 그래서 다음과 같은 자바스크립트용 rev shell을 얻어봅시다:
WebHook 구성 (채널과 사용자 이름으로 게시물이 존재해야 함):
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F311514708-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1ImEu59kE9yiIA7SmB7z%252Fuploads%252Fgit-blob-bbff6c5f4ab0ed17241ca5540c530e4ec4cd7d49%252Fimage%2520%28905%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=1375285b&sv=1)
WebHook 스크립트 구성:
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F311514708-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1ImEu59kE9yiIA7SmB7z%252Fuploads%252Fgit-blob-163b502deb9aecff582ab6f262e8153e3bff5404%252Fimage%2520%28572%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=3690e6b8&sv=1)
변경 사항 저장
생성된 WebHook URL 가져오기:
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F311514708-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1ImEu59kE9yiIA7SmB7z%252Fuploads%252Fgit-blob-eb57ea914240b4f2d2c6c1137712561d6c4b6a90%252Fimage%2520%28937%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=57f4d5b4&sv=1)
curl로 호출하면 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)
AWS 해킹 배우기 및 연습하기:HackTricks Training AWS Red Team Expert (ARTE)
GCP 해킹 배우기 및 연습하기:
HackTricks Training GCP Red Team Expert (GRTE)
Last updated