<?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>Skowronek.org &#187; Wordpress</title>
	<atom:link href="http://www.skowronek.org/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.skowronek.org</link>
	<description>The official web site for the Skowronek family of South Jordan, Utah, USA</description>
	<lastBuildDate>Wed, 31 Aug 2011 16:01:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Facebook Badge as a WordPress Sidebar Widget</title>
		<link>http://www.skowronek.org/2008/08/22/facebook-badge-as-a-wordpress-sidebar-widget/</link>
		<comments>http://www.skowronek.org/2008/08/22/facebook-badge-as-a-wordpress-sidebar-widget/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 21:54:31 +0000</pubDate>
		<dc:creator>Skowronek</dc:creator>
				<category><![CDATA[Off-Topic]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Sidebar]]></category>
		<category><![CDATA[Template]]></category>
		<category><![CDATA[Widget]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.skowronek.org/?p=808</guid>
		<description><![CDATA[I tinker around a lot with WordPress. As a matter of fact, I tinker a lot and am quite good at it. I have created various custom modules (unpublished) as well as written a PHPBB to WordPress migration utility (long lost unfortunately). Lately I have been keen to develop custom sidebar widgets by mashing up [...]]]></description>
			<content:encoded><![CDATA[<p>I tinker around a lot with <a href="http://www.wordpress.org" target="_blank">WordPress</a>. As a matter of fact, I tinker a lot and am quite good at it. I have created various custom modules (unpublished) as well as written a <a href="http://www.phpbb.com" target="_blank">PHPBB</a> to WordPress migration utility (long lost unfortunately). Lately I have been keen to develop custom sidebar widgets by mashing up social site widgets. My latest, the Facebook badge sidebar widget.</p>
<p>This is alpha code and is not intended for those unfamiliar with PHP and/or the WordPress API.</p>
<p>You will also need to be familiar with the <a href="http://automattic.com/code/widgets/api/" target="_blank">WordPress widget API</a>.</p>
<p><span id="more-808"></span></p>
<ol>
<li>Create a <a href="http://www.new.facebook.com/badges.php" target="_blank">Facebook badge</a></li>
<li>Copy the script code they provide following a successful build

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://badge.facebook.com/badge/xxxxxxx.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">noscript</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.new.facebook.com/people/xxxxxx/xxxxxxx&quot;</span>&gt;</span>Facebook profile<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">noscript</span>&gt;</span></pre></div></div>

</li>
<li>Add the following PHP function into your widget.php file with the generated code between the badge tags

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">function widget_facebook($p)
{
?&gt;
&lt;li&gt;
&lt;!-- Facebook Badge --&gt;
&lt;script src=&quot;http://badge.facebook.com/badge/xxxxxxx.js&quot;&gt;&lt;/script&gt;
&lt;noscript&gt;
	&lt;a href=&quot;http://www.new.facebook.com/people/xxxxxx/xxxxxxx&quot;&gt;Facebook profile&lt;/a&gt;
&lt;/noscript&gt;
&lt;!-- /Facebook Badge --&gt;
&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

</li>
<li>Register the widget with your sidebar in the function.php script

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">if ( function_exists('register_sidebar_widget') )
{
		register_sidebar_widget(__('Facebook'), 'widget_facebook', '');
}</pre></div></div>

</li>
<li>Make sure you have dynamic sidebar enabled in your sidebar.php script

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sidebar&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
<span style="color: #009900;">&lt;?php</span>
<span style="color: #009900;">	if <span style="color: #66cc66;">&#40;</span>function_exists<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'dynamic_sidebar'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></span>
<span style="color: #009900;">	<span style="color: #66cc66;">&#123;</span></span>
<span style="color: #009900;">		dynamic_sidebar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #009900;">	<span style="color: #66cc66;">&#125;</span></span>
<span style="color: #009900;">?&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

</li>
<li>Finally, update your stylesheet to override the Facebook style settings.

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.fb_root_vert</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">195px</span> !important
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.fb_vert</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">193px</span> !important
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.fb_object</span> table tr td
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">185px</span> !important
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.fb_badge</span> <span style="color: #00AA00;">&gt;</span> a
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">50px</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.fb_badge</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#3B5998</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</li>
</ol>
<p>Now that you have the code, you can add the widget to your sidebar through the WordPress widget administration screen.</p>
<p>That&#8217;s all. Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skowronek.org/2008/08/22/facebook-badge-as-a-wordpress-sidebar-widget/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Index of /wp-content/uploads</title>
		<link>http://www.skowronek.org/2007/12/07/index-of-wp-contentuploads/</link>
		<comments>http://www.skowronek.org/2007/12/07/index-of-wp-contentuploads/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 08:32:02 +0000</pubDate>
		<dc:creator>Skowronek</dc:creator>
				<category><![CDATA[Off-Topic]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SciTech]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.skowronek.org/2007/12/07/index-of-wp-contentuploads/</guid>
		<description><![CDATA[Tonight, whilst experimenting with the various advanced Google search techniques (hacks) to locate web content, I had an epiphany. Any web directory/folder that has indexes enabled (show an index of the contents of the folder of no directory index file exists) will list the contents of said directory with the phrase &#8220;Index of&#8221; followed by [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight, whilst experimenting with the various advanced Google search techniques <em>(hacks)</em> to locate web content, I had an epiphany. Any web directory/folder that has indexes enabled (show an index of the contents of the folder of no directory index file exists) will list the contents of said directory with the phrase &#8220;Index of&#8221; followed by the actual root-relative path to available list of assets. This is due to the fact that the directory/folder does not have an <em>index</em> document/file present, so the web server spits out the entire list of the folder&#8217;s content. But I digress.</p>
<p>I have been using <a href="http://www.wordpress.org" target="_blank">WordPress</a> as my <em><a href="http://www.google.com/search?q=define:blog">blogging</a></em> platform for a few years now. Before that was a hybrid of <a href="http://www.phpbb.org" target="_blank">PHPBB</a> and custom PHP application I wrote. WordPress works great and has robust features that make blogging a snap for the more technical (such as myself, ehem) and also for the less technical netizens out there. Now, one of these great features is the ability to upload pictures and files (content) through a web interface. What a great concept (this is where the epiphany came in) except if you weren&#8217;t planning on listing up the contents of your entire <strong>uploads</strong> folder to the world. which happens to be the case with some (okay a lot of) default installations of WordPress.</p>
<p>Lets say you <em>&#8220;Google&#8221;</em> the &#8220;Index of&#8221; any WordPress uploads folders (/wp-content/uploads). You don&#8217;t have to be a rock scientist (yes, that was a joke) to realize the possible implications. Let me give you an idea of the figure as of tonight: 4,143,000 indexes. That&#8217;s 4,143,000 WordPress installations that have directory indexes enabled and are completely wide open to crawlers and spiders that can pilfer (argh) their content.</p>
<p>Try it yourself: <a href="http://www.google.com/search?q=Index+of+%2Fwp-content" target="_blank">http://www.google.com/search?q=Index+of+%2Fwp-content</a></p>
<p><span id="more-668"></span></p>
<p>There are plenty of other &#8220;Index of&#8221; combinations out there:</p>
<ol>
<li><a href="http://www.google.com/search?q=%22Index%20of%20%2Fadmin%22" target="_blank">&#8220;Index of /admin&#8221;</a></li>
<li><a href="http://www.google.com/search?q=%22Index%20of%20%2Fpassword%22" target="_blank">&#8220;Index of /password&#8221;</a></li>
<li><a href="http://www.google.com/search?q=%22Index%20of%20%2Fmail%22" target="_blank">&#8220;Index of /mail&#8221;</a></li>
<li><a href="http://www.google.com/search?q=%22Index%20of%20%2F%22%20%2Bpasswd" target="_blank">&#8220;Index of /&#8221; +passwd</a></li>
<li><a href="http://www.google.com/search?q=%22Index%20of%20%2F%22%20password.txt" target="_blank">&#8220;Index of /&#8221; password.txt</a></li>
</ol>
<p>Now obviously if someone is using WordPress and uploading content, it&#8217;s  more than likely related to their blog, and perfectly okay for the world to sneak a peak. However, for those sites that are using WordPress as a corporate platform, with confidential information (don&#8217;t ask me why you would want to do this with WordPress&#8230;), this is a huge security issue.</p>
<p>Moral of the story, unplug your computer, no one is safe.</p>
<p>Here are a bunch I found in a forum while actually doing a search on _vti (Front Page extensions).</p>
<pre class="code">
filetype:htpasswd htpasswd
intitle:"Index of" “.htpasswd" -intitle:"dist"
           -apache -htpasswd.c
index.of.private (algo privado)
intitle:index.of master.passwd
inurl:passlist.txt (para encontrar listas de passwords)
intitle:"Index of..etc" passwd
intitle:admin intitle:login
“Incorrect syntax near" (SQL script error)
intitle:"the page cannot be found" inetmgr
intitle:index.of ws_ftp.ini
“Supplied arguments is not a valid PostgreSQL result"
_vti_pvt password intitle:index.of
inurl:backup intitle:index.of inurl:admin
“Index of /backup"
index.of.password
index.of.winnt
inurl:"auth_user_file.txt"
“Index of /admin"
“Index of /password"
“Index of /mail"
“Index of /" +passwd
Index of /" +.htaccess
Index of ftp +.mdb allinurl:/cgi-bin/ +mailto
allintitle: “index of/admin"
allintitle: “index of/root"
allintitle: sensitive filetype:doc
allintitle: restricted filetype :mail
allintitle: restricted filetype:doc site:gov
administrator.pwd.index
authors.pwd.index
service.pwd.index
filetype:config web
gobal.asax index
inurl:passwd filetype:txt
inurl:admin filetype:db
inurl:iisadmin
inurl:"auth_user_file.txt"
inurl:"wwwroot/*."
allinurl: winnt/system32/ (get cmd.exe)
allinurl:/bash_history
intitle:"Index of" .sh_history
intitle:"Index of" .bash_history
intitle:"Index of" passwd
intitle:"Index of" people.1st
intitle:"Index of" pwd.db
intitle:"Index of" etc/shadow
intitle:"Index of" spwd
intitle:"Index of" master.passwd
intitle:"Index of" htpasswd
intitle:"Index of" members OR accounts
intitle:"Index of" user_carts OR user _cart
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.skowronek.org/2007/12/07/index-of-wp-contentuploads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

