<?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>SecureThoughts.com &#187; General</title>
	<atom:link href="http://securethoughts.com/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://securethoughts.com</link>
	<description>Inferno&#039;s Blog on Application Security</description>
	<lastBuildDate>Sun, 22 Nov 2009 20:09:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>All-In-One HTML + Javascript + CSS Formatter</title>
		<link>http://securethoughts.com/2009/01/all-in-one-html-javascript-css-formatter/</link>
		<comments>http://securethoughts.com/2009/01/all-in-one-html-javascript-css-formatter/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 07:27:04 +0000</pubDate>
		<dc:creator>Inferno</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Beautifier]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Formatter]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://securethoughts.com/?p=65</guid>
		<description><![CDATA[I do a lot of pen testing on web applications. From time to time, I have to analyze and understand how the web page code works. However, my task becomes complicated as web applications typically use some sort of source code compression. This makes it very hard to understand the code and hampers the readability [...]]]></description>
			<content:encoded><![CDATA[<p>I do a lot of pen testing on web applications. From time to time, I have to analyze and understand how the web page code works. However, my task becomes complicated as web applications typically use some sort of source code compression. This makes it very hard to understand the code and hampers the readability to a large extent.</p>
<p>A web page is composed of three major content types, namely HTML content, Javascript Code and CSS styling code. I felt the need of a tool that could beautify or format the entire web page source code. I use <a href="http://portswigger.net/suite/">Burp Suite</a>, my favorite web proxy tool. However, it does not have source code formatting feature, it just colors the web page by choosing different colors for html tag names, html attribute values, javascript, css, etc.</p>
<p>I looked on the internet for free alternatives, but I could not find free tools that could format the entire web page. Most of them could only format either one of HTML or Javascript or CSS. So, I decided to write a perl script myself. I used the libraries <a href="http://search.cpan.org/~petdance/HTML-Tidy-1.08/lib/HTML/Tidy.pm">HTML::Tidy</a> by <a href="http://tidy.sourceforge.net/">Dave Raggett</a> and <a href="http://search.cpan.org/dist/JavaScript-Beautifier/lib/JavaScript/Beautifier.pm">Javascript::Beautifier</a> by <a href="http://elfz.laacz.lv">Einars Lielmanis</a>. And I have written my own CSS formatting code.</p>
<p>Example of HTML Formatting</p>
<p><img src="http://www.securethoughts.com/security/formatter/f0.jpg" alt="" /></p>
<p>Example of CSS Formatting</p>
<p><img src="http://www.securethoughts.com/security/formatter/f1.jpg" alt="" /></p>
<p>Example of Javascript Formatting</p>
<p><img src="http://www.securethoughts.com/security/formatter/f2.jpg" alt="" /><br />
In addition, I have done one more improvement by formatting the javascript code in html event handlers. I picked the comprehensive event handlers list from <a href="http://www.amazon.com/XSS-Attacks-Scripting-Exploits-Defense/dp/1597491543/ref=pd_bbs_sr_1?ie=UTF8&amp;s=books&amp;qid=1233211477&amp;sr=8-1">XSS Attacks Book</a> by <a href="http://ha.ckers.org">RSnake</a>, <a href="http://jeremiahgrossman.blogspot.com">Jeremiah</a>, <a href="http://www.gnucitizen.org">Pdp</a>, Anton Rager and Seth Fogie. Another excellent book to have on your shelf.</p>
<p>Example of Event Handler Code Formatting (see the onload and onclick event handlers)</p>
<p><img src="http://www.securethoughts.com/security/formatter/f3.jpg" alt="" /><br />
And finally the &#8230;</p>
<p><strong>Inferno&#8217;s All-In-One HTML + Javascript + CSS Formatter</strong><br />
Paste your Source Code below</p>
<form action="http://securethoughts.com/security/formatter/formatter.cgi" enctype="application/x-www-form-urlencoded" method="post"><textarea style="width: 100%;" cols="20" rows="15" name="htmlcontent"></textarea></p>
<input name="Submit" type="submit" value="Format the Source" /> </form>
<p>I would advise trying any of the search engines&#8217; source code like google, yahoo, etc. Their code is highly compressed. If you have any problem using the text box above, try using this <a href="http://securethoughts.com/security/formatter/formatter.html">Link</a>.</p>
<p>Plans for future additions include<br />
* Add custom event handlers and variables (e.g. expr variable in Samy Worm Code)<br />
* Javascript Deobfuscation<br />
* More configuration Options<br />
* Burp Proxy Plugin</p>
<p>Please provide your valuable suggestions to improve this tool. This tool is completely free for your use.</p>
]]></content:encoded>
			<wfw:commentRss>http://securethoughts.com/2009/01/all-in-one-html-javascript-css-formatter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Welcome to Inferno&#8217;s Blog !!</title>
		<link>http://securethoughts.com/2009/01/welcome-to-infernos-blog/</link>
		<comments>http://securethoughts.com/2009/01/welcome-to-infernos-blog/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 05:27:00 +0000</pubDate>
		<dc:creator>Inferno</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://securethoughts.com/?p=4</guid>
		<description><![CDATA[Hello Everyone,
I am &#8220;Inferno&#8221; from California, United States. I have just started my blog this week. It will be all about my research and knowledge in the application security area, especially concentrating on web application security.
I am deeply inspired by works of Security Researchers &#8211; Robert &#8220;RSnake&#8221; Hansen and Jeremiah Grossman, and follow their blogs [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Everyone,</p>
<p>I am &#8220;Inferno&#8221; from California, United States. I have just started my blog this week. It will be all about my research and knowledge in the application security area, especially concentrating on web application security.</p>
<p>I am deeply inspired by works of Security Researchers &#8211; <a href="http://ha.ckers.org">Robert &#8220;RSnake&#8221; Hansen</a> and <a href="http://jeremiahgrossman.blogspot.com">Jeremiah Grossman</a>, and follow their blogs closely, just like most people in the web app security space <img src='http://securethoughts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>My Email Address is Inferno {at} SecureThoughts.com</p>
]]></content:encoded>
			<wfw:commentRss>http://securethoughts.com/2009/01/welcome-to-infernos-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
