Skip to content

Instantly share code, notes, and snippets.

View riverar's full-sized avatar

Rafael Rivera riverar

View GitHub Profile
// Rafael Rivera
// License: MIT
using System;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using MhanoHarkness; // NuGet: Base3264-UrlEncoder
namespace PublisherId_Sample
@riverar
riverar / hololens.ps1
Last active November 23, 2020 11:44
Hololens appx/appxbundle publishing cmdlet
#
# Very preliminary Hololens appx/appxbundle publishing cmdlet to stand-in for
# Windows 10 SDK's WinAppDeployCmd which doesn't seem to support HoloLens
#
# https://gist.github.com/riverar/4046c3f97582e63dca618ab7f99cd337
#
# Working:
# - Basic uploading of appx/appxbundle over HTTP
#
@riverar
riverar / explorer.patch
Created September 11, 2020 18:21
explorer.exe 10.0.20211.1000 > 10.0.20211.1005
--- 10.0.20211.1000 Fri Sep 11 11:18:25 2020
+++ 10.0.20211.1005 Fri Sep 11 11:18:29 2020
@@ -3414,11 +3414,9 @@
CTrayItem::GetApplicationIdentity(ushort *,unsigned __int64,bool *)
CTrayItem::GetItemGuidAsString(ushort *,int)
CTrayItem::IsDuplicate(void)
-CTrayItem::IsHidden(void)
CTrayItem::IsIdentityCached(void)
CTrayItem::IsScaGuid(_GUID const &)
CTrayItem::IsSystemAppIdentity(IApplicationResolver2 *,ushort const *,bool *)
ms-1.7z
md5:5CBAC93C9AB187D0ABD1FF21E1F13392
sha256:2C6D1D0A1EE9C0FE888FF06F4D09E29FC6D6DFCAFC0AFB2BF637276D9F19D77A
@riverar
riverar / gallery.json.txt
Last active April 3, 2020 18:02
Sample - Hyper-V Quick Create Online Gallery
@riverar
riverar / quiethours.idl
Last active September 21, 2019 23:57
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/)
// © 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 September 19, 2019 22:00
Example showing how to add a pseudo GOG game entry for Rainway use
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 / agent.js
Last active July 9, 2019 09:55
Frida agent, using Xamarin Mono APIs to access a static field and dump its value
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 / agreement.patch
Created March 5, 2019 20:18
App Developer Agreement 8.3 to 8.4 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
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>
<INDEX>