Skip to content

Instantly share code, notes, and snippets.

View thinkycx's full-sized avatar
😀

thinkycx thinkycx

😀
View GitHub Profile
@thinkycx
thinkycx / fbootfix.md
Created March 13, 2018 09:08 — forked from smac89/fbootfix.md
Linux Fix Fastboot "no permissions, verify udev rules"

Determine your device id

  1. Unplug your device from the computer and type lsusb in the terminal. You should get an output similar to this:
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
@thinkycx
thinkycx / bupt-gateway.sh
Created March 11, 2018 05:51
bash script to connect to bupt gateway
#!/bin/bash
# author: thinkycx
# sudo ln -s ~/bupt-gateway.sh /usr/bin/bupt-gateway && source ~/.zshrc
user=XXX
password=XXX
URL="http://10.3.8.211"
HTTP_CODE=$(curl -s -IL $URL | head -n 1 | grep -o 200)
CODE=200
if [ $HTTP_CODE -eq 200 ];then
echo "Welcome to bupt!"
@thinkycx
thinkycx / spectre.c
Created January 5, 2018 04:08 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
#!/usr/bin/python
import sys
import struct
import hashlib
from zlib import adler32
def update_checksum(data):
m = hashlib.sha1()
m.update(data[32:])
@thinkycx
thinkycx / Kali 2017.1 x64, Docker-ce Install script
Created December 14, 2017 14:30 — forked from nikallass/Kali 2017.1 x64, Docker-ce Install script
Kali 2017.1 x64, Docker-ce Install script
#!/bin/bash
# update apt-get
export DEBIAN_FRONTEND="noninteractive"
sudo apt-get update
# remove previously installed Docker
sudo apt-get remove docker docker-engine docker.io* lxc-docker*
# install dependencies 4 cert
@thinkycx
thinkycx / pythonftp.py
Created August 30, 2017 07:48
python ftp server
import SimpleHTTPServer
import SocketServer
import socket
hostname = socket.gethostname()
ip = socket.gethostbyname(hostname)
ipList = socket.gethostbyname_ex(hostname)
PORT = 8001
@thinkycx
thinkycx / get-passwd-in-chrome.py
Created July 8, 2017 14:47
get-passwd-in-chrome
# get password saved in chrome
# pip install pypiwin32
# @lijiejie https://github.com/lijiejie/chromePass/blob/master/chromePass.py
import os, sys
import shutil
import sqlite3
import win32crypt
outFile_path = os.path.join(os.path.dirname(sys.executable),
# https://github.com/superkojiman/vulnerabilities/blob/master/Easy-File-Sharing-Web-Server-6.8/exploit.py
# https://blog.techorganic.com/2014/05/14/from-fuzzing-to-0-day/
# edited by thinkycx 20160309
# Exploit Title: Easy File Sharing Web Server 6.8 stack buffer overflow
# Date: 10 May 2014
# Exploit Author: superkojiman - http://www.techorganic.com
# Vendor Homepage: http://www.efssoft.com
# Software Link: http://www.sharing-file.com/efssetup.exe
# Version: 6.8
@thinkycx
thinkycx / S02-045.py
Created March 7, 2017 11:49 — forked from wcc526/S02-045.py
S02-045.py
#! /usr/bin/env python
# encoding:utf-8
import urllib2
import sys
from poster.encode import multipart_encode
from poster.streaminghttp import register_openers
def poc():
helllo world