gray_Hat_CH_1 Flashcards

basics start up

1
Q

how is loading python different when on Window vs Linux operating systems?

A

windows comes with an installer that takes care of all the set up. Whereas linux you are building the installation from the source code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

define dll

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are the 3 ways to load dynamic libraries in ctypes?

A

cdll()
windll()
oledll()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

describe cdll()

A

method is used for loading libraries that export fuctions using the standard cdecl calling convention.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

describe windll()

A

method loads libraries that export functions using the stdcall calling convention, which is the native convention of the microsoft win32 api.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

describe oledll()

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

define msvcrt.dll

A

it is the windows the c runtime. located in C:\WINDOWS\system32\

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

define libc.so.6

A

on linux the c runtime. located in /lib/ by default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly