
Netwave IP 카메라의 메모리 덤프 취약점(CVE-2018-17240)을 이용하여 로그인 자격 증명을 검색하는 도구입니다.
Netwave IP 카메라의 메모리 덤프 취약점(CVE-2018-17240)을 이용하여 로그인 자격 증명을 검색하는 도구입니다. 이 프로젝트는 expcamera에서 영감을 받았으며 성능 및 효율성 개선을 제공합니다. 이 도구는 expcamera처럼 셸 명령을 통해 Linux CLI 도구를 사용하지 않으므로 모든 플랫폼에서 작동합니다.
리눅스 시스템에서 /proc/kcore는 시스템의 물리적 메모리에 대한 직접 매핑을 제공하는 가상 파일로, 전체 커널 가상 메모리 공간에 대한 읽기 접근을 허용합니다. 일부 Netwave IP 카메라는 웹 서버를 통해 이 파일을 공개적으로 노출하여 인증되지 않은 사용자가 장치의 메모리 덤프를 검색할 수 있게 하며, 로그인 자격 증명과 같은 민감한 정보를 노출시킵니다.
이 도구는 먼저 메모리 덤프에서 장치 ID를 찾으려고 시도합니다. 이것이 발견되면, 자격 증명이 근처에 있을 가능성이 높으며 검색을 시작합니다.
이 도구는 취약점을 확인할 호스트를 지정하는 두 가지 방법을 지원합니다. 호스트는 ip:port 형식이어야 합니다.
| 인자 | 설명 |
|---|---|
--host | 확인할 호스트, 여러 번 지정 가능 |
--file | 확인할 호스트 목록이 포함된 파일 |
이 도구는 Censys, Shodan 및 ZoomEye에서 호스트를 검색하여 취약점을 확인하는 것을 지원합니다.
$ pip install -r requirements.txt
Usage: main.py [-h] (--host HOST | -f FILE | --censys | --shodan | --zoomeye) [-n NUMBER] [-c CONCURRENT] [-t TIMEOUT] [-o OUTPUT]
A tool for retrieving login credentials from Netwave IP cameras using a memory dump vulnerability (CVE-2018-17240)
Options:
-h, --help show this help message and exit
--host HOST A host to check, can be specified multiple times
-f, --file FILE A file containing the hosts to check
--censys Retrieve hosts from the Censys API using the API ID and secret specified with the CENSYS_API_ID and CENSYS_API_SECRET environment variables
--shodan Retrieve hosts from the Shodan API using the API key specified with the SHODAN_API_KEY environment variable
--zoomeye Retrieve hosts from the ZoomEye API using the API key specified with the ZOOMEYE_API_KEY environment variable
-n, --number NUMBER The number of hosts to retrieve from the IoT search engine, by default 100
-c, --concurrent CONCURRENT
The number of hosts to check concurrently, by default 25
-t, --timeout TIMEOUT
The timeout in seconds for retrieving the credentials from the memory dump of each host, by default 300
-o, --output OUTPUT The file to write the credentials to, by default credentials.txt
이 도구는 교육 목적으로만 제공됩니다. 이 프로젝트의 기여자는 이 도구 사용으로 인해 발생할 수 있는 손해 또는 법적 문제에 대해 책임을 지지 않습니다. 사용자는 자체 책임 하에 사용하십시오.
| IoT 검색 엔진 | 인자 | 필요한 환경 변수 |
|---|
| Censys | --censys | CENSYS_API_ID, CENSYS_API_SECRET |
| Shodan | --shodan | SHODAN_API_KEY |
| ZoomEye | --zoomeye | ZOOMEYE_API_KEY |