Interface

FridaInjector

Description [src]

interface Frida.Injector : GObject.Object

Injects shared libraries into processes, the lower-level primitive underlying agent injection.

Prerequisite

In order to implement Injector, your type must inherit fromGObject.

Functions

frida_injector_new

Creates an injector backed by a helper process, suitable for injecting into other processes.

frida_injector_new_inprocess

Creates an in-process injector, for injecting into the current process.

Instance methods

frida_injector_close

Closes the injector, releasing its resources.

frida_injector_close_finish

Closes the injector, releasing its resources.

frida_injector_close_sync

Closes the injector, releasing its resources.

frida_injector_inject_library_file

Injects a shared library from a file into a process.

frida_injector_inject_library_file_finish

Injects a shared library from a file into a process.

frida_injector_inject_library_file_sync

Injects a shared library from a file into a process.

frida_injector_inject_library_blob

Injects a shared library from an in-memory blob into a process.

frida_injector_inject_library_blob_finish

Injects a shared library from an in-memory blob into a process.

frida_injector_inject_library_blob_sync

Injects a shared library from an in-memory blob into a process.

frida_injector_demonitor

Stops monitoring an injected library, so its unload is no longer tracked.

frida_injector_demonitor_finish

Stops monitoring an injected library, so its unload is no longer tracked.

frida_injector_demonitor_sync

Stops monitoring an injected library, so its unload is no longer tracked.

frida_injector_demonitor_and_clone_state

Stops monitoring an injection and clones its state into a new injection that inherits it.

frida_injector_demonitor_and_clone_state_finish

Stops monitoring an injection and clones its state into a new injection that inherits it.

frida_injector_demonitor_and_clone_state_sync

Stops monitoring an injection and clones its state into a new injection that inherits it.

frida_injector_recreate_thread

Recreates the thread used by an injection in the target process, for example after the process has forked.

frida_injector_recreate_thread_finish

Recreates the thread used by an injection in the target process, for example after the process has forked.

frida_injector_recreate_thread_sync

Recreates the thread used by an injection in the target process, for example after the process has forked.

Signals

Frida.Injector::uninjected

Emitted when an injected library has been unloaded.

Interface structure

struct FridaInjectorIface {
  void (* close) (
    FridaInjector* self,
    GCancellable* cancellable,
    GAsyncReadyCallback _callback_,
    void* _callback__target
  );
  void (* close_finish) (
    FridaInjector* self,
    GAsyncResult* _res_,
    GError** error
  );
  void (* inject_library_file) (
    FridaInjector* self,
    guint pid,
    const gchar* path,
    const gchar* entrypoint,
    const gchar* data,
    GCancellable* cancellable,
    GAsyncReadyCallback _callback_,
    void* _callback__target
  );
  guint (* inject_library_file_finish) (
    FridaInjector* self,
    GAsyncResult* _res_,
    GError** error
  );
  void (* inject_library_blob) (
    FridaInjector* self,
    guint pid,
    GBytes* blob,
    const gchar* entrypoint,
    const gchar* data,
    GCancellable* cancellable,
    GAsyncReadyCallback _callback_,
    void* _callback__target
  );
  guint (* inject_library_blob_finish) (
    FridaInjector* self,
    GAsyncResult* _res_,
    GError** error
  );
  void (* demonitor) (
    FridaInjector* self,
    guint id,
    GCancellable* cancellable,
    GAsyncReadyCallback _callback_,
    void* _callback__target
  );
  void (* demonitor_finish) (
    FridaInjector* self,
    GAsyncResult* _res_,
    GError** error
  );
  void (* demonitor_and_clone_state) (
    FridaInjector* self,
    guint id,
    GCancellable* cancellable,
    GAsyncReadyCallback _callback_,
    void* _callback__target
  );
  guint (* demonitor_and_clone_state_finish) (
    FridaInjector* self,
    GAsyncResult* _res_,
    GError** error
  );
  void (* recreate_thread) (
    FridaInjector* self,
    guint pid,
    guint id,
    GCancellable* cancellable,
    GAsyncReadyCallback _callback_,
    void* _callback__target
  );
  void (* recreate_thread_finish) (
    FridaInjector* self,
    GAsyncResult* _res_,
    GError** error
  );
  
}

