Skip to content

Instantly share code, notes, and snippets.

View lldbinit
settings set target.load-cwd-lldbinit true
command script import ~/.lldb/
#command script import /usr/local/opt/chisel/libexec/
#command script import /Users/dddong/softwares/WebKit-git/Tools/lldb/
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

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 / wx_cmds.txt
Created Mar 26, 2018 — forked from wong2/cmds.txt
在任意聊天中输入。 [ ]表示后面要跟一个空格(可能还需要别的参数才能生效)
View wx_cmds.txt
singleghost / .zshrc
Created Jan 7, 2018
View .zshrc
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
singleghost / .vimrc
Last active May 25, 2018
vim 配置脚本
View .vimrc
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 /
Created Oct 11, 2017
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
singleghost /
Last active Oct 4, 2017




使用步骤(Mac或 Linux)

View 教务网验证码识别.user.js
// ==UserScript==
// @name 教务网验证码识别
// @namespace
// @description 识别验证码的脚本
// @include*
// @version 1
// @grant none
// ==/UserScript==
//vertical 5~17
View 体测.user.js
// ==UserScript==
// @name 体测程序查询(根据学号)
// @namespace tyys
// @description 公体部的锅
// @include*
// @version 1
// @grant none
// ==/UserScript==
function createSearchArea() {