ducky.util module¶
-
class
ducky.util.
BinaryFile
(logger, stream)[source]¶ Bases:
object
Base class of all classes that represent “binary” files - binaries, core dumps. It provides basic methods for reading and writing structures.
-
class
ducky.util.
StringTable
(buff=None)[source]¶ Bases:
object
Simple string table, used by many classes operating with files (core, binaries, ...). String can be inserted into table and read, each has its starting offset and its end is marked with null byte ().
Thsi is a helper class - it makes working with string, e.g. section and symbol names, much easier.
-
buff
¶ Serialize internal string table to a stream of bytes.
-