segment
Segment management
Segment
Segment
This class represents IDA segments.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
segment |
Segment
|
Segment protobuf information |
required |
program |
Program
|
Program back reference |
required |
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
Segment name |
start |
AddressT
|
Segment starting address |
permissions |
int
|
Segment permissions |
size |
int
|
Segment size |
type |
SegmentType
|
Segment type |
program |
Program
|
Program reference |
file_offset |
int
|
Segment offset in the file (if appropriate) |
Source code in quokka/segment.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
|
end: AddressT
property
End address of the segment
__init__(segment, program)
Constructor
Source code in quokka/segment.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|
executable()
Is the segment executable?
Source code in quokka/segment.py
71 72 73 |
|
in_segment(addr)
Does addr
belong to this segment ?
Source code in quokka/segment.py
79 80 81 |
|
readable()
Is the segment readable?
Source code in quokka/segment.py
75 76 77 |
|
writable()
Is the segment writable?
Source code in quokka/segment.py
67 68 69 |
|