Malos Ojos Security Blog

JSPSpy demo

by on Mar.07, 2013, under General, Incident Response

JSPSpy is an interesting tool that once uploaded to a server that supports JSP pages gives you a user interface on the web server itself.  Its power comes from the ability to upload/download, zip, and delete files at will on the web server as well as spawn a command prompt.  In addition, if you are able to gain credentials to a database server serving the web application (say through an unencrypted database connection string) it has a database connection component as well which would allow one to crawl a backend database server for information.

There is one issue with the code, which I find odd given that it was created in 2009, in that the SQL driver and URL for the connection using JDBC is incorrect.  Well, not incorrect, the issue is that it supports SQL Server 2000.  Starting with SQL 2005 the driver and URL were changed…and the code for JSPSpy which is easily accessible on the internet has an old connection string.

In addition, there are a few more UI’s for crawling a SQL backend using JSP floating around as well.   I’ve included one in this demo as well.

The video demonstrates the power of JSPSpy in my demo environment consisting of Java 1.6, Tomcat 6.0, SQL 2005 and Windows 2003 Server. UPDATE: I updated the video on this as it appears it didn’t convert correctly and only shows in SD, not HD so the text is very hard to read. The new video below is in HD.


No comments for this entry yet...

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

Links for tools and such...