frida 16.7.14 → 16.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -10
- package/build/BSDmakefile +6 -0
- package/build/Makefile +10 -0
- package/build/src/frida.d.ts +364 -0
- package/build/src/frida.js +962 -0
- package/build/src/frida_binding.d.ts +938 -0
- package/meson.build +22 -67
- package/package.json +30 -20
- package/scripts/fetch-abi-bits.py +15 -65
- package/scripts/install.js +5 -4
- package/src/addon.def +3 -0
- package/src/addon.symbols +2 -1
- package/src/addon.version +4 -0
- package/src/assets/meson.build +13 -0
- package/src/frida_bindgen/__init__.py +0 -0
- package/src/frida_bindgen/__main__.py +4 -0
- package/src/frida_bindgen/__pycache__/__init__.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/__main__.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/cli.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/codegen.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/customization.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/loader.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/model.cpython-312.pyc +0 -0
- package/src/frida_bindgen/assets/codegen_helpers.c +1970 -0
- package/src/frida_bindgen/assets/codegen_helpers.ts +100 -0
- package/src/frida_bindgen/assets/codegen_prototypes.h +78 -0
- package/src/frida_bindgen/assets/codegen_types.h +57 -0
- package/src/frida_bindgen/assets/customization_facade.exports +13 -0
- package/src/frida_bindgen/assets/customization_facade.ts +157 -0
- package/src/frida_bindgen/assets/customization_helpers.imports +2 -0
- package/src/frida_bindgen/assets/customization_helpers.ts +396 -0
- package/src/frida_bindgen/cli.py +96 -0
- package/src/frida_bindgen/codegen.py +2233 -0
- package/src/frida_bindgen/customization.py +924 -0
- package/src/frida_bindgen/loader.py +60 -0
- package/src/frida_bindgen/model.py +1357 -0
- package/src/meson.build +94 -27
- package/{lib/build.py → src/tsc.py} +12 -12
- package/src/win_delay_load_hook.c +56 -0
- package/subprojects/frida-core.wrap +1 -1
- package/test/data/index.ts +2 -2
- package/test/device.ts +1 -2
- package/test/device_manager.ts +1 -2
- package/test/labrat.ts +2 -2
- package/test/script.ts +12 -12
- package/test/session.ts +3 -3
- package/tsconfig.json +6 -11
- package/dist/application.d.ts +0 -81
- package/dist/application.js +0 -2
- package/dist/authentication.d.ts +0 -3
- package/dist/authentication.js +0 -2
- package/dist/bus.d.ts +0 -16
- package/dist/bus.js +0 -23
- package/dist/cancellable.d.ts +0 -15
- package/dist/cancellable.js +0 -41
- package/dist/child.d.ts +0 -16
- package/dist/child.js +0 -9
- package/dist/crash.d.ts +0 -10
- package/dist/crash.js +0 -2
- package/dist/device.d.ts +0 -156
- package/dist/device.js +0 -188
- package/dist/device_manager.d.ts +0 -25
- package/dist/device_manager.js +0 -42
- package/dist/endpoint_parameters.d.ts +0 -26
- package/dist/endpoint_parameters.js +0 -24
- package/dist/icon.d.ts +0 -14
- package/dist/icon.js +0 -2
- package/dist/index.d.ts +0 -161
- package/dist/index.js +0 -170
- package/dist/iostream.d.ts +0 -13
- package/dist/iostream.js +0 -73
- package/dist/native.d.ts +0 -1
- package/dist/native.js +0 -11
- package/dist/portal_membership.d.ts +0 -6
- package/dist/portal_membership.js +0 -12
- package/dist/portal_service.d.ts +0 -48
- package/dist/portal_service.js +0 -52
- package/dist/process.d.ts +0 -47
- package/dist/process.js +0 -2
- package/dist/relay.d.ts +0 -22
- package/dist/relay.js +0 -32
- package/dist/script.d.ts +0 -70
- package/dist/script.js +0 -266
- package/dist/service.d.ts +0 -16
- package/dist/service.js +0 -26
- package/dist/session.d.ts +0 -45
- package/dist/session.js +0 -73
- package/dist/signals.d.ts +0 -20
- package/dist/signals.js +0 -40
- package/dist/socket_address.d.ts +0 -25
- package/dist/socket_address.js +0 -2
- package/dist/spawn.d.ts +0 -4
- package/dist/spawn.js +0 -2
- package/dist/system_parameters.d.ts +0 -84
- package/dist/system_parameters.js +0 -2
- package/lib/application.ts +0 -98
- package/lib/authentication.ts +0 -3
- package/lib/bus.ts +0 -30
- package/lib/cancellable.ts +0 -48
- package/lib/child.ts +0 -15
- package/lib/crash.ts +0 -11
- package/lib/device.ts +0 -331
- package/lib/device_manager.ts +0 -69
- package/lib/endpoint_parameters.ts +0 -56
- package/lib/icon.ts +0 -15
- package/lib/index.ts +0 -316
- package/lib/iostream.ts +0 -78
- package/lib/meson.build +0 -53
- package/lib/native.ts +0 -9
- package/lib/portal_membership.ts +0 -10
- package/lib/portal_service.ts +0 -105
- package/lib/process.ts +0 -57
- package/lib/relay.ts +0 -44
- package/lib/script.ts +0 -361
- package/lib/service.ts +0 -34
- package/lib/session.ts +0 -113
- package/lib/signals.ts +0 -45
- package/lib/socket_address.ts +0 -35
- package/lib/spawn.ts +0 -4
- package/lib/system_parameters.ts +0 -103
- package/meson.options +0 -11
- package/src/addon.cc +0 -78
- package/src/application.cc +0 -148
- package/src/application.h +0 -31
- package/src/authentication.cc +0 -174
- package/src/authentication.h +0 -24
- package/src/bus.cc +0 -167
- package/src/bus.h +0 -33
- package/src/cancellable.cc +0 -117
- package/src/cancellable.h +0 -31
- package/src/child.cc +0 -150
- package/src/child.h +0 -32
- package/src/crash.cc +0 -122
- package/src/crash.h +0 -30
- package/src/device.cc +0 -1350
- package/src/device.h +0 -56
- package/src/device_manager.cc +0 -362
- package/src/device_manager.h +0 -35
- package/src/endpoint_parameters.cc +0 -171
- package/src/endpoint_parameters.h +0 -28
- package/src/glib_context.cc +0 -62
- package/src/glib_context.h +0 -29
- package/src/glib_object.cc +0 -25
- package/src/glib_object.h +0 -37
- package/src/iostream.cc +0 -243
- package/src/iostream.h +0 -30
- package/src/operation.h +0 -94
- package/src/portal_membership.cc +0 -100
- package/src/portal_membership.h +0 -26
- package/src/portal_service.cc +0 -401
- package/src/portal_service.h +0 -40
- package/src/process.cc +0 -135
- package/src/process.h +0 -30
- package/src/relay.cc +0 -139
- package/src/relay.h +0 -31
- package/src/runtime.cc +0 -568
- package/src/runtime.h +0 -69
- package/src/script.cc +0 -301
- package/src/script.h +0 -36
- package/src/service.cc +0 -224
- package/src/service.h +0 -36
- package/src/session.cc +0 -860
- package/src/session.h +0 -42
- package/src/signals.cc +0 -334
- package/src/signals.h +0 -47
- package/src/spawn.cc +0 -95
- package/src/spawn.h +0 -27
- package/src/usage_monitor.h +0 -117
- package/src/uv_context.cc +0 -118
- package/src/uv_context.h +0 -40
- package/src/win_delay_load_hook.cc +0 -63
- package/subprojects/nan.wrap +0 -9
- package/subprojects/packagefiles/nan.patch +0 -13
- /package/{scripts → src/assets}/adjust-version.py +0 -0
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Node.js bindings for [Frida](https://frida.re).
|
|
|
8
8
|
|
|
9
9
|
## Depends
|
|
10
10
|
|
|
11
|
-
- Node.js
|
|
11
|
+
- Node.js v16.x or newer
|
|
12
12
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
@@ -25,14 +25,6 @@ $ make
|
|
|
25
25
|
$ npm install
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
Build for Electron:
|
|
29
|
-
|
|
30
|
-
```sh
|
|
31
|
-
$ ./configure --with-runtime=electron --with-target=27.0.0
|
|
32
|
-
$ make
|
|
33
|
-
$ npm install
|
|
34
|
-
```
|
|
35
|
-
|
|
36
28
|
## Examples
|
|
37
29
|
|
|
38
30
|
* Follow [Setting up the experiment](https://frida.re/docs/functions/) to
|
|
@@ -52,7 +44,6 @@ To recompile only the C++ files that have changed, first run the
|
|
|
52
44
|
### Packaging
|
|
53
45
|
|
|
54
46
|
```sh
|
|
55
|
-
$ ./configure --with-runtime=electron --with-target=27.0.0
|
|
56
47
|
$ make prebuild
|
|
57
48
|
```
|
|
58
49
|
|
package/build/Makefile
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
PYTHON ?= $(shell which python3 >/dev/null && echo python3 || echo python)
|
|
2
|
+
|
|
3
|
+
all $(MAKECMDGOALS):
|
|
4
|
+
@$(PYTHON) \
|
|
5
|
+
-c "import sys; sys.path.insert(0, r'/home/runner/work/frida/frida/subprojects/frida-node'); from releng.meson_make import main; main()" \
|
|
6
|
+
/home/runner/work/frida/frida/subprojects/frida-node \
|
|
7
|
+
. \
|
|
8
|
+
$(MAKECMDGOALS)
|
|
9
|
+
|
|
10
|
+
.PHONY: all $(MAKECMDGOALS)
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import type { DeviceManager as _DeviceManager, DeviceAddedHandler as _DeviceAddedHandler, DeviceRemovedHandler as _DeviceRemovedHandler, DeviceChangedHandler as _DeviceChangedHandler, Device as _Device, SpawnAddedHandler as _SpawnAddedHandler, SpawnRemovedHandler as _SpawnRemovedHandler, ChildAddedHandler as _ChildAddedHandler, ChildRemovedHandler as _ChildRemovedHandler, ProcessCrashedHandler as _ProcessCrashedHandler, OutputHandler as _OutputHandler, UninjectedHandler as _UninjectedHandler, DeviceLostHandler as _DeviceLostHandler, RemoteDeviceOptions as _RemoteDeviceOptions, Application as _Application, Process as _Process, ProcessMatchOptions as _ProcessMatchOptions, RawSpawnOptions as _RawSpawnOptions, Spawn as _Spawn, Child as _Child, Crash as _Crash, Bus as _Bus, BusDetachedHandler as _BusDetachedHandler, BusMessageHandler as _BusMessageHandler, Service as _Service, ServiceCloseHandler as _ServiceCloseHandler, ServiceMessageHandler as _ServiceMessageHandler, Session as _Session, SessionDetachedHandler as _SessionDetachedHandler, Script as _Script, ScriptDestroyedHandler as _ScriptDestroyedHandler, ScriptMessageHandler as _ScriptMessageHandler, PortalMembership as _PortalMembership, ControlService as _ControlService, ControlServiceOptions as _ControlServiceOptions, PortalService as _PortalService, PortalNodeConnectedHandler as _PortalNodeConnectedHandler, PortalNodeJoinedHandler as _PortalNodeJoinedHandler, PortalNodeLeftHandler as _PortalNodeLeftHandler, PortalNodeDisconnectedHandler as _PortalNodeDisconnectedHandler, PortalControllerConnectedHandler as _PortalControllerConnectedHandler, PortalControllerDisconnectedHandler as _PortalControllerDisconnectedHandler, PortalAuthenticatedHandler as _PortalAuthenticatedHandler, PortalSubscribeHandler as _PortalSubscribeHandler, PortalMessageHandler as _PortalMessageHandler, FileMonitor as _FileMonitor, FileMonitorChangeHandler as _FileMonitorChangeHandler, Compiler as _Compiler, CompilerStartingHandler as _CompilerStartingHandler, CompilerFinishedHandler as _CompilerFinishedHandler, CompilerOutputHandler as _CompilerOutputHandler, CompilerDiagnosticsHandler as _CompilerDiagnosticsHandler, CompilerOptions as _CompilerOptions, BuildOptions as _BuildOptions, WatchOptions as _WatchOptions, StaticAuthenticationService as _StaticAuthenticationService, FrontmostQueryOptions as _FrontmostQueryOptions, ApplicationQueryOptions as _ApplicationQueryOptions, ProcessQueryOptions as _ProcessQueryOptions, SessionOptions as _SessionOptions, ScriptOptions as _ScriptOptions, SnapshotOptions as _SnapshotOptions, PortalOptions as _PortalOptions, PeerOptions as _PeerOptions, Relay as _Relay, EndpointParameters as _EndpointParameters, AuthenticationService as _AuthenticationService, AbstractAuthenticationService as _AbstractAuthenticationService, BaseObject as _BaseObject, Cancellable as _Cancellable, CancelledHandler as _CancelledHandler, IOStream as _IOStream, InputStream as _InputStream, OutputStream as _OutputStream, InetSocketAddress as _InetSocketAddress, InetAddress as _InetAddress, UnixSocketAddress as _UnixSocketAddress, BaseSocketAddress as _BaseSocketAddress, SocketAddressEnumerator as _SocketAddressEnumerator, SocketConnectable as _SocketConnectable, Runtime as _Runtime, DeviceType as _DeviceType, SourceMaps as _SourceMaps, JsCompression as _JsCompression, Realm as _Realm, SessionDetachReason as _SessionDetachReason, Scope as _Scope, Stdio as _Stdio, ChildOrigin as _ChildOrigin, SnapshotTransport as _SnapshotTransport, ScriptRuntime as _ScriptRuntime, RelayKind as _RelayKind, FileMonitorEvent as _FileMonitorEvent, SocketFamily as _SocketFamily, UnixSocketAddressType as _UnixSocketAddressType, TargetProcess as _TargetProcess, ProcessID as _ProcessID, InjecteeID as _InjecteeID, FileDescriptor as _FileDescriptor, ProcessName as _ProcessName, SystemParameters as _SystemParameters, SystemInterface as _SystemInterface, NetworkInterface as _NetworkInterface, CellularInterface as _CellularInterface, SpawnOptions as _SpawnOptions, RelayProperties as _RelayProperties, Message as _Message, MessageType as _MessageType, SendMessage as _SendMessage, ErrorMessage as _ErrorMessage, ScriptLogHandler as _ScriptLogHandler, ScriptExports as _ScriptExports, LogLevel as _LogLevel, EnableDebuggerOptions as _EnableDebuggerOptions, PortalServiceOptions as _PortalServiceOptions, PortalConnectionId as _PortalConnectionId, PortalConnectionTag as _PortalConnectionTag, EndpointParametersSubset as _EndpointParametersSubset, AuthenticationScheme as _AuthenticationScheme, TokenAuthenticationScheme as _TokenAuthenticationScheme, CallbackAuthenticationScheme as _CallbackAuthenticationScheme, AuthenticationCallback as _AuthenticationCallback, AuthenticatedSessionInfo as _AuthenticatedSessionInfo, SocketAddress as _SocketAddress, IPV4SocketAddress as _IPV4SocketAddress, IPV6SocketAddress as _IPV6SocketAddress, AnonymousUnixSocketAddress as _AnonymousUnixSocketAddress, PathUnixSocketAddress as _PathUnixSocketAddress, AbstractUnixSocketAddress as _AbstractUnixSocketAddress, Variant as _Variant, VariantValue as _VariantValue, VariantDict as _VariantDict } from "./frida_binding.d.ts";
|
|
2
|
+
export declare const MessageType: typeof _MessageType;
|
|
3
|
+
export declare const LogLevel: typeof _LogLevel;
|
|
4
|
+
export declare const DeviceManager: typeof _DeviceManager, Device: typeof _Device, RemoteDeviceOptions: _RemoteDeviceOptions, Application: typeof _Application, Process: typeof _Process, ProcessMatchOptions: _ProcessMatchOptions, RawSpawnOptions: _RawSpawnOptions, Spawn: typeof _Spawn, Child: typeof _Child, Crash: typeof _Crash, Bus: typeof _Bus, Service: typeof _Service, Session: typeof _Session, Script: typeof _Script, PortalMembership: typeof _PortalMembership, ControlService: typeof _ControlService, ControlServiceOptions: _ControlServiceOptions, PortalService: typeof _PortalService, FileMonitor: typeof _FileMonitor, Compiler: typeof _Compiler, CompilerOptions: _CompilerOptions, BuildOptions: _BuildOptions, WatchOptions: _WatchOptions, StaticAuthenticationService: typeof _StaticAuthenticationService, FrontmostQueryOptions: _FrontmostQueryOptions, ApplicationQueryOptions: _ApplicationQueryOptions, ProcessQueryOptions: _ProcessQueryOptions, SessionOptions: _SessionOptions, ScriptOptions: _ScriptOptions, SnapshotOptions: _SnapshotOptions, PortalOptions: _PortalOptions, PeerOptions: _PeerOptions, Relay: typeof _Relay, EndpointParameters: typeof _EndpointParameters, AbstractAuthenticationService: typeof _AbstractAuthenticationService, BaseObject: typeof _BaseObject, Cancellable: typeof _Cancellable, IOStream: typeof _IOStream, InputStream: typeof _InputStream, OutputStream: typeof _OutputStream, InetSocketAddress: typeof _InetSocketAddress, InetAddress: typeof _InetAddress, UnixSocketAddress: typeof _UnixSocketAddress, BaseSocketAddress: typeof _BaseSocketAddress, SocketAddressEnumerator: typeof _SocketAddressEnumerator, Runtime: typeof _Runtime, DeviceType: typeof _DeviceType, SourceMaps: typeof _SourceMaps, JsCompression: typeof _JsCompression, Realm: typeof _Realm, SessionDetachReason: typeof _SessionDetachReason, Scope: typeof _Scope, Stdio: typeof _Stdio, ChildOrigin: typeof _ChildOrigin, SnapshotTransport: typeof _SnapshotTransport, ScriptRuntime: typeof _ScriptRuntime, RelayKind: typeof _RelayKind, FileMonitorEvent: typeof _FileMonitorEvent, SocketFamily: typeof _SocketFamily, UnixSocketAddressType: typeof _UnixSocketAddressType;
|
|
5
|
+
declare const frida: {
|
|
6
|
+
readonly DeviceManager: typeof _DeviceManager;
|
|
7
|
+
readonly Device: typeof _Device;
|
|
8
|
+
readonly RemoteDeviceOptions: _RemoteDeviceOptions;
|
|
9
|
+
readonly Application: typeof _Application;
|
|
10
|
+
readonly Process: typeof _Process;
|
|
11
|
+
readonly ProcessMatchOptions: _ProcessMatchOptions;
|
|
12
|
+
readonly RawSpawnOptions: _RawSpawnOptions;
|
|
13
|
+
readonly Spawn: typeof _Spawn;
|
|
14
|
+
readonly Child: typeof _Child;
|
|
15
|
+
readonly Crash: typeof _Crash;
|
|
16
|
+
readonly Bus: typeof _Bus;
|
|
17
|
+
readonly Service: typeof _Service;
|
|
18
|
+
readonly Session: typeof _Session;
|
|
19
|
+
readonly Script: typeof _Script;
|
|
20
|
+
readonly PortalMembership: typeof _PortalMembership;
|
|
21
|
+
readonly ControlService: typeof _ControlService;
|
|
22
|
+
readonly ControlServiceOptions: _ControlServiceOptions;
|
|
23
|
+
readonly PortalService: typeof _PortalService;
|
|
24
|
+
readonly FileMonitor: typeof _FileMonitor;
|
|
25
|
+
readonly Compiler: typeof _Compiler;
|
|
26
|
+
readonly CompilerOptions: _CompilerOptions;
|
|
27
|
+
readonly BuildOptions: _BuildOptions;
|
|
28
|
+
readonly WatchOptions: _WatchOptions;
|
|
29
|
+
readonly StaticAuthenticationService: typeof _StaticAuthenticationService;
|
|
30
|
+
readonly FrontmostQueryOptions: _FrontmostQueryOptions;
|
|
31
|
+
readonly ApplicationQueryOptions: _ApplicationQueryOptions;
|
|
32
|
+
readonly ProcessQueryOptions: _ProcessQueryOptions;
|
|
33
|
+
readonly SessionOptions: _SessionOptions;
|
|
34
|
+
readonly ScriptOptions: _ScriptOptions;
|
|
35
|
+
readonly SnapshotOptions: _SnapshotOptions;
|
|
36
|
+
readonly PortalOptions: _PortalOptions;
|
|
37
|
+
readonly PeerOptions: _PeerOptions;
|
|
38
|
+
readonly Relay: typeof _Relay;
|
|
39
|
+
readonly EndpointParameters: typeof _EndpointParameters;
|
|
40
|
+
readonly AbstractAuthenticationService: typeof _AbstractAuthenticationService;
|
|
41
|
+
readonly BaseObject: typeof _BaseObject;
|
|
42
|
+
readonly Cancellable: typeof _Cancellable;
|
|
43
|
+
readonly IOStream: typeof _IOStream;
|
|
44
|
+
readonly InputStream: typeof _InputStream;
|
|
45
|
+
readonly OutputStream: typeof _OutputStream;
|
|
46
|
+
readonly InetSocketAddress: typeof _InetSocketAddress;
|
|
47
|
+
readonly InetAddress: typeof _InetAddress;
|
|
48
|
+
readonly UnixSocketAddress: typeof _UnixSocketAddress;
|
|
49
|
+
readonly BaseSocketAddress: typeof _BaseSocketAddress;
|
|
50
|
+
readonly SocketAddressEnumerator: typeof _SocketAddressEnumerator;
|
|
51
|
+
readonly Runtime: typeof _Runtime;
|
|
52
|
+
readonly DeviceType: typeof _DeviceType;
|
|
53
|
+
readonly SourceMaps: typeof _SourceMaps;
|
|
54
|
+
readonly JsCompression: typeof _JsCompression;
|
|
55
|
+
readonly Realm: typeof _Realm;
|
|
56
|
+
readonly SessionDetachReason: typeof _SessionDetachReason;
|
|
57
|
+
readonly Scope: typeof _Scope;
|
|
58
|
+
readonly Stdio: typeof _Stdio;
|
|
59
|
+
readonly ChildOrigin: typeof _ChildOrigin;
|
|
60
|
+
readonly SnapshotTransport: typeof _SnapshotTransport;
|
|
61
|
+
readonly ScriptRuntime: typeof _ScriptRuntime;
|
|
62
|
+
readonly RelayKind: typeof _RelayKind;
|
|
63
|
+
readonly FileMonitorEvent: typeof _FileMonitorEvent;
|
|
64
|
+
readonly SocketFamily: typeof _SocketFamily;
|
|
65
|
+
readonly UnixSocketAddressType: typeof _UnixSocketAddressType;
|
|
66
|
+
readonly MessageType: typeof _MessageType;
|
|
67
|
+
readonly LogLevel: typeof _LogLevel;
|
|
68
|
+
readonly querySystemParameters: typeof querySystemParameters;
|
|
69
|
+
readonly spawn: typeof spawn;
|
|
70
|
+
readonly resume: typeof resume;
|
|
71
|
+
readonly kill: typeof kill;
|
|
72
|
+
readonly attach: typeof attach;
|
|
73
|
+
readonly injectLibraryFile: typeof injectLibraryFile;
|
|
74
|
+
readonly injectLibraryBlob: typeof injectLibraryBlob;
|
|
75
|
+
readonly enumerateDevices: typeof enumerateDevices;
|
|
76
|
+
readonly getDeviceManager: typeof getDeviceManager;
|
|
77
|
+
readonly getLocalDevice: typeof getLocalDevice;
|
|
78
|
+
readonly getRemoteDevice: typeof getRemoteDevice;
|
|
79
|
+
readonly getUsbDevice: typeof getUsbDevice;
|
|
80
|
+
readonly getDevice: typeof getDevice;
|
|
81
|
+
};
|
|
82
|
+
export default frida;
|
|
83
|
+
declare namespace frida {
|
|
84
|
+
type DeviceManager = _DeviceManager;
|
|
85
|
+
type DeviceAddedHandler = _DeviceAddedHandler;
|
|
86
|
+
type DeviceRemovedHandler = _DeviceRemovedHandler;
|
|
87
|
+
type DeviceChangedHandler = _DeviceChangedHandler;
|
|
88
|
+
type Device = _Device;
|
|
89
|
+
type SpawnAddedHandler = _SpawnAddedHandler;
|
|
90
|
+
type SpawnRemovedHandler = _SpawnRemovedHandler;
|
|
91
|
+
type ChildAddedHandler = _ChildAddedHandler;
|
|
92
|
+
type ChildRemovedHandler = _ChildRemovedHandler;
|
|
93
|
+
type ProcessCrashedHandler = _ProcessCrashedHandler;
|
|
94
|
+
type OutputHandler = _OutputHandler;
|
|
95
|
+
type UninjectedHandler = _UninjectedHandler;
|
|
96
|
+
type DeviceLostHandler = _DeviceLostHandler;
|
|
97
|
+
type RemoteDeviceOptions = _RemoteDeviceOptions;
|
|
98
|
+
type Application = _Application;
|
|
99
|
+
type Process = _Process;
|
|
100
|
+
type ProcessMatchOptions = _ProcessMatchOptions;
|
|
101
|
+
type RawSpawnOptions = _RawSpawnOptions;
|
|
102
|
+
type Spawn = _Spawn;
|
|
103
|
+
type Child = _Child;
|
|
104
|
+
type Crash = _Crash;
|
|
105
|
+
type Bus = _Bus;
|
|
106
|
+
type BusDetachedHandler = _BusDetachedHandler;
|
|
107
|
+
type BusMessageHandler = _BusMessageHandler;
|
|
108
|
+
type Service = _Service;
|
|
109
|
+
type ServiceCloseHandler = _ServiceCloseHandler;
|
|
110
|
+
type ServiceMessageHandler = _ServiceMessageHandler;
|
|
111
|
+
type Session = _Session;
|
|
112
|
+
type SessionDetachedHandler = _SessionDetachedHandler;
|
|
113
|
+
type Script = _Script;
|
|
114
|
+
type ScriptDestroyedHandler = _ScriptDestroyedHandler;
|
|
115
|
+
type ScriptMessageHandler = _ScriptMessageHandler;
|
|
116
|
+
type PortalMembership = _PortalMembership;
|
|
117
|
+
type ControlService = _ControlService;
|
|
118
|
+
type ControlServiceOptions = _ControlServiceOptions;
|
|
119
|
+
type PortalService = _PortalService;
|
|
120
|
+
type PortalNodeConnectedHandler = _PortalNodeConnectedHandler;
|
|
121
|
+
type PortalNodeJoinedHandler = _PortalNodeJoinedHandler;
|
|
122
|
+
type PortalNodeLeftHandler = _PortalNodeLeftHandler;
|
|
123
|
+
type PortalNodeDisconnectedHandler = _PortalNodeDisconnectedHandler;
|
|
124
|
+
type PortalControllerConnectedHandler = _PortalControllerConnectedHandler;
|
|
125
|
+
type PortalControllerDisconnectedHandler = _PortalControllerDisconnectedHandler;
|
|
126
|
+
type PortalAuthenticatedHandler = _PortalAuthenticatedHandler;
|
|
127
|
+
type PortalSubscribeHandler = _PortalSubscribeHandler;
|
|
128
|
+
type PortalMessageHandler = _PortalMessageHandler;
|
|
129
|
+
type FileMonitor = _FileMonitor;
|
|
130
|
+
type FileMonitorChangeHandler = _FileMonitorChangeHandler;
|
|
131
|
+
type Compiler = _Compiler;
|
|
132
|
+
type CompilerStartingHandler = _CompilerStartingHandler;
|
|
133
|
+
type CompilerFinishedHandler = _CompilerFinishedHandler;
|
|
134
|
+
type CompilerOutputHandler = _CompilerOutputHandler;
|
|
135
|
+
type CompilerDiagnosticsHandler = _CompilerDiagnosticsHandler;
|
|
136
|
+
type CompilerOptions = _CompilerOptions;
|
|
137
|
+
type BuildOptions = _BuildOptions;
|
|
138
|
+
type WatchOptions = _WatchOptions;
|
|
139
|
+
type StaticAuthenticationService = _StaticAuthenticationService;
|
|
140
|
+
type FrontmostQueryOptions = _FrontmostQueryOptions;
|
|
141
|
+
type ApplicationQueryOptions = _ApplicationQueryOptions;
|
|
142
|
+
type ProcessQueryOptions = _ProcessQueryOptions;
|
|
143
|
+
type SessionOptions = _SessionOptions;
|
|
144
|
+
type ScriptOptions = _ScriptOptions;
|
|
145
|
+
type SnapshotOptions = _SnapshotOptions;
|
|
146
|
+
type PortalOptions = _PortalOptions;
|
|
147
|
+
type PeerOptions = _PeerOptions;
|
|
148
|
+
type Relay = _Relay;
|
|
149
|
+
type EndpointParameters = _EndpointParameters;
|
|
150
|
+
type AuthenticationService = _AuthenticationService;
|
|
151
|
+
type AbstractAuthenticationService = _AbstractAuthenticationService;
|
|
152
|
+
type BaseObject = _BaseObject;
|
|
153
|
+
type Cancellable = _Cancellable;
|
|
154
|
+
type CancelledHandler = _CancelledHandler;
|
|
155
|
+
type IOStream = _IOStream;
|
|
156
|
+
type InputStream = _InputStream;
|
|
157
|
+
type OutputStream = _OutputStream;
|
|
158
|
+
type InetSocketAddress = _InetSocketAddress;
|
|
159
|
+
type InetAddress = _InetAddress;
|
|
160
|
+
type UnixSocketAddress = _UnixSocketAddress;
|
|
161
|
+
type BaseSocketAddress = _BaseSocketAddress;
|
|
162
|
+
type SocketAddressEnumerator = _SocketAddressEnumerator;
|
|
163
|
+
type SocketConnectable = _SocketConnectable;
|
|
164
|
+
type Runtime = _Runtime;
|
|
165
|
+
type DeviceType = _DeviceType;
|
|
166
|
+
type SourceMaps = _SourceMaps;
|
|
167
|
+
type JsCompression = _JsCompression;
|
|
168
|
+
type Realm = _Realm;
|
|
169
|
+
type SessionDetachReason = _SessionDetachReason;
|
|
170
|
+
type Scope = _Scope;
|
|
171
|
+
type Stdio = _Stdio;
|
|
172
|
+
type ChildOrigin = _ChildOrigin;
|
|
173
|
+
type SnapshotTransport = _SnapshotTransport;
|
|
174
|
+
type ScriptRuntime = _ScriptRuntime;
|
|
175
|
+
type RelayKind = _RelayKind;
|
|
176
|
+
type FileMonitorEvent = _FileMonitorEvent;
|
|
177
|
+
type SocketFamily = _SocketFamily;
|
|
178
|
+
type UnixSocketAddressType = _UnixSocketAddressType;
|
|
179
|
+
type TargetProcess = _TargetProcess;
|
|
180
|
+
type ProcessID = _ProcessID;
|
|
181
|
+
type InjecteeID = _InjecteeID;
|
|
182
|
+
type FileDescriptor = _FileDescriptor;
|
|
183
|
+
type ProcessName = _ProcessName;
|
|
184
|
+
type SystemParameters = _SystemParameters;
|
|
185
|
+
type SystemInterface = _SystemInterface;
|
|
186
|
+
type NetworkInterface = _NetworkInterface;
|
|
187
|
+
type CellularInterface = _CellularInterface;
|
|
188
|
+
type SpawnOptions = _SpawnOptions;
|
|
189
|
+
type RelayProperties = _RelayProperties;
|
|
190
|
+
type Message = _Message;
|
|
191
|
+
type MessageType = _MessageType;
|
|
192
|
+
type SendMessage = _SendMessage;
|
|
193
|
+
type ErrorMessage = _ErrorMessage;
|
|
194
|
+
type ScriptLogHandler = _ScriptLogHandler;
|
|
195
|
+
type ScriptExports = _ScriptExports;
|
|
196
|
+
type LogLevel = _LogLevel;
|
|
197
|
+
type EnableDebuggerOptions = _EnableDebuggerOptions;
|
|
198
|
+
type PortalServiceOptions = _PortalServiceOptions;
|
|
199
|
+
type PortalConnectionId = _PortalConnectionId;
|
|
200
|
+
type PortalConnectionTag = _PortalConnectionTag;
|
|
201
|
+
type EndpointParametersSubset = _EndpointParametersSubset;
|
|
202
|
+
type AuthenticationScheme = _AuthenticationScheme;
|
|
203
|
+
type TokenAuthenticationScheme = _TokenAuthenticationScheme;
|
|
204
|
+
type CallbackAuthenticationScheme = _CallbackAuthenticationScheme;
|
|
205
|
+
type AuthenticationCallback = _AuthenticationCallback;
|
|
206
|
+
type AuthenticatedSessionInfo = _AuthenticatedSessionInfo;
|
|
207
|
+
type SocketAddress = _SocketAddress;
|
|
208
|
+
type IPV4SocketAddress = _IPV4SocketAddress;
|
|
209
|
+
type IPV6SocketAddress = _IPV6SocketAddress;
|
|
210
|
+
type AnonymousUnixSocketAddress = _AnonymousUnixSocketAddress;
|
|
211
|
+
type PathUnixSocketAddress = _PathUnixSocketAddress;
|
|
212
|
+
type AbstractUnixSocketAddress = _AbstractUnixSocketAddress;
|
|
213
|
+
type Variant = _Variant;
|
|
214
|
+
type VariantValue = _VariantValue;
|
|
215
|
+
type VariantDict = _VariantDict;
|
|
216
|
+
}
|
|
217
|
+
export type DeviceManager = _DeviceManager;
|
|
218
|
+
export type DeviceAddedHandler = _DeviceAddedHandler;
|
|
219
|
+
export type DeviceRemovedHandler = _DeviceRemovedHandler;
|
|
220
|
+
export type DeviceChangedHandler = _DeviceChangedHandler;
|
|
221
|
+
export type Device = _Device;
|
|
222
|
+
export type SpawnAddedHandler = _SpawnAddedHandler;
|
|
223
|
+
export type SpawnRemovedHandler = _SpawnRemovedHandler;
|
|
224
|
+
export type ChildAddedHandler = _ChildAddedHandler;
|
|
225
|
+
export type ChildRemovedHandler = _ChildRemovedHandler;
|
|
226
|
+
export type ProcessCrashedHandler = _ProcessCrashedHandler;
|
|
227
|
+
export type OutputHandler = _OutputHandler;
|
|
228
|
+
export type UninjectedHandler = _UninjectedHandler;
|
|
229
|
+
export type DeviceLostHandler = _DeviceLostHandler;
|
|
230
|
+
export type RemoteDeviceOptions = _RemoteDeviceOptions;
|
|
231
|
+
export type Application = _Application;
|
|
232
|
+
export type Process = _Process;
|
|
233
|
+
export type ProcessMatchOptions = _ProcessMatchOptions;
|
|
234
|
+
export type RawSpawnOptions = _RawSpawnOptions;
|
|
235
|
+
export type Spawn = _Spawn;
|
|
236
|
+
export type Child = _Child;
|
|
237
|
+
export type Crash = _Crash;
|
|
238
|
+
export type Bus = _Bus;
|
|
239
|
+
export type BusDetachedHandler = _BusDetachedHandler;
|
|
240
|
+
export type BusMessageHandler = _BusMessageHandler;
|
|
241
|
+
export type Service = _Service;
|
|
242
|
+
export type ServiceCloseHandler = _ServiceCloseHandler;
|
|
243
|
+
export type ServiceMessageHandler = _ServiceMessageHandler;
|
|
244
|
+
export type Session = _Session;
|
|
245
|
+
export type SessionDetachedHandler = _SessionDetachedHandler;
|
|
246
|
+
export type Script = _Script;
|
|
247
|
+
export type ScriptDestroyedHandler = _ScriptDestroyedHandler;
|
|
248
|
+
export type ScriptMessageHandler = _ScriptMessageHandler;
|
|
249
|
+
export type PortalMembership = _PortalMembership;
|
|
250
|
+
export type ControlService = _ControlService;
|
|
251
|
+
export type ControlServiceOptions = _ControlServiceOptions;
|
|
252
|
+
export type PortalService = _PortalService;
|
|
253
|
+
export type PortalNodeConnectedHandler = _PortalNodeConnectedHandler;
|
|
254
|
+
export type PortalNodeJoinedHandler = _PortalNodeJoinedHandler;
|
|
255
|
+
export type PortalNodeLeftHandler = _PortalNodeLeftHandler;
|
|
256
|
+
export type PortalNodeDisconnectedHandler = _PortalNodeDisconnectedHandler;
|
|
257
|
+
export type PortalControllerConnectedHandler = _PortalControllerConnectedHandler;
|
|
258
|
+
export type PortalControllerDisconnectedHandler = _PortalControllerDisconnectedHandler;
|
|
259
|
+
export type PortalAuthenticatedHandler = _PortalAuthenticatedHandler;
|
|
260
|
+
export type PortalSubscribeHandler = _PortalSubscribeHandler;
|
|
261
|
+
export type PortalMessageHandler = _PortalMessageHandler;
|
|
262
|
+
export type FileMonitor = _FileMonitor;
|
|
263
|
+
export type FileMonitorChangeHandler = _FileMonitorChangeHandler;
|
|
264
|
+
export type Compiler = _Compiler;
|
|
265
|
+
export type CompilerStartingHandler = _CompilerStartingHandler;
|
|
266
|
+
export type CompilerFinishedHandler = _CompilerFinishedHandler;
|
|
267
|
+
export type CompilerOutputHandler = _CompilerOutputHandler;
|
|
268
|
+
export type CompilerDiagnosticsHandler = _CompilerDiagnosticsHandler;
|
|
269
|
+
export type CompilerOptions = _CompilerOptions;
|
|
270
|
+
export type BuildOptions = _BuildOptions;
|
|
271
|
+
export type WatchOptions = _WatchOptions;
|
|
272
|
+
export type StaticAuthenticationService = _StaticAuthenticationService;
|
|
273
|
+
export type FrontmostQueryOptions = _FrontmostQueryOptions;
|
|
274
|
+
export type ApplicationQueryOptions = _ApplicationQueryOptions;
|
|
275
|
+
export type ProcessQueryOptions = _ProcessQueryOptions;
|
|
276
|
+
export type SessionOptions = _SessionOptions;
|
|
277
|
+
export type ScriptOptions = _ScriptOptions;
|
|
278
|
+
export type SnapshotOptions = _SnapshotOptions;
|
|
279
|
+
export type PortalOptions = _PortalOptions;
|
|
280
|
+
export type PeerOptions = _PeerOptions;
|
|
281
|
+
export type Relay = _Relay;
|
|
282
|
+
export type EndpointParameters = _EndpointParameters;
|
|
283
|
+
export type AuthenticationService = _AuthenticationService;
|
|
284
|
+
export type AbstractAuthenticationService = _AbstractAuthenticationService;
|
|
285
|
+
export type BaseObject = _BaseObject;
|
|
286
|
+
export type Cancellable = _Cancellable;
|
|
287
|
+
export type CancelledHandler = _CancelledHandler;
|
|
288
|
+
export type IOStream = _IOStream;
|
|
289
|
+
export type InputStream = _InputStream;
|
|
290
|
+
export type OutputStream = _OutputStream;
|
|
291
|
+
export type InetSocketAddress = _InetSocketAddress;
|
|
292
|
+
export type InetAddress = _InetAddress;
|
|
293
|
+
export type UnixSocketAddress = _UnixSocketAddress;
|
|
294
|
+
export type BaseSocketAddress = _BaseSocketAddress;
|
|
295
|
+
export type SocketAddressEnumerator = _SocketAddressEnumerator;
|
|
296
|
+
export type SocketConnectable = _SocketConnectable;
|
|
297
|
+
export type Runtime = _Runtime;
|
|
298
|
+
export type DeviceType = _DeviceType;
|
|
299
|
+
export type SourceMaps = _SourceMaps;
|
|
300
|
+
export type JsCompression = _JsCompression;
|
|
301
|
+
export type Realm = _Realm;
|
|
302
|
+
export type SessionDetachReason = _SessionDetachReason;
|
|
303
|
+
export type Scope = _Scope;
|
|
304
|
+
export type Stdio = _Stdio;
|
|
305
|
+
export type ChildOrigin = _ChildOrigin;
|
|
306
|
+
export type SnapshotTransport = _SnapshotTransport;
|
|
307
|
+
export type ScriptRuntime = _ScriptRuntime;
|
|
308
|
+
export type RelayKind = _RelayKind;
|
|
309
|
+
export type FileMonitorEvent = _FileMonitorEvent;
|
|
310
|
+
export type SocketFamily = _SocketFamily;
|
|
311
|
+
export type UnixSocketAddressType = _UnixSocketAddressType;
|
|
312
|
+
export type TargetProcess = _TargetProcess;
|
|
313
|
+
export type ProcessID = _ProcessID;
|
|
314
|
+
export type InjecteeID = _InjecteeID;
|
|
315
|
+
export type FileDescriptor = _FileDescriptor;
|
|
316
|
+
export type ProcessName = _ProcessName;
|
|
317
|
+
export type SystemParameters = _SystemParameters;
|
|
318
|
+
export type SystemInterface = _SystemInterface;
|
|
319
|
+
export type NetworkInterface = _NetworkInterface;
|
|
320
|
+
export type CellularInterface = _CellularInterface;
|
|
321
|
+
export type SpawnOptions = _SpawnOptions;
|
|
322
|
+
export type RelayProperties = _RelayProperties;
|
|
323
|
+
export type Message = _Message;
|
|
324
|
+
export type MessageType = _MessageType;
|
|
325
|
+
export type SendMessage = _SendMessage;
|
|
326
|
+
export type ErrorMessage = _ErrorMessage;
|
|
327
|
+
export type ScriptLogHandler = _ScriptLogHandler;
|
|
328
|
+
export type ScriptExports = _ScriptExports;
|
|
329
|
+
export type LogLevel = _LogLevel;
|
|
330
|
+
export type EnableDebuggerOptions = _EnableDebuggerOptions;
|
|
331
|
+
export type PortalServiceOptions = _PortalServiceOptions;
|
|
332
|
+
export type PortalConnectionId = _PortalConnectionId;
|
|
333
|
+
export type PortalConnectionTag = _PortalConnectionTag;
|
|
334
|
+
export type EndpointParametersSubset = _EndpointParametersSubset;
|
|
335
|
+
export type AuthenticationScheme = _AuthenticationScheme;
|
|
336
|
+
export type TokenAuthenticationScheme = _TokenAuthenticationScheme;
|
|
337
|
+
export type CallbackAuthenticationScheme = _CallbackAuthenticationScheme;
|
|
338
|
+
export type AuthenticationCallback = _AuthenticationCallback;
|
|
339
|
+
export type AuthenticatedSessionInfo = _AuthenticatedSessionInfo;
|
|
340
|
+
export type SocketAddress = _SocketAddress;
|
|
341
|
+
export type IPV4SocketAddress = _IPV4SocketAddress;
|
|
342
|
+
export type IPV6SocketAddress = _IPV6SocketAddress;
|
|
343
|
+
export type AnonymousUnixSocketAddress = _AnonymousUnixSocketAddress;
|
|
344
|
+
export type PathUnixSocketAddress = _PathUnixSocketAddress;
|
|
345
|
+
export type AbstractUnixSocketAddress = _AbstractUnixSocketAddress;
|
|
346
|
+
export type Variant = _Variant;
|
|
347
|
+
export type VariantValue = _VariantValue;
|
|
348
|
+
export type VariantDict = _VariantDict;
|
|
349
|
+
export declare function querySystemParameters(cancellable?: Cancellable | null): Promise<SystemParameters>;
|
|
350
|
+
export declare function spawn(program: string | string[], options?: SpawnOptions, cancellable?: Cancellable | null): Promise<number>;
|
|
351
|
+
export declare function resume(target: TargetProcess, cancellable?: Cancellable | null): Promise<void>;
|
|
352
|
+
export declare function kill(target: TargetProcess, cancellable?: Cancellable | null): Promise<void>;
|
|
353
|
+
export declare function attach(target: TargetProcess, options?: SessionOptions, cancellable?: Cancellable | null): Promise<Session>;
|
|
354
|
+
export declare function injectLibraryFile(target: TargetProcess, path: string, entrypoint: string, data: string, cancellable?: Cancellable | null): Promise<number>;
|
|
355
|
+
export declare function injectLibraryBlob(target: TargetProcess, blob: Buffer, entrypoint: string, data: string, cancellable?: Cancellable | null): Promise<number>;
|
|
356
|
+
export declare function enumerateDevices(cancellable?: Cancellable | null): Promise<Device[]>;
|
|
357
|
+
export declare function getDeviceManager(): DeviceManager;
|
|
358
|
+
export declare function getLocalDevice(cancellable?: Cancellable | null): Promise<Device>;
|
|
359
|
+
export declare function getRemoteDevice(cancellable?: Cancellable | null): Promise<Device>;
|
|
360
|
+
export declare function getUsbDevice(options?: GetDeviceOptions, cancellable?: Cancellable | null): Promise<Device>;
|
|
361
|
+
export declare function getDevice(id: string, options?: GetDeviceOptions, cancellable?: Cancellable | null): Promise<Device>;
|
|
362
|
+
export interface GetDeviceOptions {
|
|
363
|
+
timeout?: number | null;
|
|
364
|
+
}
|