Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 35 guests online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow Pentesting Server
EH-Net
May 25, 2013, 08:47:59 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: 1 [2]   Go Down
  Print  
Author Topic: Pentesting Server  (Read 9103 times)
0 Members and 1 Guest are viewing this topic.
bamed
Newbie
*
Offline Offline

Posts: 48


View Profile WWW
« Reply #15 on: May 11, 2010, 09:13:10 AM »

Actually, getting a contract is not a bad idea.  I would be cautious of doing anything with verbal permission alone.  If anything does go wrong, you want your own back covered.
With that being said... any more progress?
Logged

chown -R bamed ./base
sil
Hero Member
*****
Offline Offline

Posts: 549



View Profile WWW
« Reply #16 on: May 11, 2010, 09:22:13 AM »

No, i've been there with the it-consultant in charge, which i did some work for setting up SMB networks.

"Fiddling" with production servers is up until now just information gathering

Im asking on this forum to learn, not get criticized.

Im just looking for constructive criticism to learn, thats all.

So again, getting back to the previous comments made by others and myself:

If you've been there AND HAVE done work for them, then why would you ask what kind of server are you hitting (is it Windows or is it a firewall?)

"Fiddling" with production servers doesn't seem like something a company would tolerate unless they don't mind potentially losing business. So nothing you can add makes much sense. Most companies allowing security testing to be done almost ALWAYS 1) ask for business references 2) look for insurance policies, etc., so unless the principals of the company you're testing are 1) insane 2) completely void of understanding risk 3) eye dee 10 tees it smells fishy as heck period.

If you're looking to learn is one thing. Looking to learn on a production server is outright stupidity and anyone allowing it should not be working on that server either. My PROFESSIONAL two cents. (Not that anyone's asked). Back to the learning curve. If you're truly just curious, stay away from potentially taking out a server as it seems (and I mean this constructively) you don't know enough to avoid causing potential harm to a production environment. I've performed quite a few pentests and have recurring companies on a quarterly basis. I can tell you firsthand the last thing you want to do is cause a potential outage.

For those stating: "mimic the network with VMWare" while it may be a theoretical approach, one can't know about the patch levels on a machine in order to mimic it. The patch levels, the configurations, the user account/group configurations, etc to make it a feasbile test. You'd be pentesting nothing more than your own VMWare image, not a mirror of a target.

Jonas, I suggest you focus on learning OUTSIDE of production servers. Since you seem to still be learning, explain to this 'company' that 'allowed' you to tinker with their servers that you don't want to potentially damage their business by possibly bringing down a production server. Be honest with them: "I'm learning and there is a risk by allowing me to tinker that I can bring down (DoS) your server inadvertently." They'll appreciate you more than finding out by you fiddling you cost them money.
Logged

bamed
Newbie
*
Offline Offline

Posts: 48


View Profile WWW
« Reply #17 on: May 11, 2010, 09:31:25 AM »

sil does have a good point.  You really don't want to mess with production servers unless you really know what you're doing.  I'm assuming from the description so far that this is a small business, so they are probably more likely to let someone fiddle with things simply because they don't know better.  However, if something does go wrong, even if it wasn't your fault, say someone else ( a real malicious user), gets into the system, steals some info, loads a virus, or whatever.  I'd say there's a pretty good chance you could take the blame whether it's your fault or not.
We're just trying to watch your back here.  It's real easy for people starting out to start fiddling with things and find themselves up a creek full of fecal matter without an adequate means of propulsion.
So, at the very least, get written permission and some kind of liability release so they can't come after you if something goes wrong.
Logged

chown -R bamed ./base
chrisj
Hero Member
*****
Offline Offline

Posts: 1163


View Profile WWW
« Reply #18 on: May 11, 2010, 10:41:00 AM »

so unless the principals of the company you're testing are 1) insane 2) completely void of understanding risk 3) eye dee 10 tees

There are more of those companies out there than you'd believe Sil. You can usually spot them by the fact that they don't have a legal department / 1 lawyer on staff.

I'm all for lab building and testing. But there is only so much a lab can teach you, unless you're lab is really really high end (including firewalls). Even then there are things you'll not understand like the current situation Jonas is in.

I agree, there are some things that are off. I applaud jonas' desire to learn, and his willing to try. AND THE FACT HE IS WILLING TO ASK QUESTIONS.

@jonas
since you've mentioned you've got contacts there. I think it wouldn't hurt to ask them about some of the things you're seeing. They know the network better and might be able to give you some information you'll need. You can also let them know that something is misconfiguration and leaking internal ip address.
Logged

