Skip to content

Instantly share code, notes, and snippets.

View singleghost's full-sized avatar

dddong singleghost

View GitHub Profile
// ==UserScript==
// @name 体测程序查询(根据学号)
// @namespace tyys
// @description 公体部的锅
// @include http://www.tyys.zju.edu.cn:8080/hyz/*
// @version 1
// @grant none
// ==/UserScript==
function createSearchArea() {
// ==UserScript==
// @name 教务网验证码识别
// @namespace dddong.org.cn
// @description 识别验证码的脚本
// @include http://10.202.78.12/*
// @version 1
// @grant none
// ==/UserScript==
//vertical 5~17
@singleghost
singleghost / Readme.md
Last active October 4, 2017 06:59
毕业自审表自动填写程序

毕业自审表自动填写小程序使用说明

环境:

python3、pip3、Excel

使用步骤(Mac或 Linux)

@singleghost
singleghost / extract_embedded_exe_file.py
Created October 11, 2017 02:14
idapython脚本,用来自动提取 binary 文件中嵌入的 exe可执行文件
import pefile
def find_string_occurrences(string):
results = []
base = idaapi.get_imagebase() + 1024
while True:
ea = FindBinary(base, SEARCH_NEXT|SEARCH_DOWN|SEARCH_CASE, '"%s"' % string)
if ea != 0xFFFFFFFF:
base = ea+1
else:
break
@singleghost
singleghost / .vimrc
Last active May 25, 2018 03:01
vim 配置脚本
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
@singleghost
singleghost / .zshrc
Created January 7, 2018 14:06
zsh配置脚本
export PATH=/home/dddong/softwares/node-v8.9.1-linux-x64/bin/:/home/dddong/bin:/home/dddong/third_party/llvm-build/Release+Asserts/bin/:/home/dddong/softwares/depot_tools:~/go/bin:/usr/local/nginx/sbin:/home/dddong/workspace/Android-build/aarch64-linux-android-4.9-ce9d77505072450d2f16a4bf06673f31d8d67ff0/bin:/home/dddong/bin:/usr/local/bin:/usr/local/cbc/bin:$PATH:/home/dddong/softwares/build_chromium/depot_tools
# Path to your oh-my-zsh installation.
export ZSH=/home/dddong/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
@singleghost
singleghost / wx_cmds.txt
Created March 26, 2018 08:06 — forked from wong2/cmds.txt
在任意聊天中输入。 [ ]表示后面要跟一个空格(可能还需要别的参数才能生效)
//wearversion
//wearlog
//wearvoiceinputenable
//wearvoiceinputdisable
//weargoogleapi
//assert
//pushassert
//uplog
//upcrash
//switchnotificationstatus
@singleghost
singleghost / calling_conventions.md
Created September 13, 2018 02:48 — forked from yamnikov-oleg/calling_conventions.md
Linux Syscalls Reference

Source: man syscall

Architecture calling conventions

Every architecture has its own way of invoking and passing arguments to the kernel. The details for various architectures are listed in the two tables below.

The first table lists the instruction used to transition to kernel mode, (which might not be the fastest or best way to transition to

@singleghost
singleghost / lldbinit
Created November 20, 2018 02:54
lldb脚本
settings set target.load-cwd-lldbinit true
command script import ~/.lldb/pwn_debug.py
#command script import /usr/local/opt/chisel/libexec/fblldb.py
#command script import /Users/dddong/softwares/WebKit-git/Tools/lldb/lldb_webkit.py
command alias bp breakpoint
command alias bpl breakpoint list
command alias bfl breakpoint set -f %1 -l %2
command alias stack memory read -c %1 -f "x" -s 8 $rsp
command alias bc breakpoint set -a $rip