PDA

View Full Version : Ever Wanted to Hack Stuff...


GreNME
06-24-2006, 11:46 PM
Not everyone wants to be the kind of person who "hacks" stuff. However, there are often many people who want to tinker and try some kind of hack, even if just to test the metaphorical waters. The problem these latter people have, in many cases, is no sort of "starter" project to use as an introduction into the wonderful world of hacking.

Not any more.

The world of hacking is no longer relegated to somewhat antisocial and nerdy guys who spend every waking hour that isn't devoted to work, school, or food (and only sometimes bathing) either actively hacking or researching something new to hack. To be honest, there is a growing commercial market for hacking, as some like O'Reilly Press (http://www.oreilly.com/) and even Linksys (makers of broadband and wifi routers) are actively taking advantage of. Aside from their many "Hacking <insertnameofsoftwarehere>" books, O'Reilly has their relatively new Make Magazine (http://www.makezine.com/). I do have to admit that I haven't had the resources to get the print versions of the magazine yet, but browsing the site has yielded me some cool project ideas or given me ideas for projects I already have planned. Linksys has their WRT54G (http://www.linksys.com/servlet/Satellite?c=L_Product_C2&childpagename=US%2FLayout&cid=1133202177241&pagename=Linksys%2FCommon%2FVisitor Wrapper) line of wireless routers, which until the very latest revision (v. 5) ran on an open-source firmware based on Linux. They still offer the Linux-firmware routers, though they now end in "GL" instead of "G" or "GS" (WRT54GL), which they really didn't have to do, but is really cool of them. They know they have a good thing, too, because they're unfortunately charging an extra $10-20 for the GL model. Lucky for me I have two older-revision models.

The wireless router firmware is why I started this thread. For someone who wants to try something out and isn't sure of whether to invest all the time and energy into something that might ultimately be a passing desire for them, this wireless firmware hack is perfect. For example: I used the DD-WRT (http://www.dd-wrt.com/dd-wrtv2/index.php) firmware on my routers, and it couldn't have been easier. The cool factor is that you pretty much add more than three times the functionality to your (compatible) wireless router with a simple firmware update.

What kinds of functionality? Well, I plan on using the following: the ability to tell what computers are connected to the LAN, either in total or just through the wireless; the ability to tell the signal strength of each separate computer connected through wireless; ability to set wireless sensitivity (on the router); ability to mount a shared directory; ability to create a site-to-site VPN; ability to send syslog and snmp traps. For those of you who do it, it has the ability to set special access rules for your XBox or computer games (like WOW). Hell, for those who have a storefront or some other situation where you want to offer WiFi Hotspot capabilities, you can use the DD-WRT firmware to work as a Sputnik Agent (http://www.sputnik.com/products/ddwrt.html), or you can use the "AP Isolation" and Access Restriction settings to limit when and what users can connect to.

There are tons of things that can be done, and I really can't go into them all in one post (hence there being a whole instructional wiki (http://www.dd-wrt.com/wiki/index.php/Main_Page)). There is a heckuva lot of support for this firmware, and it covers more than just the Linksys line. The others it supports can be found on the DD-WRT site here (http://www.dd-wrt.com/wiki/index.php/Installation#Supported_Devices). For best results, I would suggest using the Linksys models, but then again I only say that because I have exclusively used the Linksys models. For all I know, these others could work as well or better than the Linksys models.

So, for those of you who have wireless and are aching for some kind of hack project, this is an easy one to accomplish that offers some cool rewards. I managed to install the firmware in under five minutes, had it configured in less than ten minutes, and replacing the old router was seamless. For under an hour of actual 'work', I have to say this hack has probably given me the highest percentage of reward to date. The only one that comes close is the hosts file hack (details for that here (http://www.mvps.org/winhelp2002/hosts.htm)), but the WRT hack easily comes out on top.

And to go along with that Make Magazine link I mentioned eariler, you who are interested might want to also look a SmartHome.com (http://www.smarthome.com/), which even has a little area to get you better acquainted (http://www.smarthome.com/starters.html) to what they mean by "smart home." I've already ordered from them and am quite satisfied.

Has anyone else seen or heard of some really accessible hacks or hack-like projects that can allow a beginner to introduce themselves to the world of hacking? Go ahead and post them here.

the twinkster
06-25-2006, 01:21 PM
Originally posted by GreNME@Jun 24 2006, 11:46 PM
Linksys has their WRT54G (http://www.linksys.com/servlet/Satellite?c=L_Product_C2&childpagename=US%2FLayout&cid=1133202177241&pagename=Linksys%2FCommon%2FVisitor Wrapper) line of wireless routers, which until the very latest revision (v. 5) ran on an open-source firmware based on Linux.
This is a sidenote, but I've got the v5, and it isn't exactly the greatest router ever (http://www.tomsnetworking.com/2006/06/08/linksys_wrt54g_v5_really_is_a_lousy _router/). It's been crippled in hardware as well as in software.

GreNME
06-25-2006, 10:27 PM
Don't believe the hype. At work I have a v.5 and a v.4 running together, and the performance as far as range and packet reliability is pretty much equal. I don't place a whole lot of faith in the hardware sites out there any more for a few specific reasons: They all have sponsors, and cater to their sponsors as much as their sponsors cater to them
Their configurations are often questionable, mostly because they would be irrelevant outside of an avid gaming environment
They tend to care more about 'specs' (how many MB of RAM?) than they are about the end result for the buyer. They may as well be suggesting putting spinners on their cars.
I have run into numerous cases where the claims on the hardware sites have been wrong, and the number alone puts it out of the realm of coincidence
Many sites out there (not Tom's as far as I know) have a habit of plagiarizing each other
These guys are often getting free "promotional" stuff for diong the review. I'd like to see quarterly reports of how many of the "promotional" items they got to keep wound up getting positive reviews.

This isn't to say those sites should be ignored. It is good to get info like the changes of this revision from prior revisions (though I got that info from the DD-WRT site). As you and I both know, twink, the number of people out there who are willing to bicker over half a frame per second or milliseconds of response time differences is significant enough to warrant almost all of the hardware sites out there. That doesn't necessarily make them any more accurate than the ricers who claim having a half-meter-high spoiler on the back of their Camry somehow improves its handling on the road.

The JT
06-26-2006, 04:41 PM
As god is my witness, as soon as I own a house in a place I don't plan out leaving anytime soon, I will start buying up smarthome components. I've been drooling over that X-10 stuff for years, and now that I finally own a house I'm probably about to move.

I'm not big on wireless networks in general, but that linksys hack does look cool. I'll keep it in mind.

GreNME
06-29-2006, 11:54 PM
Update: there is a hack for getting DD-WRT to work on a version 5 wireless router, but it lacks some of the features. Of course, unless one knows how to utilize said features, this isn't a problem.

the twinkster
07-15-2006, 08:25 AM
Their configurations are often questionable, mostly because they would be irrelevant outside of an avid gaming environment
That's exactly the environment in which I'm using it. ;) My Xbox 360 and G5 share my internet connection and both like their bandwidth. My cable connection is nice and fast, and when the router works, it works well:

With Router
Communications 4.5 megabits per second
Storage 548.5 kilobytes per second
1MB file download 1.9 seconds

Without Router (all other variables held equal)
Communications 4.7 megabits per second
Storage 578.2 kilobytes per second
1MB file download 1.8 seconds

Those aren't necessarily peak numbers, because I had other stuff running in the background. The only thing I changed, though, was removing the router from the equation, and as you can see the difference isn't dramatic. However, when the router flakes out, it flakes out pretty hard -- a few weeks ago, attempting to connect to Xbox Live through the router would kill my internet connection outright, even though connecting without the router wasn't a problem. Only giving the router a hard reset worked. It's been fine since then, but I'm not convinced that it'll last, because this has happened a couple of times now.

imported_GreNME
07-15-2006, 08:59 AM
There is a new version of DD-WRT that can be used on v5 by using the web interface, though it is missing a few features (that you would likely not use anyway).

daPyr0x
07-16-2006, 09:56 AM
I'm not rich enough to own a 802.11G router, mine is an older BEFW11S4 - which is enough for the time as I don't even use the wireless right now....

I never could decide which networking manufacturer sucked the least. I've seen so many returns of D-Links, Microsofts (remember when they tried making home routers?), Netgears....and I always believed Linksys to be the best in quality...then I bought one. The wireless on this thing has never worked properly (as in no matter what wi-fi device I attempted to use, the connection would connect and drop every 30 seconds-5 minutes no matter how close together they were or how strong the signal was. I can't even get into the WET11 I bought now because it's DHCP support is so poor that it forgets what IP it's been assigned after a little while and decides it's not going to respond to any....

Granted, this is all pre-cisco equipment, and Cisco has always been respected, so who knows how that changes things....

Slightly more on topic though - hacking things purely for the sake of hacking them sustains me and keeps me sane. If I only had a digital camera to show you all the broken hardware that's been 'hacked' in the past... Oh, wait...it's part of that pile... ;-)

the twinkster
11-15-2006, 09:49 AM
Originally posted by GreNME@Jul 15 2006, 08:59 AM
There is a new version of DD-WRT that can be used on v5 by using the web interface, though it is missing a few features (that you would likely not use anyway).
*bump*

After a number of multi-week battles with my WRT54G v5 to get it to do what I want (allow me to sign into Xbox Live when I power up my 360), I did some research, learned a little bit more about networking terminology, and replaced the proprietary VxWorks firmware with a trimmed version of DD-WRT (DD-WRT micro). Other than forgetting to set tftp to binary mode before transferring the firmware the first time, the process was smooth. I'm glad I waited until it had been tested and refined from the original release.

The most obvious change was the enabling of uPnP, which wasn't exposed by the Web interface of the VxWorks firmware. Previously, I had to manually set up port forwarding (limited to 10 instances, mind you) and then change it whenever I reset my router and wound up with different IPs assigned to my Mac and my 360, since it steadfastly refused to let me tell it which IP to assign to which MAC address.

The second most obvious change is that the web interface hangs much less frequently now. VxWorks would often hang after saving a trivial configuration change and not load the web interface properly until I reset the router. DD-WRT is much more robust (not to mention having a larger feature set and being significantly easier to use, at least on the web interface side of things).

So, thanks for the recommendation. :)

imported_GreNME
11-15-2006, 10:33 AM
Not a problem, of course.

In one of the companies I admin we attempted to try some Linksys WRT54GL units with DD-WRT, because that company is kinda strapped for budget and was looking for ways to not over-spend. Even with the two Linksys routers and extras (like higher DB antennae), the price came in lower than what we would have gotten for a single unit of commercial equipment.

The results so far have been stellar. We'll know more when we establish the system of wireless scanning devices on the network, but all tests so far have been positive. Sure, this isn't the kind of solution I'd suggest all businesses use, but it's a good way to get something started on the cheap and still have available the commercial security features like RADIUS and fairly flexible access controls. For the more adventurous out there, DD-WRT can even mount network drives for easier access from users on the wireless network. It's a low-end, low-cost hack that can wind up saving a lot of money and still offer a reasonable level of security.

On top of that, it's supporting open source software, and one of the more stable and healthy open source projects out there. I am a strong supporter of open source projects that have structure and have a strong offering for some specific solutions (as opposed to sloppy projects that are so open-ended as to nearly be meaningless / useless).

the twinkster
11-27-2006, 08:44 PM
Hm, looks like I'm not out of the woods yet. The experience is much improved, but my dreams of automatic sign-in to Xbox Live without connecting the 360 directly to the cable modem have yet to be realized.

imported_GreNME
11-28-2006, 08:35 AM
There should be a pass-through for that, though. I admit I don't know much about the whole XBox Live thing, but I'm almost positive that DD-WRT has some settings in there to help.

Try going to the Apps and Gaming tab in DD-WRT, and if you know the ports the XBox uses open them up. You could also look into tweaking the QoS section of it as well, to supply more priority to certain (ethernet) ports or MAC addresses, namely the game box.

In the end, keep in mind that you're basically dealing with a *nix router running *nix routing services, albeit far more slimmed down to bare essentials. That's the beauty of it, but sometimes it takes a little extra tweaking to get some things working optimally.

the twinkster
11-28-2006, 07:13 PM
I've already tried both of those things, unfortunately. I have a copy of Microsoft's technical requirements reference document that router manufacturers use to get their routers officially deemed "Xbox Live Compatible." There are a couple of things in there that I haven't tried yet, I'll try them out next week when I get back.

GreNME
08-11-2007, 11:28 PM
I wanted to bring this to the forefront. I think I'm going to try to rewrite this with more stuff included