<?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>webstersprodigy.net &#187; ubuntu</title>
	<atom:link href="http://webstersprodigy.net/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://webstersprodigy.net</link>
	<description>Me trying to learn how to use a computer</description>
	<lastBuildDate>Sat, 04 Feb 2012 01:17:01 +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>browsing with firefox, tor, refcontrol, and noscript on ubuntu</title>
		<link>http://webstersprodigy.net/2009/05/browsing-with-firefox-tor-refcontrol-and-noscript-on-ubuntu/</link>
		<comments>http://webstersprodigy.net/2009/05/browsing-with-firefox-tor-refcontrol-and-noscript-on-ubuntu/#comments</comments>
		<pubDate>Fri, 08 May 2009 20:54:43 +0000</pubDate>
		<dc:creator>webstersprodigy</dc:creator>
				<category><![CDATA[GrayHat]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[tor]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://webstersprodigy.net/?p=534</guid>
		<description><![CDATA[I am doing some research that involves a *lot* of google searches. Because this research involves a significant number of directed queries, it seems logical to hide this information as much as practical. If there is a web host who notices sequential names in a Google referer URL repeatedly, this might raise suspicion or alter behavior which could skew results. Similarly, it is desirable to hide IP information from both the web host (for similar reasons) and possibly even search engines.]]></description>
			<content:encoded><![CDATA[<p>This is a topic that&#8217;s been covered a lot. However, it took a bit of research to find a solution that worked for me, so I thought I&#8217;d write about it here.</p>
<p>I am doing some research that involves a *lot* of google searches. Because this research involves a significant number of directed queries, it seems logical to hide this information as much as practical. If there is a web host who notices sequential names in a Google  referer URL repeatedly, this might raise suspicion or alter behavior which could skew results. Similarly, it is desirable to hide IP information from both the web host (for similar reasons) and possibly even search engines.</p>
<p>First, to  avoid any changes to usual browsing, a new firefox profile was created using:</p>
<blockquote><p>firefox -ProfileManager</p></blockquote>
<p>Additionally, to run both firefox profiles at once, the first was run as normal, which the second has the additional options:</p>
<blockquote><p>firefox -P &lt;new-profile&gt; -no-remote</p></blockquote>
<p>I add this to my taskbar alongside the regular old firefox %u so I can choose a profile with a click.</p>
<p>To hide the HTTP referer, a firefox extension called RefControl was selected  <a href="https://addons.mozilla.org/en-US/firefox/addon/953">https://addons.mozilla.org/en-US/firefox/addon/953</a>. This simply replaces the referer for every query with one that is configurable. Although this is certainly possible with a more traditional proxy (like paros), RefControl&#8217;s ease of use is essential with the shear number of queries that were performed for this research. For this research, I changed the referer passed several times from names like “yahoo.com”, “cnn.com”, etc. Although the traffic patterns may still seem suspicious to an administrator who carefully monitors his logs, it reveals virtually no information about what it is that is being searched for.</p>
<p>To obfuscate the IP address, tor and privoxy were used. Tor bounces the HTTP requests around a distributed network of relays all around the world. An in depth discussion of Tor is out of the context here, but in a nutshell “it prevents somebody watching your Internet connection from learning what sites you visit, and it prevents the sites you visit from learning your physical location” http://www.torproject.org/. Privoxy is additionally used to prevent applications like flash or dns from leaking information. Since both privoxy and tor are required, you need to install these:</p>
<blockquote><p>apt-get install tor privoxy</p></blockquote>
<p>and to get privoxy to work with tor, I uncommented the following line (if it&#8217;s not there just add it):</p>
<blockquote><p>forward-socks4a / localhost:9050 .</p></blockquote>
<p>Despite the advantages, this did make browsing for names quite slow. I really like torbutton. In the not so distant future I remember having to modify proxy settings every time I wanted to go back and forth using tor. With tor</p>
<p>Lastly, the noscript firefox plugin was used to mitigate all javascript based attacks that might be used to obtain IP information http://noscript.net/.</p>
]]></content:encoded>
			<wfw:commentRss>http://webstersprodigy.net/2009/05/browsing-with-firefox-tor-refcontrol-and-noscript-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php multiuser system &#8211; the www-data problem</title>
		<link>http://webstersprodigy.net/2009/03/php-multiuser-system-the-www-data-problem/</link>
		<comments>http://webstersprodigy.net/2009/03/php-multiuser-system-the-www-data-problem/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 20:58:19 +0000</pubDate>
		<dc:creator>webstersprodigy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://webstersprodigy.net/?p=459</guid>
		<description><![CDATA[On our multi-user system, one where we have 300+ users all with usermod enabled, we also happen to have other web services running. It's inconvenient and in some ways insecure for everyone to be running their dynamic web stuff as the same user. One problem in particular is php. suexec was built for cgi-bin stuff - but php is a whole other beast. That's what I'm talking about here - getting php to run as the user who owns it. More specifically, this will show how /home/user/public_html/myphp.php will run as "user", but stuff in /var/www will still run as www-data.]]></description>
			<content:encoded><![CDATA[<p>On a lot of multi-user systems, like the one at the school where we have 300+ users all with usermod enabled, we also happen to have other web services running. It&#8217;s inconvenient and in insecure for everyone to be running their dynamic web stuff as the same user.</p>
<p>One problem in particular is php. suexec was built for cgi-bin stuff &#8211; but php is a whole other beast. That&#8217;s what I&#8217;m talking about here &#8211; getting php to run as the user who owns it. More specifically, this will show how /home/user/public_html/myphp.php will run as &#8220;user&#8221;, but stuff in /var/www will still run as www-data.</p>
<p>One good article I found describing this is here: http://alain.knaff.lu/howto/PhpSuexec/</p>
<p>First things first &#8211; mod_php needs to be disabled. This can be done globally, but it&#8217;s better to just disable it for public_html dirs. This can be done by adding the following to /etc/apache2/apache2.conf.</p>
<blockquote>
<pre class="example"><code>&lt;Directory /home&gt;
 php_admin_flag engine off
&lt;/Directory&gt;
</code></pre>
</blockquote>
<p>Now, to enable suphp.</p>
<p>First install php-cgi. and the apache2 prefork which has some things we&#8217;ll need later on.</p>
<blockquote><p>apt-get install php-cgi apache2-prefork-dev</p></blockquote>
<p>Do not install libapache2-mod-suphp &#8211; at least not on 8.04. This older version lacks some of the things most people need&#8230; like having more than one directory.</p>
<p>Download the latest suphp module from http://www.suphp.org/Home.html.  Compile this like:</p>
<blockquote>
<pre class="example"><code>tar xfzv suphp-SNAPSHOT-2008-03-31.tar.gz
cd suphp-SNAPSHOT-2008-03-31
./configure --with-apxs=/usr/bin/apxs2 --with-setid-mode=owner
make
make install
</code></pre>
</blockquote>
<p>Modify apache&#8217;s config</p>
<blockquote>
<pre class="example"><code>LoadModule suphp_module /usr/lib/apache2/modules/mod_suphp.so
&lt;Directory /home&gt;
AddHandler application/x-httpd-php .php .php3 .php4 .php5 .phtml
suPHP_AddHandler application/x-httpd-php
suPHP_Engine on
&lt;/Directory&gt;
</code></pre>
</blockquote>
<p>Now in /usr/local/etc/suphp.conf</p>
<blockquote>
<pre class="example"><code>[global]
webserver_user=www-data
docroot=${HOME}/public_html
check_vhost_docroot=false

[handlers]
;Handler for php-scripts
application/x-httpd-php="php:/usr/bin/php-cgi"
</code></pre>
</blockquote>
<p>Restart apache. To debug, check /var/log/apache2/errors.log.  To test create scripts in public_html directories and in /var/www that exec(&#8216;whoami&#8217;) and make sure they&#8217;re called with the correct permissions.</p>
<p>It&#8217;s a start, but then there&#8217;s always stuff like XSS, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://webstersprodigy.net/2009/03/php-multiuser-system-the-www-data-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing default programs</title>
		<link>http://webstersprodigy.net/2008/09/changing-default-programs/</link>
		<comments>http://webstersprodigy.net/2008/09/changing-default-programs/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 19:04:52 +0000</pubDate>
		<dc:creator>webstersprodigy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://webstersprodigy.net/?p=389</guid>
		<description><![CDATA[In the old days, things like EDITOR could be set using environment variables (eg setting it in ~/.profile).  I tried to do this recently, and when it didn't work I investigated.]]></description>
			<content:encoded><![CDATA[<p>In the old days, things like EDITOR could be set using environment variables (eg setting it in /etc/profile).  I tried to do this recently, and when it didn&#8217;t work I investigated.</p>
<p>Probably due to the huge number of default programs (eg web browser, gnome text editor, console text editor, flash plugin, ftp programs, the list goes on.. ) they decided to put this junk in etc instead, and have this directory full of symbolic links.  So editor is actually set in /etc/alternatives as a symbolic link.</p>
<blockquote><p>blah@debian:/etc/alternatives$ ls -l editor<br />
lrwxrwxrwx 1 root root 9 2008-08-27 17:28 editor -&gt; /bin/nano</p></blockquote>
<p>Anyway, to change these values you can either change where the links point or use the update-alternatives command.  So to change the default text editor to vim in Ubuntu, you could</p>
<blockquote>
<pre>update-alternatives –config editor</pre>
</blockquote>
<p>Then select vim.</p>
]]></content:encoded>
			<wfw:commentRss>http://webstersprodigy.net/2008/09/changing-default-programs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

