Skip to content

Instantly share code, notes, and snippets.

View T31337's full-sized avatar

Trenton T31337

  • 1337 Software
  • In The Interwebz, For All To See And Access Equally
View GitHub Profile
@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...";
@pvdvreede
pvdvreede / install.sh
Last active December 4, 2017 00:53
Arch Linux setup
#! /bin/bash
set -eu
install_partition=$1
# confirm we have internet
ping google.com
# make sure clock is up to date
@jhorikawa
jhorikawa / getPinterestBoardPins.py
Last active March 9, 2023 21:32
Download Pinterest images from specific board using Python.
import pprint
import requests
import os
from urllib.request import urlopen
accessToken = "xxxxxxxxxx"
boardId = "0000000000"
folderPath = "./images"
response = requests.get(
@howientc
howientc / xiobase.py
Created June 18, 2016 00:40
Gets the base of XIOs on C.H.I.P. computers. Currently on 4.3, it's 408, and on 4.4 it's 1016. This calculates it dynamically
import os
GPIO_PATH = "/sys/class/gpio" # The root of the GPIO directories
EXPANDER = "pcf8574a" # This is the expander that is used on CHIP for the XIOs
def get_xio_base():
'''
Determines the base of the XIOs on the system by iterating through the /sys/class/gpio
directory and looking for the expander that is used. It then looks for the
"base" file and returns its contents as an integer
@alvareztech
alvareztech / LoginActivity.java
Created March 14, 2016 20:41
Sample login Firebase Android.
public class LoginActivity extends AppCompatActivity {
private Firebase ref;
private Firebase.AuthResultHandler authResultHandler;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
@lopspower
lopspower / KeyboardUtils.java
Last active July 6, 2023 13:35
Force Hide Keyboard Android
import android.app.Activity;
import android.content.Context;
import android.graphics.Rect;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
public class KeyboardUtils {
public static void hideKeyboard(Activity activity) {
View view = activity.findViewById(android.R.id.content);
@UndergroundLabs
UndergroundLabs / gist:fad38205068ffb904685
Created October 3, 2015 19:46
Facebook Python Login Script
#!/home/drspock/scripts/FBInvite/bin/python
import argparse
import requests
import pyquery
def login(session, email, password):
'''
Attempt to login to Facebook. Returns user ID, xs token and
@redwallhp
redwallhp / clientchat.sh
Created July 6, 2015 13:58
Minecraft client chat log search
#!/usr/bin/env bash
# Minecraft folder
cd /Users/your_system_username/Library/Application\ Support/minecraft
function scan_logs {
@stevenswafford
stevenswafford / google-dorks
Created June 6, 2015 05:57
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@jrosco
jrosco / popup gtk.window
Last active December 4, 2017 00:20
Gtk icon popup gtk.window
#!/usr/bin/python
import gtk
class StatusIcon:
def __init__(self):
self.statusicon = gtk.StatusIcon()