frida 16.1.4 → 16.1.5
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/dist/bus.d.ts +2 -2
- package/dist/cancellable.d.ts +1 -1
- package/dist/child.js +1 -1
- package/dist/device.d.ts +14 -13
- package/dist/device.js +7 -4
- package/dist/device_manager.d.ts +3 -3
- package/dist/endpoint_parameters.d.ts +2 -2
- package/dist/icon.d.ts +1 -1
- package/dist/index.d.ts +98 -98
- package/dist/portal_service.d.ts +11 -11
- package/dist/relay.js +1 -1
- package/dist/script.d.ts +4 -4
- package/dist/script.js +3 -3
- package/dist/session.d.ts +1 -1
- package/dist/session.js +1 -1
- package/dist/signals.d.ts +1 -1
- package/dist/socket_address.d.ts +1 -1
- package/dist/system_parameters.d.ts +1 -1
- package/package.json +8 -8
package/dist/bus.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ export declare class Bus {
|
|
|
12
12
|
post(message: any, data?: Buffer | null): void;
|
|
13
13
|
[inspect.custom](depth: any, options: any): string;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
16
|
-
export
|
|
15
|
+
export type BusDetachedHandler = () => void;
|
|
16
|
+
export type BusMessageHandler = (message: any, data: Buffer | null) => void;
|
package/dist/cancellable.d.ts
CHANGED
package/dist/child.js
CHANGED
package/dist/device.d.ts
CHANGED
|
@@ -47,21 +47,22 @@ export declare class Device {
|
|
|
47
47
|
injectLibraryFile(target: TargetProcess, path: string, entrypoint: string, data: string, cancellable?: Cancellable): Promise<InjecteeID>;
|
|
48
48
|
injectLibraryBlob(target: TargetProcess, blob: Buffer, entrypoint: string, data: string, cancellable?: Cancellable): Promise<InjecteeID>;
|
|
49
49
|
openChannel(address: string, cancellable?: Cancellable): Promise<IOStream>;
|
|
50
|
+
unpair(cancellable?: Cancellable): Promise<void>;
|
|
50
51
|
private getPid;
|
|
51
52
|
[inspect.custom](depth: any, options: any): string;
|
|
52
53
|
}
|
|
53
|
-
export
|
|
54
|
-
export
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export
|
|
58
|
-
export
|
|
59
|
-
export
|
|
60
|
-
export
|
|
61
|
-
export
|
|
62
|
-
export
|
|
63
|
-
export
|
|
64
|
-
export
|
|
54
|
+
export type ProcessID = number;
|
|
55
|
+
export type ProcessName = string;
|
|
56
|
+
export type InjecteeID = number;
|
|
57
|
+
export type FileDescriptor = number;
|
|
58
|
+
export type SpawnAddedHandler = (spawn: Spawn) => void;
|
|
59
|
+
export type SpawnRemovedHandler = (spawn: Spawn) => void;
|
|
60
|
+
export type ChildAddedHandler = (child: Child) => void;
|
|
61
|
+
export type ChildRemovedHandler = (child: Child) => void;
|
|
62
|
+
export type ProcessCrashedHandler = (crash: Crash) => void;
|
|
63
|
+
export type OutputHandler = (pid: ProcessID, fd: FileDescriptor, data: Buffer) => void;
|
|
64
|
+
export type UninjectedHandler = (id: InjecteeID) => void;
|
|
65
|
+
export type DeviceLostHandler = () => void;
|
|
65
66
|
export declare enum DeviceType {
|
|
66
67
|
Local = "local",
|
|
67
68
|
Remote = "remote",
|
|
@@ -142,7 +143,7 @@ export declare enum Stdio {
|
|
|
142
143
|
Inherit = "inherit",
|
|
143
144
|
Pipe = "pipe"
|
|
144
145
|
}
|
|
145
|
-
export
|
|
146
|
+
export type TargetProcess = ProcessID | ProcessName;
|
|
146
147
|
export interface SessionOptions {
|
|
147
148
|
realm?: Realm;
|
|
148
149
|
persistTimeout?: number;
|
package/dist/device.js
CHANGED
|
@@ -131,6 +131,9 @@ class Device {
|
|
|
131
131
|
async openChannel(address, cancellable) {
|
|
132
132
|
return new iostream_1.IOStream(await this.impl.openChannel(address, cancellable));
|
|
133
133
|
}
|
|
134
|
+
async unpair(cancellable) {
|
|
135
|
+
await this.impl.unpair(cancellable);
|
|
136
|
+
}
|
|
134
137
|
async getPid(target, cancellable) {
|
|
135
138
|
if (typeof target === "number") {
|
|
136
139
|
return target;
|
|
@@ -153,7 +156,7 @@ var DeviceType;
|
|
|
153
156
|
DeviceType["Local"] = "local";
|
|
154
157
|
DeviceType["Remote"] = "remote";
|
|
155
158
|
DeviceType["Usb"] = "usb";
|
|
156
|
-
})(DeviceType
|
|
159
|
+
})(DeviceType || (exports.DeviceType = DeviceType = {}));
|
|
157
160
|
/**
|
|
158
161
|
* How much data to collect about a given application or process.
|
|
159
162
|
*/
|
|
@@ -171,14 +174,14 @@ var Scope;
|
|
|
171
174
|
* Collect all parameters, including icons.
|
|
172
175
|
*/
|
|
173
176
|
Scope["Full"] = "full";
|
|
174
|
-
})(Scope
|
|
177
|
+
})(Scope || (exports.Scope = Scope = {}));
|
|
175
178
|
var Stdio;
|
|
176
179
|
(function (Stdio) {
|
|
177
180
|
Stdio["Inherit"] = "inherit";
|
|
178
181
|
Stdio["Pipe"] = "pipe";
|
|
179
|
-
})(Stdio
|
|
182
|
+
})(Stdio || (exports.Stdio = Stdio = {}));
|
|
180
183
|
var Realm;
|
|
181
184
|
(function (Realm) {
|
|
182
185
|
Realm["Native"] = "native";
|
|
183
186
|
Realm["Emulated"] = "emulated";
|
|
184
|
-
})(Realm
|
|
187
|
+
})(Realm || (exports.Realm = Realm = {}));
|
package/dist/device_manager.d.ts
CHANGED
|
@@ -20,6 +20,6 @@ export interface RemoteDeviceOptions {
|
|
|
20
20
|
token?: string;
|
|
21
21
|
keepaliveInterval?: number;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
23
|
+
export type DeviceAddedHandler = (device: Device) => void;
|
|
24
|
+
export type DeviceRemovedHandler = (device: Device) => void;
|
|
25
|
+
export type DevicesChangedHandler = () => void;
|
|
@@ -14,7 +14,7 @@ export interface EndpointParametersSubset {
|
|
|
14
14
|
authentication?: AuthenticationScheme;
|
|
15
15
|
assetRoot?: string;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export type AuthenticationScheme = TokenAuthenticationScheme | CallbackAuthenticationScheme;
|
|
18
18
|
export interface TokenAuthenticationScheme {
|
|
19
19
|
scheme: "token";
|
|
20
20
|
token: string;
|
|
@@ -23,4 +23,4 @@ export interface CallbackAuthenticationScheme {
|
|
|
23
23
|
scheme: "callback";
|
|
24
24
|
callback: AuthenticationCallback;
|
|
25
25
|
}
|
|
26
|
-
export
|
|
26
|
+
export type AuthenticationCallback = (token: string) => Promise<AuthenticatedSessionInfo>;
|
package/dist/icon.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -19,125 +19,125 @@ import * as sessionModule from "./session";
|
|
|
19
19
|
import * as socketAddressModule from "./socket_address";
|
|
20
20
|
import * as spawnModule from "./spawn";
|
|
21
21
|
import * as systemParametersModule from "./system_parameters";
|
|
22
|
-
export
|
|
22
|
+
export type DeviceManager = deviceManagerModule.DeviceManager;
|
|
23
23
|
export declare const DeviceManager: typeof deviceManagerModule.DeviceManager;
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
24
|
+
export type RemoteDeviceOptions = deviceManagerModule.RemoteDeviceOptions;
|
|
25
|
+
export type DeviceAddedHandler = deviceManagerModule.DeviceAddedHandler;
|
|
26
|
+
export type DeviceRemovedHandler = deviceManagerModule.DeviceRemovedHandler;
|
|
27
|
+
export type DevicesChangedHandler = deviceManagerModule.DevicesChangedHandler;
|
|
28
|
+
export type Device = deviceModule.Device;
|
|
29
29
|
export declare const Device: typeof deviceModule.Device;
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export
|
|
30
|
+
export type ProcessID = deviceModule.ProcessID;
|
|
31
|
+
export type ProcessName = deviceModule.ProcessName;
|
|
32
|
+
export type InjecteeID = deviceModule.InjecteeID;
|
|
33
|
+
export type FileDescriptor = deviceModule.FileDescriptor;
|
|
34
|
+
export type SpawnAddedHandler = deviceModule.SpawnAddedHandler;
|
|
35
|
+
export type SpawnRemovedHandler = deviceModule.SpawnRemovedHandler;
|
|
36
|
+
export type ChildAddedHandler = deviceModule.ChildAddedHandler;
|
|
37
|
+
export type ChildRemovedHandler = deviceModule.ChildRemovedHandler;
|
|
38
|
+
export type OutputHandler = deviceModule.OutputHandler;
|
|
39
|
+
export type UninjectedHandler = deviceModule.UninjectedHandler;
|
|
40
|
+
export type DeviceLostHandler = deviceModule.DeviceLostHandler;
|
|
41
|
+
export type DeviceType = deviceModule.DeviceType;
|
|
42
42
|
export declare const DeviceType: typeof deviceModule.DeviceType;
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
43
|
+
export type FrontmostQueryOptions = deviceModule.FrontmostQueryOptions;
|
|
44
|
+
export type ApplicationQueryOptions = deviceModule.ApplicationQueryOptions;
|
|
45
|
+
export type ProcessQueryOptions = deviceModule.ProcessQueryOptions;
|
|
46
|
+
export type ProcessMatchOptions = deviceModule.ProcessMatchOptions;
|
|
47
|
+
export type Scope = deviceModule.Scope;
|
|
48
48
|
export declare const Scope: typeof deviceModule.Scope;
|
|
49
|
-
export
|
|
50
|
-
export
|
|
49
|
+
export type SpawnOptions = deviceModule.SpawnOptions;
|
|
50
|
+
export type Stdio = deviceModule.Stdio;
|
|
51
51
|
export declare const Stdio: typeof deviceModule.Stdio;
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
export
|
|
52
|
+
export type TargetProcess = deviceModule.TargetProcess;
|
|
53
|
+
export type SessionOptions = deviceModule.SessionOptions;
|
|
54
|
+
export type Realm = deviceModule.Realm;
|
|
55
55
|
export declare const Realm: typeof deviceModule.Realm;
|
|
56
|
-
export
|
|
57
|
-
export
|
|
58
|
-
export
|
|
59
|
-
export
|
|
60
|
-
export
|
|
56
|
+
export type SystemParameters = systemParametersModule.SystemParameters;
|
|
57
|
+
export type SystemInterface = systemParametersModule.SystemInterface;
|
|
58
|
+
export type NetworkInterface = systemParametersModule.NetworkInterface;
|
|
59
|
+
export type CellularInterface = systemParametersModule.CellularInterface;
|
|
60
|
+
export type Session = sessionModule.Session;
|
|
61
61
|
export declare const Session: typeof sessionModule.Session;
|
|
62
|
-
export
|
|
63
|
-
export
|
|
62
|
+
export type SessionDetachedHandler = sessionModule.SessionDetachedHandler;
|
|
63
|
+
export type SessionDetachReason = sessionModule.SessionDetachReason;
|
|
64
64
|
export declare const SessionDetachReason: typeof sessionModule.SessionDetachReason;
|
|
65
|
-
export
|
|
66
|
-
export
|
|
67
|
-
export
|
|
65
|
+
export type PeerOptions = sessionModule.PeerOptions;
|
|
66
|
+
export type PortalOptions = sessionModule.PortalOptions;
|
|
67
|
+
export type Script = scriptModule.Script;
|
|
68
68
|
export declare const Script: typeof scriptModule.Script;
|
|
69
|
-
export
|
|
70
|
-
export
|
|
71
|
-
export
|
|
69
|
+
export type ScriptOptions = scriptModule.ScriptOptions;
|
|
70
|
+
export type SnapshotOptions = scriptModule.SnapshotOptions;
|
|
71
|
+
export type ScriptRuntime = scriptModule.ScriptRuntime;
|
|
72
72
|
export declare const ScriptRuntime: typeof scriptModule.ScriptRuntime;
|
|
73
|
-
export
|
|
74
|
-
export
|
|
75
|
-
export
|
|
76
|
-
export
|
|
77
|
-
export
|
|
73
|
+
export type ScriptDestroyedHandler = scriptModule.ScriptDestroyedHandler;
|
|
74
|
+
export type ScriptMessageHandler = scriptModule.ScriptMessageHandler;
|
|
75
|
+
export type ScriptLogHandler = scriptModule.ScriptLogHandler;
|
|
76
|
+
export type Message = scriptModule.Message;
|
|
77
|
+
export type MessageType = scriptModule.MessageType;
|
|
78
78
|
export declare const MessageType: typeof scriptModule.MessageType;
|
|
79
|
-
export
|
|
80
|
-
export
|
|
81
|
-
export
|
|
82
|
-
export
|
|
79
|
+
export type SendMessage = scriptModule.SendMessage;
|
|
80
|
+
export type ErrorMessage = scriptModule.ErrorMessage;
|
|
81
|
+
export type ScriptExports = scriptModule.ScriptExports;
|
|
82
|
+
export type LogLevel = scriptModule.LogLevel;
|
|
83
83
|
export declare const LogLevel: typeof scriptModule.LogLevel;
|
|
84
|
-
export
|
|
85
|
-
export
|
|
84
|
+
export type EnableDebuggerOptions = scriptModule.EnableDebuggerOptions;
|
|
85
|
+
export type Relay = relayModule.Relay;
|
|
86
86
|
export declare const Relay: typeof relayModule.Relay;
|
|
87
|
-
export
|
|
88
|
-
export
|
|
87
|
+
export type RelayProperties = relayModule.RelayProperties;
|
|
88
|
+
export type RelayKind = relayModule.RelayKind;
|
|
89
89
|
export declare const RelayKind: typeof relayModule.RelayKind;
|
|
90
|
-
export
|
|
90
|
+
export type PortalMembership = portalMembershipModule.PortalMembership;
|
|
91
91
|
export declare const PortalMembership: typeof portalMembershipModule.PortalMembership;
|
|
92
|
-
export
|
|
92
|
+
export type PortalService = portalServiceModule.PortalService;
|
|
93
93
|
export declare const PortalService: typeof portalServiceModule.PortalService;
|
|
94
|
-
export
|
|
95
|
-
export
|
|
96
|
-
export
|
|
97
|
-
export
|
|
98
|
-
export
|
|
99
|
-
export
|
|
100
|
-
export
|
|
101
|
-
export
|
|
102
|
-
export
|
|
103
|
-
export
|
|
104
|
-
export
|
|
105
|
-
export
|
|
106
|
-
export
|
|
94
|
+
export type PortalServiceOptions = portalServiceModule.PortalServiceOptions;
|
|
95
|
+
export type PortalConnectionId = portalServiceModule.PortalConnectionId;
|
|
96
|
+
export type PortalConnectionTag = portalServiceModule.PortalConnectionTag;
|
|
97
|
+
export type PortalNodeConnectedHandler = portalServiceModule.PortalNodeConnectedHandler;
|
|
98
|
+
export type PortalNodeJoinedHandler = portalServiceModule.PortalNodeJoinedHandler;
|
|
99
|
+
export type PortalNodeLeftHandler = portalServiceModule.PortalNodeLeftHandler;
|
|
100
|
+
export type PortalNodeDisconnectedHandler = portalServiceModule.PortalNodeDisconnectedHandler;
|
|
101
|
+
export type PortalControllerConnectedHandler = portalServiceModule.PortalControllerConnectedHandler;
|
|
102
|
+
export type PortalControllerDisconnectedHandler = portalServiceModule.PortalControllerDisconnectedHandler;
|
|
103
|
+
export type PortalAuthenticatedHandler = portalServiceModule.PortalAuthenticatedHandler;
|
|
104
|
+
export type PortalSubscribeHandler = portalServiceModule.PortalSubscribeHandler;
|
|
105
|
+
export type PortalMessageHandler = portalServiceModule.PortalMessageHandler;
|
|
106
|
+
export type EndpointParameters = endpointParametersModule.EndpointParameters;
|
|
107
107
|
export declare const EndpointParameters: typeof endpointParametersModule.EndpointParameters;
|
|
108
|
-
export
|
|
109
|
-
export
|
|
110
|
-
export
|
|
111
|
-
export
|
|
112
|
-
export
|
|
113
|
-
export
|
|
114
|
-
export
|
|
108
|
+
export type EndpointParametersSubset = endpointParametersModule.EndpointParametersSubset;
|
|
109
|
+
export type AuthenticationScheme = endpointParametersModule.AuthenticationScheme;
|
|
110
|
+
export type TokenAuthenticationScheme = endpointParametersModule.TokenAuthenticationScheme;
|
|
111
|
+
export type CallbackAuthenticationScheme = endpointParametersModule.CallbackAuthenticationScheme;
|
|
112
|
+
export type AuthenticationCallback = endpointParametersModule.AuthenticationCallback;
|
|
113
|
+
export type AuthenticatedSessionInfo = authenticationModule.AuthenticatedSessionInfo;
|
|
114
|
+
export type IOStream = iostreamModule.IOStream;
|
|
115
115
|
export declare const IOStream: typeof iostreamModule.IOStream;
|
|
116
|
-
export
|
|
116
|
+
export type Cancellable = cancellableModule.Cancellable;
|
|
117
117
|
export declare const Cancellable: typeof cancellableModule.Cancellable;
|
|
118
|
-
export
|
|
119
|
-
export
|
|
120
|
-
export
|
|
121
|
-
export
|
|
122
|
-
export
|
|
123
|
-
export
|
|
124
|
-
export
|
|
118
|
+
export type Application = applicationModule.Application;
|
|
119
|
+
export type ApplicationParameters = applicationModule.ApplicationParameters;
|
|
120
|
+
export type Process = processModule.Process;
|
|
121
|
+
export type ProcessParameters = processModule.ProcessParameters;
|
|
122
|
+
export type Spawn = spawnModule.Spawn;
|
|
123
|
+
export type Child = childModule.Child;
|
|
124
|
+
export type ChildOrigin = childModule.ChildOrigin;
|
|
125
125
|
export declare const ChildOrigin: typeof childModule.ChildOrigin;
|
|
126
|
-
export
|
|
127
|
-
export
|
|
128
|
-
export
|
|
129
|
-
export
|
|
130
|
-
export
|
|
131
|
-
export
|
|
126
|
+
export type Crash = crashModule.Crash;
|
|
127
|
+
export type CrashParameters = crashModule.CrashParameters;
|
|
128
|
+
export type Icon = iconModule.Icon;
|
|
129
|
+
export type RGBAIcon = iconModule.RGBAIcon;
|
|
130
|
+
export type PNGIcon = iconModule.PNGIcon;
|
|
131
|
+
export type Bus = busModule.Bus;
|
|
132
132
|
export declare const Bus: typeof busModule.Bus;
|
|
133
|
-
export
|
|
134
|
-
export
|
|
135
|
-
export
|
|
136
|
-
export
|
|
137
|
-
export
|
|
138
|
-
export
|
|
139
|
-
export
|
|
140
|
-
export
|
|
133
|
+
export type BusDetachedHandler = busModule.BusDetachedHandler;
|
|
134
|
+
export type BusMessageHandler = busModule.BusMessageHandler;
|
|
135
|
+
export type SocketAddress = socketAddressModule.SocketAddress;
|
|
136
|
+
export type IPV4SocketAddress = socketAddressModule.IPV4SocketAddress;
|
|
137
|
+
export type IPV6SocketAddress = socketAddressModule.IPV6SocketAddress;
|
|
138
|
+
export type AnonymousUnixSocketAddress = socketAddressModule.AnonymousUnixSocketAddress;
|
|
139
|
+
export type PathUnixSocketAddress = socketAddressModule.PathUnixSocketAddress;
|
|
140
|
+
export type AbstractUnixSocketAddress = socketAddressModule.AbstractUnixSocketAddress;
|
|
141
141
|
export declare function querySystemParameters(cancellable?: Cancellable): Promise<SystemParameters>;
|
|
142
142
|
export declare function spawn(program: string | string[], options?: SpawnOptions, cancellable?: Cancellable): Promise<number>;
|
|
143
143
|
export declare function resume(target: number | string, cancellable?: Cancellable): Promise<void>;
|
package/dist/portal_service.d.ts
CHANGED
|
@@ -35,14 +35,14 @@ export interface PortalServiceOptions {
|
|
|
35
35
|
clusterParams?: EndpointParameters;
|
|
36
36
|
controlParams?: EndpointParameters;
|
|
37
37
|
}
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
38
|
+
export type PortalConnectionId = number;
|
|
39
|
+
export type PortalConnectionTag = string;
|
|
40
|
+
export type PortalNodeConnectedHandler = (connectionId: PortalConnectionId, remoteAddress: SocketAddress) => void;
|
|
41
|
+
export type PortalNodeJoinedHandler = (connectionId: PortalConnectionId, application: Application) => void;
|
|
42
|
+
export type PortalNodeLeftHandler = (connectionId: PortalConnectionId, application: Application) => void;
|
|
43
|
+
export type PortalNodeDisconnectedHandler = (connectionId: PortalConnectionId, remoteAddress: SocketAddress) => void;
|
|
44
|
+
export type PortalControllerConnectedHandler = (connectionId: PortalConnectionId, remoteAddress: SocketAddress) => void;
|
|
45
|
+
export type PortalControllerDisconnectedHandler = (connectionId: PortalConnectionId, remoteAddress: SocketAddress) => void;
|
|
46
|
+
export type PortalAuthenticatedHandler = (connectionId: PortalConnectionId, sessionInfo: AuthenticatedSessionInfo) => void;
|
|
47
|
+
export type PortalSubscribeHandler = (connectionId: PortalConnectionId) => void;
|
|
48
|
+
export type PortalMessageHandler = (connectionId: PortalConnectionId, message: any, data: Buffer | null) => void;
|
package/dist/relay.js
CHANGED
package/dist/script.d.ts
CHANGED
|
@@ -37,10 +37,10 @@ export declare enum ScriptRuntime {
|
|
|
37
37
|
QJS = "qjs",
|
|
38
38
|
V8 = "v8"
|
|
39
39
|
}
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
40
|
+
export type ScriptDestroyedHandler = () => void;
|
|
41
|
+
export type ScriptMessageHandler = (message: Message, data: Buffer | null) => void;
|
|
42
|
+
export type ScriptLogHandler = (level: LogLevel, text: string) => void;
|
|
43
|
+
export type Message = SendMessage | ErrorMessage;
|
|
44
44
|
export declare enum MessageType {
|
|
45
45
|
Send = "send",
|
|
46
46
|
Error = "error"
|
package/dist/script.js
CHANGED
|
@@ -59,18 +59,18 @@ var ScriptRuntime;
|
|
|
59
59
|
ScriptRuntime["Default"] = "default";
|
|
60
60
|
ScriptRuntime["QJS"] = "qjs";
|
|
61
61
|
ScriptRuntime["V8"] = "v8";
|
|
62
|
-
})(ScriptRuntime
|
|
62
|
+
})(ScriptRuntime || (exports.ScriptRuntime = ScriptRuntime = {}));
|
|
63
63
|
var MessageType;
|
|
64
64
|
(function (MessageType) {
|
|
65
65
|
MessageType["Send"] = "send";
|
|
66
66
|
MessageType["Error"] = "error";
|
|
67
|
-
})(MessageType
|
|
67
|
+
})(MessageType || (exports.MessageType = MessageType = {}));
|
|
68
68
|
var LogLevel;
|
|
69
69
|
(function (LogLevel) {
|
|
70
70
|
LogLevel["Info"] = "info";
|
|
71
71
|
LogLevel["Warning"] = "warning";
|
|
72
72
|
LogLevel["Error"] = "error";
|
|
73
|
-
})(LogLevel
|
|
73
|
+
})(LogLevel || (exports.LogLevel = LogLevel = {}));
|
|
74
74
|
class ScriptServices extends signals_1.SignalAdapter {
|
|
75
75
|
constructor(script, signals) {
|
|
76
76
|
super(signals);
|
package/dist/session.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare class Session {
|
|
|
26
26
|
joinPortal(address: string, options?: PortalOptions, cancellable?: Cancellable): Promise<PortalMembership>;
|
|
27
27
|
[inspect.custom](depth: any, options: any): string;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
29
|
+
export type SessionDetachedHandler = (reason: SessionDetachReason, crash: Crash | null) => void;
|
|
30
30
|
export declare enum SessionDetachReason {
|
|
31
31
|
ApplicationRequested = "application-requested",
|
|
32
32
|
ProcessReplaced = "process-replaced",
|
package/dist/session.js
CHANGED
|
@@ -70,4 +70,4 @@ var SessionDetachReason;
|
|
|
70
70
|
SessionDetachReason["ProcessTerminated"] = "process-terminated";
|
|
71
71
|
SessionDetachReason["ConnectionTerminated"] = "connection-terminated";
|
|
72
72
|
SessionDetachReason["DeviceLost"] = "device-lost";
|
|
73
|
-
})(SessionDetachReason
|
|
73
|
+
})(SessionDetachReason || (exports.SessionDetachReason = SessionDetachReason = {}));
|
package/dist/signals.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare class Signal<T extends SignalHandler> {
|
|
|
9
9
|
connect(handler: T): void;
|
|
10
10
|
disconnect(handler: T): void;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type SignalHandler = (...args: any[]) => void;
|
|
13
13
|
export declare class SignalAdapter implements Signals {
|
|
14
14
|
protected signals: Signals;
|
|
15
15
|
private proxyHandlers;
|
package/dist/socket_address.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
export
|
|
2
|
+
export type SocketAddress = IPV4SocketAddress | IPV6SocketAddress | AnonymousUnixSocketAddress | PathUnixSocketAddress | AbstractUnixSocketAddress;
|
|
3
3
|
export interface IPV4SocketAddress {
|
|
4
4
|
family: "ipv4";
|
|
5
5
|
address: string;
|
|
@@ -46,7 +46,7 @@ export interface SystemParameters {
|
|
|
46
46
|
apiLevel?: number;
|
|
47
47
|
[name: string]: any;
|
|
48
48
|
}
|
|
49
|
-
export
|
|
49
|
+
export type SystemInterface = NetworkInterface | CellularInterface;
|
|
50
50
|
export interface NetworkInterface {
|
|
51
51
|
type: "ethernet" | "wifi" | "bluetooth";
|
|
52
52
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "frida",
|
|
3
|
-
"version": "16.1.
|
|
3
|
+
"version": "16.1.5",
|
|
4
4
|
"authors": [
|
|
5
5
|
"Frida Developers"
|
|
6
6
|
],
|
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
"dist/"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@frida/nan": "^2.16.1-frida.0",
|
|
32
|
-
"@frida/prebuild-install": "^7.1.2-frida.1",
|
|
33
31
|
"bindings": "^1.5.0",
|
|
34
|
-
"minimatch": "^
|
|
32
|
+
"minimatch": "^9.0.3",
|
|
33
|
+
"nan": "^2.18.0",
|
|
34
|
+
"prebuild-install": "^7.1.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@frida/prebuild": "^11.0.5-frida.0",
|
|
38
37
|
"@types/chai": "^4.2.18",
|
|
39
|
-
"@types/mocha": "^
|
|
40
|
-
"@types/node": "^
|
|
38
|
+
"@types/mocha": "^10.0.3",
|
|
39
|
+
"@types/node": "^20.8.8",
|
|
41
40
|
"chai": "^4.3.4",
|
|
42
41
|
"mocha": "^10.0.0",
|
|
42
|
+
"prebuild": "^12.1.0",
|
|
43
43
|
"ts-node": "^10.0.0",
|
|
44
|
-
"typescript": "^
|
|
44
|
+
"typescript": "^5.2.2"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"prepare": "npm run build",
|