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 106 42,235 10-31-2026, 07:33 PM
Last Post: aistax
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 608 148,758 10-31-2026, 03:08 PM
Last Post: Gripson
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 383 138,755 10-31-2026, 11:47 AM
Last Post: thaytoiyeucoay30nam
  HTB PWN- Oxidized ROP macavitysworld 4 1,042 10-29-2026, 01:01 PM
Last Post: A1Raid3r
  HTB - code + titanic walkthrough | free tony_boom23 3 7,259 10-25-2026, 06:35 AM
Last Post: A1Raid3r



 Users browsing this thread: 1 Guest(s)