(진행중인 작업) 대화식 도구는 치트 시트 예제를 신속하게 검색하고 실행합니다.
이 프로젝트를 만드는 주요 동기는 다음과 같습니다.
이 프로젝트의 유일한 종속성은 Python 3입니다. 실제로 치트 시트 예제를 실행하려면 관련 도구를 설치해야하지만 너무 방해가되므로 스크립트는 설치 도구를 녹색 및 비 설치 도구로 빨간색으로 인쇄합니다.
추가 도구를 설치할 필요가 없습니다. 그러나 별명을 추가하여 더 간단한 방식으로 실행하는 것이 좋습니다.
alias eg="python3 /path/to/eg/repo/app/eg.py"
이렇게하면 python3 eg.py keyword 에 주입 된 eg keyword 실행할 수 있습니다.
$ eg -h
NAME
eg -- Interactive tool to search and run cheat-sheet examples
SYNOPSIS
eg [keyword]
EXAMPLES
# Search for tools related to dns
eg dns
# Directly access nmap examples
eg nmap
# Access the interactive app
eg
app/tools_info.json 에 추가하십시오. 키워드로 검색 할 때 검색되도록 키워드를 추가해야합니다.
예제에는 실행 될 때 요청 될 매개 변수가있을 수 있습니다. 예를 들어 이중 곱슬 버팀대를 사용하여 매개 변수를 추가하십시오.
find . -name {{keyword}}
DNS 키워드와 일치하는 도구 검색 :
$ eg dns
Results for dns:
1) nslookup: Query Internet name servers interactively
2) dig: DNS lookup utility
3) dnsrecon: DNS Enumeration and Scanning Tool
4) dnsmap: DNS Network Mapper
Enter tool index (or enter to go back):
이제 치트 시트 예제를 나열 할 도구 중 하나를 선택하십시오.
Enter tool index (or enter to go back): 1
Examples for nslookup:
1 - Query A records
nslookup {{RHOST}}
-------
2 - Query NS records
nslookup -type=ns {{RHOST}}
-------
3 - Query MX records
nslookup -type=mx {{RHOST}}
-------
4 - Query all available DNS records
nslookup -type=any {{RHOST}}
-------
Enter index of the example to run (or enter to go back):
실행할 예제를 선택하고 매개 변수를 설정하고 실행하십시오.
Enter index of the example to run (or enter to go back): 1
nslookup {{RHOST}}
Please set parameters
RHOST: google.com
$ nslookup google.com
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: google.com
Address: 172.217.172.46
도구 이름으로 검색 할 때 공구 선택이 자동으로 수행됩니다.
$ eg nmap
Examples for nmap:
1 - Aggressive: Standard scripts, OS and versions detection
nmap -A {{RHOST}}
-------
2 - Scan all 65535 ports
nmap -p- {{RHOST}}
-------
Enter index of the example to run (or enter to go back):
치트 시트 DB 역할을하는 app/tools_info.json 에 새로운 치트 시트 예제를 추가하십시오. 명령 매개 변수를 유지하려고 시도하는 것은 매개 변수 값이 캐시되고 같은 세션에서 다른 명령을 실행하기 위해 기본값으로 사용되므로 핵심입니다.
GPL-3.0