gray_Hat_CH_1 Flashcards
basics start up
how is loading python different when on Window vs Linux operating systems?
windows comes with an installer that takes care of all the set up. Whereas linux you are building the installation from the source code.
define dll
dynamically linked library is a compiled binary that is linked at runtime you have to resovle the function addresses in order to call functions: however i.e. ctypes do all of the dirty work already.
what are the 3 ways to load dynamic libraries in ctypes?
cdll()
windll()
oledll()
describe cdll()
method is used for loading libraries that export fuctions using the standard cdecl calling convention.
describe windll()
method loads libraries that export functions using the stdcall calling convention, which is the native convention of the microsoft win32 api.
describe oledll()
method operates exactly like the windll() method however it assumes that the exported functions return a windows HRESULT error code, which is used specifially for error messages returned from Mircosoft Component Object Model (COM) functions.
define msvcrt.dll
it is the windows the c runtime. located in C:\WINDOWS\system32\
define libc.so.6
on linux the c runtime. located in /lib/ by default