~/write-ups/writeup-4607d93542

Assessment Methodologies: Information Gathering CTF 1

Imported from Notion: Assessment Methodologies: Information Gathering CTF 1

target:: Notion MEDIUM date:: 2026.07.26 notion

Pistas

  1. This tells search engines what to and what not to avoid.

  2. What website is running on the target, and what is its version?

  3. Directory browsing might reveal where files are stored.

  4. An overlooked backup file in the webroot can be problematic if it reveals sensitive configuration details.

  5. Certain files may reveal something interesting when mirrored.


La primera pista es clara, debemos ir a robots.txt

Notion image
Notion image

FLAG1{fd846432423144d184ef2aa9ee6f2e8f}


Para la segunda usaremos nmap

nmap -sV -sC -p80 target​.ine.l​ocal
Notion image
Notion image

FL@G2{debf93fd55034886833912b9fe9579bf}


La tercera nos habla de listar directorios, a si que usaremos dirb

dirb http://targe​t.ine.​local
Notion image
Notion image

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

Notion image
Notion image

FLAG3{89158825de0a4667bb8913cbbf71a366}


La cuarta nos habla de archivos backup en la raiz de la web, para ello usaremos el siguiente comando:

dirb http://targe​t.ine.​local -w /usr/s​hare/d​irb/wo​rdlist​s/big.​txt -X .bak,.tar.gz,.zip,.sql,.bak.zip

Buscaremos archivos con las terminaciones posteriores a la flag -X

Notion image
Notion image

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

curl http://targe​t.ine.​local/​wp-con​fig.ba​k
Notion image
Notion image

FLAG4{8783f645e74948a28b354303330dbcda}


Ahora para la quinta, dice que debemos hacer mirror a la web, usaremos httrack

httrack http://targe​t.ine.​local -O target.html
Notion image
Notion image

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.

Notion image
Notion image

FLAG5{5ce515e7d16843ef9df8427440aef04d}


- EOF -

<< back_to_index