Posts

Showing posts with the label pen testing

Port of call.

One thing that is good for an network administrator is to be able to see if a web server is up without having to load a browser. Of course the web browsers usually run on port 80. Here is a short script to do that. Grab a root webpage and save the code. Great for seeing if a server is up. Usage:  ./webpageget.sh site outputfile ./getwebpage.sh oesrvr1 oesrvr1_rootpage rm: cannot remove `oesrvr1_rootpage’: No such file or directory <html> <head> <title> Offshore Educators (Main Page) 1 </title> <base href=” http://oesrvr1/oe/”&gt ; </head> <FRAMESET ROWS=”15%,*”> <FRAME SRC=”title.html” NAME=TITLE SCROLLING=NO> <FRAMESET COLS=”20%,*” FRAMEBORDER=no> <FRAME SRC=”tools.html” NAME=SIDEBAR noresize> <FRAME SRC=”notes.html” NAME=NOTES noresize> </FRAMESET> <NOFRAMES> <H1> Offshore Educators</H1> No frames? No Problem! Take a look at our <A HREF=”plain.html”>no-frames...