Skip to content

Instantly share code, notes, and snippets.

@jmingov
jmingov / setupenv
Created August 18, 2017 21:18 — forked from nethunteros/setupenv
Easily select toolchain between 64bit and 32 bit kernel builds for Android
#/bin/bash
#
# Download toolschains:
# git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7 toolchain
# git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 -b marshmallow-release toolchain64
#
# Instructions to set toolchain for build:
# source setupenv 64
case "$1" in
@jmingov
jmingov / golang_on_rpi.md
Last active March 22, 2019 02:45 — forked from konradko/golang_on_rpi.md
Install Golang 1.8.1 on Raspberry Pi
wget https://storage.googleapis.com/golang/go1.8.1.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.8.1.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
wget https://nodejs.org/dist/v7.10.0/node-v7.10.0-linux-armv7l.tar.xz 
tar -xvf node-v7.10.0-linux-armv7l.tar.xz
cd node-v7.10.0-linux-armv7l
@jmingov
jmingov / linux.sh
Created January 10, 2017 16:08 — forked from marcan/linux.sh
Linux kernel initialization, translated to bash
#!/boot/bzImage
# Linux kernel userspace initialization code, translated to bash
# (Minus floppy disk handling, because seriously, it's 2017.)
# Not 100% accurate, but gives you a good idea of how kernel init works
# GPLv2, Copyright 2017 Hector Martin <marcan@marcan.st>
# Based on Linux 4.10-rc2.
# Note: pretend chroot is a builtin and affects the current process
# Note: kernel actually uses major/minor device numbers instead of device name
// TLS config, do not set InsecureSkipVerify to true in production
// since it will accept all certificates
config := &tls.Config{
InsecureSkipVerify: false,
ServerName: host,
}
c, err := smtp.Dial(server)
if err != nil {
log.Fatal(err)
@jmingov
jmingov / _service.md
Created January 2, 2017 16:56 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@jmingov
jmingov / NETHUNTEROS.MD
Created November 26, 2016 17:10 — forked from binkybear/NETHUNTEROS.MD
Nethunter ROM on Nexus 5 (testing only)

Nethunter OS on Nexus 5

Here are instructions to install Nethunter (as a ROM) with working native monitor mode in the chroot using Nexmon. The ROM is a modified CM 14.1 (nougat) base with custom kernel which supports: HID, Drivedroid, Kexec, and external wireless.

What you need

You will need the following 3 items (maybe 4):

@jmingov
jmingov / gpg-import-and-export-instructions.md
Created February 13, 2016 09:03 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@jmingov
jmingov / gist:baa62db53ca26ad20241
Created January 4, 2016 23:57 — forked from binkybear/gist:25bef6e646adc619b4a5
NH - Read text file > output to hid
#!/bin/bash
INPUT=$1
HIDKEY="/system/xbin/hid-keyboard"
while IFS= read -r -N 1 char; do
if [ "$char" == $'\n' ] || [ "$char" == $'\r' ]; then
# For each new line = return key
echo enter | $HIDKEY /dev/hidg0 keyboard
else
@jmingov
jmingov / JSRat.ps1
Created December 31, 2015 03:19
Fileless JavaScript Reverse HTTP Shell
<#
Author: Casey Smith @subTee
License: BSD3-Clause
.SYNOPSIS
Simple Reverse Shell over HTTP. Execute Commands on Client.
@jmingov
jmingov / ADES.md
Last active November 11, 2015 03:42
Android Development ENV SETUP

##ANDROID DEVELOPMENT ENVIROMENT SETUP (Kali Nethunter)

Folder Structure:

$HOME/Android (Base folder)

$HOME/Android/StudioProjects (Proyects Folder)
$HOME/Android/Sdk (Sdk stuff)
$HOME/Android/Keys (Keys for signing the apk)

> (only needed for release not for debug) *You need your own keys