Hax by Jaku

Author Archive

Rick Roll Proxy…

by Jaku on Sep.24, 2009, under Code, Projects

A long time ago I decided to mess around with the redirect_program feature of squid. If you’re not familar with squid I suggest looking up the wiki on it http://en.wikipedia.org/wiki/Squid_(software).

What exactly does redirect_program do? No one knows for sure, some say that it is the very reason the internet works, while others speculate that the previous statement is nothing but rubish. The world may never know, however just because we don’t know what it does doesn’t mean we can’t use it!

Ok but seriously what does the redirect_program tag actually allow us to do. This tag is used to specify the location of the executable for the URL redirector. So you can basicaly create a program that can rewrite the requested URLs that are passing though squid. So one could play around with the data that is passing though squid pretty much on the fly. What is great about it, is that it’s very easy to program for and has many real world uses.

None of which we will talk about here. :P
(continue reading…)

Leave a Comment :, , , more...

More GPS updates!

by Jaku on Sep.23, 2009, under Haxs

Didn’t think I’d have another update on the GPS software so soon. But on my way back from Utah I was informed that the plane had GPS tracking available online. Now because the flight also had WIFI I had to check it out.

The site that did the tracking was http://www.flightstats.com and it did an amazing job with updating where we were in real-time. Now being me, I found a quick and easy way to grab the GPS coordinates from the site and import them into my database. It was a quick and dirty shell script that was all of 3 lines of code. So I won’t be sharing it, however I do think it is something that should be added to my overall GPS tracking suite.

I’m going to start looking into other GPS type location services, such as FourSquare, and FireEagle and try to build a framework around all of them that allows one to update all of them by updating one. So if anyone can think of any other apps or services out there that allow one to share their GPS location with friends or just track it, let me know and I’ll see what I can do. ;)

Also, one last thing I’d like to share. With the flight tracker I decided to have my script run every minute to pull the information. It’s pretty amazing how far planes get in a single minute. Here is a screenshot of when I started the script.

gps points

GPS Flight Points

Leave a Comment :, , , , more...

GPS Code Update

by Jaku on Sep.22, 2009, under Code, Projects

So it seems I have to write this post again because my server crashed.. leaving everything alone but my sql databases… Oh well, could be a lot worst.

So after my post yesterday about how I update my location on my site I got a reply from @andre_vans that told me about a project called “PlayNice”. The GIThub source is at http://github.com/natfriedman/playnice and the the creator of it has a blog post about it at http://nat.org/blog/2009/08/playnice-google-apple/.

Now I mentioned in my post yesterday that I wanted to be able to use some sort of push notification on the iPhone so that my site could ask for an update and the phone would comply. This would require a custom app on the iPhone to automatically execute something when it has a push notification. Now I’m not even sure if that is possible at this stage as that would almost be like the app is running in the background, which apple does not allow yet. However, Apple has such a service built into the phone that allows anyone with a MobileMe account linked to their iPhone to get the location of the device.

So with that PlayNice will basically log in as you on your MobileMe account and launch the locate phone feature. Now the neat thing about this is that it also updates to your Google Latitude account. This make’s it pretty much perfect for what I want to do. With the source code freely available and easy to understand it was a breeze adding 3 lines of code to update my map backend whenever the PlayNice script is ran. If you wan’t to do the same with most of the code from my post yesterday then follow me past the break. Otherwise, ignore me. :)
(continue reading…)

Leave a Comment :, , , more...

How I made the locate Jaku feature

by Jaku on Sep.21, 2009, under Code, Haxs

The 2 main parts of this software have changed over the years, however this post will describe each change and will include what I currently use to get my location on the site.

The main part is the use of the Mologogo software. Which I used because I had a old boost mobile cell phone and this was the easiest and fastest way to get my location up on the web. It was also the cheapest at $1 dollar a day. After the iPhone came out I developed my own application to get my location and update the mologogo software that way. This was awesome because I could get rid of the boost mobile phone and I only had to carry a single phone then. However after almost every update to the iPhone software, I had to wait for a new jailbreak and then I had to change my code to work. This became a huge hassle and I had to deal with it after every update.

