<?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>Kurinchi Blogger Scribbles ... &#187; wget</title>
	<atom:link href="http://kurinchilamp.kurinchilion.com/tag/wget/feed" rel="self" type="application/rss+xml" />
	<link>http://kurinchilamp.kurinchilion.com</link>
	<description>On Open Source Technologies</description>
	<lastBuildDate>Mon, 02 Jan 2012 06:14:45 +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>World Wide Web Get &#8211; wget</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/04/world-wide-web-get-wget.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/04/world-wide-web-get-wget.html#comments</comments>
		<pubDate>Thu, 30 Apr 2009 11:39:15 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[copy website]]></category>
		<category><![CDATA[download website]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[gnu wget]]></category>
		<category><![CDATA[grab website]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[wget]]></category>
		<category><![CDATA[world wide web get]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=280</guid>
		<description><![CDATA[Grab entire website content with &#8220;wget&#8221; The web get feature &#8220;wget&#8221; enables a user to grab the entire content of the website. There may be situations where your may have difficulty in getting the source code from your software vendor, or may not have access details to certain location in which case &#8220;Wget&#8221; comes in [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Grab entire website content with &#8220;wget&#8221;</strong></p>
<p>The web get feature &#8220;wget&#8221; enables a user to grab the entire content of the website. There may be situations where your may have difficulty in getting the source code from your software vendor, or may not have access details to certain location in which case &#8220;Wget&#8221; comes in handy. This feature is available for win32 platform as well. Work around for this is for the user to install cygwin to run the &#8220;wget&#8221; command<span id="more-280"></span></p>
<p><strong>$ cd /tmp<br />
$ mkdir sitename.com<br />
$ cd sitename.com<br />
$ wget -r -H -k -Dsitename.com, www.sitename.com sitenamey.com</strong></p>
<p><strong>Switches </strong>used &#8230;</p>
<p>-r switch for recursively handling files<br />
-H switch to &#8220;span hosts&#8221; as in some sites there may be links to other other domains<br />
-D switch to indicate from which domains we will gather the files. It is ideal to use this with -H switch<br />
-k switch to indicate that the links from the site refer to local copies and not to the original internet location</p>
<p>To get a mirror copy</p>
<p><strong>$ wget -r http://somesite.com</strong></p>
<p>Use it with &#8211;convert-links to make offline copies with local links</p>
<p><strong>$ wget &#8211;convert-links -r http://somesite.com</strong></p>
<p>To save the files with .html extension</p>
<p><strong>$ wget &#8211;html-extension -r http://somesite.com</strong></p>
<p>Now you will have all the files downloaded to sitenamey.com.</p>
<p><strong>Where to get WGET?</strong></p>
<p>http://wget.addictivecode.org/FrequentlyAskedQuestions?action=show&#038;redirect=Faq#download</p>
<p>Some sites may block the user agent used by Wget in order to avoid heavy trafficking of their bandwidth. You could inturn use the user agent bot from yahoo or google or msn to grab a local copy.</p>
<p>&#8220;wget&#8221; can be used with various settings to grab site content which includes options like setting http-keep-alive (persistent connections), cookies, post-data, https settings and ftp settings. Check the manual for more detailed help on this topic.</p>
<p>Another contender to &#8220;wget&#8221; is a tool called &#8220;HTTrack&#8221; which is free as well. It has a version for Windows users as well. Check <a href="http://www.httrack.com/">http://www.httrack.com/</a> to download copy of this tool.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/04/world-wide-web-get-wget.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MD5 CheckSum, SHA1 CheckSum, PGP Verification</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/04/md5-checksum-sha1-checksum-pgp-verification.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/04/md5-checksum-sha1-checksum-pgp-verification.html#comments</comments>
		<pubDate>Tue, 14 Apr 2009 11:54:26 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[checksum]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[md5]]></category>
		<category><![CDATA[open ssl]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[pgp]]></category>
		<category><![CDATA[sha1]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=249</guid>
		<description><![CDATA[In order to ensure that the files that are downloaded from a site has been saved in its entirety and to give the added security that no intruders have modified the content of the files, various techniques have been used by source providers like MD5 checksum, SHA1 checksum, PGP verification. To explain how MD5 checksum, [...]]]></description>
			<content:encoded><![CDATA[<p>In order to ensure that the files that are downloaded from a site has been saved in its entirety and to give the added security that no intruders have modified the content of the files, various techniques have been used by source providers like MD5 checksum, SHA1 checksum, PGP verification. To explain how MD5 checksum, SHA1 checksum or PGP verification of the files happen, I will go ahead by explaining the steps by using a copy of openSSL program.<span id="more-249"></span></p>
<p><strong>First, download openSSL source</strong><br />
$ cd /tmp<br />
$ wget <a href="http://www.openssl.org/source/openssl-0.9.8k.tar.gz" target="_blank">http://www.openssl.org/source/openssl-0.9.8k.tar.gz</a></p>
<p><strong>To get MD5 checksum file</strong><br />
$ wget <a href="http://www.openssl.org/source/openssl-0.9.8k.tar.gz.md5" target="_blank">http://www.openssl.org/source/openssl-0.9.8k.tar.gz.md5</a> (MD5 checksum)</p>
<p><strong>Execute the following commands to verify if the download matches the MD5 checksum<br />
$ cat openssl-0.9.8k.tar.md5</strong><br />
e555c6d58d276aec7fdc53363e338ab3<br />
<strong>$ md5sum openssl-0.9.8k.tar.gz</strong><br />
e555c6d58d276aec7fdc53363e338ab3  openssl-0.9.8k.tar.gz</p>
<p>Another way to check this is to edit &#8220;openssl-0.9.8k.tar.md5&#8243; and have the entries as follows<br />
e555c6d58d276aec7fdc53363e338ab3  openssl-0.9.8k.tar.gz<br />
<em>(Separation between the checksum and program name is 2 spaces)</em></p>
<p>Now execute,<br />
<strong>$ md5sum -c openssl-0.9.8k.tar.md5</strong><br />
openssl-0.9.8k.tar.md5</p>
<p><strong>To get SHA1 checksum file</strong><br />
$ wget <a href="http://www.openssl.org/source/openssl-0.9.8k.tar.gz.sha1" target="_blank">http://www.openssl.org/source/openssl-0.9.8k.tar.gz.sha1</a> (SHA15 checksum)</p>
<p><strong>Execute the following commands to verify if the download matches the SHA1 checksum<br />
$ cat openssl-0.9.8k.tar.sha1<br />
$ sha1sum openssl-0.9.8k.tar.gz</strong></p>
<p><strong>To get PGP checksum file</strong><br />
$ wget <a href="http://www.openssl.org/source/openssl-0.9.8k.tar.gz.asc" target="_blank">http://www.openssl.org/source/openssl-0.9.8k.tar.gz.asc</a> (PGP)</p>
<p>Then go to <a href="http://openssl.org" target="_blank">openssl.org</a> website and check for the link from where you could download the PGP key. Create a file called openssl.pgp from that key and then execute</p>
<p><strong>$ gpg &#8211;import openssl.pgp</strong><br />
gpg: /root/.gnupg/trustdb.gpg: trustdb created<br />
gpg: key F295C759: public key &#8220;Dr Stephen Henson &lt;shenson@drh-consultancy.co.uk&gt;&#8221; imported<br />
gpg: Total number processed: 1<br />
gpg:               imported: 1  (RSA: 1)<br />
gpg: no ultimately trusted keys found</p>
<p><strong>$ gpg &#8211;verify openssl-0.9.8k.tar.gz.asc</strong><br />
gpg: Signature made Wed 25 Mar 2009 09:13:54 AM EDT using RSA key ID F295C759<br />
gpg: Good signature from &#8220;Dr Stephen Henson &lt;shenson@drh-consultancy.co.uk&gt;&#8221;<br />
gpg:                 aka &#8220;Dr S N Henson &lt;shenson@drh-consultancy.demon.co.uk&gt;&#8221;<br />
gpg:                 aka &#8220;Dr Stephen Henson &lt;stephen.henson@opennetworksecurity.com&gt;&#8221;<br />
gpg: WARNING: This key is not certified with a trusted signature!<br />
gpg:          There is no indication that the signature belongs to the owner.<br />
Primary key fingerprint: D0 5D 8C 61 6E 27 E6 60  41 EC B1 B8 D5 7E E5 97</p>
<p>Check for the message indicating that the signature is good. For self-signed certificates there may be warning messages.</p>
<p>It is always advisable to download the checksum and the source from two different sources in order to avoid a hacker in the middle. For programs which require authenticity, it is always ideal to go with pgp signatures as it shows who owns the signature adding to the awareness of the person who installs the software.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/04/md5-checksum-sha1-checksum-pgp-verification.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

