Skip to content

Instantly share code, notes, and snippets.

shuax

Block or report user

Report or block shuax

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
View chrome_pass.py
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
import base64
# https://github.com/chromium/chromium/blob/master/components/os_crypt/os_crypt_win.cc
# Local State -> os_crypt.encrypted_key
# start with "DPAPI"
encrypted_key = "RFBBUElHFVPkvx6wPkLGBufud/s3Mjg5QwQqbPJ3kTB7aajsZw=="
encrypted_key = base64.b64decode(encrypted_key)[5:]
print('encrypted_key', encrypted_key, len(encrypted_key))
View wt.json
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"profiles": {
"defaults": { "initialRows": 60,
"initialCols":240,
View sublime.json
{
"color_scheme": "Packages/ayu/ayu-mirage.sublime-color-scheme",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
@shuax
shuax / qpys.py
Created Apr 28, 2019
qq拼音皮肤格式
View qpys.py
# pip install olefile
# pip install pywin32
import os
import zlib
import struct
import binascii
import olefile
import pythoncom
from win32com import storagecon
View getedge.py
import requests
requests.packages.urllib3.disable_warnings()
channels = [
'56EB18F8-B008-4CBD-B6D2-8C97FE7E9062',
'2CD8A007-E189-409D-A2C8-9AF4EF3C72AA',
'0D50BFEC-CD6A-4F9A-964C-C7416E3ACB10',
'65C35B14-6C1D-4122-AC46-7148CC9D6497',
]
View PfromC.py
import math
import random
def PfromC(C):
if not isinstance(C, float):
C = float(C)
pProcOnN = 0.0
pProcByN = 0.0
sumNpProcOnN = 0.0
View shuffle_assign.py
import random
def shuffle_assign(total, num):
remain = total - num
assert remain >= 0
points = []
for i in range(1, num):
point = random.randint(0, remain)
points.append(point)
points.append(remain)
points.sort()
View unity3d.py
from array import array
with open("Assembly-CSharp.dll", "rb") as encrypted_file:
data = encrypted_file.read()
key = "*********"
S = list(range(256))
j = 0
out = []
View cocos.py
import zipfile
import xxtea
import re
import os
# setXXTEAKeyAndSign
apk = zipfile.ZipFile("xxxx.apk", "r")
probe_file = []
View xxtea.py
import struct
_DELTA = 0x9E3779B9
def _long2str(v, w):
n = (len(v) - 1) << 2
if w:
m = v[-1]
if (m < n - 3) or (m > n): return ''
n = m
You can’t perform that action at this time.