Skip to content

Commit 19e5e8b

Browse files
author
Your Name
committed
Changes to corpse metadata
1 parent 5b6d765 commit 19e5e8b

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "frida-cshell",
3-
"version": "1.8.2",
3+
"version": "1.8.3",
44
"description": "Frida's CShell",
55
"scripts": {
66
"prepare": "npm run version && npm run build && npm run package && npm run copy",

src/cmdlets/misc/corpse/corpse.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,17 @@ corpse - create a corpse file`;
162162
new Uint8Array([0x9d, 0xe2, 0xa8, 0x9e, 0x8d, 0xe8, 0xda, 0xfd]),
163163
];
164164
const ranges = Process.enumerateRanges('---').map(r => {
165+
const file = r.file
166+
? {
167+
file_path: r.file.path,
168+
file_offset: r.file.offset,
169+
}
170+
: null;
165171
return {
166172
base: `0x${r.base.toString(16)}`,
167173
size: r.size,
168174
protection: r.protection,
169-
file_path: r.file?.path ?? null,
170-
file_offset: r.file?.offset ?? null,
171-
file_size: r.file?.size ?? null,
175+
file,
172176
};
173177
});
174178
const modules = Process.enumerateModules().map(m => {

0 commit comments

Comments
 (0)