
서브도메인을 스캔하고, 서브도메인 탈취를 탐지한 후 XSS, SSTI, SSRF 등 인젝션 포인트 파라미터를 필터링하여 자동으로 일부 저위험 취약점을 스캔하는 자동화 도구입니다.
이 도구는 제 정찰 작업을 자동화하고 시간을 절약하기 위해 만들었습니다. 매번 명령어를 입력하고, 한 명령어가 완료될 때까지 기다렸다가 다른 명령어를 입력하는 것이 정말 짜증났습니다. 그래서 버그바운티 분야에서 널리 사용되는 몇 가지 도구들을 모았습니다. 이 스크립트에서는 Assetfinder, subfinder, amass, httpx, sublister, gauplus 및 gf 패턴을 사용한 후 dirsearch, dalfox, nuclei, kxss를 사용하여 쉬운 취약점들을 찾습니다.
스크립트는 먼저 assetfinder, sublister, subfinder, amass를 사용하여 대상 도메인의 모든 서브도메인을 열거한 후 전체 서브도메인 목록에서 라이브 도메인만 필터링합니다. 그런 다음 httpx를 사용하여 서브도메인의 제목을 추출하고 nuclei로 서브도메인 탈취를 스캔합니다. 그 다음 gauplus를 사용하여 주어진 서브도메인의 파라미터를 추출하고 gf 패턴을 사용하여 xss, ssti, ssrf, sqli 파라미터를 필터링한 후 쉬운 취약점도 스캔합니다. 최종 출력은 target-xss.txt와 같은 텍스트 파일에 저장됩니다. 그런 다음 notify를 사용하여 스캔 결과에 대한 알림을 보냅니다.
v4.0의 새로운 기능: 이전 문제 일부 수정, 시간 낭비 취약점 제거(수동으로 찾아야 함), 도킹 추가.

요구 사항: Go Language 및 Python 3.
시스템 요구 사항: 1VCPU 및 2GB RAM의 VPS에서 실행하는 것이 좋습니다.
사용된 도구 - 이 스크립트를 사용하려면 다음 도구를 설치해야 합니다.
subfinder •
sublist3r •
gf patterns •
dnsx •
assetfinder •
httpx •
kxss •
nuclei •
dalfox •
anew •
notify •
•
•
•
•
•
•
•
•
•
•
#도구를 설치하기 전에 root인지 확인하세요
garud:~ sudo su
garud:~ apt install git
garud:~ git clone https://github.com/R0X4R/Garud.git && cd Garud/ && chmod +x garud install.sh && mv garud /usr/bin/ && ./install.sh
참고:
install.sh파일 또는garud실행 중 문제가 발생하면sed -i -e 's/\r$//' install.sh를 실행하세요.
█▀▀▀ █▀▀█ █▀▀█ █░░█ █▀▀▄
█░▀█ █▄▄█ █▄▄▀ █░░█ █░░█
▀▀▀▀ ▀░░▀ ▀░▀▀ ░▀▀▀ ▀▀▀░
[GARUD] == A RECONNAISSANCE SUITE FOR BUG BOUNTY (@R0X4R)
Example Usage:
garud [-d target.tld] [-x exclude domains] [--json] [-s]
Flags:
-d, --domain string Add your target -d target.tld
-x, --exclude string Exclude out of scope domains -x /home/dommains.list
Optional Flags:
-s, --silent Hide output in the terminal Default: False
-j, --json Store output in a single json file Default: False
-v, --version Print current version of Garud
Garud 사용 또는 설치 중 오류 수정
garud:~ chmod +x install.sh && ./install.sh
Error: ./install.sh : /bin/bash^M : bad interpretor: No such file or directory
# 해결 방법
garud:~ sed -i -e 's/\r$//' install.sh
오류를 복사하여 구글에 검색해도 됩니다. 디버깅 실력이 향상될 것입니다 ;)
예제 사용법
# garud -d hackerone.com
범위 밖 도메인 제외
# echo test.hackerone.com > ossdomain.txt
# garud -d hackerone.com -x ~/ossdomain.txt
모든 플래그 사용
# garud -d hackerone.com -j -s -x /home/oss.txt
터미널에 출력 숨기기
# garud -d hackerone.com -s
단일 json 파일에 출력 저장
# garud -d hackerone.com -s -j
# cd hackerone
# cat output.json | jq
{
"nuclei_critical": [],
"vuln_crlf": [],
"dalfox": [
"[POC][V][GET][inATTR-double(3)-URL] http://subdomain.target.tld/hpp?pp=FUZZ%22onpointerout%3Dconfirm.call%28null%2C1%29+class%3Ddalfox+",
----------------------snip----------------------
"subdomains": [
"sub.target.tld",
"tub.target.tld",
"subdomain.target.tld"
],
"vuln_xss": [
"[POTENTIAL XSS] - http://subdomain.target.tld/hpp/?pp=%22%3E%2F%3E%3Csvg%2Fonload%3Dconfirm%28document.domain%29%3E ",
"[POTENTIAL XSS] - http://subdomain.target.tld:80/hpp/?pp=%22%3E%2F%3E%3Csvg%2Fonload%3Dconfirm%28document.domain%29%3E ",
"[POTENTIAL XSS] - http://subdomain.target.tld:80/hpp/index.php?pp=%22%3E%2F%3E%3Csvg%2Fonload%3Dconfirm%28document.domain%29%3E "
]
}
Docker
@frost19k 님의 기여
이 이미지는 Buildkit 으로 빌드해야 합니다.
garud:~ git clone https://github.com/R0X4R/Garud.git
garud:~ cd Garud
garud:~ docker buildx build -t garud -f Dockerfile .
컨테이너 실행
garud:~ docker run -t --rm \
-v "/path/on/host":"/output" \ # 호스트 출력 폴더를 "/output"에 마운트
-v "/path/to/configs":"/Garud/.config/notify" \ # Notify 설정 파일을 "/Garud/.config/notify"에 마운트
garud -d hackerone.com
Garud는 컨테이너 내에서 root로 실행되므로 Linux 네임스페이스를 구성하는 것이 좋습니다.
@slack •
@discord •
@telegram •
notify 설정
@aboul3la @tomnomnom @lc @hahwul @projectdiscovery @maurosoria @shelld3v @devanshbatham @michenriksen @defparam @projectdiscovery
모든 기여자들에게 감사드립니다 contributors.md
경고: 이 코드는 원래 개인 용도로 제작되었으며, 상당한 양의 트래픽을 발생시킵니다. 주의해서 사용하세요.