- 博客(12)
- 收藏
- 关注
转载 周末小爬虫
今天值班好像没什么事要干,趁机学学python 目标网站:http://wooyun.tangscan.cn(记得之前看的时候这个网站上还没有小广告,现在好多小广告) import requestsimport reimport threadingclass Collector(o...
2017-03-25 16:48:00
111
转载 syn flood
在通过tcp协议,client端和server端建连的过程中,client端首先向服务端发送一个flag为syn的tcp包。好比大家通过qq聊天时先问,美女在不?妹子收到这个包之后就会恢复,我在的,你在不在?也就是一个ack+syn包。这个时候,如果我们不回妹子,妹子就会很郁闷...
2017-03-20 19:40:00
113
转载 归并排序
template<typename T>void __merge(T arr[], int left, int mid, int right){ T *helper=new T[right - left + 1]; for (int i = left; i <= ri...
2017-03-20 18:58:00
103
转载 ntopng搭建
接到领导通知要查看三台节点的网卡带宽,于是在网上找了下,发现ntopng这个东东还挺不错的。 搭的时候发现各种缺库却环境,坑的一逼。搭建完毕之后坐我旁边的几个小伙伴老大说只要个带宽峰值就行,蛋疼=。=,早知道直接搞个脚本就行了。 搭建过程如下: #####################...
2017-03-12 08:44:00
242
转载 正则表达式=。=
sl=re.findall(r'<p>\[(\w{2,3})\stotal:(\d+/\d+)\]+|(?:color: red\'>(\d{1,3}\.\d{1,3}.\d{1,3}.\d{1,3}))',t.text)for node in sl: if(no...
2017-03-06 11:24:00
81
转载 shellsort
先复习一遍插入排序: template<typename T>void insertionsort(T arr[], int len){ for (int i = 1; i < len; ++i) { T e = arr[i]; int j; for (...
2017-03-03 08:48:00
81
转载 chkrootkit安装过程中出现/usr/bin/ld: cannot find -lc的解决方法
通过chkrootkit官网下载chkrootkit源码包 wget -c ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gztar -zxvf chkrootkit.tar.gz cd chkrootkit-0.51/ ma...
2017-03-01 10:40:00
301
转载 bublesort
//buble sort 1template<typename T>void bublesort_1(T arr[], int len){ for (int i = 0; i<len - 1; i++) { for (int j = len - 1; j>...
2017-03-01 10:12:00
135
转载 insertionsort
//insertion sort 1template<typename T>void insertionsort_1(T arr[],int len){ for(int i=1;i<len;++i) { for(int j=i;j>...
2017-02-28 12:59:00
128
转载 sed学习笔记
sed '2a hellowrold' test.txt #在第二行之后追加sed '2i helloworld' test.txt #在第二行之前追加sed '3,4d' test.txt #删除第三行,第四行。sed '/onboot/a hellowrold' te...
2017-02-27 12:22:00
150
转载 selection sort
#include<iostream>#include<string>#include<ctime>using namespace std;//选择排序template<typename T>void selectionsort(T...
2017-02-27 12:16:00
80
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人