Files
Kiran Bandla df3980cb77 Added 1.83
2013-03-25 15:33:17 -04:00

23 lines
721 B
Python
Executable File

"""pycmd example"""
DESC="""Find a exported function on the loaded dll"""
import immlib
def usage(imm):
imm.log("!dependencies Find an exported function on the loaded dll")
imm.log("!dependencies module.function")
imm.log("ex: !dependencies rpcrt4.rpcserveruseprotseqw")
def main(args):
imm=immlib.Debugger()
if len(args) !=1:
usage(imm)
return "Error: Wrong arguments"
result = imm.findDependecies( [ args[0] ] )
ret = 0
for modname in result.keys():
for mod in result[modname]:
imm.log("Found: %20s on %s" % (modname, mod.name), address = mod.address)
ret +=1
return "Found %d dependencies" % ret