Skip to content

Commit 96396b3

Browse files
committed
Removed unused class
1 parent 703be7e commit 96396b3

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

shellcode_emulator/run.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import struct
55
import traceback
66
import logging
7-
import sqlite3
87

98
from unicorn import *
109
from unicorn.x86_const import *
@@ -70,16 +69,6 @@ def AddHook(self, hook_type, callback, arg = None, start = 0, end = 0):
7069
def Start(self, start, end):
7170
self.uc.emu_start(start, end)
7271

73-
class ExecutionLogger:
74-
def __init__(self):
75-
self.Conn = sqlite3.connect("Emulator.db", check_same_thread = False)
76-
self.Cursor = self.Conn.cursor()
77-
self.Cursor.execute('''CREATE TABLE CodeExecution (address int)''')
78-
79-
def LogAddress(self, address):
80-
self.Cursor.execute("INSERT INTO CodeExecution VALUES (%d)" % address)
81-
self.Conn.commit()
82-
8372
class ShellEmu:
8473
def __init__(self, shellcode_filename, shellcode_bytes = '', dump_filename = ''):
8574
self.ShellcodeFilename = shellcode_filename

0 commit comments

Comments
 (0)