<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Eugene Siu's Thoughts on Security : Developer Productivity</title><link>http://blogs.msdn.com/esiu/archive/tags/Developer+Productivity/default.aspx</link><description>Tags: Developer Productivity</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Troubleshooting Networking and IPSec Issues</title><link>http://blogs.msdn.com/esiu/archive/2007/11/05/troubleshooting-networking-and-ipsec-issues.aspx</link><pubDate>Mon, 05 Nov 2007 11:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5903070</guid><dc:creator>esiu</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/esiu/comments/5903070.aspx</comments><wfw:commentRss>http://blogs.msdn.com/esiu/commentrss.aspx?PostID=5903070</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I had a very strange networking issue last weekend.&amp;nbsp; After connecting to corpnet via VPN and direct hookup, I was able to ping all remote servers, but was not able to do anything, such as web browsing and remote desktop.&amp;nbsp; It was not the first time that I faced this issue, and helpdesk told me that IPSec settings may have messed up.&lt;/P&gt;
&lt;P&gt;The following set of commands has helped me flush settings related to networking and IPSec, and restored my corpnet connection in both situations.&lt;/P&gt;
&lt;P&gt;1. Launch a DOS command prompt&lt;BR&gt;2. netsh int ip reset all&lt;BR&gt;3. netsh winsock reset&lt;BR&gt;4. ipconfig /flushdns&lt;BR&gt;5. nbtstat -RR&lt;BR&gt;6. gpupdate /force&lt;/P&gt;
&lt;P&gt;Akin to "Ctrl-Atl-Del" of your networking settings, this series of commands should flush IP interface, DNS, Winsock, NetBIOS and group policy settings.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck to troubleshooting your networking and IPSec issues.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5903070" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/esiu/archive/tags/Developer+Productivity/default.aspx">Developer Productivity</category><category domain="http://blogs.msdn.com/esiu/archive/tags/Infoworker+Productivity/default.aspx">Infoworker Productivity</category></item><item><title>More eyeballs for .Net Framework code</title><link>http://blogs.msdn.com/esiu/archive/2007/10/04/more-eyeballs-for-net-framework-code.aspx</link><pubDate>Fri, 05 Oct 2007 05:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5282148</guid><dc:creator>esiu</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/esiu/comments/5282148.aspx</comments><wfw:commentRss>http://blogs.msdn.com/esiu/commentrss.aspx?PostID=5282148</wfw:commentRss><description>&lt;P&gt;Microsoft will open up source code of .Net Framework to the public.&amp;nbsp; It allows outsiders to review what is under the hood, and enables easier debugging of development projects around .Net Framework.&amp;nbsp; .Net Framework code has been reviewed heavily, and developers can pick up coding best practices by reviewing source code of .Net Framework.&lt;/P&gt;
&lt;P&gt;The following libraries are available:&lt;BR&gt;* Net Base Class Libraries (including System, System.IO, System.Collections, System.Configuration, System.Threading, System.Net, System.Security, System.Runtime, and System.Text).&lt;BR&gt;* ASP.Net (System.Web).&lt;BR&gt;* Windows Forms (System.Windows.Forms).&lt;BR&gt;* ADO.NET (System.Data).&lt;BR&gt;* XML (System.Xml).&lt;BR&gt;* Windows Presentation Foundation (System.Windows)&lt;/P&gt;
&lt;P&gt;Source code is made available under the Microsoft Reference License, which is intended for developers to have read-only access.&amp;nbsp; However, it does not allow modification or distribution.&lt;/P&gt;
&lt;P&gt;An additional feature: It supports JIT code download for debugging in the final release of Visual Studio 2008.&amp;nbsp; If set up properly, you don't need to download all source code on your box.&amp;nbsp; You can get it when you need it transparently.&lt;/P&gt;
&lt;P&gt;You can read this &lt;A href="http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx" mce_href="http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx"&gt;article&lt;/A&gt; for more details.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5282148" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/esiu/archive/tags/Developer+Productivity/default.aspx">Developer Productivity</category></item><item><title>Just learned how to cross-post via MetaWeblog API</title><link>http://blogs.msdn.com/esiu/archive/2007/09/20/just-learned-how-to-cross-post-via-metaweblog-api.aspx</link><pubDate>Thu, 20 Sep 2007 13:31:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5010384</guid><dc:creator>esiu</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/esiu/comments/5010384.aspx</comments><wfw:commentRss>http://blogs.msdn.com/esiu/commentrss.aspx?PostID=5010384</wfw:commentRss><description>&lt;p&gt;I work for ACE team, and want to cross-post from &lt;a href="http://blogs.msdn.com/esiumy"&gt;http://blogs.msdn.com/esiu&lt;/a&gt; to &lt;a href="http://blogs.msdn.com/ace_team"&gt;http://blogs.msdn.com/ace_team&lt;/a&gt;.&amp;nbsp; Community Server supports MetaWeblog API, but I am not able to figure out how to configure cross-posting.&amp;nbsp; After a few tries, I am able to cross-post now.&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/esiu/WindowsLiveWriter/JustlearnedhowtocrosspostviaMetaWeblogAP_311D/image%7B0%7D%5B5%5D.png" atomicselection="true"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="285" src="http://blogs.msdn.com/blogfiles/esiu/WindowsLiveWriter/JustlearnedhowtocrosspostviaMetaWeblogAP_311D/image%7B0%7D_thumb%5B1%5D.png" width="397" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Community Server asks for several things&lt;/p&gt; &lt;p&gt;&lt;strong&gt;URL&lt;/strong&gt;: &lt;a title="http://blogs.msdn.com/blogs/metablog.ashx" href="http://blogs.msdn.com/blogs/metablog.ashx"&gt;http://blogs.msdn.com/blogs/metablog.ashx&lt;/a&gt;.&amp;nbsp; Don't use &lt;a href="http://blogs.msdn.com/&amp;lt;appkey"&gt;http://blogs.msdn.com/&amp;lt;appkey&lt;/a&gt;&amp;gt;, and in my case, &lt;a href="http://blogs.msdn.com/ace_team"&gt;http://blogs.msdn.com/ace_team&lt;/a&gt;.&lt;br&gt;&lt;strong&gt;AppKey&lt;/strong&gt;:&amp;nbsp;target blogid, in my case, ace_team&lt;br&gt;&lt;strong&gt;Username&lt;/strong&gt;: target blog login&lt;br&gt;&lt;strong&gt;Password&lt;/strong&gt;: target blog password&lt;br&gt;&lt;strong&gt;Message to add&lt;/strong&gt;: A header message on each cross post&lt;/p&gt; &lt;p&gt;Last not but least, you need to enable cross-posting in &lt;strong&gt;Global Settings&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Default Post Settings&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Enable Cross-Posting&lt;/strong&gt;.&lt;/p&gt; &lt;p&gt;Hopefully, this will save you time as I spent numerous research hours figuring this out.&amp;nbsp; I also apologize for&amp;nbsp;polluting the blog atmosphere by a few phantom test messages while testing various configuration settings.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5010384" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/esiu/archive/tags/Developer+Productivity/default.aspx">Developer Productivity</category></item><item><title>IE Developer Toolbar helps me hack</title><link>http://blogs.msdn.com/esiu/archive/2007/09/19/ie-developer-toolbar-helps-me-hack.aspx</link><pubDate>Thu, 20 Sep 2007 00:46:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5001628</guid><dc:creator>esiu</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/esiu/comments/5001628.aspx</comments><wfw:commentRss>http://blogs.msdn.com/esiu/commentrss.aspx?PostID=5001628</wfw:commentRss><description>&lt;p&gt;I was browsing &lt;a href="http://blogs.msdn.com/ie"&gt;IE blog&lt;/a&gt; articles to get research ideas.&amp;nbsp; I came across &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&amp;amp;displaylang=en"&gt;IE Developer Toolbar&lt;/a&gt;, and decided to play with it.&amp;nbsp; I was checking out different options, and it impressed me as a good web client developer tool, as it offers a breakdown of HTML elements, such as image dimension and structure validation.&amp;nbsp; Almost I dismissed it as a security tool because as a security guy, I don't care so much about valid HTML.&amp;nbsp; :)&lt;/p&gt; &lt;p&gt;Then, a few&amp;nbsp;menus dawned on me as very useful.&amp;nbsp; Disable menu offers disabling of Script, Popup Blocker and All CSS.&amp;nbsp; Disabling script is very useful when I want to temporarily bypass some client-side checks on lengths or content.&amp;nbsp; Of course, I can disable scripting via Internet Options or use Fiddler to bypass it, but it is easier via IE Developer Toolbar.&lt;/p&gt; &lt;p&gt;In addition, my favorite is Cache menu as shown in the first screenshot.&amp;nbsp; It offers&amp;nbsp;some very useful options to manipulate cookies, such as Disable Cookies, Clear Session Cookies, Clearn Cookies for Domain and&amp;nbsp;View Cookies Information.&amp;nbsp; I used to navigate to&amp;nbsp;Temporary&amp;nbsp;Internet Files directory, look for the right cookie among many temporary files, and review cookies by using Notepad.&amp;nbsp; Each time a cookie is changed, I will need to manually open the same cookie again because Notepad does not offer refresh.&amp;nbsp; It is time-consuming.&amp;nbsp; It will be even more difficult if I want to see all cookies from the same domain name because&amp;nbsp;they are stored in different files sorted by hostnames.&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/esiu/WindowsLiveWriter/IEDeveloperToolbarhelpsmehack_CEEE/image%7B0%7D%5B18%5D.png" atomicselection="true"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="272" src="http://blogs.msdn.com/blogfiles/esiu/WindowsLiveWriter/IEDeveloperToolbarhelpsmehack_CEEE/image%7B0%7D_thumb%5B12%5D.png" width="362" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;By using IE Developer Toolbar, I can easily view cookies across a domain by using View Cookies Information that will tabulate all cookies across the domain of the active page.&amp;nbsp; The next screenshot shows a sample of all cookies from Microsoft.com as shown by View Cookies Information.&amp;nbsp; In addition, cookies can be deleted without going to the Temporary Internet Files directory directly.&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/esiu/WindowsLiveWriter/IEDeveloperToolbarhelpsmehack_CEEE/image%7B0%7D%5B22%5D.png" atomicselection="true"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="268" src="http://blogs.msdn.com/blogfiles/esiu/WindowsLiveWriter/IEDeveloperToolbarhelpsmehack_CEEE/image%7B0%7D_thumb%5B14%5D.png" width="356" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;By using IE Developer Tool, it enables me to learn a new security&amp;nbsp;penetration&amp;nbsp;vector&amp;nbsp;around cookies.&amp;nbsp; Stay tuned for that.&amp;nbsp; Also, please share with me your favorite security tools.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5001628" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/esiu/archive/tags/Developer+Productivity/default.aspx">Developer Productivity</category><category domain="http://blogs.msdn.com/esiu/archive/tags/Security/default.aspx">Security</category></item><item><title>Running as non-admin is not as hard as I imagine</title><link>http://blogs.msdn.com/esiu/archive/2005/01/19/356266.aspx</link><pubDate>Wed, 19 Jan 2005 19:51:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:356266</guid><dc:creator>esiu</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/esiu/comments/356266.aspx</comments><wfw:commentRss>http://blogs.msdn.com/esiu/commentrss.aspx?PostID=356266</wfw:commentRss><description>&lt;p&gt;As a security tester, we need to ensure that our product works under minimal privilege.&amp;nbsp; Yes,&amp;nbsp;test machines&amp;nbsp;are set up to test with minimal privilege, but my day-to-day email machine is set up with admin privilege.&amp;nbsp; Although it is a threat to run under admin, it was more threatening to inflict myself with the hassles of running as non-admin.&amp;nbsp; As an extremely paranoid person, I have so many novice questions: Do I need to reboot all the time if I need admin privilege?&amp;nbsp; Will my apps continue to function properly?&amp;nbsp; Will I get blue screen for no reasons?&lt;/p&gt; &lt;p&gt;One fine day, I decided to switch from admin to power user.&amp;nbsp; Granted that power user is almost an admin, it should be a good start to run my box as non-admin.&amp;nbsp; After several days, I did not find any differences with Office applications and other well-known ones, such as IE.&amp;nbsp; &lt;/p&gt; &lt;p&gt;Until I need to unblock&amp;nbsp;an application on my&amp;nbsp;SP2 firewall do I have a problem.&amp;nbsp; The problem can easily be circumvented by using "runas /user:mymachine\administrator control firewall.cpl" and enter my password.&amp;nbsp; After the command, I run firewall.cpl as admin, and unblock my application.&amp;nbsp; Finally, close the firewall app.&lt;/p&gt; &lt;p&gt;Voila, I am happy again with running my box as non-admin.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=356266" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/esiu/archive/tags/Developer+Productivity/default.aspx">Developer Productivity</category><category domain="http://blogs.msdn.com/esiu/archive/tags/Infoworker+Productivity/default.aspx">Infoworker Productivity</category></item><item><title>Do you have an easy way to find out what error codes mean?</title><link>http://blogs.msdn.com/esiu/archive/2004/11/10/255432.aspx</link><pubDate>Thu, 11 Nov 2004 04:43:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:255432</guid><dc:creator>esiu</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/esiu/comments/255432.aspx</comments><wfw:commentRss>http://blogs.msdn.com/esiu/commentrss.aspx?PostID=255432</wfw:commentRss><description>&lt;div class="postbody"&gt; &lt;p&gt;You should check out err.exe available from &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=be596899-7bb8-4208-b7fc-09e02a13696c"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=be596899-7bb8-4208-b7fc-09e02a13696c&lt;/a&gt;.&amp;nbsp; Don't be tricked by the name (Exchange Server Error Code Look-up)&amp;nbsp;because it supports error codes other than Microsoft Exchange.&lt;/p&gt; &lt;p&gt;It is very easy to easy, and supports “bidirectional” search.&amp;nbsp; It can look up the meaning of an error from an error code, and vice versa.&amp;nbsp; It supports many Windows common header files.&amp;nbsp; Please let me know if you are aware of other error lookup tools.&lt;/p&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=255432" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/esiu/archive/tags/Developer+Productivity/default.aspx">Developer Productivity</category></item></channel></rss>