Topic 4: Exploitation basics Flashcards

1
Q

what is executable & linkable format (ELF)?

A

common format for executable and library files on modern *nix systems

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

what do all elf begin with?

A

“magic number” = 0x7F’E’‘L’‘F’

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

what are sections / the 2 types?

A

organize binary into logical sections used by the linker and loaders
.bss is uninitialized data (global variables)
.text is code

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

what are segments?

A

define the parts that should be loaded into memory and how the readelf command examines ELF file data

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

what is process/what does it provide?

A

instance of a running program, provides each program with 2 key abstractions: logical control flow & private address space

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

difference between virtual and physical memory?

A

can be larger than physical memory, virtual is always mapped, not all pages need to be in physical memory to run program

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

when is address in kernel space?

A

if most significant bit is 1 otherwise its in user/application space

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

what is heap / how is it accessed?

A

dynamically allocated data, malloc(), calloc(), realloc(), free()

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