Wall of Shame on Open WRT
A while back I was looking around Iron geek's web page and I came across his "Wall of Social Science Majors".
I figured it would be cool to have one of those on my router. So, I sat
down and tried to figure out how to do it. Iron geek uses ettercap and
outputs it to a php script. I don't know php and I don't feel like
porting ettercap to Open WRT I do know perl (sort of) and dsniff is
available for Open WRT So, I wrote a perl script that reads the output
from dsniff and displays it on a web page. You can download the script here I'll be creating an ipkg soon but until then just follow the
directions for install. This program requires perl. I haven't sat down
and determined which perl packages it needs but, if you have already
installed metasploit on your router, you have all the required
packages. The perl packages for metasploit are located here.
Installing The Wall of Shame
get dsniff if you haven't already
ipkg install dsniff
download Wall of Shame to your router
wget http://www.n0cturnal-labs.org/projects/wos-1.0/wallofshame
Make it executable
chmod +x wallofshame
copy it to /bin
cp ./wallofshame /bin
pipe the output from dsniff to wallofshame
wallofshame Options
Usage: wallofshame <OPTIONS> [-p PATH] [-f FILE]
-f Use an alernate html file
The default is to use wallofshame.html
-h Display this help and exit
-o Output to STDOUT usefull for piping to other programs
This is the default if no options are given
-p The path to where web pages are served. try /www
-t Output to Console based (psuedo) GUI
-w Output to a webpage. (requires -p)
The above explanation is pretty self explanatory but, in case there is
some doubt. If you want to use a webpage you must use -w and -p PATH.
Where PATH is the path to the web server's document directory (/www on
Open WRT). So, to run dsniff and pipe it's output to wallofshame and
create a web page in /www called wallofshame.html
the command is
dsniff | wallofshame -w -p /www
Now open a web browser and type in
http://192.168.1.1/wallofshame.html (or whatever your router's IP address is). You should see something like
this If so everything is working. If not check your configuration.