原创 .vimrc
set cursorline set cursorcolumn set helplang=cn syntax enable syntax on set nu set t_Co=256 set background=dark c
原创 syn flood
#include <libnet.h> void usage(char *nomenclature); struct t_pack { struct libnet_ipv4_hdr ip; struct libne
原创 sed
sed [-hnV][-e<script>][-f<script文件>][文本文件] options: -e<script>或--expression=<script> 以選項中指定的script來處理輸入的文本文件。 -f<scri
原创 pcap analyse
#include <stdio.h> #include <pcap.h> #include <stdlib.h> #include <errno.h> #include <sys/socket.h> #include <netinet/
原创 select 異步IO
#include <unistd.h> #include <string.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <sys/time
原创 z + Enter 滾動屏幕
vim中的光標移動 hjkl 左下上右 在屏幕中移動光標 n + G 光標移動到第n行 ^H 光標移動至當前屏幕的首行的行首 ^M ………………..中間行的行首 ^L ………………..最後一行的行首 在文件內移動光標 0
原创 libpcap幾個例子
這幾個例子偏向於libpcap的基本使用,還需要了解以下網絡協議格式的分析。 1 獲取網卡名稱 #include <pcap.h> #include <stdio.h> int main() { char errbuf[PCA
原创 發現GetWindowText,右鍵
點擊check沒反應,發現驗證碼錯誤沒反應 在API上下斷點,考慮GetWindowText和GetDlgItemText。 查找–>當前模塊中的名稱,發現GetWindowText,右鍵,在每個參考上設置斷點。check it
原创 ycm
cd ~/.vim/bundle/YouCompleteMe ./install.sh --clang-completer --system-libclang
原创 tcpdump
sudo tcpdump -help tcpdump version 4.5.1 libpcap version 1.5.3 Usage: tcpdump [-aAbdDefhHIJKlLnNOpqRStuUvxX] [ -B size
原创 網絡編程的頭文件
網絡編程的頭文件(這裏所有的頭文件都在/usr/include目錄下面) 經常被一些頭文件搞大,不知到到哪個頭文件去找結構。這裏做個總結。 ip頭部 有兩個ip頭部結構,分別是 linux/ip.h 下面結構名字struct iph
原创 GCC 提供的原子操作
type __sync_fetch_and_add (type *ptr,type value, ... ); type __sync_fetch_and_sub (type *ptr,type value, ... ); type __
原创 netstat
$ netstat --help usage: netstat [-vWeenNcCF] [<Af>] -r netstat {-V|--version|-h|--help} netstat [-vWnNca
原创 struct 位結構
#include <unistd.h> #include <stdio.h> #include <sys/types.h> struct bs { u_int8_t a:4; u_int8_t b:4; }data
原创 NERDCOMMENTER[快速註釋]
<leader>cc 加註釋 <leader>cu 解開註釋 <leader>c<space> 加上/解開註釋, 智能判斷 <leader>cy 先複製, 再註解(p可以進行黏貼)