August 27, 2008

Internet Explorer Does Not Send Referer Header

Filed under: internet,microsoft — @ 11:40

Something I came across when I writing a PHP script that dynamically creates hyperlinks through JavaScript.

According to Microsoft, Internet Explorer will not send the Referer header in situations that may result in secure data being sent accidentally to unsecured sites.

You can’t rely on the referer header as a trustworthy check for tracking down the origin of your visitors but still …
Something in the same bulletin seems rather strange:

Also, many secure (HTTPS) Web servers store secure information such as credit-card data in the URL during a GET request to a CGI or ISAPI server application. This information can be unwittingly sent in the Referer header when linking out of an “https://” server to an “http://” server elsewhere on the Web.

If a site is placing sensitive data in the URL then I sure hope it’s hashed and it’s use is limited in time and restricted to one browser session.

August 25, 2008

Black Ops 2008 : It’s The End Of The Cache As We Know It

Filed under: Security,abuse,internet — @ 21:57

The video of the Dan Kaminsky presentation of the DNS cache bug is available on the Black Hat site. It’s a 100 MB download but it sure is worth it. There’s also an MP3-version.

August 19, 2008

Legoolympics

Filed under: geek — @ 00:06

These guys are crazy.

August 17, 2008

Defcon 16 and Blackhat 2008 slides

Filed under: Security,internet — @ 13:50

The Defcon 16 CD is available.

Blackhat 2008 slides are also published.

August 14, 2008

Use the HTC TYTN2 Smartphone to connect to the Internet

Filed under: geek,internet,linux,ubuntu — @ 21:01

My employer recently gave me a HTC TYTN2 Smartphone.

This smartphone is HSDPA/3G enabled so in theory it should be possible to surf the net with your laptop connected to this smartphone. This is the procedure that I used with Ubuntu 8.

Before you start make sure that your phone is NOT connected via the USB-cable to your laptop.

Install subversion

sudo apt-get install subversion

Now download the the source code, compile and install it.

mkdir synce
cd synce
svn co https://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite/
cd usb-rndis-lite/
make
sudo ./clean.sh
sudo make install

Create the config file.

sudo mkdir -p /etc/sysconfig/network/
sudo vi /etc/sysconfig/network/ifcfg-rndis0

Enter this in your editor (hit ‘i’ for Insert, Save with “:w”, Quit with “:q”) :

BOOTPROTO=’dhcp’
BROADCAST=”
ETHTOOL_OPTIONS=”
IPADDR=”
MTU=’1460′
MRU=’1500′
NAME=”
PEERDNS=no
NETMASK=”
NETWORK=”
REMOTE_IPADDR=”
STARTMODE=’hotplug’
USERCONTROL=’no’
_nm_name=’static-0′

Make sure that you have Internet Sharing activated on your smartphone. “Connect” to the Internet with your smartphone. Now connect the USB-cable to your laptop. Your dmesg should look something like this:

[ 1928.183361] usb 1-2: new full speed USB device using uhci_hcd and address 9
[ 1928.355691] usb 1-2: configuration #1 chosen from 1 choice
[ 1928.458104] usbcore: registered new interface driver cdc_ether
[ 1930.188534] rndis0: register ‘rndis_host’ at usb-0000:00:1d.0-2, RNDIS device (SynCE patched), 80:00:60:0f:e8:00
[ 1930.188564] usbcore: registered new interface driver rndis_host
[ 1930.228643] udev: renamed network interface rndis0 to eth4

You’ll notice the last name where it says “renamed network interface rndis0 to eth4″. The eth4 can vary on your system, it might be eth1, eth2 or something else but you should see a new interface.
Now try to get a DHCP lease from your phone.

dhclient3 eth4

You should get something like this :

DHCPDISCOVER on eth4 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 192.168.0.102 from 192.168.0.1
DHCPREQUEST of 192.168.0.102 on eth4 to 255.255.255.255 port 67
DHCPACK of 192.168.0.102 from 192.168.0.1
bound to 192.168.0.102 — renewal in 125407 seconds.

That should be all.

August 12, 2008

Terminator, Gnome terminals made easy

Filed under: linux,ubuntu — @ 00:35

Although I like the eyecandy of a Gnome desktop there’s nothing that can beat the strength of the command line. My desktop is often cluttered with a number of gnome terminals.

I’ve recently discovered Terminator, a terminal container that allows you to have all terminals “catched” in one window. Simply hitting Ctrl and Shift and O (or E) splits your current terminal and gives you a new terminal.

August 8, 2008

Installing VMware server client console on Ubuntu

Filed under: linux,ubuntu,virtualisatie — @ 16:20

After my upgrade to Ubuntu 8 I was unable to start the VMware server console. I always go these errors :

/usr/local/vmware/lib/vmware-server-console/bin/vmware-server-console: /usr/local/vmware/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4′ not found (required by /usr/lib/libcairo.so.2)
/usr/local/vmware/lib/vmware-server-console/bin/vmware-server-console: /usr/local/vmware/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0′ not found (required by /usr/lib/libstdc++.so.6)
/usr/local/vmware/lib/vmware-server-console/bin/vmware-server-console: /usr/local/vmware/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4′ not found (required by /usr/lib/libcairo.so.2)
/usr/local/vmware/lib/vmware-server-console/bin/vmware-server-console: /usr/local/vmware/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0′ not found (required by /usr/lib/libstdc++.so.6)
/usr/local/vmware/lib/vmware-server-console/bin/vmware-server-console: /usr/local/vmware/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4′ not found (required by /usr/lib/libcairo.so.2)
/usr/local/vmware/lib/vmware-server-console/bin/vmware-server-console: /usr/local/vmware/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0′ not found (required by /usr/lib/libstdc++.so.6)

If you look into the directory where the libraries of the server console are installed you’ll find a file libgcc_s.so.1/libgcc_s.so.1. Just remove and fire up the console again.

August 7, 2008

Skynet / Belgacom abuse desk

Filed under: Security,abuse,internet,work — @ 21:12

Op m’n werk moet ik vrij regelmatig meldingen in verband met malware doorsturen naar de abusedesk van Skynet / Belgacom. De meldingen bevatten altijd de url met de malware, ip-adres van de machine, ‘n timestamp en tijdzone en ‘t type van malware. Veel meer kan je moeilijk aanleveren dacht ik.

Wat krijg je dan na 7 dagen (je kan dan nog moeilijk van ‘n auto-responder spreken) :

Unfortunately, we do not have enough information to search for the perpetrator.
Therefore we need the following information:

* a logfile with the date, hour, IPaddress and GMT time.

With this information there is a bigger chance that we find the perpetrator.

“A logfile”. Van wat? Van de machine met de malware, euh, die door Belgacom / Skynet beheerd is? Je zou er kunnen meelachen … mocht’t niet zijn dat de malware er simpelweg wel blijft staan … Zucht.