
이 도구는 네트워크 데이터 흐름을 매핑하여 침투 테스터가 잠재적으로 가치 있는 대상을 식별하는 데 도움을 줍니다.
.-----.
/ V \
|__...__|
|_....._|
.-' ___ '-.
\_.-`. .`-._/
__ .--. _ (|\ (_) /|)
.-;.-"-.-;`_;-, ( \_=_/ )
.(_( `)-;___),-;_), _(_ _)_
(.( `\.-._)-.( ). ) /` ||'-'|| `\
,(_`'--;.__\ _).;--'`_) _ /_/ (_>o<_) \_\
// )`--..__ ``` _( o )'(';,)\_//| || : || |\\
\;' ````` `\\ '.\\--' |`"""""""`|//
/ ':.___// \___,___/\_(
| '---'| |__|__|
; Leprechaun ; ;""|"";
\ / [] | []
'. #vonahisec .' .' / \ '.
'-,.__ __.,-' `--' `--'
(___/`````````\___)
이 도구의 목적은 침투 테스터가 내부 네트워크 환경에서 잠재적으로 가치 있는 대상을 식별할 수 있도록 돕는 것입니다. 여러 호스트의 netstat 라우트를 집계함으로써 내부에서 어떤 일이 일어나고 있는지 쉽게 파악할 수 있습니다.
이 지침을 따라 로컬 머신에서 개발 및 테스트 목적으로 프로젝트 사본을 실행할 수 있습니다. 라이브 시스템에 프로젝트를 배포하는 방법에 대한 참고 사항은 배포 섹션을 참조하세요.
시작하려면 몇 가지 Ruby 젬이 필요합니다. 아직 설치하지 않았다면요.
gem install 'securerandom'
gem install 'terminal-table'
gem install 'getopt'
마지막으로, Graphviz가 설치되어 있는지 확인하세요. 다음 명령어로 설치할 수 있습니다.
apt install graphviz -y
스크립트를 인수 없이 실행하면 다음과 같은 도움말 메뉴가 표시됩니다.
[root:vonahisec-kali:~/scripts/leprechaun]# ./leprechaun.rb
-------------------------------------------------------------
Leprechaun v1.0 - Alton Johnson (@altonjx)
-------------------------------------------------------------
Usage: ./leprechaun.rb -f /path/to/netstat_results.txt -p <port>
-f File containing the output of netstat results
-p Port you're interested in. e.g., 80. Specify "all", "common", or separate ports with commas
-e The type of destination IP addresses you want to see connections to (e.g. external/internal/all)
Example: ./leprechaun.rb -f netstat_output.txt -p 80
Example: ./leprechaun.rb -f netstat_output.txt -p all
Example: ./leprechaun.rb -f netstat_output.txt -p common
Example: ./leprechaun.rb -f netstat_output.txt -p 80,443 -t external
+--------------+-----------------------------+----------------------------------+
| 서버 | 연결된 클라이언트 수 | 가장 트래픽이 많은 대상 포트 |
+--------------+-----------------------------+----------------------------------+
| 192.12.70.71 | 4 | 80/tcp (4 clients) |
| 192.12.70.18 | 2 | 443/tcp (2 clients) |
| 192.12.70.45 | 1 | 445/tcp (1 clients) |
+--------------+-----------------------------+----------------------------------+

블로그 게시물: https://blog.vonahi.io/post-exploitation-with-leprechaun/
LinkedIn 기사: https://www.linkedin.com/pulse/finding-gaps-your-network-segmentation-using-johnson-oscp-osce/
이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 LICENSE.md 파일을 참조하세요.