Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions types/frida-gum/frida-gum-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,3 +556,17 @@ for (const e of Process.getModuleByName("libc.so").enumerateExports()) {
// $ExpectType number | undefined
e.size;
}

const x86Writer = new X86Writer(Memory.alloc(Process.pageSize));
x86Writer.putVmovdqu64RegOffsetPtrZmm("rax", 0, 0);
x86Writer.putVmovdqu64ZmmRegOffsetPtr(0, "rax", 0);
x86Writer.putVextracti64x4RegOffsetPtrZmm("rax", 0, 0, 1);
x86Writer.putVinserti64x4ZmmRegOffsetPtr(0, "rax", 0, 1);
x86Writer.putKmovqRegOffsetPtrKreg("rax", 0, 0);
x86Writer.putKmovqKregRegOffsetPtr(0, "rax", 0);
x86Writer.flush();

const arm64Writer = new Arm64Writer(Memory.alloc(Process.pageSize));
arm64Writer.putMovkRegImm("x0", 0x1234, 16);
arm64Writer.putPaciaRegReg("x0", "x1");
arm64Writer.flush();
50 changes: 50 additions & 0 deletions types/frida-gum/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5758,6 +5758,46 @@ declare class X86Writer {
*/
putFxrstorRegPtr(reg: X86Register): void;

/**
* Puts a VMOVDQU64 ZMM instruction.
*/
putVmovdqu64RegOffsetPtrZmm(dstBase: X86Register, dstOffset: number | Int64 | UInt64, srcZmm: number): void;

/**
* Puts a VMOVDQU64 ZMM instruction.
*/
putVmovdqu64ZmmRegOffsetPtr(dstZmm: number, srcBase: X86Register, srcOffset: number | Int64 | UInt64): void;

/**
* Puts a VEXTRACTI64X4 ZMM instruction.
*/
putVextracti64x4RegOffsetPtrZmm(
dstBase: X86Register,
dstOffset: number | Int64 | UInt64,
srcZmm: number,
imm: number,
): void;

/**
* Puts a VINSERTI64X4 ZMM instruction.
*/
putVinserti64x4ZmmRegOffsetPtr(
dstZmm: number,
srcBase: X86Register,
srcOffset: number | Int64 | UInt64,
imm: number,
): void;

/**
* Puts a KMOVQ KREG instruction.
*/
putKmovqRegOffsetPtrKreg(dstBase: X86Register, dstOffset: number | Int64 | UInt64, srcKreg: number): void;

/**
* Puts a KMOVQ KREG instruction.
*/
putKmovqKregRegOffsetPtr(dstKreg: number, srcBase: X86Register, srcOffset: number | Int64 | UInt64): void;

/**
* Puts a uint8.
*/
Expand Down Expand Up @@ -7325,6 +7365,11 @@ declare class Arm64Writer {
*/
putMovNzcvReg(reg: Arm64Register): void;

/**
* Puts a MOVK instruction.
*/
putMovkRegImm(reg: Arm64Register, imm: number, shift: number): void;

/**
* Puts an UXTW instruction.
*/
Expand Down Expand Up @@ -7390,6 +7435,11 @@ declare class Arm64Writer {
*/
putXpaciReg(reg: Arm64Register): void;

/**
* Puts a PACIA instruction.
*/
putPaciaRegReg(dstReg: Arm64Register, modReg: Arm64Register): void;

/**
* Puts a NOP instruction.
*/
Expand Down
2 changes: 1 addition & 1 deletion types/frida-gum/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@types/frida-gum",
"version": "19.9.9999",
"version": "19.10.9999",
"nonNpm": true,
"nonNpmDescription": "frida-gum",
"projects": [
Expand Down
8 changes: 4 additions & 4 deletions types/office-js-preview/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11926,7 +11926,7 @@ declare namespace Office {
*
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
*
* *Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* **Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* To remove an inline attachment, first get the item's body, then remove any references of the attachment from its contents.
* Use the {@link https://learn.microsoft.com/javascript/api/outlook/office.body | Office.Body} APIs to get and set the body of an item.
*
Expand Down Expand Up @@ -11960,7 +11960,7 @@ declare namespace Office {
*
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
*
* *Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* **Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* To remove an inline attachment, first get the item's body, then remove any references of the attachment from its contents.
* Use the {@link https://learn.microsoft.com/javascript/api/outlook/office.body | Office.Body} APIs to get and set the body of an item.
*
Expand Down Expand Up @@ -21154,7 +21154,7 @@ declare namespace Office {
*
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
*
* *Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* **Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* To remove an inline attachment, first get the item's body, then remove any references of the attachment from its contents.
* Use the {@link https://learn.microsoft.com/javascript/api/outlook/office.body | Office.Body} APIs to get and set the body of an item.
*
Expand Down Expand Up @@ -21188,7 +21188,7 @@ declare namespace Office {
*
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
*
* *Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* **Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* To remove an inline attachment, first get the item's body, then remove any references of the attachment from its contents.
* Use the {@link https://learn.microsoft.com/javascript/api/outlook/office.body | Office.Body} APIs to get and set the body of an item.
*
Expand Down
8 changes: 4 additions & 4 deletions types/office-js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11905,7 +11905,7 @@ declare namespace Office {
*
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
*
* *Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* **Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* To remove an inline attachment, first get the item's body, then remove any references of the attachment from its contents.
* Use the {@link https://learn.microsoft.com/javascript/api/outlook/office.body | Office.Body} APIs to get and set the body of an item.
*
Expand Down Expand Up @@ -11939,7 +11939,7 @@ declare namespace Office {
*
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
*
* *Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* **Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* To remove an inline attachment, first get the item's body, then remove any references of the attachment from its contents.
* Use the {@link https://learn.microsoft.com/javascript/api/outlook/office.body | Office.Body} APIs to get and set the body of an item.
*
Expand Down Expand Up @@ -20907,7 +20907,7 @@ declare namespace Office {
*
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
*
* *Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* **Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* To remove an inline attachment, first get the item's body, then remove any references of the attachment from its contents.
* Use the {@link https://learn.microsoft.com/javascript/api/outlook/office.body | Office.Body} APIs to get and set the body of an item.
*
Expand Down Expand Up @@ -20941,7 +20941,7 @@ declare namespace Office {
*
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
*
* *Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* **Important**: The `removeAttachmentAsync` method doesn't remove inline attachments from a mail item.
* To remove an inline attachment, first get the item's body, then remove any references of the attachment from its contents.
* Use the {@link https://learn.microsoft.com/javascript/api/outlook/office.body | Office.Body} APIs to get and set the body of an item.
*
Expand Down