Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
Jan 2009 Free Giveaway Sponsor - Black Hat DC
Scooby Doo and the Crypto Caper - Answers and Winners
Daemon - A Contest Revealed
Hacking: The Art of Exploitation 2nd Edition
Nov 2008 Free Giveaway - Winners
Dec 2008 Free Giveaway Sponsor - SANS
Santa Claus is Hacking to Town
Plug-N-Play Network Hacking
Nov 2008 Free Giveaway Sponsor - CWNP
Daemon - A Contest Begins Now
It Happened One Friday - Answers and Winners
Daemon - A Contest
Scooby Doo and the Crypto Caper
MS Blue Hat Hackers Headline Chicago Security Con
The Pen Testing Perfect Storm Webcast Series with Skoudis, Wright, Johnson
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 22 guests and 1 member online
EH-Net Donations
Enter Amount:
$
CAD
USD
GBP
AUD
JPY
EUR
Google Ads
EH-Net News Feeds
Latest Additions
Book Recommendations
You are here:
Home
Forum
Ethical Hacking Discussions and Related Certifications
Network Pen Testing
Metasploit and pivoting
Ethical Hacker Community Forums
January 09, 2009, 12:31:09 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
: ChicagoCon 2009 - May 4 - 9. Boot Camps & an Ethical Hacking Conf.
www.chicagocon.com
Home
Help
Calendar
Login
Register
Ethical Hacker Community Forums
>
Ethical Hacking Discussions and Related Certifications
>
Network Pen Testing
(Moderator:
don
) >
Metasploit and pivoting
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Metasploit and pivoting (Read 5486 times)
0 Members and 1 Guest are viewing this topic.
Ketchup
Newbie
Offline
Posts: 47
Metasploit and pivoting
«
on:
July 04, 2008, 08:14:09 PM »
Hello everyone,
A while back I played with a copy of Core Impact. The tool is quite powerful, with its neatest feature being pivoting. You can use a system you have just exploited as an attack point. I have heard that SAINT has a similar feature in the works. I am just not a fan of shelling out $20k for a license of Core Impact. I lean more towards open-source and Metasploit.
When I exploit a system with Metasploit, I have a few files and scripts that I ftp / tftp down to allow me to do some basic work from a command line shell on the remote system, but my abilities are very limited at this point. It would be great to be able to use something like Nmap, Nessus, or Metasploit from the remote system. Does anyone have a method for doing something similar? Perhaps there is a meterpreter option out there? It would be great if there was an agent that ran entirely in RAM for Metasploit.
What do you do with a system once you exploit to attempt to further penetrate the network? I am curious to see what some of your methods are. I know there has to be a way and I am just missing it. I feel like I am lacking in this area and would appreciate some advice.
Logged
ChrisG
EH-Net Columnist
Hero Member
Offline
Posts: 1049
Re: Metasploit and pivoting
«
Reply #1 on:
July 04, 2008, 09:30:11 PM »
use token stealing and passing the hash to move further into the network.
from a "what next" meterpreter doesnt give you much in the way of choices unless you can code. if you want to port scan you either have to upload something like scanline or write yourself a injectable dll that will do whatever it is you need to do.
metasploit will "pivot" but not quite the same way as core does and you cant make the agent persistent, so that kinda sucks.
i did a couple of blog posts on using some of the pass the hash and token stealing tools and i think the pivoting stuff.
that help?
Logged
...tests i took go here...
http://carnal0wnage.blogspot.com/
Ketchup
Newbie
Offline
Posts: 47
Re: Metasploit and pivoting
«
Reply #2 on:
July 05, 2008, 11:15:25 AM »
Chris,
Thank you! I read your blog entries on using pivoting with Metasploit. If I understood correctly, you can use meterpreter to basically route though a particular session. This seems like 50% of what Core does for $20k. The trick is going to be identifying a vulnerability on the remote host. This could be tough if your pivot host is your only point of entry.
The pass the hash and token stealing options are also very cool and new to me. Chances are if you exploit a machine that's on the domain, there is going to be a domain user on the box. Makes privs escalation easier.
Ketchup
Logged
ChrisG
EH-Net Columnist
Hero Member
Offline
Posts: 1049
Re: Metasploit and pivoting
«
Reply #3 on:
July 05, 2008, 11:42:35 AM »
ketchup you are exactly right on that first part, it is extremely hard to identify an exploitable host inside the lan.
if msf is you only option you'll need to set up shop on that first host and scan from there (which kinda sucks)
Logged
...tests i took go here...
http://carnal0wnage.blogspot.com/
Kev
Sr. Member
Offline
Posts: 359
Re: Metasploit and pivoting
«
Reply #4 on:
July 11, 2008, 10:18:09 PM »
Good old fashion hacking was once you exploited a box you would tftp over a trojan that gave you complete control. Depending on how that trojan was written and the level of control you had, it was easy to install your tools to scan the network from that box and run a simple exploit script from that same box to hopefully own a new target. This was back in the hey day of the dcom exploit and it was easy to move that simple script along with netcat from box to box. You would build a "netcat chain". That was an amazing time because all the window boxes were vulnerable so you really didn't even need to scan other than find the IP so you could have a target. While this kind of attack is dated, there is value to the theory if you know ,or know somebody that can code. Part of the challenge today is not being detected by AVs and slipping through firewalls. I think its good to also try and think of ways to hack that don't require Core or Canvas or even Metasploit. While I think Core is a great tool, hackers don't use it. Its a very noisy tool and better suited for an admin that wants to check the security of his own network, rather than a hacker trying to sneak in. That's just my 2 cents of course, but seems to be what my experience suggests.
«
Last Edit: July 11, 2008, 10:26:13 PM by Kev
»
Logged
ChrisG
EH-Net Columnist
Hero Member
Offline
Posts: 1049
Re: Metasploit and pivoting
«
Reply #5 on:
July 12, 2008, 09:16:24 AM »
you didnt put a paragraph in there, so can you maybe reiterate your point?
that we should attempt to use something to hack besides one of the exploit frameworks? how?
your other options would be web and client side, but once you have a login or a shell you are back to network hacking and the problem already mentioned of finding more vulnerable boxes inside the network.
i agree core is loud and noisy, adding a single host and launching A single exploit at a box after you have done some enumeration is far better than the RPT
Logged
...tests i took go here...
http://carnal0wnage.blogspot.com/
Kev
Sr. Member
Offline
Posts: 359
Re: Metasploit and pivoting
«
Reply #6 on:
July 12, 2008, 11:50:39 AM »
I was thinking I should start a new thread about it, but I was trying to push the idea of how hackers used to exploit before tools like metasploit, core or canvas came about. What I am seeing with people that are new to hacking is the tendency to get totally tool dependent. If metasploit doesn't do it, maybe a new bigger fancier point and click program will be the answer! Exploiting one box and then trying to install metasploit or nessus so you can move through the network is really not practical, but you could actually do it in a few instances if you wanted to be that obvious.
«
Last Edit: July 12, 2008, 11:54:22 AM by Kev
»
Logged
Ketchup
Newbie
Offline
Posts: 47
Re: Metasploit and pivoting
«
Reply #7 on:
July 12, 2008, 01:19:13 PM »
I definitely see what Kev is talking about. You can upload a small footprint of tools that you normally use to the exploited machine, like cryptcat, rootkits, a small scanner, and a couple of well written exploit scripts. If you had sufficient time, this method definitely works and is probably the most stealthy thing you can do, provided you know what you are doing.
There are issues with this in today's world though. If you are dealing with Windows boxes, then you have to port your python, perl, or c code over to something windows can interpret on the fly. I am not an expert in this, but porting Perl code to something like VBScript or another Shell, seems like a difficult task.
Another issue is that many of us are doing this as part of a penetration test, we are not simply hacking. As part of a pen test, we have to find the most number of vulnerabilities that we possibly can, in the smallest amount of time. No one is going to pay me to hack a network for a few months manually, unfortunately. It comes down to time and money.
At the same time, I do have to agree with Kev to some degree. You at least have to be able to use the manual methods before you spend the money on an expensive tool, you don't fully understand. At the same time, the advanced hackers out there won't use a tool like Core. They probably will not use Metasploit either. They also have access to tons of 0day code that most of us are unaware of. A pen test will not simulate a determined hacker in my opinion. It more simulates a determined script kiddie.
Those are just my two cents.
Ketchup
Logged
ChrisG
EH-Net Columnist
Hero Member
Offline
Posts: 1049
Re: Metasploit and pivoting
«
Reply #8 on:
July 12, 2008, 05:23:06 PM »
kev, I agree with you on your point, people need to be able to do something besides install metaspoit on a remote box, etc
ketchup, i disagree that real hackers arent using metasploit. the whole point of metasploit is to speed up exploit development and expand the usability of exploits by allowing you to choose the payload and run time and you can always write your own exploits for it. just because all brand new CEH graduates can do is run the gui doesnt make it a bad tool.
Logged
...tests i took go here...
http://carnal0wnage.blogspot.com/
Ketchup
Newbie
Offline
Posts: 47
Re: Metasploit and pivoting
«
Reply #9 on:
July 12, 2008, 09:25:21 PM »
Chris, since I don't consider myself a hacker yet, I will defer to you on the Metasploit subject. I have much learn as a young gwasshoppa
Still, it seems that Metasploit is a bit of a large footprint to move around with you. If you develop a exploit in Metasploit, can you use it outside of the framework?
Also, with so much 0day stuff other, coupled with great rootkits, do experienced hackers really need tools like Metasploit? I am primarily speaking of black hat hackers. Remember, they are not after penetrating a machine from all different angles.
Again, not arguing, just curious what some of the more experienced folks think on this subject.
Logged
Kev
Sr. Member
Offline
Posts: 359
Re: Metasploit and pivoting
«
Reply #10 on:
July 15, 2008, 11:27:00 PM »
That’s a good question Ketchup, but it’s complicated to answer. Do we make a category of black hat hackers or do we just put them all together from the script kiddie to the high level skilled? If we put them all in one category I would be say the majority uses metasploit. If we are talking about the higher more dangerous group, I would say no. Its really hard to know for sure. There are only a few ways to know what black hats use. We gather our forensic data after a breach and try to determine how it happened. We hang out in circle that black hats frequent and talk. We run a honeynet and observe how it’s breached.
Many so called black hats just run tools and look for easy targets. They only want to hack something for bragging rights. But there are those that are greedy and want to make money. They want to steal data so they can sell it. Being stealthy is extremely important. Attacking the front gates with exploits doesnt work that much anymore. Client side attacks and basic social engineering are the preferred method from my experience.
Logged
ChrisG
EH-Net Columnist
Hero Member
Offline
Posts: 1049
Re: Metasploit and pivoting
«
Reply #11 on:
July 16, 2008, 09:23:46 PM »
i would lean that if someone can confidently write exploits for metasploit they could port them to C and make binaries that could be run on exploited windows boxes on the inside.
Logged
...tests i took go here...
http://carnal0wnage.blogspot.com/
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Special Events
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009
=> News Items and General Discussion About EH-Net
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> Certification
===> The Charter Study Group - Pen Test
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
=====> CEH - Official Course Modules v4
=====> CEH - Official Course Modules v5
=====> CEH - Official Course Modules v6
===> CPTS - Certified Pen Testing Specialist
=====> CPTS - Official Course Modules v5
===> CPTE - Certified Pen Testing Expert
=====> CPTE - Official Course Modules v1
===> ECSA - EC-Council Certified Security Analyst
=====> ECSA - Official Course Modules v1.2
=====> ECSA / LPT - Official Course Modules v3
===> OSCP - Offensive Security Certified Professional
===> GPEN - GIAC Certified Penetration Tester
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
=====> CHFI - Official Course Modules v2
===> EnCE - EnCase® Certified Examiner
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Hardware
=> Malware
=> 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
=> Gates
=> Heffner
=> Hoffman
=> RichM
=> Murray
=> J. Peltier
=> 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
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
Loading...
Sponsors
Polls
How many security events including conferences and training do you attend a year:
1 - 2
3 - 4
5 - 6
7+
None - But want to
None - Choose not to
Support EH-Net
Support EH-Net by
Buying all of your
Amazon items using
the search bar above.
Try CBT Nuggets Free!
Recent Forum Topics
Other
: Windows 7 Beta Available Tomorrow
(1) by
jason
Malware
: uninstall trend mciro officescan clients
(2) by
Hack_80
Other
: openSUSE 11.1 Released
(0) by
don
Other
: Insanity?
(5) by
jason
Other
: Fedora Hits the 10 Spot
(0) by
don
Other
: FreeBSD 7.1 Released
(0) by
don
OSCP - Offensive Security Certified Professional
: Next Up OSCP101 v2.0
(39) by
don
OSCP - Offensive Security Certified Professional
: Offensive Security Releases Sample Pen Testing Report
(0) by
don
Book Reviews
: Need a book suggestion!
(4) by
don
Web Applications
: Determine URL from IP address
(2) by
BillV
Tools
: Core Impact Essentials
(0) by
sgt_mjc
News from the Outside World
: Google branching out a little further...
(3) by
jason
Physical Security
: Magnetic stripe card spoofing
(5) by
jason
Gates
: Oracle version module for metasploit
(3) by
RoleReversal
Malware
: THe website is Evil but what to do??
(3) by
NickFnord
CEH - Certified Ethical Hacker
: Helow... help some tutorials...
(7) by
K3lV1n
CEH - Certified Ethical Hacker
: CEH is a scam
(20) by
K3lV1n
Mass Media
: Daniel Suarez Interview
(9) by
blackazarro
Malware
: Security Forecast for 2009
(5) by
jason
News from the Outside World
: Is this acceptable?
(9) by
jason
Wireless
: Wireless Pen Testing Cards
(6) by
jason
Oct 2008 - Scooby Doo and the Crypto Caper
: Skillz October 08 Winning Entry - Technical
(1) by
jason
Book Reviews
: [Article]-Mitnick - The Art Of Intrusion: Ch 1 - Hacking The Casinos For A Million Bu...
(5) by
jason
Links to cool sites.
: Free Computer Engineering Classes From Stanford
(3) by
jason
Oct 2008 - Scooby Doo and the Crypto Caper
: Skillz October 08 Winning Entry - Creative
(1) by
jason
Oct 2008 - Scooby Doo and the Crypto Caper
: [Article]-Scooby Doo and the Crypto Caper - Answers and Winners
(2) by
jason
News Items and General Discussion About EH-Net
: [Article]-Jan 2009 Free Giveaway Sponsor - Black Hat DC
(1) by
jason
News Items and General Discussion About EH-Net
: EH-Net Milestone - 2 Articles Cross 1 Million Page Views
(3) by
BillV
Other
: What kind of lab, machines you have for your security testing?
(12) by
charlottebandit
Malware
: Network Virus Problem
(9) by
RoleReversal
Wireless
: WUSB600N good usb ?
(2) by
nap191
Other
: FBI code cracking challenge
(3) by
jimbob
Calendar Of Events
: RSA 2009
(0) by
don
Forensics
: Network Forensic tools/practice/techniques
(2) by
jimbob
Malware
: Autoplay when i try to open the drive.
(4) by
jimbob
CEH - Certified Ethical Hacker
: Any Practice Environment for learning tool for CEH?
(15) by
don
Wireless
: a petri-dish bridge
(2) by
don
CEH - Certified Ethical Hacker
: TFTP Tranfer time out
(5) by
jason
Tools
: tool to trace users
(8) by
pseud0
Malware
: Malware Challenge 2008 Analysis
(0) by
blackazarro
Vote For EH-Net
progenic.com
binarica.com
technorati fave
Privacy Notice
for TDCC & All Properties
© 2009 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.