This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For symmetic encryption, you can use the following: | |
To encrypt: | |
openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt | |
To decrypt: | |
openssl aes-256-cbc -salt -a -d -in encrypted.txt -out plaintext.txt | |
For Asymmetric encryption you must first generate your private key and extract the public key. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, hashlib, urllib2, optparse | |
def get_remote_md5_sum(url,algorithm): | |
remote = urllib2.urlopen(url) | |
return hash(remote, algorithm) | |
def hash(remote, algorithm="md5"): | |
max_file_size=100*1024*1024 | |
if algorithm=="md5": | |
hash = hashlib.md5() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AKNativeAnisetteService.m | |
// akd | |
// | |
// Created by Scott Knight on 5/10/19. | |
// Copyright © 2019 Scott Knight. All rights reserved. | |
// | |
#import <AuthKit/AuthKit.h> | |
#import "AKNativeAnisetteService.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"context" | |
"crypto/tls" | |
"encoding/json" | |
"fmt" | |
"golang.org/x/oauth2" | |
"golang.org/x/oauth2/microsoft" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse, requests, urllib, os | |
from pyquery import PyQuery as pq | |
# CLI arguments | |
parser = argparse.ArgumentParser(description='OverDrive helper script') | |
parser.add_argument('--session', | |
help='manually set the session id (overrides \'OD_SESSION\' env)') | |
parser.add_argument('book', |
WARNING: BIOS modding can be dangerous. You run the risk of bricking your device. I am not responsible for broken devices.
This tutorial was created for my HP Pavilion 15 laptop. I cannot confirm that this works on any other devices.
We need to find the offset, varstore, and possible values for the DVMT pre-alloc.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Disables SSL pinning by replacing functions with no-ops. | |
function unpin() { | |
var SecTrustEvaluate_handle = Module.findExportByName('Security', 'SecTrustEvaluate'); | |
var SecTrustEvaluateWithError_handle = Module.findExportByName('Security', 'SecTrustEvaluateWithError'); | |
var SSL_CTX_set_custom_verify_handle = Module.findExportByName('libboringssl.dylib', 'SSL_CTX_set_custom_verify'); | |
var SSL_get_psk_identity_handle = Module.findExportByName('libboringssl.dylib', 'SSL_get_psk_identity'); | |
var boringssl_context_set_verify_mode_handle = Module.findExportByName('libboringssl.dylib', 'boringssl_context_set_verify_mode'); | |
if (SecTrustEvaluateWithError_handle) { | |
var SecTrustEvaluateWithError = new NativeFunction(SecTrustEvaluateWithError_handle, 'int', ['pointer', 'pointer']); |
OlderNewer