Page 1 of 3

I'm a geek

Posted: Tue Apr 06, 2004 1:32 am
by Void Main
Thanks to Jim (a new member) I was able to revive that Linksys wireless router tonight. Since I bought a new one the only thing I could think of to do with it is to turn it into another web server. :) I threw a copy of OpenWRT on it and hacked it a little. I copied the main page and the redhat/fedora tips from the void site over to it along with associated images. I linked back to the main site for most of the other stuff on the page. There surely are pages that have broken links but it's past my bedtime and I'll spruce it up later.

"top" memory stats shows:
4460K used
10004K free
0K shared
536KB buff
1564K cached

11 processes are running

disk free:

Code: Select all

# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root                  928       928         0 100% /rom
/dev/mtdblock/4           2176       436      1740  20% /

Code: Select all

# cat /proc/cpuinfo
system type             : Broadcom BCM947XX
processor               : 0
cpu model               : BCM4710 V0.0
BogoMIPS                : 82.94
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : no
hardware watchpoint     : no
VCED exceptions         : not available
VCEI exceptions         : not available
dcache hits             : 1678095948
dcache misses           : 14013018
icache hits             : 1505200861
icache misses           : 55352131
instructions            : 1561309301
Wow, look at all them bogomips!

Here's the site (everything on port 81 is on the Linksys):

Now I got 10MB of free memory to play with. I should be able to run all kinds of stuff!

Posted: Tue Apr 06, 2004 1:55 am
by ucosty
Very nice work there :D

Posted: Tue Apr 06, 2004 2:45 am
by xyle_one
Wow. :shock:

Very cool Void Main. Very cool :)

Posted: Tue Apr 06, 2004 2:48 am
by Void Main
And a CGI program for some stats:


Posted: Tue Apr 06, 2004 3:46 am
by Ice9
Erm, what can I say?
You ARE a geek :P
A cool one but a geek nevertheless! :D

Very nice Work Void!!

Posted: Tue Apr 06, 2004 7:44 am
by Doogee
:shock: :shock: :shock: :shock:

Posted: Tue Apr 06, 2004 10:28 am
by Tux
Voidmain is A geek dot net

Posted: Tue Apr 06, 2004 10:34 am
by Void Main
If anyone is interested in what was done to revive my router that I thought was going to live the rest of it's days as a door stop you can skip ahead to about 3/4 of the way through the first page where Jim Buzbee gives me the magick advice: ... .php?t=760

I believe Jim is one of the first people to get in on the WRT hacking and I think he can be credited with being the first to get snort working on it:

Again, thank to Jim for helping me out!

Posted: Sat Apr 10, 2004 12:17 pm
by Void Main
My new WRT54G revival tip served right from the router itself: ... vival.html

Or if the above is down because I am playing you can get it here: ... vival.html

Posted: Sat Apr 10, 2004 1:32 pm
by Tux
Hehe, that's cool. We even get to see your thumb, lol.

By the way, I think Jim needs a round of applause for being a geek too!

Posted: Sat Apr 10, 2004 2:03 pm
by Void Main
Tux wrote:Hehe, that's cool. We even get to see your thumb, lol.
Heh heh, yeah I was thinking about wearing gloves for the pictures. I could also say that I had a friend hold the router while I took the pictures. :) Yeah, that's it. It was a "friend". Actually, my daughter took the pictures where my hands are showing. I tried to hold the camera in my mouth and snap the shutter with my tooth but I just slobbered on the lense and it came out all blurry. :)

Posted: Sat Apr 10, 2004 3:12 pm
by Tux
Well, thumbnail Identification doesn't exist yet so you are probably safe from those cyber-ninja's that are tracking you :P

Posted: Sat Apr 10, 2004 10:40 pm
by Void Main
And now I have plenty of disk space after NFS mounting a remote share:

I also got kismet up and running. I compiled and installed the new openwrt firmware (b4). Better have about 1.5GB of free disk space to do it! What I really need to do is to get snort up and running. Too bad there's not an ipkg for it. ipkg is a lot like apt. I can just do an "ipkg install package" and it will fetch it from the net and install it. There are only a few packages available so far though:

Code: Select all

# ipkg list
admcfg - WRT54G adm configuration kernel module and binary
dropbear - SSH server
kismet - Wireless 802.11b monitoring tool
nfs-modules - Kernel modules needed to run NFS
strace - Utilidad para el debug de otros programas
tcpdump - A Tool for network monitoring and data acquisition. BSD licensed.
zlib - Zlib library needed by some packages

Posted: Fri May 14, 2004 10:19 am
by phil

sounds like you're using openwrt. How did you get cgi running on the webserver?

Posted: Fri May 14, 2004 10:34 am
by Void Main
I'm not home right now so I can't give you a definitive answer but I think I may have used the micro-asp stuff from here:

I could be very wrong on that and I can check for sure this evening. Either that or it's built right in to the existong httpd server that comes with b4. My normal HTML stuff goes in /www and CGI scripts go in /www/cgi-bin (I think it's hard coded to take anything in "DocRoot/cgi-bin" as CGI).

I was planning on putting a little more robust web server on it but I think the hardware is failing. If you notice on the stats page the box only sees 4MB of RAM right now, which is still enough to run everything I'm running though. I also can no longer bring up the wireless interface so something appears to be wrong with the hardware.