OSWP, Sec+
jonas
Newbie
*
Offline Offline

Posts: 46


View Profile
« Reply #19 on: May 11, 2010, 01:00:49 PM »

I appreciate the input, and understand the risk.  It's just that when I'm asking a technical question I would like a straight answer, not an essay on wether or not i should do it, or if im doing it with "malicious" intent.  However, i do understand you guys asking.  That being said, this is a small company.  Sil, can we just drop this "fishy" talk"?  I said i did some work for him, he has over 50 customers, i never said I did work at that business. So please just leave it and try discussing IT, which is more worth everyone's while =)

Edit: thx for the wordlist bamed.
« Last Edit: May 11, 2010, 01:13:05 PM by jonas » Logged
bamed
Newbie
*
Offline Offline

Posts: 48


View Profile WWW
« Reply #20 on: May 11, 2010, 01:08:40 PM »

Give the password lists at http://www.renderlab.net/projects/WPA-tables/ a try.  I know this page is about WPA, but the password lists they give are still pretty good ones.
Logged

chown -R bamed ./base
jonas
Newbie
*
Offline Offline

Posts: 46


View Profile
« Reply #21 on: May 11, 2010, 02:07:46 PM »

Ok, so to save time and be a little nice to the service, i asked for the password for the SSH server, and put it in my wordlist.  Using auxiliary/scanner/ssh/ssh_login in msf, in verbose mode, i can see that its trying all passwords, and when it hits the correct password i get an error msg:

[-] Auxiliary failed: NoMethodError undefined method `rindex' for nil:NilClass
[-] Call stack:
[-]   /opt/metasploit3/msf3/lib/msf/core/framework.rb:242:in `session_event'
[-]   /opt/metasploit3/msf3/lib/msf/core/framework.rb:262:in `on_session_open'
[-]   /opt/metasploit3/msf3/lib/msf/core/event_dispatcher.rb:169:in `block in method_missing'
[-]   /opt/metasploit3/msf3/lib/msf/core/event_dispatcher.rb:167:in `each'
[-]   /opt/metasploit3/msf3/lib/msf/core/event_dispatcher.rb:167:in `method_missing'
[-]   /opt/metasploit3/msf3/lib/msf/core/session_manager.rb:70:in `register'
[-]   (eval):107:in `do_login'
[-]   (eval):140:in `block in run_host'
[-]   /opt/metasploit3/msf3/lib/msf/core/auxiliary/auth_brute.rb:65:in `call'
[-]   /opt/metasploit3/msf3/lib/msf/core/auxiliary/auth_brute.rb:65:in `block (2 levels) in each_user_pass'
[-]   /opt/metasploit3/msf3/lib/msf/core/auxiliary/auth_brute.rb:95:in `each_pass'
[-]   /opt/metasploit3/msf3/lib/msf/core/auxiliary/auth_brute.rb:64:in `block in each_user_pass'
[-]   /opt/metasploit3/msf3/lib/msf/core/auxiliary/auth_brute.rb:83:in `each_user'
[-]   /opt/metasploit3/msf3/lib/msf/core/auxiliary/auth_brute.rb:63:in `each_user_pass'
[-]   (eval):135:in `run_host'
[-]   /opt/metasploit3/msf3/lib/msf/core/auxiliary/scanner.rb:92:in `block in run'

Which is really not a problem, as it only happens when it gets the correct password.  But could anyone  explain why i get this error?

Logged
ajohnson
Recruiters
Hero Member
*
Offline Offline

Posts: 1060


aka dynamik


View Profile WWW
« Reply #22 on: May 11, 2010, 03:25:56 PM »

You need to understand people are trying to protect you as well. You really should have a signed, written contract. You may find that the person who gave you permission to do this doesn't actually have the authority to do so. Or he passes the blame on to you if something goes wrong. You're also subject to the laws of countries you're in, the target's in, and any country the packets pass through (they may not go in a straight line). You could quickly find yourself in serious trouble and ruin your career. It's a point that's worth bringing up, even if you only want technical information.

P.S. Run Dir Buster against the web server. Maybe you'll find some interesting web apps.
Logged

WIP: GCFA | www.infosiege.net | @infosiege

The day you stop learning is the day you start becoming obsolete.
jonas
Newbie
*
Offline Offline

Posts: 46


View Profile
« Reply #23 on: May 11, 2010, 04:41:33 PM »

I appreciate that you all think so well of me and want me all the best Wink hehe.
Thx for all the feedback, and it seems im done now anyways, even though i still dont get that error.  But its a good error so no worries Wink
Logged
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.074 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
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:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.