Remote Exploit Forums

Go Back   Remote Exploit Forums > BackTrack 4 (pre) Final > BackTrack 4 Howto


BackTrack 4 Howto Tutorials and Howtos about BackTrack 4 (NOT for requesting tutorials or how to do anything)

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 10-29-2009, 03:21 PM
Senior Member
 
Join Date: Nov 2007
Location: SY, UK
Posts: 224
Default

Nice post, another little bit for peeps.

A friend sent me this other day when I was configuring squid for a reverse proxy:

Before mod:

Server: Apache
Last-Modified: Mon, 19 Oct 2009 01:58:33 GMT
ETag: "8943ca-15eb-153ac440"
Accept-Ranges: bytes
Content-Length: 5611
Content-Type: text/html; charset=utf-8
Age: 132844
Warning: 113 <removed> (squid) This cache hit is still fresh and more than 1 day old
X-Cache: HIT from <removed>
Via: 1.0 <removed> (squid)
Connection: close


After mod:

Date: Mon, 19 Oct 2009 11:30:20 GMT
Last-Modified: Mon, 19 Oct 2009 01:58:33 GMT
ETag: "8943ca-15eb-153ac440"
Accept-Ranges: bytes
Content-Length: 5611
Content-Type: text/html; charset=utf-8
Age: 140440
Connection: close


How:

add this to the reverse proxy conf.

reply_header_access Server deny all
reply_header_access Via deny all
reply_header_access Warning deny all
reply_header_access X-Cache deny all
reply_header_access X-Squid-Error deny all


This only applies to requests going out of squid - including squids own added headers.
Now by generating an access denied it is possible to know that squid is in the middle but not just by using passive recognition
It might be possible to modify the server string to a specified string - I'll check that later.



Might help someone.
__________________
wtf?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:05 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2