Skip to content

Instantly share code, notes, and snippets.

Avatar

dddong singleghost

View GitHub Profile
View lldbinit
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
View calling_conventions.md

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 / wx_cmds.txt
Created Mar 26, 2018 — forked from wong2/cmds.txt
在任意聊天中输入。 [ ]表示后面要跟一个空格(可能还需要别的参数才能生效)
View wx_cmds.txt
//wearversion
//wearlog
//wearvoiceinputenable
//wearvoiceinputdisable
//weargoogleapi
//assert
//pushassert
//uplog
//upcrash
//switchnotificationstatus
@singleghost
singleghost / .zshrc
Created Jan 7, 2018
zsh配置脚本
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 https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
@singleghost
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
singleghost / extract_embedded_exe_file.py
Created Oct 11, 2017
idapython脚本,用来自动提取 binary 文件中嵌入的 exe可执行文件
View extract_embedded_exe_file.py
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 / Readme.md
Last active Oct 4, 2017
毕业自审表自动填写程序
View Readme.md

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

环境:

python3、pip3、Excel

使用步骤(Mac或 Linux)

View 教务网验证码识别.user.js
// ==UserScript==
// @name 教务网验证码识别
// @namespace dddong.org.cn
// @description 识别验证码的脚本
// @include http://10.202.78.12/*
// @version 1
// @grant none
// ==/UserScript==
//vertical 5~17
View 体测.user.js
// ==UserScript==
// @name 体测程序查询(根据学号)
// @namespace tyys
// @description 公体部的锅
// @include http://www.tyys.zju.edu.cn:8080/hyz/*
// @version 1
// @grant none
// ==/UserScript==
function createSearchArea() {
You can’t perform that action at this time.