LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-15-2005, 12:01 PM   #1
lil_drummaboy
Member
 
Registered: May 2003
Location: Victoria, CANADA!
Distribution: OpenBSD, Slackware, Debian
Posts: 85

Rep: Reputation: 15
Disguise apache as IIS


Hi,

I would like to disguise my apache as IIS, i have translated a spanish tut from another forum for apache 2.0.40 here -> http://www.sunfireweb.com/apacheiis.htm. I tried the instructions in that tut on a 2.0.54 compile and it didn't compile and had errors. Does anyone know how else i can disguise this? Or is there anything wrong with the tut?

Thanks in advance
 
Old 09-15-2005, 12:26 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
What kind of errors do you get when you try to build? And out of curiousity, why are you doing this at all?
 
Old 09-15-2005, 01:04 PM   #3
Antonius_Block
LQ Newbie
 
Registered: Nov 2004
Location: D.C.
Distribution: FC3,4
Posts: 11

Rep: Reputation: 1
mod_security has the ability to do this without having to edit the source. You have to turn ServerTokens to Full though.
 
Old 09-20-2005, 12:00 PM   #4
lil_drummaboy
Member
 
Registered: May 2003
Location: Victoria, CANADA!
Distribution: OpenBSD, Slackware, Debian
Posts: 85

Original Poster
Rep: Reputation: 15
I figured out the issue for 2.0.54:

in the apache source edit http-2.0.54/server/core.c edit lines 2435 to 2443 to say:

Code:
static enum server_token_type ap_server_tokens = SrvTk_MINIMAL;

static apr_status_t reset_version(void *dummy)
{
    version_locked = 0;
    ap_server_tokens = SrvTk_MINIMAL;
    server_version = NULL;
    return APR_SUCCESS;
}
(The change is from SrvTk_FULL; -> MINIMAL on two lines)

and edit http-2.0.54/os/unix/os.h on line 24 to say:

Code:
#define PLATFORM "Win32"
(The change is "Unix" -> "Win32")

and edit http-2.0.54/include/ap_release.h on lines 32 to 43 to say:

Code:
#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 "0"
#define AP_SERVER_MINORREVISION AP_SERVER_MAJORVERSION "." AP_SERVER_MINORVERSI\
ON
#define AP_SERVER_BASEREVISION  AP_SERVER_MINORREVISION "." AP_SERVER_PATCHLEVE\
L
#define AP_SERVER_BASEVERSION AP_SERVER_BASEPRODUCT "/" AP_SERVER_BASEREVISION
#define AP_SERVER_VERSION  AP_SERVER_BASEVERSION

#endif
(Lots of changes here, just copy it)

That will disgise you as IIS. If your httpd.conf server tokens are "Major", your server will have this as a token -> example: "Microsoft-IIS/5.0 Server at bitchfork.net Port 80"

cool hey? i realize that was not descriptive but make the files look like that, ./configure; make; make install and it will work.

Thanks anyways guys.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New to Apache from IIS happybattles Linux - Software 2 08-31-2005 10:32 PM
apache as a channel to IIS Zingaro2002 Linux - Networking 4 01-20-2005 03:01 AM
Use Apache for IIS proxy? whitetux Linux - Security 3 12-18-2004 10:36 AM
IIS + Apache* mosherben Linux - Networking 3 05-04-2004 11:31 AM
IIS or Apache? mib Linux - Newbie 13 03-16-2003 07:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration