自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(33)
  • 收藏
  • 关注

原创 sed

sed [-hnV][-e<script>][-f<script文件>][文本文件]options:-e<script>或--expression=<script> 以选项中指定的script来处理输入的文本文件。-f<script文件>或--file=<script文件> 以选项中指定的script文件来处理输入的文本文件。-h或--help 显示帮助。-n或--quiet或--silent

2017-02-22 10:55:11 226

原创 makefile

makefile 隐含规则Compiling C programsn.o:n.c $(CC) -c $(CPPFLAGS) $(CFLAGS) Compiling C++ programsn.cc:n.C: $(CXX) -c $(CPPFLAGS) $(CXXFLAGS)target: $(OBJS) $(CC) $(LDFLAGS) $(OBJS) $(LOADLIBE

2017-02-07 11:06:39 213

原创 ycm

cd ~/.vim/bundle/YouCompleteMe./install.sh --clang-completer --system-libclang

2017-02-04 15:49:17 270

原创 z + Enter 滚动屏幕

vim中的光标移动hjkl 左下上右在屏幕中移动光标 n + G 光标移动到第n行 ^H 光标移动至当前屏幕的首行的行首 ^M ………………..中间行的行首 ^L ………………..最后一行的行首在文件内移动光标 0 移动光标所在行的行首 $ …………….行尾 w 移动到下一个单词的首字母 b ……上一个………… e 移动到单词的最后字符屏幕滚动^F 向下滚动一屏

2017-01-31 11:50:02 203

原创 发现GetWindowText,右键

点击check没反应,发现验证码错误没反应在API上下断点,考虑GetWindowText和GetDlgItemText。 查找–>当前模块中的名称,发现GetWindowText,右键,在每个参考上设置断点。check it

2017-01-28 01:30:54 213

原创 syn flood

#include <libnet.h>void usage(char *nomenclature);struct t_pack{ struct libnet_ipv4_hdr ip; struct libnet_tcp_hdr tcp;};intmain(int argc, char **argv){ unsigned int count = 0; u_l

2017-01-23 14:56:58 238

原创 pcap analyse

#include <stdio.h>#include <pcap.h>#include <stdlib.h>#include <errno.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <netinet/if_ether.h>#include <net/ethernet.h>#

2017-01-22 11:44:48 201

原创 struct 位结构

#include <unistd.h>#include <stdio.h>#include <sys/types.h>struct bs{ u_int8_t a:4; u_int8_t b:4;}data;int main(){ data.a = 0xa; data.b = 0xb; printf("data.a = 0x%x\n", data.a);

2017-01-22 11:00:03 379

原创 tcpdump

sudo tcpdump -helptcpdump version 4.5.1libpcap version 1.5.3Usage: tcpdump [-aAbdDefhHIJKlLnNOpqRStuUvxX] [ -B size ] [ -c count ] [ -C file_size ] [ -E algo:secret ] [ -F file ] [ -G second

2017-01-22 08:31:51 171

原创 netstat

$ netstat --helpusage: netstat [-vWeenNcCF] [<Af>] -r netstat {-V|--version|-h|--help} netstat [-vWnNcaeol] [<Socket> ...] netstat { [-vWeenNac] -i | [-cWnNe] -M | -s } -r

2017-01-22 08:31:12 192

原创 一个pcap抓包分析code

#include <stdio.h>#include <pcap.h>#include <stdlib.h>#include <errno.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <netinet/if_ether.h>#include <net/ethernet.h>#

2017-01-20 17:43:32 567

转载 网络编程的头文件

网络编程的头文件(这里所有的头文件都在/usr/include目录下面)经常被一些头文件搞大,不知到到哪个头文件去找结构。这里做个总结。ip头部 有两个ip头部结构,分别是 linux/ip.h 下面结构名字struct iphdrnetinet/ip.h 结构名字,这里有两个struct iphdr 和 struct ip 这三个都是一样的,看个人喜好,我个人喜换netinet/ip.h

2017-01-20 16:22:18 674

原创 libpcap几个例子

这几个例子偏向于libpcap的基本使用,还需要了解以下网络协议格式的分析。获取网卡名称#include <pcap.h>#include <stdio.h>int main(){ char errbuf[PCAP_ERRBUF_SIZE], *device; device = pcap_lookupdev(errbuf); if(device) {

2017-01-20 10:52:20 858

原创 select 异步IO

#include <unistd.h>#include <string.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <sys/time.h>#include <sys/select.h>#include <sys/socket.h>#include <sys/types.h>#include

2017-01-19 14:33:44 440

原创 ubuntu 14.04 install clang 3.9

http://askubuntu.com/questions/823646/how-can-i-install-clang-3-9-on-ubuntu-12-04It seems you can install clang 3.9 on Ubuntu 12.04.1 - You need to add these repository to your sources.list file.deb ht

2017-01-16 13:04:05 1092

原创 vim

vim的编译安装 ./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config-i386-linux-gnu/ --enable-perlinterp --enable-gui=gtk2 --enable-csc

2017-01-16 09:00:44 291

原创 .vimrc

set cursorlineset cursorcolumnset helplang=cnsyntax enablesyntax onset nuset t_Co=256set background=darkcolorscheme molokailet g:molokai_original = 1set nocompatiblefiletype offset nusyntax ons

2017-01-14 17:09:35 189

转载 GCC 提供的原子操作

type __sync_fetch_and_add (type *ptr,type value, ... );type __sync_fetch_and_sub (type *ptr,type value, ... );type __sync_fetch_and_or (type *ptr,type value, ... );type __sync_fetch_and_and (type *p

2017-01-14 17:09:04 218

原创 NERDCOMMENTER[快速注释]

<leader>cc 加注释<leader>cu 解开注释<leader>c<space> 加上/解开注释, 智能判断<leader>cy 先复制, 再注解(p可以进行黏贴)

2017-01-14 13:01:10 434

原创 vim taglist usage

<CR> 跳转到tag所一定的位置o 在一个新打开的窗口中显示tag<Space> 显示光标下tag的原型定义u 更新taglist窗口中的tags 更新排序方式,按名字排序/按出现顺序排序x taglist窗口放大和缩小,方便查看较长的tag+ 打开一个折叠,如zo- 关闭一个折叠,如zc* 打开所有的折叠,zr= 将所有的tag折叠起来,zm[[

2017-01-13 13:34:05 210

转载 开启NERDTree后进入vim光标停留在NERDTree怎么办

autocmd VimEnter * NERDTreewincmd wautocmd VimEnter * wincmd w

2017-01-13 13:32:34 841

转载 vim 退格键(backspace)不能用

两个步骤:1.去掉讨厌的有关vi一致性模式,避免以前版本的一些bug和局限 set nocompatible2.backspace有几种工作方式,默认是vi兼容的。对新手来说很不习惯。对老vi 不那么熟悉的人也都挺困扰的。可以用 set backspace=indent,eol,start 来解决。 indent: 如果用了:set indent,:set ai 等自动缩进,想用退格键将

2017-01-13 13:07:54 4164

原创 vim,shiftwidth,tabstop,softtapstop

shiftwidth 程序中自动缩进所使用的空白长度。tabstop 定义tab所等同的空格长度softtabstop 当启用自动缩进的时候,每逢tapstop就把 tabstop个空格转换为一个tab符号所以我们正常写代码的时候就可以这样设置set shiftwidth=4set tabstop=4set softtabstop=4expandtab

2017-01-13 13:05:29 497

原创 NERDTree Usage

files,directories,sym-links,Windows .lnk files,read-only files,executable fileo…….Open files, directories and bookmarks………………..NERDTree-o 打开文件,目录,书签 go……Open selected file, but leave cursor in th

2017-01-13 09:37:44 249

原创 vim中的光标移动

vim中的光标移动hjkl 左下上右在屏幕中移动光标n + G 光标移动到第n行 ^H 光标移动至当前屏幕的首行的行首 ^M ………………..中间行的行首 ^L ………………..最后一行的行首在文件内移动光标 0 移动光标所在行的行首 $ …………….行尾 w 移动到下一个单词的首字母 b ……上一个………… e 移动到单词的最后字符屏幕滚动^F 向下滚动一屏 ^B 向上

2017-01-13 08:48:31 778

原创 test inet_addr

#include <unistd.h>#include <stdio.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#define INET_ADDR(o1,o2,o3,o4) (htonl((o1 << 24) | (o2 << 16) | (o3 << 8) | (o4 << 0)))int

2017-01-07 15:39:14 254

原创 /proc/net/tcp

~$ cat /proc/net/tcp sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode 0: 0101007F:0035 00000000:0

2017-01-04 17:21:41 437

原创 c语言中关于可变参数的研究

#include <stdio.h>#include <stdarg.h>void PrintLines(char *first,...){ char *str; va_list v1; str = first; va_start(v1,first); do { printf("%s\n",str); str = va

2017-01-04 14:19:06 332

原创 更改vs2010的语言编写开发环境

工具–>导入导出设置

2017-01-04 13:44:41 245

原创 Linux 服务器安全运维

Linux 服务器安全运维1.1删除多余的用户和组可删除的用户:adm,lp,sync,shutdown,halt,news,uucp,operator,games,gopher 可删除的组:adm,lp,news,uucp,games,dip,pppusers,popusers,slipusers eg: userdel games groupdel games禁用用户的登录功能userm

2017-01-03 13:27:33 613

原创 go 函数

http://bbs.pediy.com/showthread.php?t=21378还是上次那个cm,不过这次的要求是写出注册机那么就要先研究注册码是怎么来的,上次我们最开始找到的关键位置00401306 |. /75 6B jnz short 0040137300401308 |. |C1E8 10 shr eax,0x100040130B

2016-12-29 16:47:20 213

原创 【原创】OllyDBG 入门系列(四)-内存断点

http://bbs.pediy.com/showthread.php?t=21378还是上次那个cm,不过这次的要求是写出注册机那么就要先研究注册码是怎么来的,上次我们最开始找到的关键位置00401306 |. /75 6B jnz short 0040137300401308 |. |C1E8 10 shr eax,0x100040130B

2016-12-20 13:09:19 599

原创 OllyDBG 入门系列(三)-函数参考

http://bbs.pediy.com/showthread.php?t=21330运行程序点击check没反应,发现验证码错误没反应在API上下断点,考虑GetWindowText和GetDlgItemText。 查找–>当前模块中的名称,发现GetWindowText,右键,在每个参考上设置断点。check it00401316 |. 6A 28 push 0x28

2016-12-20 10:05:59 1184

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除