- 论坛徽章:
- 1
|
proftpd:
Current banner: 220 ProFTPD 1.2.7 Server (FTP for: ) []
Banner lay-out: “response_code product_name product_version Server (ServerName) [hostname]”
Wanted banner: 220 Microsoft FTP Service (Version 5.0).
Howto:
Open /src/main.c and search for “if((id = find_config(server->conf,CONF_PARAM,"ServerIdent",FALSE))”. Comment (/* if-block */) the whole if-block and add the following line under the if-block:
send_response("220", "%s", server->ServerName);
Now re-compile proftpd. After compiling edit proftpd.conf and change the “ServerName” directive to " Microsoft FTP Service (Version 5.0).".
sshd:
Current banner: SSH-2.0-OpenSSH_3.5p1
Banner lay-out: SSH-version-OpenSSH_version
Wanted banner: SSH-2.0-OpenSSH
Howto:
Open /version.h and cut the "_3.5p1" from the end. Re-compile and it's done.
postfix:
Current banner: 220 ESMTP Ready and Serving.
Banner lay-out: “response_code hostname ESMTP additional_information”
Wanted banner: 220 Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329 ready at Tue, 18 Mar 2003 18:35:40 +0100
Howto:
Open postfix’s main.cf (configuration file) and search for “smtpd_banner”. Change the banner to whatever you want. The problem: Microsoft’s ESMTP sends a date back, Postfix can’t. However, the file /src/global/mail_date.c returns a time in this form: "Mon, 9 Dec 1996 05:38:26 -0500 (EST)". So, if you really want to pretend to be Microsoft’s ESMTP do the following:
Before compiling, open /src/smtpd/smtpd.c and search for the line "smtpd_chat_reply(state, "220 %s", var_smtpd_banner);" and replace it with these two lines:
state->time = time((time_t *) 0);
smtpd_chat_reply(state, "220 %s ready at %s", var_smtpd_banner, mail_date(state->time));
Now recompile, edit the main.cf to say " Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329" and you're done.
apache:
Current banner: Apache/1.3.27 (Unix) mod_perl/1.25 PHP/4.2.3
Banner lay-out: “BASEPRODUCT/BASEREVISION (OS) Apache modules”
Wanted banner: Microsoft-IIS/5.0
Howto:
Open /src/include/httpd.h and search for:
#define SERVER_BASEVENDOR “Apache Group”
#define SERVER_BASEPRODUCT “Apache”
#define SERVER_BASEREVISION “”
Change this to the desired values (BASEVENDOR: Microsoft, BASEPRODUCT: Microsoft-IIS, BASEREVISION: 5.0). Now re-compile apache.
Next: open your httpd.conf and search for the ServerTokens directive. If it’s not there, add it. Set ServerTokens to Min (“ServerTokens Min”). More information about the ServerTokens directive is at: http://carnagepro.com/pub/Docs/A ... .html#servertokens.
teapop:
Current banner: +OK Teapop [v0.3.5] - Teaspoon stirs around again <1048009854.3FB15180@Llywellyn>
Banner lay-out: "POP_OK Teapop [version] - banner - "
Wanted banner: +OK Microsoft Exchange 2000 POP3 server version 6.0.6249.0 () ready.
Howto: The file /teapop/pop_hello.c contains the following line:
"pop_socket_send(pinfo->out, "%s Teapop [v%s] - %s %s", POP_OK, POP_VERSION, POP_BANNER, pinfo->apopstr);"
Change this line to:
"pop_socket_send(pinfo->out, "%s Microsoft Exchange 2000 POP3 server version 6.0.6249.0 () ready.", POP_OK);"
Now re-compile and it's done. |
|