Skip to content

Instantly share code, notes, and snippets.

View woachk's full-sized avatar

woachk

View GitHub Profile
PM> Install-Package Newtonsoft.Json
GET https://api.nuget.org/v3/registration1-gz/newtonsoft.json/index.json
OK https://api.nuget.org/v3/registration1-gz/newtonsoft.json/index.json 151 ms
Install-Package : '$(NetStandardImplicitPackageVersion)' n'est pas une chaîne de version valide.
Au caractère Ligne:1 : 1
+ Install-Package Newtonsoft.Json
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.
InstallPackageCommand
@woachk
woachk / Microsoft E2 architecture.md
Last active June 16, 2018 19:56
Only Microsoft.

Microsoft E2

Explicit data graph execution ISA

Hardware highlights

16-bit sized instructions in blocks of up to 128 instructions.

64 registers unified register file.

@woachk
woachk / Drawbridge
Last active October 26, 2018 19:19
Drawbridge
==========
Calls from the NTUM to the PAL
------------------------------
DkcallSemaphoreRelease
DkcallDebugStringPrint
DkcallSemaphoreCreate
DkcallConsoleNotifyUpdate
#include <stdio.h>
#include <windows.h>
#include <bcrypt.h>
#define STATUS_SUCCESS 0x00000000
int main(void) {
NTSTATUS ntStatus = STATUS_SUCCESS;
BCRYPT_ALG_HANDLE hAlg = NULL;
BCRYPT_KEY_HANDLE hKey = NULL;
ntStatus = BCryptOpenAlgorithmProvider(&hAlg, BCRYPT_RSA_ALGORITHM, MS_PRIMITIVE_PROVIDER, 0);
RSA32.lib functions:
ARM:
\gmac.obj AesGcmSwitchEndianness
\gmac.obj AesGmacFinal
\gmac.obj AesGmacInit
\gmac.obj AesGmacUpdate
\gmac.obj AesSwapAndXorBlock
\gmac.obj AesXorBlock
@woachk
woachk / rkos_extractor.py
Created August 12, 2019 11:28
Yikes, and I don't remember where that comes from...
#!/usr/bin/python
import sys, struct, os
if __name__ == '__main__':
myint = 4
real_offset = 48
if len(sys.argv) != 2:
print 'Usage: {} Firmware.bin'.format(sys.argv[0])
sys.exit(1)
in_file = sys.argv[1]
fp = open(in_file,'rb')
@woachk
woachk / retail_laptop.md
Last active April 24, 2020 14:55
A review of a Windows on Arm laptop... and the software.

Experiences with an Arm64 Windows laptop

This is describing the experience with a retail device, experience on the engineering devices that I played with before was a bit different to say the least...

Chosen model

A Snapdragon 835 laptop for 350 euros, with 4GB of RAM and 64GB of storage. LTE is present but won't be used.

@woachk
woachk / AAPL.md
Last active May 17, 2021 03:44
Apple in 2018: what's new

Apple devices in 2018

Notes

Both iPhone and Watch ship with a Secure Enclave processor. Both are also H11-class SoCs. As such, there are broad similarities between the different blocks. Embedded cores present on-die use firmware written with RTKit, which is Apple's own broadly-used RTOS on cores codenamed Chinook. The codename for the eSIM platform on both the iPhone and Watch is Vinyl. The NFC (+Apple Pay?) controller is named Stockholm, and the Apple Watch Series 4 + iPhone Xs and Xr ship with version 5.

@woachk
woachk / entitlements.txt
Created June 8, 2021 23:03
/System/Library/Frameworks/Virtualization.framework/XPCServices/com.apple.Virtualization.VirtualMachine.xpc/Contents/MacOS/com.apple.Virtualization.VirtualMachine entitlements
% codesign -d --entitlements :- /System/Library/Frameworks/Virtualization.framework/XPCServices/com.apple.Virtualization.VirtualMachine.xpc/Contents/MacOS/com.apple.Virtualization.VirtualMachine
Executable=/System/Library/Frameworks/Virtualization.framework/Versions/A/XPCServices/com.apple.Virtualization.VirtualMachine.xpc/Contents/MacOS/com.apple.Virtualization.VirtualMachine
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>com.apple.vm.networking</key><true/><key>com.apple.security.hypervisor</key><true/><key>com.apple.private.hypervisor.vmapple</key><true/><key>com.apple.usb.hostcontrollerinterface</key><true/><key>com.apple.private.security.message-filter</key><true/></dict></plist>%
@woachk
woachk / 9p.patch
Created December 11, 2020 17:11
Totally unsupported 9p on Darwin patch (inspired from the Julia Computing patchset circa 2018)
diff --git a/configure b/configure
index 18c26e0389..ceab414c5b 100755
--- a/configure
+++ b/configure
@@ -5754,22 +5754,26 @@ if [ "$eventfd" = "yes" ]; then
fi
if test "$softmmu" = yes ; then
- if test "$linux" = yes; then
- if test "$virtfs" != no && test "$cap_ng" = yes && test "$attr" = yes ; then