Skip to content

Instantly share code, notes, and snippets.

@ericdennisforever
ericdennisforever / HowToCompileAndroidEumlatorLKM.txt
Last active January 30, 2025 09:56
How to compile a Linux kernel module for Android Emulator(LDPLAYER/NOX)
- LDPlayer ver 9.0.45(9)
Android version 9
Kernel 4.4.146 #1 Thu Apr27 10:42:33 (ST 2023)
Build Number PQ3A 190705.003 release keys
$modinfo vboxsf.ko
vermagic: 4.4.146 SMP preempt mod_unload modversions
- To compile a linux kernel module:
git clone https://android.googlesource.com/kernel/goldfish/ -b android-goldfish-4.4-dev
@bouroo
bouroo / softether.sh
Last active January 8, 2025 13:03
Install softether vpn server on ubuntu 16.04+
#!/usr/bin/env bash
# Register vultr.com with free credit https://www.vultr.com/?ref=9206731-8H
# Create VPS
# Tested on Ubuntu 18.04, Debian 10.0
# Instructions:
# 1. Save this file as softether-installer.sh
# 2. chmod +x softether-installer.sh
# 3. Run: ./softether-installer.sh or bash softether-installer.sh
# 4. Initialize VPN server config: /usr/local/vpnserver/vpncmd
@subintp
subintp / encryptor.py
Created March 23, 2016 05:54
RSA/ECB with PKCS1 padding in Python
import rsa
import base64
# modulus in integer
MODULUS = 123456789996582395910301286053968077124788323801012630967456380836472396333396466272319708473453610663848909708214595391668878270127153659315097128748348977528953482874935452127643776505027944666257946919553474879512809890824078158244248097149714260265207481163611166304138228724039676901039297181889888815151
# exponent in integer
EXPONENT = 65537
PUBLIC_KEY = rsa.PublicKey(MODULUS, EXPONENT)