Skip to content

Instantly share code, notes, and snippets.

View HemanthJabalpuri's full-sized avatar

Hemanth HemanthJabalpuri

View GitHub Profile
@ghostrider-reborn
ghostrider-reborn / unpack-moto-img.py
Last active November 1, 2023 01:13
Unpack motorola radio/bootloader.img
#!/usr/bin/env python
#
# based on https://pastebin.com/raw/9w5TBnSv
# credits to original author HemanthJabalpuri @ XDA
# converted to python using chatgpt
import struct
import sys
def abort(msg):
@bdeshi
bdeshi / layout.test
Last active April 16, 2024 01:09
multiling o keyboard config.
{
"title":"DIY-untitled",
"onScreen":{
"main":[
"1234567890",
"qwertyuiop",
"asdfghjkl",
"[SHIFT][XK:z[UNDO]][XK:x[CUT]][XK:c[COPY]][XK:v[PASTE]]bnm[DEL]",
"[TOOL][ALTGR:,][SPACE][][][SYM:.][ENTER]"
],
@michaeljymsgutierrez
michaeljymsgutierrez / Fastboot_cmd.txt
Created October 5, 2017 01:14
Fastboot command lines for android
1. Flashing the recovery image:
fastboot flash recovery recovery.img
2. Flash the kernel and bootloader:
fastboot flash boot boot.img
3. Erase a partition:
fastboot erase cache
@Arinerron
Arinerron / root.sh
Last active June 10, 2024 17:35
"Root" via dirtyc0w privilege escalation exploit (automation script) / Android (32 bit)
#!/bin/bash
# Give the usual warning.
clear;
echo "[INFO] Automated Android root script started.\n\n[WARN] Exploit requires sdk module \"NDK\".\nFor more information, visit the installation guide @ https://goo.gl/E2nmLF\n[INFO] Press Ctrl+C to stop the script if you need to install the NDK module. Waiting 10 seconds...";
sleep 10;
clear;
# Download and extract exploit files.
echo "[INFO] Downloading exploit files from GitHub...";
@culots
culots / gpt_parser.py
Created September 2, 2016 07:19
Feed this your GPT.bin, and out it shoots a partition.xml
#!/usr/bin/python
# Author : n0fate
# E-Mail rapfer@gmail.com, n0fate@live.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
@hirman74
hirman74 / CiscoKeyGen.py
Last active September 29, 2023 10:52 — forked from paalfe/CiscoKeyGen.py
This is a fork of Cisco IOU License Generator to run on Mac OSX. Make the file executable with " chmod +x CiscoKeyGen.py " and execute it " ./CiscoKeyGen.py ".
#! /usr/bin/python
print "\n*********************************************************************"
print "Cisco IOU License Generator - Kal 2011, python port of 2006 C version"
import os
import socket
import hashlib
import struct
# get the host id and host name to calculate the hostkey
#hostid=os.popen("hostid").read().strip() # for linux
hostid=str(os.popen('hostid')).split()[-1][2:-1] # for Mac OSX 10.9.3 Python 2.7.5
@paalfe
paalfe / CiscoKeyGen.py
Created May 17, 2015 20:45
Cisco IOU License Generator. Originally found at http://www.routingloops.co.uk/cisco/gns3-v1-1-install-on-ubuntu-14-04-lts/, I have done a few changes to it. Make the file executable with " chmod +x CiscoKeyGen.py " and execute it " ./CiscoKeyGen.py ".
#! /usr/bin/python
print "\n*********************************************************************"
print "Cisco IOU License Generator - Kal 2011, python port of 2006 C version"
import os
import socket
import hashlib
import struct
# get the host id and host name to calculate the hostkey
hostid=os.popen("hostid").read().strip()
hostname = socket.gethostname()
@davidpots
davidpots / 500 days of summer (timeline)
Created May 20, 2014 19:13
"500 Days of Summer" breakdown of the movie timeline
500 DAYS OF SUMMER -- breakdown of the movie timeline
by David Potsiadlo (@davidpots)
------------------------------------------------------------------------
============================================================================================================
THE ORDER SEEN IN THE MOVIE
============================================================================================================
488 0:00:51 on a bench, she has the ring
1 0:01:10 tom his his board meeting. jan 8th. when he first sees summer in his office.
@maluta
maluta / dalvik.sh
Created October 5, 2011 13:12
Command line Java on DalvikVM
#!/bin/sh
DIR="tmp_"$$
JAR=`echo $1 | tr '.' ' ' | awk '{ print $1 }'`
rm -rf $JAR.jar
mkdir $DIR
cp $1 $DIR
cd $DIR
echo "** Compiling java file..."
javac -d . -g $1
echo "** Creating temporary jar..."