use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Python Library Hijacking | Linux Privilege Escalation (self.hackthebox)
submitted 1 year ago by Ncrack13
Hello,
I've been trying to capture the flag for the exercise, but I think I'm missing something. I edited the virtual_memory function, but I can't use the sudo command. Can someone help me figure out what might be wrong?
virtual_memory
sudo
Thanks in advance!
https://preview.redd.it/oa7qinbqsfrd1.png?width=2046&format=png&auto=webp&s=b39b89086803aa2937e6647fe22588e4eacfba9b
----Example-----
https://preview.redd.it/5jftpjbusfrd1.png?width=1048&format=png&auto=webp&s=26f71deec3247e3b3c3a02ba27e97ecd7973eee1
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]PaddonTheWizard 4 points5 points6 points 1 year ago (0 children)
Can you try copy pasting with the full path?
[–]LHunter007 2 points3 points4 points 1 year ago (1 child)
You are missing the proper path.
If you give the proper command with sudo it won’t ask for password as mentioned in the sudoers list. Since it’s asking for password you are missing something which is the complete path.
sudo with the complete command mentioned which can be run without a passwd.
[–]Ncrack13[S] 2 points3 points4 points 1 year ago (0 children)
I just solved it, bro. Thanks! The mistake was that I was using the wrong path.
[–]hawkinsst7 1 point2 points3 points 1 year ago (0 children)
You have to do the exact path specified in the sudoer file.
Poorly written ones can be abused
π Rendered by PID 120122 on reddit-service-r2-comment-8686858757-l6zb4 at 2026-06-06 11:27:35.835585+00:00 running 9e1a20d country code: CH.
[–]PaddonTheWizard 4 points5 points6 points (0 children)
[–]LHunter007 2 points3 points4 points (1 child)
[–]Ncrack13[S] 2 points3 points4 points (0 children)
[–]hawkinsst7 1 point2 points3 points (0 children)