Skip to content

Instantly share code, notes, and snippets.

@oleavr
Last active July 5, 2023 14:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oleavr/d6bd00b47771e834105d8cc42c9767b2 to your computer and use it in GitHub Desktop.
Save oleavr/d6bd00b47771e834105d8cc42c9767b2 to your computer and use it in GitHub Desktop.
Frida features vs binary footprint

All config.mk features enabled on linux-armhf

3.8M frida-inject
2.6M frida-portal
3.2M frida-server

 15M frida-agent.so
 15M frida-gadget.so

Step 1: Disable V8

3.8M frida-inject
2.6M frida-portal
3.2M frida-server

5.2M frida-agent.so
5.3M frida-gadget.so

Agent reduced by 9.8M.

Step 2: Disable connectivity features (TLS and ICE), eliminating OpenSSL

2.6M frida-inject
1.4M frida-portal
2.0M frida-server

3.6M frida-agent.so
3.7M frida-gadget.so

Agent reduced by 1.6M.

Step 3: Disable the GumJS Database API, eliminating SQLite

2.6M frida-inject
1.4M frida-portal
2.0M frida-server

3.2M frida-agent.so
3.3M frida-gadget.so

Agent reduced by 0.4M.

Step 4: Disable the GumJS bridges: ObjC, Swift, Java

2.6M frida-inject
1.4M frida-portal
2.0M frida-server

2.8M frida-agent.so
2.9M frida-gadget.so

Agent reduced by 0.4M. (This would be larger if V8 was enabled.)

@poon776
Copy link

poon776 commented Jul 4, 2023

@poon776
Copy link

poon776 commented Jul 4, 2023

@stephengillie
Copy link

@stephengillie

Hi @poon776,

How can I help?

@koonkoon
Copy link

koonkoon commented Jul 5, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment