Skip to content

Instantly share code, notes, and snippets.

View chrihala's full-sized avatar
🦠
F̓i̋͋ͧͬ̾̂ͨn͌̚d̐ͫ̓̇̃̊͗iͨͭ̄͌̾̂͐̚nͤ̍̃͂̏g̈́̑ͨͥͥ ͤ͐̀ͪͪ̒̉ͧb͐̈́̊ͫ͑uͮ̑̚gͯ̋͋̐̃ͤ̓̇̃šͮ̚

Christian Håland chrihala

🦠
F̓i̋͋ͧͬ̾̂ͨn͌̚d̐ͫ̓̇̃̊͗iͨͭ̄͌̾̂͐̚nͤ̍̃͂̏g̈́̑ͨͥͥ ͤ͐̀ͪͪ̒̉ͧb͐̈́̊ͫ͑uͮ̑̚gͯ̋͋̐̃ͤ̓̇̃šͮ̚
  • Binary Security
  • Norway
View GitHub Profile
@chrihala
chrihala / machineKeyFinder.aspx
Created October 24, 2022 11:44 — forked from irsdl/machineKeyFinder.aspx
To find validation and decryption keys when AutoGenerate has been used in Machine Key settings
<%@ Page Language="C#" %>
<%
// Read https://soroush.secproject.com/blog/2019/05/danger-of-stealing-auto-generated-net-machine-keys/
Response.Write("<br/><hr/>");
byte[] autoGenKeyV4 = (byte[]) Microsoft.Win32.Registry.GetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\ASP.NET\\4.0.30319.0\\", "AutoGenKeyV4", new byte[]{});
if(autoGenKeyV4!=null)
Response.Write("HKCU\\Software\\Microsoft\\ASP.NET\\4.0.30319.0\\AutoGenKeyV4: "+BitConverter.ToString(autoGenKeyV4).Replace("-", string.Empty));
Response.Write("<br/>");
byte[] autoGenKey = (byte[]) Microsoft.Win32.Registry.GetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\ASP.NET\\2.0.50727.0\\", "AutoGenKey", new byte[]{});
if(autoGenKey!=null)
@chrihala
chrihala / AdbCommands
Created July 2, 2019 07:48 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@chrihala
chrihala / latency.txt
Created May 31, 2012 16:42 — forked from jboner/latency.txt
Latency numbers every programmer should know
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns
Mutex lock/unlock 25 ns
Main memory reference 100 ns
Compress 1K bytes with Zippy 3,000 ns
Send 2K bytes over 1 Gbps network 20,000 ns
Read 1 MB sequentially from memory 250,000 ns
Round trip within same datacenter 500,000 ns
Disk seek 10,000,000 ns