Я пытаюсь сделать простую перехват API, используя отладчик иммунитета, теперь я следовал этому уроку отсюда http://c0defreak.blogspot.com/2013/03/sniffing-data-before-its-gets-encryted.html, и я сохранил скрипт python в папке pycommands, и когда я запустил команду, я получаю это как ошибку
Unable to read memory of debugged process. Breakpoint at FFFFFFFF is deleted.
Пожалуйста, что мне кажется отсутствующим?
Редактировать
Код, который я использую для проверки выглядит так
from immlib import *
class fire (LogBpHook) :
def __init__(self):
self.imm=Debugger();
self.logfile = "C:\\Users\\user\\Desktop\\ff_log.txt"
#directory where the log file has to be saved
LogBpHook.__init__(self)
def run(self,regs):
addr=self.imm.readLong(regs['ESP']+8)
str=self.imm.readString(addr)
self.imm.log("PR_Write ( 0x%x) <- %s" % (addr,str) )
fd = open( self.logfile, "a" )
fd.write( str )
fd.close()
# this function run automatically when hook is hit and function code is #executed which logs it in to file and displays on log window of debugger
def main(args) :
imm=Debugger()
wfun=imm.getAddress("nss3.PR_Write")
#setup hook point
fire_hook=fire()
fire_hook.add( "%08x" % wfun, wfun)
return "[*] READY for ACTION"
Я нажал кнопку «Воспроизвести» и попытался войти в форму из браузера firefox, который не отображается в отладчике иммунитета и не отображается в текстовом файле.