Archive

Archive for November, 2008

Build your own Wake-On-Lan script in Python

November 13th, 2008 niels No comments

You need some simple way to wake up another computer? And you have Python at your disposal?
Great! All you need is this tiny script:

#!/usr/bin/env python
import socket
s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.sendto('\xff'*6+'\xaa\xbb\xcc\xdd\xee\xff'*16, ('172.31.3.33', 80))
print "sent wake up call to server..."

Substitute the aa, bb, … , ff with the MAC adress of your target, and use the correct IP adress.
That’s all :)

———-
Comments are disabled due to spamming.

Tags:

The History of the User Agent String

November 8th, 2008 niels No comments

The User Agent String – an internet phenomenon. Internet Explorer 7 claims to be “Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)”, for example.
Learn about the history of the user agent string in this brilliant post :)

Tags: