Example #1
0
def main(args):
    ioctl_list = []
    device_list = []

    imm = Debugger()
    driver = driverlib.Driver()

    ioctl_list = drvier.getIOCTLCodes()
    if not len(ioctl_list):
        return "[*] ERROR! Couldn't find any IOCTL codes."

    device_list = driver.getDeviceNames()
    if not len(device_list):
        return "[*] ERROR! Couldn't find any device names."

    master_list = {}
    master_list["ioctl_list"] = ioctl_list
    master_list["device_list"] = device_list

    filename = "%s.fuzz" % imm.getDebuggedName()
    fd = open(filename, "wb")

    pickle.dump(master_list, fd)
    fd.close()

    return "[*] Success! Saved IOCTL codes and device names to %s" % filename
Example #2
0
def main(args):
	ioctl_list = []
	device_list = []

	imm = Debugger()
	driver = driverlib.Driver()

	# Grab the list of IOCTL codes and device names
	ioctl_list = driver.getIOCTLCodes()
	if not len(ioctl_list):
		return "[*] ERROR! Couldn't find any IOCTL codes."

	device_list = driver.getDeviceNames()
	if not len(device_list):
		return "[*] ERROR! Couldn't find any device names."

	# Now create a keyed dictionary and picle it to a file
	master_list = {}
	master_list["ioctl_list"] = ioctl_list
	master_list["device_list"] = device_list

	filename = "{fname}.fuzz".format(fname = imm.getDebuggedName())
	
	with open(filename, 'wb') as fd:
		pickle.dump(master_list, fd)

	return "[*] SUCCESS! Saved IOCTL codes and device names to {fname}".format(fname = filename)
def main(args):
    ioctl_list = []
    device_list = []

    imm = Debugger()
    driver = driverlib.Driver()

    # Grab the list of IOCTL codes and device names
    ioctl_list = driver.getIOCTLCodes()
    if not len(ioctl_list):
        return "[*] ERROR! Couldn't find any IOCTL codes."

    device_list = driver.getDeviceNames()
    if not len(device_list):
        return "[*] ERROR! Couldn't find any device names."

    # Now create a keyed dictionary and pickle it to a file
    master_list = {}
    master_list["ioctl_list"] = ioctl_list
    master_list["device_list"] = device_list

    filename = "%s.fuzz" % imm.getDebuggedName()
    fd = open(filename, "wb")

    pickle.dump(master_list, fd)
    fd.close()

    return "[*] SUCCESS! Saved IOCTL codes and device names to %s" % filename
Example #4
0
def main(args):
    ioctl_list = []
    device_list = []
    imm = Debugger()
    driver = driverlib.Driver()

    ioctl_list = driver.getIOCTLCodes()

    if not len(ioctl_list):
        return "[*] ERROR! Couldn't find any IOCTL codes."

    device_list = driver.getDeviceNames()

    if not len(device_list):
        return "[*] ERROR! Coudln't find any device names."

    #dictionary를 만들고 추출한 정보를 저장한다.
    master_list = {}
    master_list['ioctl_list'] = ioctl_list
    master_list['device_list'] = device_list

    filename = "%s.fuzz" % imm.getDebuggedName()
    fd = open(filename, "wb")
    pickle.dump(master_list, fd)
    fd.close()

    return "[*] SUCCESS! Saved IOCTL codes and device names to %s" % filename
Example #5
0
 def activate(self, ctx):
     if ctypes.windll.shell32.IsUserAnAdmin() == 0:
         print "Admin privileges required"
         return
     name = idc.GetInputFile().split('.')[0]
     driver = driverlib.Driver(idc.GetInputFilePath(), name)
     loaded = driver.load()
     started = driver.start()
Example #6
0
 def activate(self, ctx):
     if ctypes.windll.shell32.IsUserAnAdmin() == 0:
         print "Admin privileges required"
         return
     name = idc.ida_nalt.get_root_filename().split('.')[0]
     driver = driverlib.Driver(idc.ida_nalt.get_root_filenamePath(), name)
     driver.load()
     driver.start()
Example #7
0
 def activate(self, ctx):
     ind = ctx.chooser_selection.at(0)
     ioctl = self.items[ind - 1]
     name = idc.GetInputFile().split('.')[0]
     driver = driverlib.Driver(idc.GetInputFilePath(), name)
     DisplayIOCTLSForm(ioctl, driver)
Example #8
0
 def activate(self, ctx):
     ind = ctx.chooser_selection.at(0)
     ioctl = self.items[ind - 1]
     name = idc.ida_nalt.get_root_filename().split('.')[0]
     driver = driverlib.Driver(idc.ida_nalt.get_root_filenamePath(), name)
     DisplayIOCTLSForm(ioctl, driver)