forked from fkie-cad/friTap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom.js
More file actions
19 lines (18 loc) · 741 Bytes
/
Copy pathcustom.js
File metadata and controls
19 lines (18 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
* Example code for using custom hooks in friTap.
* To ensure friTap prints content, include a "custom" field in your message payload.
* The value of this "custom" field will be displayed by friTap.
*/
// Iterate over all loaded modules
Process.enumerateModules().forEach(module => {
// Enumerate exports for each module
module.enumerateExports().forEach(exp => {
// Check if the export name contains "ssl" or "tls" || exp.name.toLowerCase().includes("tls")
if (exp.name.toLowerCase().includes("ssl") ) {
// Send the result to Python
send({
custom: `Found export: ${exp.name} in module: ${module.name} at address: ${exp.address}`
});
}
});
});