Feeds:
Posts
Comments

Archive for the ‘Hacks’ Category

Sick of geolocation not working (correctly) within Firefox? Want to set your location manually? Then this will help you.

Go to your about:config in Firefox and search for geo.wifi.uri. This is the URI to the Google service Firefox uses for geolocation. The good thing is you can change it to a static local file (or a script you made yourself on your web server, or whatever).

My value is: file:///home/bela/sys/firefox/location-vienna.json

The contents of location-vienna.json are:

{"location":{"latitude":48.213107,"longitude":16.359881,"accuracy":5000}}

(It’s the location of the main building of my university.)

Well that should work. Go to http://www.mozilla.com/firefox/geolocation/ and test it 🙂

Thanks to failedvegan.

Update: I found the official (?) documentation for this protocol.

Read Full Post »

A little demonstration how to use textile and djangos (free)comment system to “take over” a site:

%{display: block; position: absolute !important; top: 25px; left: 25px; z-index: 100; background-color: red; font-size: 50px;}Your text here ... site hacked%

Textile allows CSS per default -> you can do anything with CSS -> so it’s quite easy to position any amount of HTML code anywhere on the site… Bad textile!!! Give it a try and post the code example from above on your favorite textile powered site.

Apart of being a fun hack, it could be used to exploit users by overloading links, so that they point to phishing sites.  So don’t allow untrusted people to use textile markup!

Read Full Post »