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
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 360 91,288 03-28-2026, 09:28 AM
Last Post: catsweet
  [FREE] HTB-ProLabs APTLABS Just Flags kewlsunny 23 4,635 03-28-2026, 03:30 AM
Last Post: lulaladrow
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 597 91,733 03-27-2026, 10:54 PM
Last Post: w3soul
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 87 9,816 03-27-2026, 07:22 PM
Last Post: stn
  HTB Eloquia User and Root Flags - Insane Box 69646B 13 2,618 03-27-2026, 06:14 PM
Last Post: vlxw



 Users browsing this thread: