Skip to content

Instantly share code, notes, and snippets.

View physics-sec's full-sized avatar
🤠
Pigeons as C2 channel

Physics physics-sec

🤠
Pigeons as C2 channel
View GitHub Profile
@physics-sec
physics-sec / decrypt_encrypt_js_appcelerator.py
Created May 27, 2020 01:14
Little Python3 script that decrypts and encrypts the JS files contained in the Android apps made with Appcelerator
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import struct
from Crypto.Cipher import AES
def unpad(s):
if len(s) % 16 != 0:
raise Exception('Bad Padding!')
pad_len = s[-1]
@physics-sec
physics-sec / arch-install_2-disks_LUKS-on-LVM_UEFI.sh
Created May 20, 2020 03:30
Install Arch Linux on an SSD, add a HDD as an extra directory, encrypt everything.
# The idea is install arch in a SSD and add a HDD disk as an 'extra' folder.
# Encript everything with LUKS on LVM
# Use UEFI
# Use a very simple layout, almost no disk partitioning
# select the correct keyboard layout
loadkeys la-latin1 # la-latin1 is just an example
# get an internet connection