Skip to content

Instantly share code, notes, and snippets.

Rafael Rivera riverar

Block or report user

Report or block riverar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@riverar
riverar / quiethours.idl
Last active Sep 21, 2019
Example demonstrating how to retrieve the current Focus Assist profile's Priority Apps list (https://withinrafael.com/2019/09/19/determine-if-your-app-is-in-a-focus-assist-profiles-priority-list/)
View quiethours.idl
// © Rafael Rivera
// License: MIT
import "oaidl.idl";
[uuid(e0b5ef8b-a9b4-497a-8f71-08dd5c8ab2bf)]
library QuietHours
{
[uuid(f53321fa-34f8-4b7f-b9a3-361877cb94cf)]
coclass QuietHoursSettings
@riverar
riverar / custom-entry.reg
Last active Sep 19, 2019
Example showing how to add a pseudo GOG game entry for Rainway use
View custom-entry.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com\Games\MakeUpSomethingHere]
"EXE"="C:\\Windows\\Notepad.exe"
"EXEFILE"="Notepad.exe"
"LAUNCHCOMMAND"="C:\\Windows\\Notepad.exe"
"PATH"="C:\\Windows"
"GAMENAME"="The Emulator"
"DEPENDSON"=""
"WORKINGDIR"="C:\\Windows"
@riverar
riverar / services-agreement.patch
Last active Jul 11, 2019
Microsoft Services Agreement diff, [current] => [August 30, 2019]
View services-agreement.patch
--- old.txt Wed Jul 10 21:24:49 2019
+++ new.txt Wed Jul 10 21:24:52 2019
@@ -20 +20 @@
-vii. Don’t engage in activity that is harmful to you, the Services, or others (e.g., transmitting viruses, stalking, posting terrorist content, communicating hate speech, or advocating violence against others).
+vii. Don’t engage in activity that is harmful to you, the Services or others (e.g., transmitting viruses, stalking, posting terrorist or violent extremist content, communicating hate speech, or advocating violence against others).
@@ -25 +25 @@
-c. Application to Xbox Services. Click here for more information about how this Code of Conduct applies to Xbox Live, Games for Windows Live and Microsoft Studios games, applications, services and content provided by Microsoft. Violation of the Code of Conduct through Xbox Services (defined in section 14(a)(i)) may result in suspensions or bans from participation in Xbox Services, including forfeiture of content licenses, Xbox Gold Membership time, and Microsoft account ba
@riverar
riverar / agent-2.js
Created Jul 9, 2019
Frida agent, using Xamarin Mono APIs to intercept a full-AOT method and dump its single argument
View agent-2.js
import { MonoApiHelper, MonoApi } from 'frida-mono-api'
const domain = MonoApi.mono_get_root_domain()
// Get a handle to the SeeingAI.Core assembly
let coreAssembly = MonoApi.mono_assembly_load_with_partial_name(Memory.allocUtf8String("SeeingAI.Core"), NULL)
let coreImage = MonoApi.mono_assembly_get_image(coreAssembly)
// Retrieve class metadata
let helperClass = MonoApiHelper.ClassFromName(coreImage, "SeeingAI.Network.SignatureHelper")
@riverar
riverar / agent.js
Last active Jul 9, 2019
Frida agent, using Xamarin Mono APIs to access a static field and dump its value
View agent.js
import { MonoApiHelper, MonoApi } from 'frida-mono-api'
const domain = MonoApi.mono_get_root_domain()
// Get a handle to the SeeingAI.Core assembly
let coreAssembly = MonoApi.mono_assembly_load_with_partial_name(Memory.allocUtf8String("SeeingAI.Core"), NULL)
let coreImage = MonoApi.mono_assembly_get_image(coreAssembly)
// Retrieve class metadata
let helperClass = MonoApiHelper.ClassFromName(coreImage, "SeeingAI.Network.SignatureHelper")
@riverar
riverar / features.txt
Last active Oct 9, 2019
Quick n' dirty hack to enable Your Phone remoting, notification and other experiments
View features.txt
TestAABool
TestAAInt
TestAAString
TestChangeGate1
TestFeature1
TestFeature2
CelebrationToasts
ConnectWhenUserActive
ConnectWhenUserActiveTaskRetries
ContactThumbnails
@riverar
riverar / agreement.patch
Created Mar 5, 2019
App Developer Agreement 8.3 to 8.4 Patch
View agreement.patch
--- 8.3.txt Tue Mar 05 12:15:37 2019
+++ 8.4.txt Tue Mar 05 12:15:44 2019
@@ -1,4 +1,4 @@
-Thank you for your interest in building apps for Windows. This App Developer Agreement; Microsoft Store (this "Agreement") includes the Exhibits and all documents expressly referenced herein and describes the relationship between you and Microsoft Corporation (“Microsoft,” “we,” “us” or “our”) and governs your use of the Microsoft Store to make content available to Customers and the Developer Center.
+Thank you for your interest in building apps for Windows. This App Developer Agreement; Microsoft Store (this "Agreement") includes the Exhibits and all documents expressly referenced herein and describes the relationship between you and Microsoft Corporation (“Microsoft,” “we,” “us” or “our”) and governs your use of the Microsoft Store to make content available to Customers and Partner Center.
By agreeing to these terms, you represent and warrant to us that you have the authority to accept this Agreement, and you also
View appraiser_02282019.xml
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<SDB xmlns:xs="http://www.w3.org/2001/XMLSchema" path="appraiser.sdb">
<INDEXES>
<INDEX>
<INDEX_TAG type="xs:short">28679</INDEX_TAG>
<INDEX_KEY type="xs:short">24577</INDEX_KEY>
<INDEX_FLAGS type="xs:int">1</INDEX_FLAGS>
<INDEX_BITS type="xs:base64Binary" />
</INDEX>
View 18298_with_symbols.txt
## Unknown:
AADDeviceJoinerAsAdminServerPolicy: 0
# .\symbols\dsreg.pdb\48B0CC1C9C3C7EA957195EF3C9F490B51\dsreg.pdb
# .\symbols\dsreg.pdb\D97423E4AE9F6E116F5BE812C91E3DBD1\dsreg.pdb
AADMobileRoaming: 0
# .\symbols\SettingSyncCore.pdb\16F5561EFA3B4CB445B49B52241676F11\SettingSyncCore.pdb
# .\symbols\SettingSyncCore.pdb\2AEA14B0F066A5616E0CF072201F4FC11\SettingSyncCore.pdb
@riverar
riverar / focus_assist.cpp
Created Oct 30, 2018
Determine state of Quiet Hours/Focus Assist with WNF
View focus_assist.cpp
//
// Not to be used in any serious manner
//
#include <Windows.h>
#include <iostream>
#define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0)
typedef struct _WNF_STATE_NAME
{
You can’t perform that action at this time.