Skip to content

Instantly share code, notes, and snippets.

View Neio's full-sized avatar

Neio Zhou Neio

  • Cyberark
  • San Francisco Bay Area
View GitHub Profile
@Neio
Neio / SigningAssembly.md
Created June 1, 2024 01:24 — forked from cezarypiatek/SigningAssembly.md
Signing assembly
  1. Generate SNK file (you need to run console as admin)
& "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\sn.exe" -k ./MyKeys.snk
  1. Converting SNK file to base64 text file using PowerShell
@Neio
Neio / OsVersion.cs
Created June 2, 2016 09:27 — forked from emoacht/OsVersion.cs
A partial wrapper class of Restart Manager API
namespace RestartManagerWrapper
{
using System;
public static class OsVersion
{
private static readonly Version ver = Environment.OSVersion.Version;
/// <summary>
/// Whether OS is Windows Vista or newer
from Crypto.Cipher import AES
from StringIO import StringIO
from bplist import BPlistReader #https://github.com/farcaller/bplist-python
import M2Crypto
import gzip
import struct
def xor_strings(s, key):
res = ""
for i in xrange(len(s)):
from Crypto.Cipher import AES
from StringIO import StringIO
from bplist import BPlistReader #https://github.com/farcaller/bplist-python
import M2Crypto
import gzip
import struct
def xor_strings(s, key):
res = ""
for i in xrange(len(s)):