No description available.

Interface members
close
void (* close) (
    FridaInjector* self,
    GCancellable* cancellable,
    GAsyncReadyCallback _callback_,
    void* _callback__target
  )
 

No description available.

close_finish
void (* close_finish) (
    FridaInjector* self,
    GAsyncResult* _res_,
    GError** error
  )
 

No description available.

inject_library_file
void (* inject_library_file) (
    FridaInjector* self,
    guint pid,
    const gchar* path,
    const gchar* entrypoint,
    const gchar* data,
    GCancellable* cancellable,
    GAsyncReadyCallback _callback_,
    void* _callback__target
  )
 

No description available.

inject_library_file_finish
guint (* inject_library_file_finish) (
    FridaInjector* self,
    GAsyncResult* _res_,
    GError** error
  )
 

No description available.

inject_library_blob
void (* inject_library_blob) (
    FridaInjector* self,
    guint pid,
    GBytes* blob,
    const gchar* entrypoint,
    const gchar* data,
    GCancellable* cancellable,
    GAsyncReadyCallback _callback_,
    void* _callback__target
  )
 

No description available.

inject_library_blob_finish
guint (* inject_library_blob_finish) (
    FridaInjector* self,
    GAsyncResult* _res_,
    GError** error
  )
 

No description available.

demonitor
void (* demonitor) (
    FridaInjector* self,
    guint id,
    GCancellable* cancellable,
    GAsyncReadyCallback _callback_,
    void* _callback__target
  )
 

No description available.

demonitor_finish
void (* demonitor_finish) (
    FridaInjector* self,
    GAsyncResult* _res_,
    GError** error
  )
 

No description available.

demonitor_and_clone_state
void (* demonitor_and_clone_state) (
    FridaInjector* self,
    guint id,
    GCancellable* cancellable,
    GAsyncReadyCallback _callback_,
    void* _callback__target
  )
 

No description available.

demonitor_and_clone_state_finish
guint (* demonitor_and_clone_state_finish) (
    FridaInjector* self,
    GAsyncResult* _res_,
    GError** error
  )
 

No description available.

recreate_thread
void (* recreate_thread) (
    FridaInjector* self,
    guint pid,
    guint id,
    GCancellable* cancellable,
    GAsyncReadyCallback _callback_,
    void* _callback__target
  )
 

No description available.

recreate_thread_finish
void (* recreate_thread_finish) (
    FridaInjector* self,
    GAsyncResult* _res_,
    GError** error
  )
 

No description available.

Virtual methods

Frida.Injector.close

Closes the injector, releasing its resources.

Frida.Injector.close_finish

Closes the injector, releasing its resources.

Frida.Injector.inject_library_file

Injects a shared library from a file into a process.

Frida.Injector.inject_library_file_finish

Injects a shared library from a file into a process.

Frida.Injector.inject_library_blob

Injects a shared library from an in-memory blob into a process.

Frida.Injector.inject_library_blob_finish

Injects a shared library from an in-memory blob into a process.

Frida.Injector.demonitor

Stops monitoring an injected library, so its unload is no longer tracked.

Frida.Injector.demonitor_finish

Stops monitoring an injected library, so its unload is no longer tracked.

Frida.Injector.demonitor_and_clone_state

Stops monitoring an injection and clones its state into a new injection that inherits it.

Frida.Injector.demonitor_and_clone_state_finish

Stops monitoring an injection and clones its state into a new injection that inherits it.

Frida.Injector.recreate_thread

Recreates the thread used by an injection in the target process, for example after the process has forked.

Frida.Injector.recreate_thread_finish

Recreates the thread used by an injection in the target process, for example after the process has forked.