When the iPhone 2.0 software came out I assumed I wouldn’t have to do that anymore. Except for the fact that in order to actually use any application that you wrote, you needed to pay the developer fee. So instead I decided to get my location another way. On many of the twitter iPhone apps it would allow you to update your location and this would then update the GPS coordinates shown on your twitter.com page. This was an easy way to get the location of myself without the need of writing a new custom app. So I wrote some code that would look on my twitter page and find the location of me and check to see if it had updated since the last time it checked. This solution was great because it would only update as much as I wanted, and wouldn’t drain my battery since my phone would do none of the work. However, a few months after this went live twitter decided to change their design and at first the location info was no longer shown. So I had to come up with a new idea.
(continue reading…)

Leave a Comment :, , , , , more...

Posting data to Pastebin with cURL

by Jaku on Sep.20, 2009, under Code, Haxs

I needed to get a bunch of text up on pastebin and I’ve used my own cURL script to get it up there before. But then I started to think that others might want to be able to just post to pastebin directly from their bash shell. What started off as a simple one-liner then started to grow into a bit more.

With pastebin you are able to post to a sub-domain, as well as put a name along with the post and even set how long the data should stay up. So I’ve made it possible for you to edit those settings in the script so that if you want to post as “bob” and keep the data up there for a day you can do all of that.

The easiest way to install this would be the following 2 commands

sudo curl haxbyjaku.com/pastebin -o /usr/bin/pastebin
sudo chmod +x /usr/bin/pastebin

I know that you won’t run sudo on commands that download code from my server, but you can trust it since you get to see everything. :P

After it is installed I suggest editing the file as well so that you can set your own settings such as username or pastebin URL. Once that is all set simple run a command like "echo test | pastebin" in your terminal and you’ll get the URL that pastebin posted it to. You can even do something like "echo /etc/passwd | pastebin" and it will work exactly as you expect it to.

I’ve pasted the code after the break as well.

(continue reading…)

Leave a Comment :, , , , , , more...

Shmoocon – The Agreement

by Jaku on Mar.05, 2009, under Conferences, Presentations, Shmoocon, Shmoocon

The Gentleman’s Agreement has evolved, and so it has been renamed to “The Agreement”. The changes are happening with it every day, new rules are being created, alliances being built and destroyed. It has changed, and it is good.

The Agreement – Shmoocon 2009

Slides will be posted soon.

Leave a Comment more...


Blogging Drought

by Jaku on May.06, 2008, under Haxs

So I haven’t been keeping up with the blog as much as I’ve planned. But that seems to be the norm around here. As most of you are aware, I have been using twitter a lot more. Most likely going to delete the “Latest dodge coming soon” thing on the right hand side. Maybe get a new theme setup on here as well. Not sure yet about that, a lot of things are coded into this one now. :\

Changes in the past few months include:

Working nights now, 1am to 9am, instead of normal days.
Moved into a new apartment. Much nicer and better view.
Working on a few new projects, but this time with friends instead of alone.
Been driving a bit more. :)

Otherwise, I don’t have to much else to say. In about 2 weeks, there should be a post about one of the projects. Some of you know a bit of the details, but the one’s that don’t should enjoy it. I will also be doing a new presentation at the next 2600 meeting in June. You won’t want to miss this one.

Leave a Comment : more...

iPhone hax

by Jaku on Sep.10, 2007, under Haxs

So I bought an iPhone. I got one of the discontinued 4GB ones, since I won’t be using it for music, and it was only $300. Which is about my limit on a cell phone. I’ve only had it activated as a phone since Friday night, but it has been an amazing experience so far. I got a bunch of 3rd party apps instead, and seem to install one or two new ones everyday. So many programs are being released for it everyday, many of them are really good and almost must haves. Today I installed an IRC client and a wifi scanner.

I’ve also been using it to tether to my laptop for internet, this has been great as my internet at home does not exist at the moment. In fact I’m posting this blog update from my laptop using my iPhone for the internet. My favorite application would have to be the one that installs all the other applications. Sure I can download the apps from their websites and then mess around with terminal, but it’s so much easier to just touch install on the iPhone and have it download and install for me. Anyways here are some screen shots of my haxed phone, and I’ll post another update soon with more info on all the apps and stuff.

img_9000.JPGimg_9001.JPGimg_9002.JPG

3 Comments : more...


Picture Hax

    Bowmanville, Feb 10, 2009

Don't search for anything!

Don't tell them what not to do!:

Other Haxs!

Archives

All entries, chronologically...