mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-29 11:53:23 +08:00
[!] snippet "export" fixed
git-svn-id: https://pykd.svn.codeplex.com/svn@57287 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
5101d95766
commit
d2632027f5
@ -23,6 +23,9 @@ def export( moduleName, mask = "*" ):
|
||||
dprintln( "Export RVA: %x Size: %x" % ( ntHeader.OptionalHeader.DataDirectory[0].VirtualAddress, ntHeader.OptionalHeader.DataDirectory[0].Size ) )
|
||||
dprintln( "========================" )
|
||||
|
||||
if ntHeader.OptionalHeader.DataDirectory[0].Size == 0:
|
||||
return
|
||||
|
||||
exportDirAddr = module.begin() + ntHeader.OptionalHeader.DataDirectory[0].VirtualAddress;
|
||||
|
||||
namesCount = ptrDWord( exportDirAddr + 0x18 )
|
||||
|
Loading…
Reference in New Issue
Block a user