frida 17.15.4 → 17.16.0
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/Makefile +1 -1
- package/build/src/frida.d.ts +13 -2
- package/build/src/frida.js +4 -1
- package/build/src/frida_binding.d.ts +21 -1
- package/frida-bindgen/frida_bindgen_core/__init__.py +8 -0
- package/frida-bindgen/frida_bindgen_core/loader.py +57 -0
- package/frida-bindgen/frida_bindgen_core/model.py +853 -0
- package/frida-bindgen/frida_bindgen_core/naming.py +40 -0
- package/package.json +2 -1
- package/releng/deps.toml +1 -1
- package/releng/env_generic.py +12 -2
- package/releng/machine_spec.py +8 -5
- 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/loader.py +12 -27
- package/src/frida_bindgen/model.py +97 -830
- package/src/meson.build +8 -2
- package/subprojects/frida-core.wrap +1 -1
package/Makefile
CHANGED
|
@@ -8,7 +8,7 @@ all $(MAKECMDGOALS):
|
|
|
8
8
|
$(MAKECMDGOALS)
|
|
9
9
|
|
|
10
10
|
git-submodules:
|
|
11
|
-
@if [ ! -f releng/meson/meson.py ]; then \
|
|
11
|
+
@if [ ! -f releng/meson/meson.py ] || [ ! -f frida-bindgen/frida_bindgen_core/model.py ]; then \
|
|
12
12
|
git submodule update --init --recursive --depth 1; \
|
|
13
13
|
fi
|
|
14
14
|
-include git-submodules
|
package/build/src/frida.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, PackageManager as _PackageManager, PackageManagerInstallProgressHandler as _PackageManagerInstallProgressHandler, Package as _Package, PackageSearchOptions as _PackageSearchOptions, PackageSearchResult as _PackageSearchResult, PackageInstallOptions as _PackageInstallOptions, PackageInstallResult as _PackageInstallResult, 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, WebRequest as _WebRequest, WebResponse as _WebResponse, AuthenticationService as _AuthenticationService, AbstractAuthenticationService as _AbstractAuthenticationService, WebRequestHandler as _WebRequestHandler, AbstractWebRequestHandler as _AbstractWebRequestHandler, 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, PackageInstallPhase as _PackageInstallPhase, PackageRole as _PackageRole, OutputFormat as _OutputFormat, BundleFormat as _BundleFormat, TypeCheckMode as _TypeCheckMode, SourceMaps as _SourceMaps, JsCompression as _JsCompression, JsPlatform as _JsPlatform, GadgetBreakpointAction as _GadgetBreakpointAction, Realm as _Realm, Exceptor as _Exceptor, SessionDetachReason as _SessionDetachReason, Scope as _Scope, Stdio as _Stdio, ChildOrigin as _ChildOrigin, SnapshotTransport as _SnapshotTransport, ScriptRuntime as _ScriptRuntime, RelayKind as _RelayKind, XnuMachTrap as _XnuMachTrap, XnuBsdSyscall as _XnuBsdSyscall, 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";
|
|
1
|
+
import type { DeviceManager as _DeviceManager, DeviceAddedHandler as _DeviceAddedHandler, DeviceRemovedHandler as _DeviceRemovedHandler, DeviceChangedHandler as _DeviceChangedHandler, Device as _Device, SpawnGatingDisabledHandler as _SpawnGatingDisabledHandler, 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, PackageManager as _PackageManager, PackageManagerInstallProgressHandler as _PackageManagerInstallProgressHandler, Package as _Package, PackageSearchOptions as _PackageSearchOptions, PackageSearchResult as _PackageSearchResult, PackageInstallOptions as _PackageInstallOptions, PackageInstallResult as _PackageInstallResult, 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, SpawnGatingOptions as _SpawnGatingOptions, SessionOptions as _SessionOptions, ScriptOptions as _ScriptOptions, SnapshotOptions as _SnapshotOptions, PortalOptions as _PortalOptions, PeerOptions as _PeerOptions, Relay as _Relay, EndpointParameters as _EndpointParameters, WebRequest as _WebRequest, WebResponse as _WebResponse, AuthenticationService as _AuthenticationService, AbstractAuthenticationService as _AbstractAuthenticationService, WebRequestHandler as _WebRequestHandler, AbstractWebRequestHandler as _AbstractWebRequestHandler, 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, PackageInstallPhase as _PackageInstallPhase, PackageRole as _PackageRole, OutputFormat as _OutputFormat, BundleFormat as _BundleFormat, TypeCheckMode as _TypeCheckMode, SourceMaps as _SourceMaps, JsCompression as _JsCompression, JsPlatform as _JsPlatform, GadgetBreakpointAction as _GadgetBreakpointAction, Realm as _Realm, Exceptor as _Exceptor, SpawnGatingDisabledReason as _SpawnGatingDisabledReason, SessionDetachReason as _SessionDetachReason, Scope as _Scope, SpawnGatingScope as _SpawnGatingScope, Stdio as _Stdio, ChildOrigin as _ChildOrigin, SnapshotTransport as _SnapshotTransport, ScriptRuntime as _ScriptRuntime, RelayKind as _RelayKind, XnuMachTrap as _XnuMachTrap, XnuBsdSyscall as _XnuBsdSyscall, 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
2
|
export declare const MessageType: typeof _MessageType;
|
|
3
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, PackageManager: typeof _PackageManager, Package: typeof _Package, PackageSearchOptions: _PackageSearchOptions, PackageSearchResult: typeof _PackageSearchResult, PackageInstallOptions: _PackageInstallOptions, PackageInstallResult: typeof _PackageInstallResult, 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, WebRequest: typeof _WebRequest, WebResponse: typeof _WebResponse, AbstractAuthenticationService: typeof _AbstractAuthenticationService, AbstractWebRequestHandler: typeof _AbstractWebRequestHandler, 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, PackageInstallPhase: typeof _PackageInstallPhase, PackageRole: typeof _PackageRole, OutputFormat: typeof _OutputFormat, BundleFormat: typeof _BundleFormat, TypeCheckMode: typeof _TypeCheckMode, SourceMaps: typeof _SourceMaps, JsCompression: typeof _JsCompression, JsPlatform: typeof _JsPlatform, GadgetBreakpointAction: typeof _GadgetBreakpointAction, Realm: typeof _Realm, Exceptor: typeof _Exceptor, SessionDetachReason: typeof _SessionDetachReason, Scope: typeof _Scope, Stdio: typeof _Stdio, ChildOrigin: typeof _ChildOrigin, SnapshotTransport: typeof _SnapshotTransport, ScriptRuntime: typeof _ScriptRuntime, RelayKind: typeof _RelayKind, XnuMachTrap: typeof _XnuMachTrap, XnuBsdSyscall: typeof _XnuBsdSyscall, FileMonitorEvent: typeof _FileMonitorEvent, SocketFamily: typeof _SocketFamily, UnixSocketAddressType: typeof _UnixSocketAddressType;
|
|
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, PackageManager: typeof _PackageManager, Package: typeof _Package, PackageSearchOptions: _PackageSearchOptions, PackageSearchResult: typeof _PackageSearchResult, PackageInstallOptions: _PackageInstallOptions, PackageInstallResult: typeof _PackageInstallResult, 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, SpawnGatingOptions: _SpawnGatingOptions, SessionOptions: _SessionOptions, ScriptOptions: _ScriptOptions, SnapshotOptions: _SnapshotOptions, PortalOptions: _PortalOptions, PeerOptions: _PeerOptions, Relay: typeof _Relay, EndpointParameters: typeof _EndpointParameters, WebRequest: typeof _WebRequest, WebResponse: typeof _WebResponse, AbstractAuthenticationService: typeof _AbstractAuthenticationService, AbstractWebRequestHandler: typeof _AbstractWebRequestHandler, 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, PackageInstallPhase: typeof _PackageInstallPhase, PackageRole: typeof _PackageRole, OutputFormat: typeof _OutputFormat, BundleFormat: typeof _BundleFormat, TypeCheckMode: typeof _TypeCheckMode, SourceMaps: typeof _SourceMaps, JsCompression: typeof _JsCompression, JsPlatform: typeof _JsPlatform, GadgetBreakpointAction: typeof _GadgetBreakpointAction, Realm: typeof _Realm, Exceptor: typeof _Exceptor, SpawnGatingDisabledReason: typeof _SpawnGatingDisabledReason, SessionDetachReason: typeof _SessionDetachReason, Scope: typeof _Scope, SpawnGatingScope: typeof _SpawnGatingScope, Stdio: typeof _Stdio, ChildOrigin: typeof _ChildOrigin, SnapshotTransport: typeof _SnapshotTransport, ScriptRuntime: typeof _ScriptRuntime, RelayKind: typeof _RelayKind, XnuMachTrap: typeof _XnuMachTrap, XnuBsdSyscall: typeof _XnuBsdSyscall, FileMonitorEvent: typeof _FileMonitorEvent, SocketFamily: typeof _SocketFamily, UnixSocketAddressType: typeof _UnixSocketAddressType;
|
|
5
5
|
declare const frida: {
|
|
6
6
|
readonly DeviceManager: typeof _DeviceManager;
|
|
7
7
|
readonly Device: typeof _Device;
|
|
@@ -36,6 +36,7 @@ declare const frida: {
|
|
|
36
36
|
readonly FrontmostQueryOptions: _FrontmostQueryOptions;
|
|
37
37
|
readonly ApplicationQueryOptions: _ApplicationQueryOptions;
|
|
38
38
|
readonly ProcessQueryOptions: _ProcessQueryOptions;
|
|
39
|
+
readonly SpawnGatingOptions: _SpawnGatingOptions;
|
|
39
40
|
readonly SessionOptions: _SessionOptions;
|
|
40
41
|
readonly ScriptOptions: _ScriptOptions;
|
|
41
42
|
readonly SnapshotOptions: _SnapshotOptions;
|
|
@@ -70,8 +71,10 @@ declare const frida: {
|
|
|
70
71
|
readonly GadgetBreakpointAction: typeof _GadgetBreakpointAction;
|
|
71
72
|
readonly Realm: typeof _Realm;
|
|
72
73
|
readonly Exceptor: typeof _Exceptor;
|
|
74
|
+
readonly SpawnGatingDisabledReason: typeof _SpawnGatingDisabledReason;
|
|
73
75
|
readonly SessionDetachReason: typeof _SessionDetachReason;
|
|
74
76
|
readonly Scope: typeof _Scope;
|
|
77
|
+
readonly SpawnGatingScope: typeof _SpawnGatingScope;
|
|
75
78
|
readonly Stdio: typeof _Stdio;
|
|
76
79
|
readonly ChildOrigin: typeof _ChildOrigin;
|
|
77
80
|
readonly SnapshotTransport: typeof _SnapshotTransport;
|
|
@@ -105,6 +108,7 @@ declare namespace frida {
|
|
|
105
108
|
type DeviceRemovedHandler = _DeviceRemovedHandler;
|
|
106
109
|
type DeviceChangedHandler = _DeviceChangedHandler;
|
|
107
110
|
type Device = _Device;
|
|
111
|
+
type SpawnGatingDisabledHandler = _SpawnGatingDisabledHandler;
|
|
108
112
|
type SpawnAddedHandler = _SpawnAddedHandler;
|
|
109
113
|
type SpawnRemovedHandler = _SpawnRemovedHandler;
|
|
110
114
|
type ChildAddedHandler = _ChildAddedHandler;
|
|
@@ -166,6 +170,7 @@ declare namespace frida {
|
|
|
166
170
|
type FrontmostQueryOptions = _FrontmostQueryOptions;
|
|
167
171
|
type ApplicationQueryOptions = _ApplicationQueryOptions;
|
|
168
172
|
type ProcessQueryOptions = _ProcessQueryOptions;
|
|
173
|
+
type SpawnGatingOptions = _SpawnGatingOptions;
|
|
169
174
|
type SessionOptions = _SessionOptions;
|
|
170
175
|
type ScriptOptions = _ScriptOptions;
|
|
171
176
|
type SnapshotOptions = _SnapshotOptions;
|
|
@@ -204,8 +209,10 @@ declare namespace frida {
|
|
|
204
209
|
type GadgetBreakpointAction = _GadgetBreakpointAction;
|
|
205
210
|
type Realm = _Realm;
|
|
206
211
|
type Exceptor = _Exceptor;
|
|
212
|
+
type SpawnGatingDisabledReason = _SpawnGatingDisabledReason;
|
|
207
213
|
type SessionDetachReason = _SessionDetachReason;
|
|
208
214
|
type Scope = _Scope;
|
|
215
|
+
type SpawnGatingScope = _SpawnGatingScope;
|
|
209
216
|
type Stdio = _Stdio;
|
|
210
217
|
type ChildOrigin = _ChildOrigin;
|
|
211
218
|
type SnapshotTransport = _SnapshotTransport;
|
|
@@ -259,6 +266,7 @@ export type DeviceAddedHandler = _DeviceAddedHandler;
|
|
|
259
266
|
export type DeviceRemovedHandler = _DeviceRemovedHandler;
|
|
260
267
|
export type DeviceChangedHandler = _DeviceChangedHandler;
|
|
261
268
|
export type Device = _Device;
|
|
269
|
+
export type SpawnGatingDisabledHandler = _SpawnGatingDisabledHandler;
|
|
262
270
|
export type SpawnAddedHandler = _SpawnAddedHandler;
|
|
263
271
|
export type SpawnRemovedHandler = _SpawnRemovedHandler;
|
|
264
272
|
export type ChildAddedHandler = _ChildAddedHandler;
|
|
@@ -320,6 +328,7 @@ export type StaticAuthenticationService = _StaticAuthenticationService;
|
|
|
320
328
|
export type FrontmostQueryOptions = _FrontmostQueryOptions;
|
|
321
329
|
export type ApplicationQueryOptions = _ApplicationQueryOptions;
|
|
322
330
|
export type ProcessQueryOptions = _ProcessQueryOptions;
|
|
331
|
+
export type SpawnGatingOptions = _SpawnGatingOptions;
|
|
323
332
|
export type SessionOptions = _SessionOptions;
|
|
324
333
|
export type ScriptOptions = _ScriptOptions;
|
|
325
334
|
export type SnapshotOptions = _SnapshotOptions;
|
|
@@ -358,8 +367,10 @@ export type JsPlatform = _JsPlatform;
|
|
|
358
367
|
export type GadgetBreakpointAction = _GadgetBreakpointAction;
|
|
359
368
|
export type Realm = _Realm;
|
|
360
369
|
export type Exceptor = _Exceptor;
|
|
370
|
+
export type SpawnGatingDisabledReason = _SpawnGatingDisabledReason;
|
|
361
371
|
export type SessionDetachReason = _SessionDetachReason;
|
|
362
372
|
export type Scope = _Scope;
|
|
373
|
+
export type SpawnGatingScope = _SpawnGatingScope;
|
|
363
374
|
export type Stdio = _Stdio;
|
|
364
375
|
export type ChildOrigin = _ChildOrigin;
|
|
365
376
|
export type SnapshotTransport = _SnapshotTransport;
|
package/build/src/frida.js
CHANGED
|
@@ -804,7 +804,7 @@ export const LogLevel = binding.LogLevel;
|
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
806
|
binding.commitConstructors();
|
|
807
|
-
export const { DeviceManager, Device, RemoteDeviceOptions, Application, Process, ProcessMatchOptions, RawSpawnOptions, Spawn, Child, Crash, Bus, Service, Session, Script, PortalMembership, PackageManager, Package, PackageSearchOptions, PackageSearchResult, PackageInstallOptions, PackageInstallResult, ControlService, ControlServiceOptions, PortalService, FileMonitor, Compiler, CompilerOptions, BuildOptions, WatchOptions, StaticAuthenticationService, FrontmostQueryOptions, ApplicationQueryOptions, ProcessQueryOptions, SessionOptions, ScriptOptions, SnapshotOptions, PortalOptions, PeerOptions, Relay, EndpointParameters, WebRequest, WebResponse, AbstractAuthenticationService, AbstractWebRequestHandler, BaseObject, Cancellable, IOStream, InputStream, OutputStream, InetSocketAddress, InetAddress, UnixSocketAddress, BaseSocketAddress, SocketAddressEnumerator, Runtime, DeviceType, PackageInstallPhase, PackageRole, OutputFormat, BundleFormat, TypeCheckMode, SourceMaps, JsCompression, JsPlatform, GadgetBreakpointAction, Realm, Exceptor, SessionDetachReason, Scope, Stdio, ChildOrigin, SnapshotTransport, ScriptRuntime, RelayKind, XnuMachTrap, XnuBsdSyscall, FileMonitorEvent, SocketFamily, UnixSocketAddressType, } = binding;
|
|
807
|
+
export const { DeviceManager, Device, RemoteDeviceOptions, Application, Process, ProcessMatchOptions, RawSpawnOptions, Spawn, Child, Crash, Bus, Service, Session, Script, PortalMembership, PackageManager, Package, PackageSearchOptions, PackageSearchResult, PackageInstallOptions, PackageInstallResult, ControlService, ControlServiceOptions, PortalService, FileMonitor, Compiler, CompilerOptions, BuildOptions, WatchOptions, StaticAuthenticationService, FrontmostQueryOptions, ApplicationQueryOptions, ProcessQueryOptions, SpawnGatingOptions, SessionOptions, ScriptOptions, SnapshotOptions, PortalOptions, PeerOptions, Relay, EndpointParameters, WebRequest, WebResponse, AbstractAuthenticationService, AbstractWebRequestHandler, BaseObject, Cancellable, IOStream, InputStream, OutputStream, InetSocketAddress, InetAddress, UnixSocketAddress, BaseSocketAddress, SocketAddressEnumerator, Runtime, DeviceType, PackageInstallPhase, PackageRole, OutputFormat, BundleFormat, TypeCheckMode, SourceMaps, JsCompression, JsPlatform, GadgetBreakpointAction, Realm, Exceptor, SpawnGatingDisabledReason, SessionDetachReason, Scope, SpawnGatingScope, Stdio, ChildOrigin, SnapshotTransport, ScriptRuntime, RelayKind, XnuMachTrap, XnuBsdSyscall, FileMonitorEvent, SocketFamily, UnixSocketAddressType, } = binding;
|
|
808
808
|
const frida = {
|
|
809
809
|
DeviceManager,
|
|
810
810
|
Device,
|
|
@@ -839,6 +839,7 @@ const frida = {
|
|
|
839
839
|
FrontmostQueryOptions,
|
|
840
840
|
ApplicationQueryOptions,
|
|
841
841
|
ProcessQueryOptions,
|
|
842
|
+
SpawnGatingOptions,
|
|
842
843
|
SessionOptions,
|
|
843
844
|
ScriptOptions,
|
|
844
845
|
SnapshotOptions,
|
|
@@ -873,8 +874,10 @@ const frida = {
|
|
|
873
874
|
GadgetBreakpointAction,
|
|
874
875
|
Realm,
|
|
875
876
|
Exceptor,
|
|
877
|
+
SpawnGatingDisabledReason,
|
|
876
878
|
SessionDetachReason,
|
|
877
879
|
Scope,
|
|
880
|
+
SpawnGatingScope,
|
|
878
881
|
Stdio,
|
|
879
882
|
ChildOrigin,
|
|
880
883
|
SnapshotTransport,
|
|
@@ -37,6 +37,7 @@ export interface FridaBinding {
|
|
|
37
37
|
FrontmostQueryOptions: FrontmostQueryOptions;
|
|
38
38
|
ApplicationQueryOptions: ApplicationQueryOptions;
|
|
39
39
|
ProcessQueryOptions: ProcessQueryOptions;
|
|
40
|
+
SpawnGatingOptions: SpawnGatingOptions;
|
|
40
41
|
SessionOptions: SessionOptions;
|
|
41
42
|
ScriptOptions: ScriptOptions;
|
|
42
43
|
SnapshotOptions: SnapshotOptions;
|
|
@@ -74,8 +75,10 @@ export interface FridaBinding {
|
|
|
74
75
|
GadgetBreakpointAction: typeof GadgetBreakpointAction;
|
|
75
76
|
Realm: typeof Realm;
|
|
76
77
|
Exceptor: typeof Exceptor;
|
|
78
|
+
SpawnGatingDisabledReason: typeof SpawnGatingDisabledReason;
|
|
77
79
|
SessionDetachReason: typeof SessionDetachReason;
|
|
78
80
|
Scope: typeof Scope;
|
|
81
|
+
SpawnGatingScope: typeof SpawnGatingScope;
|
|
79
82
|
Stdio: typeof Stdio;
|
|
80
83
|
ChildOrigin: typeof ChildOrigin;
|
|
81
84
|
SnapshotTransport: typeof SnapshotTransport;
|
|
@@ -138,7 +141,7 @@ export class _Device extends BaseObject {
|
|
|
138
141
|
findProcessByPid(pid: number, options?: ProcessMatchOptions, cancellable?: Cancellable | null): Promise<Process | null>;
|
|
139
142
|
findProcessByName(name: string, options?: ProcessMatchOptions, cancellable?: Cancellable | null): Promise<Process | null>;
|
|
140
143
|
enumerateProcesses(options?: ProcessQueryOptions, cancellable?: Cancellable | null): Promise<Process[]>;
|
|
141
|
-
enableSpawnGating(cancellable?: Cancellable | null): Promise<void>;
|
|
144
|
+
enableSpawnGating(options?: SpawnGatingOptions, cancellable?: Cancellable | null): Promise<void>;
|
|
142
145
|
disableSpawnGating(cancellable?: Cancellable | null): Promise<void>;
|
|
143
146
|
enumeratePendingSpawn(cancellable?: Cancellable | null): Promise<Spawn[]>;
|
|
144
147
|
enumeratePendingChildren(cancellable?: Cancellable | null): Promise<Child[]>;
|
|
@@ -157,6 +160,7 @@ export class _Device extends BaseObject {
|
|
|
157
160
|
icon: any;
|
|
158
161
|
readonly type: DeviceType;
|
|
159
162
|
readonly bus: Bus;
|
|
163
|
+
readonly spawnGatingDisabled: Signal<SpawnGatingDisabledHandler>;
|
|
160
164
|
readonly spawnAdded: Signal<SpawnAddedHandler>;
|
|
161
165
|
readonly spawnRemoved: Signal<SpawnRemovedHandler>;
|
|
162
166
|
readonly childAdded: Signal<ChildAddedHandler>;
|
|
@@ -167,6 +171,7 @@ export class _Device extends BaseObject {
|
|
|
167
171
|
readonly lost: Signal<DeviceLostHandler>;
|
|
168
172
|
}
|
|
169
173
|
|
|
174
|
+
export type SpawnGatingDisabledHandler = (reason: SpawnGatingDisabledReason) => void;
|
|
170
175
|
export type SpawnAddedHandler = (spawn: Spawn) => void;
|
|
171
176
|
export type SpawnRemovedHandler = (spawn: Spawn) => void;
|
|
172
177
|
export type ChildAddedHandler = (child: Child) => void;
|
|
@@ -489,6 +494,10 @@ export interface ProcessQueryOptions {
|
|
|
489
494
|
scope?: Scope;
|
|
490
495
|
}
|
|
491
496
|
|
|
497
|
+
export interface SpawnGatingOptions {
|
|
498
|
+
scope?: SpawnGatingScope;
|
|
499
|
+
}
|
|
500
|
+
|
|
492
501
|
export interface SessionOptions {
|
|
493
502
|
linker_notifier_offsets?: number[];
|
|
494
503
|
realm?: Realm;
|
|
@@ -761,6 +770,11 @@ export enum Exceptor {
|
|
|
761
770
|
Off = "off"
|
|
762
771
|
}
|
|
763
772
|
|
|
773
|
+
export enum SpawnGatingDisabledReason {
|
|
774
|
+
ApplicationRequested = "application-requested",
|
|
775
|
+
WatchdogTimeout = "watchdog-timeout"
|
|
776
|
+
}
|
|
777
|
+
|
|
764
778
|
export enum SessionDetachReason {
|
|
765
779
|
ApplicationRequested = "application-requested",
|
|
766
780
|
ProcessReplaced = "process-replaced",
|
|
@@ -775,6 +789,12 @@ export enum Scope {
|
|
|
775
789
|
Full = "full"
|
|
776
790
|
}
|
|
777
791
|
|
|
792
|
+
export enum SpawnGatingScope {
|
|
793
|
+
Default = "default",
|
|
794
|
+
Applications = "applications",
|
|
795
|
+
Processes = "processes"
|
|
796
|
+
}
|
|
797
|
+
|
|
778
798
|
export enum Stdio {
|
|
779
799
|
Inherit = "inherit",
|
|
780
800
|
Pipe = "pipe"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
from . import model, naming
|
|
2
|
+
from .loader import compute_model
|
|
3
|
+
from .model import (Constructor, Direction, Enumeration, EnumerationMember,
|
|
4
|
+
Factory, InterfaceObjectType, Method, Model, Namespace,
|
|
5
|
+
ObjectType, Parameter, Procedure, Property, ReturnValue,
|
|
6
|
+
Signal, TransferOwnership, Type, ClassObjectType,
|
|
7
|
+
parse_gir)
|
|
8
|
+
from .naming import to_camel_case, to_macro_case, to_pascal_case, to_snake_case
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections import OrderedDict
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
from typing import List
|
|
7
|
+
|
|
8
|
+
from .model import Factory, Model, parse_gir
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def compute_model(
|
|
12
|
+
frida_gir: Path,
|
|
13
|
+
glib_gir: Path,
|
|
14
|
+
gobject_gir: Path,
|
|
15
|
+
gio_gir: Path,
|
|
16
|
+
customizations: object,
|
|
17
|
+
factory: Factory,
|
|
18
|
+
included_gio_object_types: List[str],
|
|
19
|
+
included_gio_enumerations: List[str],
|
|
20
|
+
seed_object_first: bool,
|
|
21
|
+
) -> Model:
|
|
22
|
+
glib = parse_gir(glib_gir, [], factory)
|
|
23
|
+
gobject = parse_gir(gobject_gir, [glib], factory)
|
|
24
|
+
gio = parse_gir(gio_gir, [glib, gobject], factory)
|
|
25
|
+
frida = parse_gir(frida_gir, [glib, gobject, gio], factory)
|
|
26
|
+
|
|
27
|
+
object_types = OrderedDict()
|
|
28
|
+
if seed_object_first:
|
|
29
|
+
object_types["Object"] = gobject.object_types["Object"]
|
|
30
|
+
object_types.update(frida.object_types)
|
|
31
|
+
else:
|
|
32
|
+
object_types.update(frida.object_types)
|
|
33
|
+
object_types["Object"] = gobject.object_types["Object"]
|
|
34
|
+
for t in included_gio_object_types:
|
|
35
|
+
object_types[t] = gio.object_types[t]
|
|
36
|
+
|
|
37
|
+
enumerations = OrderedDict(frida.enumerations)
|
|
38
|
+
for t in included_gio_enumerations:
|
|
39
|
+
enumerations[t] = gio.enumerations[t]
|
|
40
|
+
|
|
41
|
+
model = factory.model(
|
|
42
|
+
frida.namespace,
|
|
43
|
+
object_types,
|
|
44
|
+
enumerations,
|
|
45
|
+
customizations,
|
|
46
|
+
error_domain=frida.error_domain,
|
|
47
|
+
factory=factory,
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
for t in object_types.values():
|
|
51
|
+
t.model = model
|
|
52
|
+
for t in enumerations.values():
|
|
53
|
+
t.model = model
|
|
54
|
+
if model.error_domain is not None:
|
|
55
|
+
model.error_domain.model = model
|
|
56
|
+
|
|
57
|
+
return model
|