自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (6)
  • 收藏
  • 关注

原创 小小Python爬虫(1)

百度后,今天加入了线程池,昨天的问题原因可能是所有的线程被阻塞了现在可以跑四五分钟,会有[Errno 11004] getaddrinfo failedimport urllib.requestimport urllib.parseimport timeimport osimport threadingimport queueimport bs4from bs4 import B

2015-10-30 16:43:34 603

原创 小小Python爬虫(0)

#目前问题:爬一会就报“RuntimeError: can't start new thread”错误#Python的语法有些不太适应,这两天从网上搬了些代码组了个小爬虫,把糗事百科的段子按用户ID分类写入到文件import urllib.requestimport urllib.parseimport timeimport osimport threadingimport queue

2015-10-29 15:46:37 1271

原创 Bash笔记

循环读取文件while IFS= read -r line;do #echo "$line"done < file_namecat file_name | while IFS= read -r line; do #echo "$line"donecat file_name | while IFS= read -r field1 field2 others; do #e

2015-09-01 08:56:08 457

原创 基于netfilter通过iptables过滤http请求使用netlink通知用户空间构造发送http响应(一)

基于Netfilter架构,通过Iptables过滤数据包,将符合条件的数据包,交由自己实现的HOOK函数进行解包处理,解析到HTTP协议之后,通过Netlink通知用户空间程序,经由用户空间程序进行HTTP响应包的封装,封装完毕后,对HTTP进行响应。

2015-08-25 11:19:12 2485

原创 调试打印ethhdr,iphdr,tcphdr和指定长度的内存块

解析数据报文时写了几个调试打印输出的小函数print_common.h#ifndef PRINT_COMMON_H#define PRINT_COMMON_H#ifdef __KERNEL__#else#define printk printftypedef enum{false, true}bool;#endif#define NIPQUAD(addr) \

2015-08-24 14:41:16 1089

原创 sshd源码下载与编译安装

1. 到官网http://www.openssh.com/找到对应系统的链接,选择一个镜像源,比如http://mirror.internode.on.net/pub/OpenBSD/OpenSSH/portable/2.下载最新的openssh-7.0p1.tar.gz包3.用U盘把tar包拷到目标机上4. 惯例执行解包,配置,编译,安装tar -zvxf openssh-7.0

2015-08-19 15:12:24 4159

原创 CentOS6 安装 CodeBlocks

原参考内容根据上述参考内容安装后,在 应用程序->编程 中没有出现 codeblocks于是去官网下载了binary文件,yum localinstall codeblocks-12.11-1.el5.i386.rpm 之后出现了正常启动

2013-09-09 16:52:39 554

原创 大小写字母转换

#include int main(int argc, char **argv){ char lower[26] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; char upper[26] = {'A','

2013-08-15 11:13:40 626

原创 list_entry

list.h中源码如下:/** * list_entry - get the struct for this entry * @ptr: the &struct list_head pointer. * @type: the type of the struct this is embedded in. * @member: the name of the list_struct wi

2013-08-14 15:54:56 529

转载 Wireshark选择Interface时报错

点击打开链接有的时候我们在Windows7的环境下使用Wireshark的时候,比如点击【Interface List】的时候,出现错误。错误内容如下:There are no interfaces on which a capture can be done.这个错误是因为系统没有启动NPF服务造成的。解决的办法很简单:01、在【开始】–>【运行】02、输

2013-08-10 23:40:23 783

vc++ MFC.CHM

vc++ MFC.CHM 很基础的东西

2009-11-17

excel制作的动态时钟

亲手做的动态时钟.xls 应用很简单的excel知识,可以作为入门练习

2009-11-14

新编WinAPI大全.chm

新编WinAPI大全.chm 很不错的啊

2009-11-14

微软C编程精粹.doc

微软C编程精粹.doc Steve Maguire 著 姜静波 佟金荣 译 麦中凡 校 电子工业出版社

2009-11-08

Windows驱动编程基础教程.doc

Windows驱动编程基础教程.doc 好不容易淘到的东东哦

2009-11-07

C++笔试面试宝典2009版.doc

C++笔试面试宝典2009版.doc 很好的一个资料哦

2009-11-07

空空如也

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

TA关注的人

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