There is an external dll. I connect it with ctypes. Prompt how to pull out the list of methods which is in.

from ctypes import * libc = CDLL("lib.dll") 

in python newbie.

  • I don’t know about libraries, but the list of object methods can be viewed through dir (object). If it does not show the list of methods of the library itself, it can be prompted to call which method to get this list) - BOPOH
  • one
    Here they say that it is impossible ... dir does not show anything good (UPD: Maybe this is what you need (last comment)? - BOPOH
  • @BOPOH The second option seems to work, it brought a bunch of words that are similar to the names of the methods. I will continue to study. - naym

1 answer 1

The answer from the @BOPOH comment to the question:

 import os, pefile dll = 'C:\Windows\system32\comdlg32.dll' pe = pefile.PE(dll) """ pefile module can be downloaded at: http://code.google.com/p/pefile/ """ print "DLL IMPORT Reading (DLL dependencies) for: " + os.path.basename(dll) for entry in pe.DIRECTORY_ENTRY_IMPORT: print entry.dll for imp in entry.imports: print '\t', hex(imp.address), imp.name print("DLL EXPORT Reading:" + os.path.basename(dll)) for exp in pe.DIRECTORY_ENTRY_EXPORT.symbols: print hex(pe.OPTIONAL_HEADER.ImageBase + exp.address), exp.name, exp.ordinal # pe.dump_info()