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 40 guests and 2 members online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Programming
metasploit
EH-Net
May 22, 2013, 03:30:30 PM
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
>
Programming
(Moderator:
don
) >
metasploit
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: metasploit (Read 7038 times)
0 Members and 1 Guest are viewing this topic.
rvs
Jr. Member
Offline
Posts: 94
metasploit
«
on:
September 09, 2009, 05:31:25 PM »
hi,
I've read alot of documentation about porting out the programs to metasploit. is there a reverse way of getting the scripts out of metasploit?
regards
«
Last Edit: September 09, 2009, 11:04:00 PM by rvs
»
Logged
Ketchup
Hero Member
Offline
Posts: 1021
Re: metasploit
«
Reply #1 on:
September 09, 2009, 05:53:50 PM »
Metasploit is an exploit framework. It doesn't really host programs. If you want to "export" and exploit you would just write it in the language of your choosing. Just grab the shell code and all the memory addresses and write the sploit. I am not sure if that answers your question, but that's how I would do it.
Why do you want to do this btw?
Logged
~~~~~~~~~~~~~~
Ketchup
rvs
Jr. Member
Offline
Posts: 94
Re: metasploit
«
Reply #2 on:
September 09, 2009, 08:39:33 PM »
Well number one it would be easier for me to really read the exploit code ported out from the metasploit framework. I would be using it to test on my virtual lab. Since it was ported and modified. Ill prefer it getitng from metasploit since codes would really run or I could say integrity . compare to the exploits from the wild. So would would this be doable?! It would really help out on my study as well.
Logged
Ketchup
Hero Member
Offline
Posts: 1021
Re: metasploit
«
Reply #3 on:
September 09, 2009, 08:56:32 PM »
If you are looking for reliable and working exploits, milw0rm is your source. I believe that str0ke tests each of the exploits before he posts them. Many of the metasploit exploits were ported from milw0rm. Also, I believe that metasploit is written in ruby. I am guessing that they can be run outside the framework.
Logged
~~~~~~~~~~~~~~
Ketchup
Jhaddix
Sr. Member
Offline
Posts: 317
Re: metasploit
«
Reply #4 on:
September 10, 2009, 02:37:16 PM »
metasploit exploits are usually ruby source and well parsed so most of it should be easy. You can look at at the metasploit trac and see them individually. otherwise just use msfcli to script modules or exploits.
Logged
GSEC, GPEN, GWAPT, ECPPT, WAHHlive, LSOAdvancedPenTester
http://www.securityaegis.com
http://www.pentesterscripting.com
http://code.google.com/p/pentest-bookmarks/
rvs
Jr. Member
Offline
Posts: 94
Re: metasploit
«
Reply #5 on:
September 11, 2009, 10:25:13 AM »
Quote from: Jhaddix on September 10, 2009, 02:37:16 PM
metasploit exploits are usually ruby source and well parsed so most of it should be easy. You can look at at the metasploit trac and see them individually. otherwise just use msfcli to script modules or exploits.
Jhaddix,
Could you be more specific on how to access it on the metasploit trac? the source itself thanks alot
regards
Logged
Jhaddix
Sr. Member
Offline
Posts: 317
Re: metasploit
«
Reply #6 on:
September 11, 2009, 11:46:49 AM »
http://metasploit.com/svn/framework3/trunk/modules/exploits
has the exploits
http://metasploit.com/svn/framework3/trunk
has the console
Logged
GSEC, GPEN, GWAPT, ECPPT, WAHHlive, LSOAdvancedPenTester
http://www.securityaegis.com
http://www.pentesterscripting.com
http://code.google.com/p/pentest-bookmarks/
apollo
Full Member
Offline
Posts: 146
Re: metasploit
«
Reply #7 on:
September 11, 2009, 12:35:30 PM »
Although you didn't ask for it really, I figure I'll throw in my thoughts about what your stated goals are. Taking the exploit out of metasploit and trying to port it into your own application doesn't really help your knowledge of how the exploit works. When you look into the metasploit framework at each individual exploit, what you see is just the juicy bits you need to perform the exploit. You get just the good stuff because Metasploit has already written all of the network stuff, random character generation, and in many cases protocol stacks that you may need to do your job. If you are interested in learning more about how an FTP exploit works for instance, you don't have to learn/write anything about how to create sockets or connect or build payloads, just how to get executable code to run. If you are interested in the individual payloads, they are all explorable outside of the context of the exploit. Once you understand enough about each individual piece, then you might go to writing your own, and you would use the contents of the exploit module that you need, plus the output of msfpayload to generate your payload to do what you want.
After saying all of that, if you don't really have a good understanding of debugging, you really haven't learned anything about any of this with the exception of how to just port an exploit from one language to another. If you really want to understand what's going on , there are roughly a few hundred examples using the warftpd password exploit available on the internet. Going through there and figuring out how to get EIP and launch executable code will get you a lot further in understanding what's going on than trying to pull apart a metasploit exploit and re-assemble it in perl/python/C.
Take that for what you will though. You do need the whole trunk to ever run one of the metasploit exploits as there is a ton of stuff in the lib that isn't included under /modules. As the whole beauty of metasploit is the libraries that facilitate exploit/payload creation, without the libs you are just left with a rough outline of what is going on, you will never get the full picture.
Logged
CISSP, CSSLP, MCSE+Security, MCTS, CCSP, GPEN, GWAPT, GCWN, NOP, OSCP, Security+
rvs
Jr. Member
Offline
Posts: 94
Re: metasploit
«
Reply #8 on:
September 11, 2009, 11:29:30 PM »
Would you give out an exploit example on metasploit and code to python or c would do?! this would be very interesting for newbies like me. understanding the EIPs, the shellcodes, the return address. I would gladly make a good manual for everyone. for example the ever famous rpc dcom exploit. A very simple c or phython code would really help us at least trace the structure of the code. dunno if this one would make sense. but i think reversing the process of porting the exploits to metasploit is possible. thanks
regards
Logged
ethicalhack3r
Full Member
Offline
Posts: 139
Re: metasploit
«
Reply #9 on:
September 12, 2009, 09:36:29 AM »
Milw0rm will have most of the exploits in their original format (as Ketchup already mentioned):
MS07-065 -
http://milw0rm.com/exploits/4745
«
Last Edit: September 12, 2009, 09:38:34 AM by ethicalhack3r
»
Logged
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
Greetings
: Hi from the UK
(2) by
n37sh@rk
Network Pen Testing
: AIX Vulnerability Assessments
(2) by
ras76
Tutorials
: Need guidance
(9) by
hanyhasan
Programming
: Finished Python Course in Codecademy now what?
(15) by
hanyhasan
Network Pen Testing
: Ruby on Rails Vulnerabilities / Attacks in BackTrack 5 r3
(0) by
SUdoctstudent
Network Pen Testing
: De-ICE 1.140 released!
(2) by
superkojiman
General Certification
: CPT Practical Submission
(1) by
UNIX
OSCP - Offensive Security Certified Professional
: Failed my first attempt at the OSCP exam
(94) by
azmatt
Tools
: Social-Engineer Toolkit (SET) Version 5.0 “The Wild West” Released
(2) by
m0wgli
Malware
: EICAR?
(3) by
UKSecurityGuy
Advisories
: HTB23154: Multiple Vulnerabilities in Exponent CMS
(0) by
AndyP
Advisories
: HTB23153: Multiple Vulnerabilities in Jojo CMS
(0) by
AndyP
Advisories
: HTB23151: Cross-Site Request Forgery (CSRF) in UMI.CMS
(0) by
AndyP
OSCP - Offensive Security Certified Professional
: Class Scheduled 6/8 - Linux n00b
(7) by
Taemyks
OSCP - Offensive Security Certified Professional
: OSCP exam scheduled
(6) by
gbhat
Incident Response
: LinkedIn Forensics
(0) by
AFENTIS_Forensics
General Certification
: Red Team/Blue Team
(1) by
ajohnson
Career Central
: Starter cert?
(3) by
Grendel
Network Pen Testing
: Beginner Ethical Hacker
(1) by
m0wgli
Web Applications
: Nessus and Nikto
(4) by
Seen
Network Pen Testing
: Cracking salted MD5 hash
(4) by
n37sh@rk
CEH - Certified Ethical Hacker
: Passed my C|EH
(3) by
n37sh@rk
Mass Media
: EC-council hacked, irony at his best?
(0) by
j0rDy
Web Applications
: SQL Injection into an INSERT statement.
(6) by
eyenit0
Network Pen Testing
: Solution for sipXtapi INVITE Message CSeq Field Header Remote Overflow
(1) by
m0wgli
Web Applications
: dns
(2) by
H1t M0nk3y
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.