~/write-ups/writeup-4607d93542
Assessment Methodologies: Information Gathering CTF 1
Imported from Notion: Assessment Methodologies: Information Gathering CTF 1
Pistas
-
This tells search engines what to and what not to avoid.
-
What website is running on the target, and what is its version?
-
Directory browsing might reveal where files are stored.
-
An overlooked backup file in the webroot can be problematic if it reveals sensitive configuration details.
-
Certain files may reveal something interesting when mirrored.
La primera pista es clara, debemos ir a robots.txt

FLAG1{fd846432423144d184ef2aa9ee6f2e8f}
Para la segunda usaremos nmap
nmap -sV -sC -p80 target.ine.local

FL@G2{debf93fd55034886833912b9fe9579bf}
La tercera nos habla de listar directorios, a si que usaremos dirb
dirb http://target.ine.local

Vamos a ver que hay en /wp-content/uploads

FLAG3{89158825de0a4667bb8913cbbf71a366}
La cuarta nos habla de archivos backup en la raiz de la web, para ello usaremos el siguiente comando:
dirb http://target.ine.local -w /usr/share/dirb/wordlists/big.txt -X .bak,.tar.gz,.zip,.sql,.bak.zip
Buscaremos archivos con las terminaciones posteriores a la flag -X

Vamos a ver que hay en http://target.ine.local/wp-config.bak con curl
curl http://target.ine.local/wp-config.bak

FLAG4{8783f645e74948a28b354303330dbcda}
Ahora para la quinta, dice que debemos hacer mirror a la web, usaremos httrack
httrack http://target.ine.local -O target.html

Ahora analizamos el contenido en target.html/target.ine.local y vemos un archivo .php sospechoso, llamado xmlrpc0db0.php a si que vamos a ver que hay en él.

FLAG5{5ce515e7d16843ef9df8427440aef04d}
- EOF -
<< back_to_index