
Python / scapy 모듈로 SRVLOC/SLP 프로토콜을 구현하고 활성화된 OpenSLP 서비스를 스캔합니다.
SRVLOC/SLP 프로토콜을 구현하여 활성화된 OpenSLP 서비스를 스캔하는 Python 스크립트입니다.
CVE-2019-5544, CVE-2020-3992 또는 CVE-2021-21974의 영향을 받는 시스템을 검색할 때 유용하게 사용할 수 있습니다...
VMware 취약점에 대한 자세한 정보는 예를 들어 다음에서 확인할 수 있습니다: https://blog.rapid7.com/2020/11/11/vmware-esxi-openslp-remote-code-execution-vulnerability-cve-2020-3992-and-cve-2019-5544-what-you-need-to-know/
이 스크립트는 서비스가 취약한지 여부를 감지하지 않지만 원격 VMWare 버전과 빌드를 보고합니다.
python3와 scapy 라이브러리가 설치되어 있어야 합니다. 즉, pip3 install scapy
./check_slp.py <file_with_targets>
여기서 인자는 IP 주소 또는 CIDR 표기법의 네트워크 목록이 담긴 파일입니다.
2020-12-01 15:03:15,654 - INFO - [ip_removed] Sending packet via Unicast UDP
2020-12-01 15:03:15,778 - INFO - [ip_removed] SLP Service detected
2020-12-01 15:03:16,032 - INFO - [ip_removed] ATTR service:VMwareInfrastructure://[fqdn_removed] (product="VMware ESXi 6.5.0 build-17097218"),(hardwareUuid="30313436-3631-584D-5133-343230505032")
2020-12-01 15:03:16,292 - INFO - [ip_removed] ATTR service:wbem:https://[fqdn_removed]:5989 (MultipleOperationsSupported=false),(AuthenticationMechanismsSupported=Basic),(Namespace=root/interop,interop,root/hpq,root/cimv2,root/config,vmware/esxv2),(Namespace=root/cimv2,root/interop,root/config,vmware/esxv2),(Classinfo=0,0,0,0),(ProtocolVersion=1.0),(RegisteredProfilesSupported=DMTF:Sensors,DMTF:Base Server,DMTF:Power State Management,DMTF:CPU,DMTF:Software Inventory,DMTF:Record Log,DMTF:System Memory,DMTF:Physical Asset,DMTF:Fan,DMTF:Power Supply,DMTF:Profile Registration,DMTF:Battery,)