<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Checkmate &#187; Hacks</title>
	<atom:link href="http://niiconsulting.com/checkmate/category/hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://niiconsulting.com/checkmate</link>
	<description>An Information Security Blog by NII Consulting</description>
	<lastBuildDate>Fri, 02 Dec 2011 08:26:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Social Engineering &amp; &#8220;Influence&#8221;, by Dr. Cialdini</title>
		<link>http://niiconsulting.com/checkmate/2010/06/03/social-engineering-influence-by-dr-cialdini/</link>
		<comments>http://niiconsulting.com/checkmate/2010/06/03/social-engineering-influence-by-dr-cialdini/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 07:10:40 +0000</pubDate>
		<dc:creator>K K Mookhey</dc:creator>
				<category><![CDATA[Case Studies]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Social Engineering]]></category>
		<category><![CDATA[Cialdini]]></category>

		<guid isPermaLink="false">http://niiconsulting.com/checkmate/?p=253</guid>
		<description><![CDATA[Over the past few years, we have completed a number of social engineering tests as part of advanced penetration testing at various organizations. Coincidentally, I recently read an excellent book called “Influence – the Psychology of Persuasion” by Dr. Robert Cialdini.and realized that it has some excellent lessons for anyone wanting to guard themselves from [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past few years, we have completed a number of social engineering tests as part of advanced penetration testing at various organizations. Coincidentally, I recently read an excellent book called “Influence – the Psychology of Persuasion” by <a href="http://en.wikipedia.org/wiki/Robert_Cialdini" target="_blank">Dr. Robert Cialdini.</a>and realized that it has some excellent lessons for anyone wanting to guard themselves from social engineering attacks.</p>
<p>Dr. Cialdini’s book is an excellent coverage of what he calls “compliance professionals” – people engaged in hard-core door-to-door selling such as second-hand car salesman, multi-level marketing (read Amway) professionals, etc. He talks about the following 6 techniques adopted by these professionals to convince people to buy things they were never going to buy in the first place. The same techniques can also afford the social engineer easy access to information, and it is worthwhile for information security professionals to examine what the other breed of “compliance professionals” is up to!</p>
<p><span id="more-253"></span></p>
<p><strong> 1. Reciprocation: </strong>We are hard-wired to respond to a favor, often not in direct proportion to the size of the favor done to us. One such example given by Cialdini is the aid given in 1985 by Ethiopian Red Cross to earthquake victims in Mexico as repayment of aid given by Mexico when Ethiopia was invaded by Italy, way back in 1935! For the original <a href="http://news.google.com/newspapers?id=6aAmAAAAIBAJ&amp;sjid=xgEGAAAAIBAJ&amp;pg=5597,2603767&amp;hl=en" target="_blank">news article click here</a>.<br />
<span style="text-decoration: underline;">Practical exploitation:</span> <span style="text-decoration: underline;"><br />
</span>We used this technique to deadly effect by inducing a systems administrator to disclose highly confidential information about their set up after providing him with lots of study material for the upcoming CISA exam.</p>
<p><strong>2. Commitment and Consistency: </strong>Once we have made a choice or taken a stand, we will encounter personal and inter-personal pressures to behave consistently with that commitment.<br />
<span style="text-decoration: underline;">Practical exploitation:</span> <span style="text-decoration: underline;"><br />
</span>During one such test, we posed as auditors and started interviewing the system administrators. After a couple of days of helping us out with information, they led us to the other departments in the organization and further facilitated our “audit”. It was only on the 5th day that someone raised an alarm, but during the first few days once the personnel had hard-wired themselves into co-operating with us, they just went all the way, without even checking our credentials!</p>
<p><strong>3. Social Proof: </strong>One means we use to determine what is correct is to find out what other people think is correct. The principle applies especially to the way we decide what constitutes correct behavior.<br />
<span style="text-decoration: underline;">Practical exploitation:</span> <span style="text-decoration: underline;"><br />
</span>This is most simply exploited during a social engineering test by leveraging the power of social networking sites such as LinkedIn and Facebook. An attractive enough profile with other members of your organization linked to it is highly likely to make you add it to your network as well, with no clue as to the profile&#8217;s veracity.</p>
<p><strong>4. Liking: </strong>Few people would be surprised to learn that, as a rule, we most prefer to say yes to the requests of someone we know and like.<br />
<span style="text-decoration: underline;">Practical exploitation:</span> <span style="text-decoration: underline;"><br />
</span>Our most successful attempts have involved sending our more likeable people across asking for help or requesting for information to complete a “college project”. These individuals are usually well-groomed, smart, personable, and possess decent levels of charm or naivete to get the other person to comply.</p>
<p><strong>5. Authority: </strong>The famous <a href="http://en.wikipedia.org/wiki/Milgram_experiment" target="_blank">Milgram experiments</a> show the power of authority in comparison to all the other factors listed here. The real culprit is our inability to resist the psychological power wielded by the person in authority.<br />
<span style="text-decoration: underline;">Practical exploitation:</span> <span style="text-decoration: underline;"><br />
</span>We have seen this work in numerous ways by faking authority letters purporting to come from some government agency or from the managing director of the company. A lot of the times the recipient will simply comply with the request. The same effect is seen when depending on which car one is in, and how one is dressed, the security guard at the gate will adjust his level of obsequiousness.</p>
<p><strong>6. Scarcity: </strong>Collectors of everything from baseball cards to antiques are keenly aware of the influence of the scarcity principle in determining the worth of an item.<br />
<span style="text-decoration: underline;">Practical exploitation:</span> <span style="text-decoration: underline;"><br />
</span>One of the most common tactics is to build time pressure. The scarcity of time often makes people comply with requests in violation of their policies and their own common sense. We have used this on numerous occasions be it with a security guard or with a system or network administrator.</p>
<p>For other interesting social engineering experiments, search for “the real hustle” on YouTube for the BBC program that shows how as humans we easily fall prey to the smart hustler who sweet-talks his or her way into social engineering us.</p>
]]></content:encoded>
			<wfw:commentRss>http://niiconsulting.com/checkmate/2010/06/03/social-engineering-influence-by-dr-cialdini/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Hacking Microsoft Windows 2003 Server with Microsoft SQL Server 2005</title>
		<link>http://niiconsulting.com/checkmate/2009/12/08/hacking-microsoft-windows-2003-server-with-microsoft-sql-server-2005/</link>
		<comments>http://niiconsulting.com/checkmate/2009/12/08/hacking-microsoft-windows-2003-server-with-microsoft-sql-server-2005/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 05:30:53 +0000</pubDate>
		<dc:creator>TAS</dc:creator>
				<category><![CDATA[Case Studies]]></category>
		<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://niiconsulting.com/checkmate/?p=119</guid>
		<description><![CDATA[This post is a complete switch over from my previous post on phishing modus operandi. A little background on the hack. I was doing an assessment of a financial application; the objective was to evaluate the security of the complete infrastructure on which the application will be hosted once it goes live. As oppose to [...]]]></description>
			<content:encoded><![CDATA[<p>This post is a complete switch over from my previous post on phishing modus operandi. A little background on the hack. I was doing an assessment of a financial application; the objective was to evaluate the security of the complete infrastructure on which the application will be hosted once it goes live. As oppose to the routine list of findings this particular hack took the limelight. It was system compromise with Administrator access to the system. Yeah! </p>
<p><span id="more-119"></span></p>
<p>It was last day of our assessment; I had little time on hand before I could wind up for the day. So I thought why not bash the ‘sa’ account. I open the Microsoft SQL Server 2005 Management Studio and try some brute forcing for ‘sa’ account with common passwords, I get errors and disappointments. But this was short lived, it dint take me more than 7 tries to get the combination right. And that opens my way into the system. </p>
<p>Once I was inside, the next step was to use the stored procedure xp_cmdshell. The &#8220;xp_cmdshell&#8221; extended stored procedure runs operating system commands from within the database engine. You can use the query analyzer or T-SQL code to run the command. Back to the hack, I than open the query analyzer and type the following command</p>
<blockquote><p>
<em>exec xp_cmdshell &#8216;dir C:\&#8217;</em></p></blockquote>
<p>Though I was logged in &#8216;sa&#8217; account (the highest privilege account in SQL server), as expected I get this long error message.</p>
<blockquote><p><em>Msg 15281, Level 16, State 1, Procedure xp_cmdshell, Line 1<br />
SQL Server blocked access to procedure &#8216;sys.xp_cmdshell&#8217; of component &#8216;xp_cmdshell&#8217; because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of &#8216;xp_cmdshell&#8217; by using sp_configure. For more information about enabling &#8216;xp_cmdshell&#8217;, see &#8220;Surface Area Configuration&#8221; in SQL Server Books Online</em></p></blockquote>
<p>In short the error means, I cannot use the xp_cmdshell stored procedure to do my hack. Microsoft (MS) has turned this stored procedure OFF in the version above SQL 2000 as a part of the security configuration. The previous versions of SQL Server 2005 had full access to xp_cmdshell turned ON in the default setup. And hence it was easy to do the system compromise. One obvious advantage of disabling the xp_cmdshell is, once a hacker gets access to the SQL server, the system compromise would not become a cake walk. But let’s check out how you can still do cake walk on version above Microsoft SQL Server 2000. Just a little tricky but easy <img src='http://niiconsulting.com/checkmate/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>If you read the error carefully it gives out a lot more than it should. Check the last line of the error message. It says xp_cmdshell can be enabled using the &#8220;Surface Area Configuration&#8221;. I further Google and get plenty of articles that tell me how to use Surface Area Configuration wizard to enable the stored procedure. They would ideally work but it dint work for me for whatever reason. If you want to enable xp_cmdshell with Surface Area Configuration method on your own system, try the following</p>
<blockquote><p>
<em>Goto Microsoft SQL Server 2005<br />
Configuration Tools &gt; SQL Server Surface Area Configuration &gt; Surface Area Configuration for Feature &gt; Expand the SQL server Instance name &gt; Under Database engine goto xp_cmdshell &gt; Check &#8220;Enable xp_cmdshell&#8221; and Apply</em></p></blockquote>
<p>That&#8217;s it, you can have now enabled xp_cmdshell for your own box. You can again run the command mentioned above. You should not get any error now. The image below summarizes this</p>
<p><img src="http://niiconsulting.com/checkmate/wp-content/uploads/2009/12/Enable_xp-cmdshell_local_sys" alt="Enabling xp_cmdshell with 'Surface Area Configuration Wizard' on your own box" /><br />
Fig: Enabling xp_cmdshell using the Surface Area Configuration Wizard</p>
<p>I had to enable xp_cmdshell on the remote system. I open my SQL Server Surface Area Configuration wizard and click on &#8220;Change computer&#8221; and specify the remote system SQL server instance name (or IP). It popped me with some error. I tried a few time but phew! It does not work for me. It was time, I try something else. I go back and start to find if there was some a command line to do the same thing. Again a few searches and I get my results. You can enable the xp_cmdshell in 4 simple steps.</p>
<blockquote><p><em>1) EXEC master.dbo.sp_configure &#8216;show advanced options&#8217;, 1 (ONE means ON, ZERO means OFF)<br />
2) RECONFIGURE<br />
3) EXEC master.dbo.sp_configure &#8216;xp_cmdshell&#8217;, 1<br />
4) RECONFIGURE</em></p></blockquote>
<p>sp_configure displays or changes global configuration settings for the current server. And the ‘sa’ account has privileges on this stored procedure. Eh! sp_configure is my key inside the system. So I first enable all the advance options than enable the xp_cmdshell. The image below shows my ‘xp_cmdshell’ in action on the remote system.</p>
<p><img src="http://niiconsulting.com/checkmate/wp-content/uploads/2009/12/enable_xp_cmdshell.png" alt="xp_cmdshell in action on victim system" /><br />
Fig: xp_cmdshell in action on victim system</p>
<p>Once I enabled xp_cmdshell, it was time for me to add user. So I type the following commands at the query analyzer console,</p>
<blockquote><p><em>1) EXEC xp_cmdshell &#8216;net user pwnsauc3 h3ll0w0rld$ /ADD&#8217;<br />
2) EXEC xp_cmdshell &#8216;net group Administrators pwnsauc3 /ADD&#8217;</em></p></blockquote>
<p>In case the remote terminal service is not ON, goto to Start &gt; Run and type service.msc. Right click on the parent node and connect to remote services and use the above username and password. Start the Terminal Services. You can now sit and relax; you are a step away from administrator access to the system. Fire up your remote terminal client and type in the IP and login with the user name and password we created. The images below conclude my hack. </p>
<p><img src="http://niiconsulting.com/checkmate/wp-content/uploads/2009/12/connecting_to_remote_system.png" alt="Verify the user addition from command line" /><br />
Fig: Verify the user addition from command line</p>
<p><img src="http://niiconsulting.com/checkmate/wp-content/uploads/2009/12/verifying_user_addition_to_sys.png" alt="Remote terminal to the victim system" /><br />
Fig: Remote terminal to the victim system</p>
<p><img src="http://niiconsulting.com/checkmate/wp-content/uploads/2009/12/user_added_to_administrators group.png" alt="verifying the user added to Administrators group" /><br />
Fig: Verifying the user added to Administrators group</p>
<p>Adios!<br />
Taufiq Ali</p>
]]></content:encoded>
			<wfw:commentRss>http://niiconsulting.com/checkmate/2009/12/08/hacking-microsoft-windows-2003-server-with-microsoft-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Phishy Story</title>
		<link>http://niiconsulting.com/checkmate/2009/11/05/a-phishy-story/</link>
		<comments>http://niiconsulting.com/checkmate/2009/11/05/a-phishy-story/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 12:17:40 +0000</pubDate>
		<dc:creator>TAS</dc:creator>
				<category><![CDATA[Case Studies]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Research]]></category>

		<guid isPermaLink="false">http://niiconsulting.com/checkmate/?p=80</guid>
		<description><![CDATA[Phishing sounds similar to fishing. Fishes are to the volume of internet users today much like fishermen are to phishers. Zillions of fishes falling prey the nets is nothing less compared to internet users being phished through their own in boxes and messengers. Phishers tend to have some personal favorites &#8211; personal information, credit cards [...]]]></description>
			<content:encoded><![CDATA[<p>Phishing sounds similar to fishing. Fishes are to the volume of internet users today much like fishermen are to phishers. Zillions of fishes falling prey the nets is nothing less compared to internet users being phished through their own in boxes and messengers.  Phishers tend to have some personal favorites &#8211; personal information, credit cards numbers, debit cards numbers with ATM pins, etc. Though phishing has been around for a long time, it became more prominent back in 2003. You can read more here on the big scams <a href="http://www.washingtonpost.com/wp-dyn/articles/A59350-2004Nov18.html">here</a>.</p>
<p>How does it all work?</p>
<p><span id="more-80"></span></p>
<p>
A typical modus operandi:</p>
<p>1)	The Phisher would either go out and buy a phishing kit from the underground channels or create a look alike page himself.</p>
<p>2)	 He would then need hacked websites or a server where the pages can be hosted. This can also be easily made available. He would pay or trade for a list of hacked websites on IRC channels, underground forums etc. These are some very common sources for such deals. He could also target systems that are vulnerable to a particular vulnerability or weakness in the website &#8211; vulnerability in the hosting providers control panel software, exploit for popular CMS like Joomla, 0day vulnerability in web server, etc. A zero-day (or zero-hour) attack or threat is a computer threat that tries to exploit computer application vulnerabilities that are unknown to others, undisclosed to the software vendor, or for which no security fix is available. (ref : <a href="http://en.wikipedia.org/wiki/Zero_day_vulnerability">http://en.wikipedia.org/wiki/Zero_day_vulnerability</a>)</p>
<p>3)	Once the hacked infrastructure is ready it’s time to spam. They would ideally send out emails in large volumes. These emails are crafted to perfection. They would have the company logo, an appealing message in the email; use the CSS as the company that is phished, etc. All this together make it look perfect. It’s like decorating the devils face with cosmetics to make it look innocent. But not to forget the devil under a thin layer of cosmetics. They will have a crafted link and the hyperlink actually pointing to some website where the pages are hosted.</p>
<p>However, the entire process is a gamble. Some may fall prey to their phish nets while others may not. Over the years, phishing scams have grown from simply stealing accounts into much more dangerous criminal intention. Assuming the user is a prey of the phish net, let us understand the ways in which a phisher can harvest the data of the victim. There are various ways in which this can be done.</p>
<p>1)	The attacker here uses services of websites that let you send HTML forms embedded in your email. On submit of this HTML form the phished page will redirect you to the legitimate website. This often tricks the user. They don’t realize what just happened. The details entered on the form are then emailed to the phisher’s inbox that is supposed to collect the details. The most common examples where you can see them are when advertising on the internet.</p>
<p>2)	Second, the email is scripted in a way that a user is tempted or forced to visit the copied website. The attacker can also use the tactic mentioned above and use services like www.emailmeform.com. Attacker creates an account here and links his entire phished page to use their service to capture the details and then email it to them. This is the most common method used by phishers. Also the pages are scripted in server side programming languages like PHP, .NET, JSP etc. Doing so it does not expose the modus operandi or the attacker’s identity in any way or other details in any way.</p>
<p>3)	The third type is where the phishers use nothing like above and instead writes all the output to a predefined file. In this way he needs no email address or anything mentioned above to capture the user details. This is what I am exactly going to write about.</p>
<p>Since I had some time off before I could start with the next takedown, I decided to dig further. Before we begin let me give you a brief about our service and the client. We offer take down services to a large public sector bank. We have a strict timeline defined of 24 hrs for every takedown. Every time a customer or their monitoring reports a phished page we have to takedown the site to protect the loss of financial and other details. While doing takedowns I also get a chance to research on understanding the modus operandi behind the operation. It is very interesting.</p>
<p>I have just started my day checking my email over a cup of coffee. I receive a new email on Tue 11/3/2009 10:22 AM about a phished link being up with the URL and we need to immediately start the takedown. He also sends me a sample email. We did the usual process and the link was down by noon. Have a look at a sample phishing email. </p>
<p><img src="http://niiconsulting.com/checkmate/wp-content/uploads/2009/11/fraudlent-email-sample1.jpg" alt="" /></p>
<p><br/><br/></p>
<p>The email looks so real. It has the logo of the customer and perfect login URL. On hover I found it was actually pointing to some server in Russia. The page &#8216;retails.html&#8217; simply redirects to the next URL where the phished page is hosted. Have a look at the closing lines of the email below. The phisher uses pressure tactic that will force the user to browse the URL.</p>
<p><img src="http://niiconsulting.com/checkmate/wp-content/uploads/2009/11/2009-11-04_151209.jpg" alt="" /></p>
<p>Ok I now click and I am now redirected to the URL http://200.119.X.X/retail/login.php. The page looks like this</p>
<p><img src="http://niiconsulting.com/checkmate/wp-content/uploads/2009/11/login-page.jpg" alt="" /></p>
<p>I then enter some fake details on this page and press the Enter key. I am now redirected to another page called &#8216;accounts.php&#8217; on the same domain. I quickly check the html source code (view source) of the page to check for the</p>
<form> tag. This is where I would see where the page is going on hitting &#8216;submit&#8217;. I am now redirected to another page hosted on a hacked domain called hxxp://stirileprotv.fnhost.org/bi/ib.php</p>
<p><img src="http://niiconsulting.com/checkmate/wp-content/uploads/2009/11/2009-11-04_151925.jpg" alt="" /></p>
<p>I go a level up in the URL hxxp://200.119.X.X/retail/login.php and now I see the directory listing. I see 2 files under the retail folder namely &#8216;login.php&#8217; and &#8216;accounts.php&#8217;. Directory Listing has been common in all my takedowns. They don’t really care for the directory listings. What I also observed, at the bottom of the &#8216;account.php&#8217; page is more interesting. The page is has an IFRAME with src pointing to <a href="http://statanalyze.cn/lib/index.php">http://statanalyze.cn/lib/index.php</a>. This is some malware getting downloaded on victim system. </p>
<p><img src="http://niiconsulting.com/checkmate/wp-content/uploads/2009/11/2009-11-04_124018_malware.jpg" alt="" /></p>
<p>My anti virus immediately pops up an alert that a malware is getting downloaded. And it immediately blocks it. Coming back to &#8216;accounts.php&#8217; it asks for my Name, email address, credit card number, ATM pin and expiration date. On entering some fake details I am now redirected to a third domain hxxp://stirileprotv.fnhost.org/bi/ib.php. And from &#8216;ib.php&#8217; it redirects me to the legitimate page of my client website. I have changed that to hxxp://www.google.com in the code snippet. Aren’t these guys sick of so many re directions? Not really they have a smart modus operandi. They don’t use one domain to complete their operation.</p>
<p>I again go a level up on the <a href="http://stirileprotv.fnhost.org/bi/ib.php">http://stirileprotv.fnhost.org/bi/ib.php</a>. What I happen to find is something even more interesting. It had a page &#8216;ib.php&#8217; under the ib folder and a .txt file. When I tried accessing the file what I find is the actual account details of the people who have fallen prey to the trick with their usernames, credit card numbers, internet banking IDs and passwords. Check file snippet below</p>
<p><img src="http://niiconsulting.com/checkmate/wp-content/uploads/2009/11/2009-11-05_113230.jpg" alt="" /> </p>
<p>I then contact the client to freeze the accounts and get in touch with the hosting providers. I make sure I ask the hosting providers to provide me with the pages as they aid to my research in understanding various modus operandi out on pr0wl. Most of the time they don’t give the pages but this time I was lucky. The tech support guys actually emailed me the contents of the ib folder. Have a look at the php code</p>
<p><img src="http://niiconsulting.com/checkmate/wp-content/uploads/2009/11/the-actual-code.jpg" alt="" /></p>
<p>Let me explain the code in brief. It opens a stream to a file called x-account-all.txt and then captures the post variables from the URL http://200.119.X.X/retail/accounts.php. The following table explains what each variable means</p>
<p><img src="http://niiconsulting.com/checkmate/wp-content/uploads/2009/11/table.jpg" alt="" /></p>
<p>I thought that was it. I was done with my research. I relaxed a bit and stretched my arms. But hold on readers I recollect that the website was also vulnerable to IFRAME injection. No more research on this malware guys I have colleagues who enjoys this. I will send this to him. Till he comes up with his analysis there are some who have already done it. Check the link below</p>
<p><a href="http://wepawet.iseclab.org/view.php?hash=363c95666cf1e80072656c7b562c4dbb&amp;type=js">http://wepawet.iseclab.org/view.php?hash=363c95666cf1e80072656c7b562c4dbb&amp;type=js</a> </p>
<p><a href="http://anubis.iseclab.org/?action=result&amp;task_id=1c109b3e2cc07d1f49168943cc884e1d2">http://anubis.iseclab.org/?action=result&amp;task_id=1c109b3e2cc07d1f49168943cc884e1d2</a></p>
<p><a href="http://www.virustotal.com/analisis/837508d65acc78ec684c0d7a907bea7f49ce223052a18a076240018fc61a0d7f-1257141946">http://www.virustotal.com/analisis/837508d65acc78ec684c0d7a907bea7f49ce223052a18a076240018fc61a0d7f-1257141946</a></p>
<p>I was still way too itchy to pull down a full stop. I picked some arbitrary entries from the file and picked the &#8216;ea&#8217; and &#8216;bb&#8217; field. Why only them? (I got this particular combination after trying out a few) I was able to login to the Yahoo accounts of the victim since the password used was the same for both the accounts. I then checked the spam box and found the email that the victim had received. There were similar emails and to my surprise I found another URL hosting the phished page. Ok guys that’s it, I need to get back to my next takedown immediately  Oh! By the way, this time it is some Windows 2003 server behind some ADSL router running the phished page on a XAMP server. I did RDP to the box, 3389 was found open. I will come back if I find something more interesting.</p>
<p>All the details in this post have being changed or rename to protect real identity of our client. </p>
<p>Adios!<br />
Taufiq Ali</p>
]]></content:encoded>
			<wfw:commentRss>http://niiconsulting.com/checkmate/2009/11/05/a-phishy-story/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Concurrent RDP connections hack &#8211; XP</title>
		<link>http://niiconsulting.com/checkmate/2009/03/26/concurrent-rdp-connections-hack-xp/</link>
		<comments>http://niiconsulting.com/checkmate/2009/03/26/concurrent-rdp-connections-hack-xp/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 16:56:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fundamentals]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Network Forensics]]></category>

		<guid isPermaLink="false">http://www.niiconsulting.com/checkmate/2009/03/concurrent-rdp-connections-hack-xp/</guid>
		<description><![CDATA[by Toufiq Ali, NII Consulting Before you read further make sure you back up all the original settings of the registry or set create a restore point of your system. I assume reader know what a windows remote terminal service is. If not please refer to http://en.wikipedia.org/wiki/Terminal_Services In Windows XP when a remote user tries [...]]]></description>
			<content:encoded><![CDATA[<p><strong>by Toufiq Ali, <a href="http://www.niiconsulting.com//">NII Consulting</a></strong><br />
Before you read further make sure you back up all the original settings of the registry or set create a restore point of your system. I assume reader know what a windows remote terminal service is. If not please refer to http://en.wikipedia.org/wiki/Terminal_Services</p>
<p>In Windows XP when a remote user tries to connect using the Remote Desktop Connection (RDC) client in Windows XP, the local user is disconnected from his current session forcefully. RDC, unlike Terminal Server Services in Windows 2000, Server 2003 and Server 2008, is designed for only one session at a time.. This excerpt aims at making terminal services functionality of multiple user login from Windows server 2000, windows server 2003 etc in Windows XP. This would be very useful in environment where the network admin often troubleshoots problem on the network using RDC.</p>
<p>Keep reading as the hack unfolds to enable concurrent remote desktop connection sessions support in Windows XP using the following patched files.<span id="more-52"></span></p>
<ol>
<li>Download files.zip from the link given below on the system where you want to enable concurrent RDC connections.</li>
</ol>
<p><a target="_blank" title="Clikc here to download" href="http://www.niiconsulting.com/checkmate/wp-content/uploads/2009/03/files.zip">Download files.zip</a><br />
Windows XP SP1 and SP2: Windows XP RTM, SP1 and SP2.zip</p>
<p>Windows XP SP2: Windows XP SP2.zip</p>
<p>Windows XP SP3: Windows XP SP3.zip</p>
<p>Before you go ahead further, you should be in the safe mode (Press F8 during boot up). If you don’t want to prolong your wait to see this work,</p>
<p>1. goto &#8216;Start&#8217; > &#8216;Run&#8217; services.msc<br />
2. Right click on Terminal services &#038; goto Properties.<br />
3. From the startup type drop down choose disable or simply stop the services.<br />
4. Click on apply or Ok &#038; exit the services.msc file.</p>
<p>2. Go to %windir%\System32 and &#038; rename the termsrv.dll to anything that you can remember.<br />
3. Go to %windir%\System32\dllcache &#038; rename the termserv.dll.</p>
<p>4. Copy the downloaded termsrv.dll in the following two locations<br />
1. to %windir%\System32<br />
2. %windir%\System32\dllcache.</p>
<p>Note: when you copy the files Windows will pop up the Windows File Protection dialog box. Click the cancel button &#038; then Yes to keep this copy of the patched file.</p>
<p>5. Now, download and run the concurrent_sessions.bat file. Click yes to add these values to the registry or you can run Registry Editor to manually add the following registry value:</p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server\Licensing Core]<br />
“EnableConcurrentSessions”=dword:00000001</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]<br />
“EnableConcurrentSessions”=dword:00000001</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]<br />
“AllowMultipleTSSessions”=dword:00000001</p>
<p>6. Click on Start Menu -> Run command and type gpedit.msc,</p>
<p>7. Navigate to Computer Configuration -> Administrative Templates -> Windows Components -> Terminal Services.</p>
<p>8. Enable Limit Number of Connections and set the number of connections to number of concurrent sessions you want to allow</p>
<p>9. Restart the terminal services on that system again. Also enable Remote Desktop from the System Properties’ Remote tab &#038; check for Allow users to connect remotely to this computer.</p>
<p>10. Turn on Fast User Switching in Control Panel -> User Accounts -> Change the way users log on or off.</p>
<p>11. Restart the computer normally.</p>
<p>If the Windows XP computer is connected to a domain, every time you restart your computer Windows will set the value of the regkey “AllowMultipleTSSessions” to “0″. To ensure that multiple or unlimited Remote Desktop connection sessions is allowed in AD domain environment, the value data for “AllowMultipleTSSessions” has to be set to “1″ on system startup. To change the value, run the concurrent_sessions.bat every time the computer is started. Instead, put the concurrent_sessions.bat at C:\Documents and Settings\All Users\Start Menu\Programs\Startup folder.</p>
<p>With the release of Service Pack 2 (SP2) for Microsoft Windows XP, SP2 has introduced a feature that limits concurrent TCP connection attempts that are possible to 10 per seconds. In Service Pack 1 or without Service Pack, there is no limit on concurrent TCP connection attempts. So if you have set the value of “Limit Number of Connections” in step 8 greater than 10 and you happen to run a SP2, you need to apply the patch to override the max limit. You can download the file from the following link.</p>
<p>Just for your information on disassembling the original &#038; patched file following HEX code bits have being changed:</p>
<p>00022A17: 74 75<br />
00022A69: 7F 90<br />
00022A6A: 16 90</p>
]]></content:encoded>
			<wfw:commentRss>http://niiconsulting.com/checkmate/2009/03/26/concurrent-rdp-connections-hack-xp/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

