GithubHelp home page GithubHelp logo

frida-swift's Introduction

Frida

Dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers. Learn more at frida.re.

Two ways to install

1. Install from prebuilt binaries

This is the recommended way to get started. All you need to do is:

pip install frida-tools # CLI tools
pip install frida       # Python bindings
npm install frida       # Node.js bindings

You may also download pre-built binaries for various operating systems from Frida's releases page on GitHub.

2. Build your own binaries

Dependencies

For running the Frida CLI tools, e.g. frida, frida-ls-devices, frida-ps, frida-kill, frida-trace, frida-discover, etc., you need Python plus a few packages:

pip install colorama prompt-toolkit pygments

Linux

make

Apple OSes

First make a trusted code-signing certificate. You can use the guide at https://sourceware.org/gdb/wiki/PermissionsDarwin in the sections “Create a certificate in the System Keychain” and “Trust the certificate for code signing”. You can use the name frida-cert instead of gdb-cert if you'd like.

Next export the name of the created certificate to relevant environment variables, and run make:

export MACOS_CERTID=frida-cert
export IOS_CERTID=frida-cert
export WATCHOS_CERTID=frida-cert
export TVOS_CERTID=frida-cert
make

To ensure that macOS accepts the newly created certificate, restart the taskgated daemon:

sudo killall taskgated

Windows

frida.sln

(Requires Visual Studio 2022.)

See https://frida.re/docs/building/ for details.

Learn more

Have a look at our documentation.

frida-swift's People

Contributors

c128128 avatar everettjf avatar johncoates avatar klmitchell2 avatar oleavr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

frida-swift's Issues

Missing required module 'CFrida' when importing Frida as a framework

I'm attempting to add Frida.framework (generated from this project) to another framework and I am receiving the following error:

Missing required module 'CFrida'

From Xcode, it appears thats Frida can be properly imported but then I receive the above error.

Let me know if this is not a bug and I can remove this issue. Thanks!

meson.build:1:0: ERROR: Compiler

Hello,

To start I can close this ticket in favor of making an issue within the Frida repo instead.

I am attempting to follow the install directions and I have encountered this error when running make core-macos

I have also followed the instructions outlined in here: https://github.com/frida/frida/blob/master/README.md#macos-and-ios

meson.build:1:0: ERROR: Compiler /Users/kevin/Desktop/frida/build/frida-macos-x86-clang can not compile programs.

A full log can be found at /Users/kevin/Desktop/frida/build/tmp-macos-x86/frida-gum/meson-logs/meson-log.txt
make[1]: *** [build/frida-macos-x86/lib/pkgconfig/frida-gum-1.0.pc] Error 1
make: *** [core-macos] Error 2

Here is the output of meson-log.txt:

Build started at 2020-03-24T22:47:17.817773
Main binary: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3
Python system: Darwin
The Meson build system
Version: 0.49.2
Source dir: /Users/kevin/Desktop/frida/frida-gum
Build dir: /Users/kevin/Desktop/frida/build/tmp-macos-x86/frida-gum
Build type: cross build
Project name: frida-gum
Project version: 1.0.0
Sanity testing C compiler: /Users/kevin/Desktop/frida/build/frida-macos-x86_64-clang
Is cross compiler: False.
Sanity check compiler command line: /Users/kevin/Desktop/frida/build/frida-macos-x86_64-clang /Users/kevin/Desktop/frida/build/tmp-macos-x86/frida-gum/meson-private/sanitycheckc.c -o /Users/kevin/Desktop/frida/build/tmp-macos-x86/frida-gum/meson-private/sanitycheckc.exe
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /Users/kevin/Desktop/frida/build/tmp-macos-x86/frida-gum/meson-private/sanitycheckc.exe
Appending CFLAGS from environment: '-fPIC '
Appending LDFLAGS from environment: '-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -arch x86_64 -Wl,-dead_strip -L/Users/kevin/Desktop/frida/build/frida-macos-x86_64/lib -L/Users/kevin/Desktop/frida/build/sdk-macos-x86_64/lib'
Appending CPPFLAGS from environment: '-include /Users/kevin/Desktop/frida/build/frida-version.h -mmacosx-version-min=10.9 -I/Users/kevin/Desktop/frida/build/frida-macos-x86_64/include -I/Users/kevin/Desktop/frida/build/sdk-macos-x86_64/include'
Sanity testing C compiler: /Users/kevin/Desktop/frida/build/frida-macos-x86-clang
Is cross compiler: True.
Sanity check compiler command line: /Users/kevin/Desktop/frida/build/frida-macos-x86-clang -mmacosx-version-min=10.9 -I/Users/kevin/Desktop/frida/build/frida-macos-x86/include -I/Users/kevin/Desktop/frida/build/sdk-macos-x86/include -include /Users/kevin/Desktop/frida/build/frida-version.h -mmacosx-version-min=10.9 -Wl,-dead_strip -L/Users/kevin/Desktop/frida/build/frida-macos-x86/lib -L/Users/kevin/Desktop/frida/build/sdk-macos-x86/lib /Users/kevin/Desktop/frida/build/tmp-macos-x86/frida-gum/meson-private/sanitycheckc.c -o /Users/kevin/Desktop/frida/build/tmp-macos-x86/frida-gum/meson-private/sanitycheckc_cross.exe
Sanity check compile stdout:

-----
Sanity check compile stderr:
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/libSystem.tbd
ld: dynamic main executables must link with libSystem.dylib for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

-----

meson.build:1:0: ERROR:  Compiler /Users/kevin/Desktop/frida/build/frida-macos-x86-clang can not compile programs.

Thanks for any help that can be provided. I'd love to include this in my project, but just having a hard time getting set up.

Reference to `FridaDeviceManager` is ambiguous

Hey 👋 ,

I am trying to install frida-swift but I receive this error when I attempt to run the tests. Building the framework does not produce errors, but I am getting this compile error:
image

This is happening for FridaDevice, FridaSession, and FridaScript.

Undefined symbols when building for iOS

Built for ios
make core-ios-thin
Then generated devkit
./releng/devkit.py -t frida-core ios-arm64 ./frida-swift/CFrida-ios/ios-arm64/
Added an iOS target and linked with iOS lib
Had to remove the APIs which used NSImage

Ran into issues with linked now:

Undefined symbols for architecture arm64:
  "_res_9_dn_expand", referenced from:
      _do_lookup_records in libfrida-core.a(gthreadedresolver.c.o)
  "_res_9_ninit", referenced from:
      _do_lookup_records in libfrida-core.a(gthreadedresolver.c.o)
  "_res_9_nquery", referenced from:
      _do_lookup_records in libfrida-core.a(gthreadedresolver.c.o)
  "_res_9_ndestroy", referenced from:
      _do_lookup_records in libfrida-core.a(gthreadedresolver.c.o)
  "_res_9_init", referenced from:
      _g_resolver_maybe_reload in libfrida-core.a(gresolver.c.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Am I missing something?

How to build it ?

I have clonned frida recursive, and I try to build frida-swift

I run:
make core-macos-thin as pointed in README

But I get:

make[1]: *** No rule to make target `core-macos-thin'.  Stop.
make: *** [core-macos-thin] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.