Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 51 guests and 3 members online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Web Applications
metasploit php
EH-Net
May 24, 2013, 07:19:27 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Ethical Hacking Discussions and Related Certifications
>
Web Applications
(Moderator:
don
) >
metasploit php
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: metasploit php (Read 6528 times)
0 Members and 1 Guest are viewing this topic.
COm_BOY
Full Member
Offline
Posts: 129
LivinG DeaD
metasploit php
«
on:
October 07, 2010, 07:28:24 AM »
I was trying to practice the following module
hxxp://www.metasploit.com/modules/exploit/unix/webapp/php_include
and if I do it in my home lab I would require a vun. web app . Can anyone recommend me of any pre-configured webapp vun. to this attach so that I can do command execution ? Is webgoat a good option for this attack ?
Logged
It has become appallingly obvious that our technology has exceeded our humanity.
H1t M0nk3y
Hero Member
Offline
Posts: 865
Re: metasploit php
«
Reply #1 on:
October 07, 2010, 08:39:49 AM »
Webgoat is excellent for this. In fact, I use it when I do training on command injection attacks.
The easiest way is to download OWASP broken web apps VM image:
http://code.google.com/p/owaspbwa/wiki/ProjectSummary
Logged
OSCP, GPEN, GWAPT, GSEC, CEH, CISSP
apollo
Full Member
Offline
Posts: 146
Re: metasploit php
«
Reply #2 on:
October 07, 2010, 12:43:55 PM »
exploit-db and search for Lan Party:
http://www.exploit-db.com/search/?action=search&filter_page=1&filter_description=lan+party
That will get you a pretty easy to configure app with mysql that it works great with. That's what I've done demos on, it was very easy. If you have an up to date securely configured PHP, you will have to undo things to make remote file inclusion possible. That will be your only challenge.
Logged
CISSP, CSSLP, MCSE+Security, MCTS, CCSP, GPEN, GWAPT, GCWN, NOP, OSCP, Security+
COm_BOY
Full Member
Offline
Posts: 129
LivinG DeaD
Re: metasploit php
«
Reply #3 on:
October 07, 2010, 01:26:05 PM »
Thanks for the replies , I have got one more question in mind .
I will also need to demonstrate a jsp shell from metasploit and thus I need to have a jsp file on the webserver and when the client executes it using browser we will receive a shell , now the point, inorder for the client to execute the file we need to have tomcat+java and then the mod_jk module and all that configured because apache is not supporting jsp by default . At the moment when i execute
http://server_ip/file.jsp
it throws a source code rather then just executing it ( i do have java on client ) .
Can you guys recommend a smart and easy web server which is currently supporting jsp by default rather than the above solution .. actually i m not that good at linux
..
thanks
Logged
It has become appallingly obvious that our technology has exceeded our humanity.
dante
Jr. Member
Offline
Posts: 58
Re: metasploit php
«
Reply #4 on:
October 07, 2010, 02:42:46 PM »
Quote from: COm_BOY on October 07, 2010, 01:26:05 PM
Thanks for the replies , I have got one more question in mind .
I will also need to demonstrate a jsp shell from metasploit and thus I need to have a jsp file on the webserver and when the client executes it using browser we will receive a shell , now the point, inorder for the client to execute the file we need to have tomcat+java and then the mod_jk module and all that configured because apache is not supporting jsp by default . At the moment when i execute
http://server_ip/file.jsp
it throws a source code rather then just executing it ( i do have java on client ) .
Can you guys recommend a smart and easy web server which is currently supporting jsp by default rather than the above solution .. actually i m not that good at linux
..
thanks
JSP is a server side technology that gets executed on the server and the output of the execution of jsp is provided to the client. If you have a JSP reverse shell uploaded to the server, when you are accessing the jsp file you are getting the shell of the server and not that of the client. If you want infect client, think interms of flash, pdf, browser
Logged
COm_BOY
Full Member
Offline
Posts: 129
LivinG DeaD
Re: metasploit php
«
Reply #5 on:
October 07, 2010, 03:28:48 PM »
JSP is a server side technology that gets executed on the server and the output of the execution of jsp is provided to the client. If you have a JSP reverse shell uploaded to the server, when you are accessing the jsp file you are getting the shell of the server and not that of the client. If you want infect client, think interms of flash, pdf, browser
[/quote]
You really mean to say that jsp files cannot be executed on client systems ? here is the post I was trying to do
hxxp://carnal0wnage.attackresearch.com/node/389
Please let me know if I am doing some mistakes
«
Last Edit: October 07, 2010, 03:47:31 PM by COm_BOY
»
Logged
It has become appallingly obvious that our technology has exceeded our humanity.
dante
Jr. Member
Offline
Posts: 58
Re: metasploit php
«
Reply #6 on:
October 07, 2010, 03:44:40 PM »
Original link:http://exploit.co.il/hacking/metasploit-java-meterpreter-payload/
its a java applet and not jsp file... you do not need tomcat nor a server if you follow that link...
You just need a client machine with JRE installed.
The demo would be more impressive if you are not executing the jar file manually on the client side as shown in the link you provided. Instead you should probably write a html that embeds the applet and this html should be hosted in the server(any static web server would do).. Now when the client access the web page hosted on your server, you will get a shell of the client...
Update: I didnt see that you edited your post to a new link...
jsp files are not executed on client system period.
What follows is not an accurate explanation and does not cover all cases... but I believe will help you to understand...
jsp,php,asp - all are executed on the server side and provides the output in html format and this html is sent by the server to the client and the client usually a browser renders the html. You should read about how web applications are developed.
«
Last Edit: October 07, 2010, 04:01:16 PM by dante
»
Logged
COm_BOY
Full Member
Offline
Posts: 129
LivinG DeaD
Re: metasploit php
«
Reply #7 on:
October 07, 2010, 03:48:34 PM »
Quote from: dante on October 07, 2010, 03:44:40 PM
its a java applet and not jsp file... you do not need tomcat nor a server if you follow that link...
You just need a client machine with JRE installed.
The demo would be more impressive if you are not executing the jar file manually on the client side as shown in the link you provided. Instead you should probably write a html that embeds the applet and this html should be hosted in the server(any static web server would do).. Now when the client access the web page hosted on your server, you will get a shell of the client...
sorry , I did posted the wrong link and now I have edited my previous post , can you check the link out now
Logged
It has become appallingly obvious that our technology has exceeded our humanity.
H1t M0nk3y
Hero Member
Offline
Posts: 865
Re: metasploit php
«
Reply #8 on:
October 08, 2010, 06:35:42 AM »
BTW guys, the title of the thread is "Metasploit php"...
Logged
OSCP, GPEN, GWAPT, GSEC, CEH, CISSP
COm_BOY
Full Member
Offline
Posts: 129
LivinG DeaD
Re: metasploit php
«
Reply #9 on:
October 08, 2010, 07:37:13 AM »
Quote from: COm_BOY on October 07, 2010, 01:26:05 PM
Thanks for the replies , I have got one more question in mind .
I will also need to demonstrate a jsp shell from metasploit and thus I need to have a jsp file on the webserver and when the client executes it using browser we will receive a shell , now the point, inorder for the client to execute the file we need to have tomcat+java and then the mod_jk module and all that configured because apache is not supporting jsp by default . At the moment when i execute
http://server_ip/file.jsp
it throws a source code rather then just executing it ( i do have java on client ) .
Can you guys recommend a smart and easy web server which is currently supporting jsp by default rather than the above solution .. actually i m not that good at linux
..
thanks
I am working on that php one by installing webgoat .. however I was also stuck at jsp shells so i continued here only .. I think i should have started another thread for that
«
Last Edit: October 08, 2010, 07:39:56 AM by COm_BOY
»
Logged
It has become appallingly obvious that our technology has exceeded our humanity.
vekarman
Newbie
Offline
Posts: 28
Re: metasploit php
«
Reply #10 on:
October 15, 2010, 08:09:23 AM »
Hi COm_BOY,
Quote
and if I do it in my home lab I would require a vun. web app . Can anyone recommend me of any pre-configured webapp vun.
Download Damn Vulnerable Web Application from
http://www.dvwa.co.uk/
HTH
Logged
CISSP
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
News Items and General Discussion About EH-Net
: When your benjamin will be to your own car and truck clean up
(0) by
areluctes
Network Pen Testing
: Want a challenge? Want a GXPN practice exam?
(0) by
ajohnson
GCIH - GIAC Certified Incident Handler
: Passed my GCIH
(8) by
ajohnson
News Items and General Discussion About EH-Net
: Change is Coming to EH-Net!!
(29) by
ajohnson
GCIH - GIAC Certified Incident Handler
: GCIH Free Practice test attempt
(1) by
prats84
Greetings
: Hi from the UK
(4) by
MrTuxracer
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.