对Apache动一点小手术/诱骗一般水货攻击者或自娱自乐
[color=red:a6ff72be07]目的:[/color:a6ff72be07]
[code:1:a6ff72be07]对Apache进行简单操作,以诱骗普通水货攻击者,或者自娱自乐!!![/code:1:a6ff72be07]
[color=red:a6ff72be07]方法:[/color:a6ff72be07]
[code:1:a6ff72be07]修改几个Apache的几个源代码文件,然后自己编译[/code:1:a6ff72be07]
[color=red:a6ff72be07]操作:[/color:a6ff72be07]
[b:a6ff72be07]一、文件操作[/b:a6ff72be07]
[color=red:a6ff72be07]file:srcdir/include/ap_release.h[/color:a6ff72be07]
[code:1:a6ff72be07]#define AP_SERVER_BASEVENDOR "这里填写开发组织名,例如:Microsoft Corp."
#define AP_SERVER_BASEPRODUCT "这里填写服务器软件名,例如:Microsoft-IIS"
#define AP_SERVER_MAJORVERSION "主版本,例如:5"
#define AP_SERVER_MINORVERSION "次版本,例如:0"
#define AP_SERVER_PATCHLEVEL "修正版本,例如:1"[/code:1:a6ff72be07]
[color=red:a6ff72be07]file:srcdir/include/os.h[/color:a6ff72be07]
[code:1:a6ff72be07]#define PLATFORM "这里填写操作系统的名称,例如:Win32"[/code:1:a6ff72be07]
[color=red:a6ff72be07]file:srcdir/os/PLATFORM/os.h[/color:a6ff72be07]
[code:1:a6ff72be07]#define PLATFORM "这里填写操作系统的名称,例如:Win32"[/code:1:a6ff72be07]
[color=red:a6ff72be07]file:srcdir/modules/generators/mod_info.c[/color:a6ff72be07]
[code:1:a6ff72be07]Search "Apache Server Information" replace with "这里填写在查看server-info现实的页面标题,例如:Microsoft-IIS Information"[/code:1:a6ff72be07]
[color=red:a6ff72be07]file:srcdir/modules/generators/mod_status.c[/color:a6ff72be07]
[code:1:a6ff72be07]Search "Apache Server Status" replace with "这里填写在查看server-status现实的页面标题,例如:Microsoft-IIS Status"[/code:1:a6ff72be07]
[b:a6ff72be07]说明:[/b:a6ff72be07]
[code:1:a6ff72be07]file:path/to/filename 表示要对这个文件进行操作
Search "A" replace with "B" 表示在文件之中搜索A,然后使用B替换[/code:1:a6ff72be07]
[b:a6ff72be07]二、编译操作[/b:a6ff72be07]
[code:1:a6ff72be07]按照一般正常步骤编译安装[/code:1:a6ff72be07]
[color=red:a6ff72be07]结果:[/color:a6ff72be07]
[b:a6ff72be07]/server-info:[/b:a6ff72be07]
[code:1:a6ff72be07]Microsoft-IIS Information
...
Server Version: Microsoft-IIS/5.0/5.0.1 (Win32) [/code:1:a6ff72be07]
[b:a6ff72be07]/server-status:[/b:a6ff72be07]
[code:1:a6ff72be07]Apache Server Status for 127.0.0.1
Server Version: Microsoft-IIS/5.0/5.0.1 (Win32)
Server Built: Apr 3 2004 18:20:54 [/code:1:a6ff72be07]
[b:a6ff72be07]页面底部显示:(例如在以上两个测试和indexes情况之下)[/b:a6ff72be07]
[code:1:a6ff72be07]Microsoft-IIS/5.0/5.0.1 (Win32) Server at 127.0.0.1 Port 80[/code:1:a6ff72be07]