Bypass Websense, part 2
It is very easy to modify a HTTP proxy server to adopt Websense bypass mechanise. Take Muffin for example, it is an open-source HTTP/HTTPS proxy server written in Java programming language. In src/org/doit/muffin/Request.java, write() method, the original code,
super.write(out);Just have some modification,
if (data != null)
{
out.write(data);
out.flush();
}
ByteArray ba = super.toByteArray();The new code will force HTTP request to become multiple segmented packets. For example,
byte[] array = ba.getBytes();
out.write( array, 0, 1 ); out.flush();
out.write( array , 1, 1 ); out.flush();
out.write( array, 2, ba.length()-2); out.flush();
//super.write(out);
if (data != null)
{
out.write(data);
out.flush();
}
GET http://tw.yahoo.com HTTP/1.1
will become "G" in one packet, "E" in another packet, and T http://tw..... to the end of request will be in other packets. By this way, Websense will not able to get the FULL HTTP request packet. Therefore, Websense will not able to block you out.
Tags: MacOS X, websense