
해킹 가능한 네트워크 스캐너
Radar는 Rust로 작성된 작지만 효율적인 네트워크 스캐너로, masscan에서 크게 영감을 받았습니다.
주요 기능은 다음과 같습니다:
pnet 덕분masscan과 마찬가지로 가능한 한 빠른 속도를 목표로 합니다. 제 1Gbit 네트워크에서 초당 약 30만 패킷을 전송합니다.
릴리스 페이지에서 바이너리를 다운로드한 후 다음을 수행하세요:
xz -d radar-x86_64-musl.xz
mv radar-x86_64-musl radar
chmod +x radar
다음을 통해 쉽게 nix 셸을 얻을 수 있습니다: nix shell github:deade1e/radar
먼저 radar 콘솔을 엽니다:
$ sudo ./radar -i default console
raw 소켓을 사용하려면 sudo 또는 이에 상응하는 권한이 필요합니다.
이렇게 하면 콘솔 모드로 스캐너가 열리며, 다양한 명령을 실행할 수 있습니다. 모든 명령을 보려면 help를 입력하세요. 콘솔 모드는 Hackshell을 기반으로 합니다.
모든 명령과 간단한 설명을 보려면:
radar> help
내부 ARP 테이블 표시:
radar> arp
모든 인터페이스 서브넷에서 ARP 스캔 수행:
radar> arpscan -a
scan 명령 도움말 보기:
radar> scan --help
Error: Scan the network
Usage: scan [OPTIONS] -p <PORTS> <SUBNET>
Arguments:
<SUBNET> The subnet to scan
Options:
-p <PORTS> The ports to scan
-u, --udp Use UDP instead of TCP
-a, --arp-mode Enables ARP mode for scanning only the local network. When this option is enabled the packets are sent directly to the target MAC address instead of the router MAC address. An ARP
scan will be performed before the actual port scan while using this option
-r, --max-rate <MAX_RATE> The maximum rate of packets to send per second. Default = 1000
-j, --json JSON output
--json-content Include response packet content in the JSON output
-b, --blacklist <BLACKLIST> Blacklist file of subnets not to be scanned or ever contacted in any way. Mandatory when a /0 (global IPv4) scan is performed
-m, --router-mac <ROUTER_MAC> Router MAC address. Used when the router cannot be detected automatically or for benchmarking purposes
-c, --content <CONTENT> The content of the packet to send. Must be a base64 encoded string. Only used in UDP mode
-h, --help Print help
내부 서브넷의 기본 스캔 수행:
radar> scan -p 1-1000 192.168.1.0/24
이 모드는 masscan처럼 기본 게이트웨이를 사용하여 패킷을 라우팅합니다.
-a를 추가하면 ARP 모드가 활성화되어 이더넷 프레임을 보내기 전에 개별 MAC 주소가 확인됩니다.
더 빠르게 진행하려면 --max-rate 매개변수를 설정해야 합니다. 주의하세요. 라우터/네트워크가 중단될 수 있습니다.
DNS 서버 검색을 위해 미리 로드된 콘텐츠로 UDP 스캔 수행:
radar> scan -p 53 192.168.1.0/24 -u -c kOQBAAABAAAAAAABBmdvb2dsZQNjb20AAAEAAQAAKQSwAAAAAAAA
이 base64 콘텐츠는 google.com에 대한 DNS 요청입니다.
때로는 UDP 서비스가 조금 수줍어합니다. 올바른 페이로드를 제공하여 도와주세요!
인터페이스에서 DHCP 요청 모니터링:
radar> monitor -f dhcp-req
다른 이벤트도 모니터링할 수 있습니다! monitor --help를 확인하여 모두 보세요.
현재 진행 중인 작업 보기:
radar> task
Task Started at
---- ----------
monitor 2026-01-07 00:09:34
작업 종료:
radar> task -t monitor
시작 시 명령 목록을 실행하도록 콘솔 스크립팅:
$ sudo ./radar -i default console -r script.txt
출력을 저장하고 싶으신가요?
$ sudo ./radar -i default console -r script.txt > scan_output.log
상태 메시지는 stderr에, 명령 실행 결과는 stdout에 출력됩니다.
일회성 스캔 명령:
$ sudo ./radar -i default scan --help
rustup default stable
rustup target add x86_64-unknown-linux-musl
rustup component add rustfmt rust-analyzer rust-src clippy
export CARGO_BUILD_TARGET="x86_64-unknown-linux-musl"
cargo build
nix build
nix develop
이 프로젝트는 masscan의 확장되고 더 플러그 가능/해킹 가능한 버전을 목표로 합니다. 로컬 네트워크와 비 RFC1918 네트워크 모두에서 작동하므로 이론적으로 전체 인터넷을 스캔할 수 있습니다.
이 프로그램을 사용하여 전체 인터넷이나 승인되지 않은 호스트를 스캔하면 벌금 또는 체포될 수 있습니다. 아무 작업을 수행하기 전에 세 번 확인하세요.
경고했습니다.