Skip to content

Commit

Permalink
Fix thumb code detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jul 8, 2024
1 parent eebe983 commit 1b3740c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,15 @@ RUN arm-none-linux-gnueabihf-gcc \
-no-pie \
-shared \
-fPIC \
-marm \
-o module.so \
/root/module.c
RUN arm-none-linux-gnueabihf-gcc \
-g \
-Wall \
-Werror \
-no-pie \
-marm \
-o target \
/root/target.c
RUN mkdir /root/arm64
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frida-cshell",
"version": "1.1.7",
"version": "1.1.8",
"description": "Frida's CShell",
"scripts": {
"prepare": "npm run build && npm run version && npm run package && npm run copy",
Expand Down
2 changes: 1 addition & 1 deletion src/cmdlets/assembly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class AssemblyCmdLet extends CmdLet {

private isThumb(address: NativePointer): boolean {
if (Process.arch !== 'arm') return false;
if (address.and(1) === ptr(0)) return false;
if (address.and(1).equals(ptr(0))) return false;
return true;
}

Expand Down

0 comments on commit 1b3740c

Please sign in to comment.