Temporary Advertisements:
Ad
Ad
Ad
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
(Mar 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

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Leeching | http://c66go4clkqodr7tdjfu76jztjs7w7d3fajdeypxn73v4ju3dt7g5yyyd.onion/Forum-Ban-Appeals if you feel this is incorrect.
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
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 84 11,153 7 hours ago
Last Post: groningen1981
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 165 34,650 7 hours ago
Last Post: groningen1981
  Finding solutions/flags/writeups for challenges meomeothantai 0 120 11 hours ago
Last Post: meomeothantai
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 625 115,314 Today, 03:26 AM
Last Post: kevin25hxl
  [FREE] CPTS 12 FLAGS pulsebreaker 168 19,533 Today, 12:57 AM
Last Post: blooper1337

Forum Jump:


 Users browsing this forum: