You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libxdk/target/KxdbParser.h
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ class KxdbParser: protected BinaryReader {
30
30
std::map<uint64_t, Struct> struct_layouts_;
31
31
32
32
/**
33
-
* @brief Parses the symbols header section of the XdkDevice file.
33
+
* @brief Parses the symbols header section of the KXDB file.
34
34
* @details Reads the number of symbols and their metadata, storing the symbol names.
35
35
* @throws ExpKitError if there's an error reading the binary data.
36
36
*/
@@ -45,7 +45,7 @@ class KxdbParser: protected BinaryReader {
45
45
voidParseSymbols(Target& target);
46
46
47
47
/**
48
-
* @brief Parses the ROP actions header section of the XdkDevice file.
48
+
* @brief Parses the ROP actions header section of the KXDB file.
49
49
* @details Reads the number of ROP actions and their metadata, storing the ROP action IDs and optionally parsing detailed metadata.
50
50
* @param parse_known_metadata If true, parses the description and arguments for each ROP action.
51
51
* @throws ExpKitError if there's an error reading the binary data.
@@ -76,7 +76,7 @@ class KxdbParser: protected BinaryReader {
76
76
voidParsePivots(Target& target);
77
77
78
78
/**
79
-
* @brief Parses the structs header section of the XdkDevice file.
79
+
* @brief Parses the structs header section of the KXDB file.
80
80
* @details Reads the metadata for each struct, including its name and fields, and stores it. Also reads the offset to the struct layouts.
81
81
* @throws ExpKitError if there's an error reading the binary data.
82
82
*/
@@ -107,7 +107,7 @@ class KxdbParser: protected BinaryReader {
107
107
voidParseStructs(Target& target);
108
108
109
109
/**
110
-
* @brief Parses targets from the XdkDevice file that match the optional filter criteria.
110
+
* @brief Parses targets from the KXDB file that match the optional filter criteria.
111
111
* @param distro Optional filter for the distribution name.
112
112
* @param release_name Optional filter for the release name.
113
113
* @param version Optional filter for the version string.
@@ -138,20 +138,20 @@ class KxdbParser: protected BinaryReader {
138
138
139
139
/**
140
140
* @brief Constructs a KxdbParser from a buffer.
141
-
* @param buffer The buffer containing the XdkDevice data.
141
+
* @param buffer The buffer containing the KXDB data.
142
142
* @param size The size of the buffer.
143
143
*/
144
144
KxdbParser(constuint8_t* buffer, size_t size);
145
145
146
146
/**
147
147
* @brief Constructs a KxdbParser from a vector of bytes.
148
-
* @param data The vector containing the XdkDevice data.
148
+
* @param data The vector containing the KXDB data.
149
149
*/
150
150
KxdbParser(const std::vector<uint8_t> data);
151
151
152
152
/**
153
153
* @brief Constructs a KxdbParser by reading data from a file.
154
-
* @param filename The path to the XdkDevice file.
154
+
* @param filename The path to the KXDB file.
155
155
* @return A KxdbParser object initialized with the file's content.
156
156
* @throws ExpKitError if the file cannot be read.
157
157
*/
@@ -163,7 +163,7 @@ class KxdbParser: protected BinaryReader {
163
163
voidSetLog(ILog* log);
164
164
165
165
/**
166
-
* @brief Parses the header section of the XdkDevice file.
166
+
* @brief Parses the header section of the KXDB file.
167
167
* @details Reads the magic number, version, and the offsets to the different data sections (symbols, ROP actions, structs, targets). Optionally parses known metadata.
168
168
* @param parse_known_metadata If true, parses detailed metadata for ROP actions.
169
169
* @throws ExpKitError if the magic number is invalid, the version is unsupported, or there's an error reading the binary data.
@@ -193,7 +193,7 @@ class KxdbParser: protected BinaryReader {
193
193
bool throw_on_missing = false);
194
194
195
195
/**
196
-
* @brief Retrieves all targets available in the XdkDevice file.
196
+
* @brief Retrieves all targets available in the KXDB file.
197
197
* @return A vector of all Target objects found in the file.
Copy file name to clipboardExpand all lines: third_party/kernel-modules/xdk_device/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -251,15 +251,15 @@ Which results in a crash like (ROP chain item is executed):
251
251
252
252
## Automatically with kernel-image-runner
253
253
254
-
If you run `./run.sh` with `--custom-modules=xkd_device`, the module will be compiled and loaded automatically.
254
+
If you run `./run.sh` with `--custom-modules=xdk_device`, the module will be compiled and loaded automatically.
255
255
256
256
## Manually for kernel-image-runner targets
257
257
258
-
Run `./compile_custom_modules.sh (kernelctf|ubuntu) <release-name> xkd_device` and after the compilation process, the compiled module can be found at `rootfs/custom_modules/xkd_device.ko`.
258
+
Run `./compile_custom_modules.sh (kernelctf|ubuntu) <release-name> xdk_device` and after the compilation process, the compiled module can be found at `rootfs/custom_modules/xdk_device.ko`.
259
259
260
260
## Manually for custom kernels
261
261
262
262
Compile your kernel normally and then execute the following command from the same directory where you compiled your kernel (replace `<kernel-image-runner-dir>` with the root directory of the kernel-image-runner):
0 commit comments