
모듈형 WLAN 감사 프레임워크로, 레드 팀을 위해 비인증(deauthentication), 로그 AP(rogue AP), WPA 핸드셰이크 캡처 모듈을 갖추고 있습니다. 무선 네트워크 정찰 및 공격을 위한 Metasploit 스타일 CLI를 특징으로 합니다.
Pinecone는 WLAN 네트워크 감사 도구로, 레드 팀 사용에 적합합니다. 모듈을 통해 확장 가능하며, Debian 기반 운영체제에서 실행되도록 설계되었습니다. Pinecone는 특히 라즈베리 파이를 휴대용 무선 감사 박스로 사용할 수 있도록 제작되었습니다.
이 도구는 교육 및 연구 목적으로만 설계되었습니다. 명시적인 허가 없이 사용하지 마십시오.
Pinecone를 실행하려면 Debian 기반 운영체제가 필요합니다 (Raspbian, Raspberry Pi Desktop, Kali Linux에서 테스트되었습니다). Pinecone는 다음 요구 사항이 있습니다:
apt-get install python3으로 설치할 수 있습니다.apt-get install dnsmasq로 설치 가능.apt-get install hostapd-wpe로 설치 가능. 배포판 저장소에 hostapd-wpe 패키지가 없는 경우, Kali Linux 저장소의 사전 컴파일 패키지를 설치하거나 소스 코드에서 컴파일할 수 있습니다.필요한 패키지를 설치한 후, 프로젝트 루트 폴더에서 pip3 install -r requirements.txt를 실행하여 Pinecone에 필요한 Python 패키지를 설치할 수 있습니다.
Pinecone를 시작하려면 프로젝트 루트 폴더에서 python3 pinecone.py를 실행하십시오:
root@kali:~/pinecone# python pinecone.py
[i] Database file: ~/pinecone/db/database.sqlite
pinecone >
Pinecone는 Metasploit과 유사한 명령줄 인터페이스로 제어됩니다. help를 입력하여 사용 가능한 명령 목록을 보거나, help '명령어'를 입력하여 특정 명령에 대한 자세한 정보를 얻을 수 있습니다:
pinecone > help
Documented commands (type help <topic>):
========================================
alias help load pyscript set shortcuts use
edit history py quit shell unalias
Undocumented commands:
======================
back run stop
pinecone > help use
Usage: use module [-h]
Interact with the specified module.
positional arguments:
module module ID
optional arguments:
-h, --help show this help message and exit
use '모듈ID' 명령을 사용하여 Pinecone 모듈을 활성화합니다. Tab 자동 완성을 사용하여 현재 로드된 모듈 목록을 볼 수 있습니다:
pinecone > use
attack/deauth daemon/hostapd-wpe report/db2json scripts/infrastructure/ap
daemon/dnsmasq discovery/recon scripts/attack/wpa_handshake
pinecone > use discovery/recon
pcn module(discovery/recon) >
모든 모듈에는 옵션이 있으며, 모듈이 활성화된 상태에서 help run 또는 run --help를 입력하여 확인할 수 있습니다. 대부분의 모듈은 기본값이 설정되어 있습니다 (실행 전에 확인하십시오):
pcn module(discovery/recon) > help run
usage: run [-h] [-i INTERFACE]
optional arguments:
-h, --help show this help message and exit
-i INTERFACE, --iface INTERFACE
monitor mode capable WLAN interface (default: wlan0)
모듈이 활성화되면 run [옵션...] 명령을 사용하여 기능을 시작할 수 있습니다. 모듈은 실행 상태에 대한 피드백을 제공합니다:
pcn script(attack/wpa_handshake) > run -s TEST_SSID
[i] Sending 64 deauth frames to all clients from AP 00:11:22:33:44:55 on channel 1...
................................................................
Sent 64 packets.
[i] Monitoring for 10 secs on channel 1 WPA handshakes between all clients and AP 00:11:22:33:44:55...
모듈이 백그라운드에서 실행되는 경우 (예: scripts/infrastructure/ap), 모듈이 실행 중일 때 stop 명령을 사용하여 중지할 수 있습니다:
pcn script(infrastructure/ap) > run
net.ipv4.ip_forward = 1
[i] Creating NAT rules in iptables for forwarding wlan0 -> eth0...
[i] Starting hostapd-wpe and dnsmasq...
Configuration file: ~/pinecone/tmp/hostapd-wpe.conf
Using interface wlan0 with hwaddr 00:11:22:33:44:55 and ssid "PINECONEWIFI"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
pcn script(infrastructure/ap) > stop
[i] Stopping hostapd-wpe and dnsmasq...
net.ipv4.ip_forward = 0
[i] Flushing NAT table in iptables...
모듈 사용을 마치면 back 명령을 사용하여 비활성화할 수 있습니다. 또는 다시 use 명령을 사용하여 다른 모듈을 활성화할 수 있습니다.
셸 명령은 shell 명령 또는 ! 단축키를 사용하여 실행할 수 있습니다:
pinecone > !ls
LICENSE modules module_template.py pinecone pinecone.py README.md requirements.txt TODO.md
현재 Pinecone 정찰 SQLite 데이터베이스는 프로젝트 루트 폴더의 db/ 디렉토리에 저장됩니다. Pinecone에서 사용하는 모든 임시 파일은 프로젝트 루트 폴더 아래 tmp/ 디렉토리에 저장됩니다.