<?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>ViralPatel.net &#187; General</title> <atom:link href="http://viralpatel.net/blogs/category/general/feed" rel="self" type="application/rss+xml" /><link>http://viralpatel.net/blogs</link> <description>Tutorials, Java, J2EE, Struts, AJAX, JavaScript, CSS, Web 2.0, MySQL, Articles</description> <lastBuildDate>Tue, 24 Jan 2012 13:45:10 +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>Redirect your homepage /+ URL to your Google + profile</title><link>http://viralpatel.net/blogs/2011/07/google-plus-homepage-redirect.html</link> <comments>http://viralpatel.net/blogs/2011/07/google-plus-homepage-redirect.html#comments</comments> <pubDate>Tue, 12 Jul 2011 18:56:33 +0000</pubDate> <dc:creator>Viral Patel</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[google]]></category> <category><![CDATA[htaccess]]></category> <category><![CDATA[tech stories]]></category><guid isPermaLink="false">http://viralpatel.net/blogs/?p=2179</guid> <description><![CDATA[While lot of people are stuggling getting into this new social network, I was among the lucky one who got very early access, thanks to a friend working with Google. I loved Google+. After so many failures in Social domain, Google has finally unleashed a product that can definitely take Facebook head on. While I [...]]]></description> <content:encoded><![CDATA[<p><img src="http://img.viralpatel.net/2011/07/google-plus.jpg" alt="google-plus" title="google-plus" width="307" height="164" class="alignright size-full wp-image-2180" />While lot of people are stuggling getting into this new social network, I was among the lucky one who got very early access, thanks to a friend working with Google.</p><p>I loved Google+. After so many failures in Social domain, Google has finally unleashed a product that can definitely take Facebook head on. While I follow closely all the stories about G+ on techmeme, techcrunch etc, overall people are liking this new service and are happy about it.</p><p>While its not clear about the total number of users the service have attracted in this first few weeks, estimates are coming that around 10 million people have already signed in and are using it. This makes G+ fastest growing online entity ever.</p><p>The integration of G+ with Google toolbar in all the Google properties makes it real accessible. You dont have to be on G+ to use G+. The notification bar is smoothly integrated with the UI.</p><p>While people from tech world have started using G+ keenly, there are some like Kevin Rose who have actually forwarded their homepage () to their Google plus profile!!</p><p>That inspire me to do something similar.. But I didnt want to forward viralpatel.net to my G+ profile.. So here is a simple trick:</p><p>Forward viralpatel.net/+ to my G+ profile!! Isn&#8217;t that cool.</p><p>It&#8217;s dead simple if you can edit your .htaccess file in your root folder of your website. Just copy paste following line of code in .htaccess file of your root folder.</p><pre class="brush: xml; title: ; notranslate">
Redirect /+ [your G+ profile url]
</pre><p>For example, my .htaccess file would be:</p><pre class="brush: xml; title: ; notranslate">
Redirect /+ https://plus.google.com/112955634181863972829/
</pre><p>That&#8217;s it!!! Now just type <a href="http://viralpatel.net/+">viralpatel.net/+</a> in your browser and you are automatically redirected to G+ profile.</p><div id="relatedpost"><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://viralpatel.net/blogs/2009/11/go-google-programming-language.html" title="GO: Google Launches its own Programming Language">GO: Google Launches its own Programming Language</a></li><li><a href="http://viralpatel.net/blogs/2009/11/google-wave-fail-whale.html" title="Google Wave has its own Fail Whale">Google Wave has its own Fail Whale</a></li><li><a href="http://viralpatel.net/blogs/2009/07/google-os-is-here-google-launched-google-chrome-os.html" title="Google OS is here. Google launched Google Chrome OS">Google OS is here. Google launched Google Chrome OS</a></li><li><a href="http://viralpatel.net/blogs/2009/06/china-blocks-google-search-apps-gmail.html" title="China blocks Google Search, Apps, GMail etc">China blocks Google Search, Apps, GMail etc</a></li><li><a href="http://viralpatel.net/blogs/2009/05/gmail-launched-automatic-message-translation-feature-gmail-labs.html" title="GMail launched automatic message translation feature in GMail Labs">GMail launched automatic message translation feature in GMail Labs</a></li><li><a href="http://viralpatel.net/blogs/2009/04/android-15-released-sdk-feature-list-android-google.html" title="Android 1.5 released: Preview SDK &#038; feature list">Android 1.5 released: Preview SDK &#038; feature list</a></li><li><a href="http://viralpatel.net/blogs/2009/03/now-add-drawings-in-your-google-docs.html" title="Now add Drawings in your Google Docs!!">Now add Drawings in your Google Docs!!</a></li></ul></div>]]></content:encoded> <wfw:commentRss>http://viralpatel.net/blogs/2011/07/google-plus-homepage-redirect.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to use Dropbox as an SVN repository</title><link>http://viralpatel.net/blogs/2011/03/dropbox-svn-subversion-repository.html</link> <comments>http://viralpatel.net/blogs/2011/03/dropbox-svn-subversion-repository.html#comments</comments> <pubDate>Fri, 04 Mar 2011 06:23:24 +0000</pubDate> <dc:creator>Viral Patel</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[build repository]]></category> <category><![CDATA[dropbox]]></category> <category><![CDATA[subversion]]></category> <category><![CDATA[svn]]></category><guid isPermaLink="false">http://viralpatel.net/blogs/?p=2169</guid> <description><![CDATA[Recently, the popular Cloud based startup Dropbox is getting lot of attention on Internet. It is a free file synchronization/backup service where you can backup, save and share files. Dropbox gives 2 GB of free space to every user where one can save / backup their files. One of the interesting usage of Dropbox can [...]]]></description> <content:encoded><![CDATA[<p><img src="http://img.viralpatel.net/2011/03/dropbox-subversion-svn.png" alt="dropbox-subversion-svn" title="dropbox-subversion-svn" width="236" height="112" class="alignright size-full wp-image-2170" />Recently, the popular Cloud based startup <a href="http://www.dropbox.com">Dropbox</a> is getting lot of attention on Internet. It is a free file synchronization/backup service where you can backup, save and share files. Dropbox gives 2 GB of free space to every user where one can save / backup their files.</p><p>One of the interesting usage of Dropbox can be to use it as Subversion Repository to store your projects. We can create a local SVN repository on Dropbox which can be synchronized on Cloud by Dropbox. You can checkout this repository and add your projects / files into it. This way you can access your project anywhere. Also it is possible to share your repository with other users if you want to. Simply by sharing Dropbox folder where you have stored subversion repository can enables you to share it with other users.</p><p>Here is an example of hosting a local SVN repository on Dropbox.</p><h2>Step 1: Create Dropbox repository</h2><pre class="brush: bash; title: ; notranslate">
cd ~Dropbox
mkdir SVNRepository
cd SVNRepository
</pre><p>If you are using subversion command line utilities in Windows or using Unix box, we can create a new subversion repository by using <code>svnadmin</code>.</p><pre class="brush: bash; title: ; notranslate">
svnadmin create .
</pre><p>If you are using TortoiseSVN client then you may want to create repository using following:<br /> <img src="http://img.viralpatel.net/2011/03/svn-create-repository-here.png" alt="" title="svn-create-repository-here" width="377" height="104" class="aligncenter size-full wp-image-2171" /><br /> Right-click on the newly created folder SVNRepository and select <strong>TortoiseSVN</strong> → <strong>Create Repository here</strong>….</p><p>We just created a Subversion repository on top of Dropbox folder. Don&#8217;t edit those files yourself!!. If you get any errors make sure that the folder is empty and not write protected.</p><h2>Step 2: Checkout Dropbox repository</h2><p>Our Dropbox repository is ready and we can do checkin / checkout in this now. Before we add any project / files in this repository, we need to make sure we add proper directory structure in this SVN repository. It is a good practice to divide an SVN repositories in three directory: trunk, branches and tags.</p><p>First create a working folder where you want to checkout your SVN repository.</p><pre class="brush: bash; title: ; notranslate">
mkdir ~MyWorkspace
cd MyWorkspace
svn checkout file:///~Dropbox/SVNRepository
</pre><p>This will checkout the newly created repository in folder MyWorkspace.</p><p>Now create 3 directories in MyWorkspace: trunk, branches and tags and commit the change back to repository.</p><pre class="brush: bash; title: ; notranslate">
mkdir trunk
mkdir branches
mkdir tags
svn commit -m &quot;Initial setup (committing trunk, branches, tags)&quot;
</pre><h2>Step 3: Checkout Trunk of Dropbox SVN repository</h2><p>We are done with the setup.. Just checkout the Trunk of this newly created SVN repository and start committing your changes.</p><pre class="brush: bash; title: ; notranslate">
svn checkout file:///~Dropbox/SVNRepository/trunk
</pre><p>That&#8217;s it. Now you can checkout the SVN repository &#8220;file:///~Dropbox/SVNRepository/trunk&#8221; anywhere and commit your changes to it. Ofcourse this is now hosted on Dropbox so you can easily synchronize your changes between different computers. You can also share this repository with other Dropbox users letting them SVN your repository access.</p><div id="relatedpost"><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://viralpatel.net/blogs/2010/01/unix-shell-script-line-ending-executable-issue-subversion.html" title="Unix Shell Script Line Ending &#038; Executable Issue with Subversion">Unix Shell Script Line Ending &#038; Executable Issue with Subversion</a></li><li><a href="http://viralpatel.net/blogs/2009/08/apache-archiva-build-artifact-repository-manager.html" title="Introduction to Apache Archiva: The Build Artifact Repository Manager">Introduction to Apache Archiva: The Build Artifact Repository Manager</a></li></ul></div>]]></content:encoded> <wfw:commentRss>http://viralpatel.net/blogs/2011/03/dropbox-svn-subversion-repository.html/feed</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Some Useful Unix File Finding Commands</title><link>http://viralpatel.net/blogs/2010/02/some-useful-unix-file-finding-commands.html</link> <comments>http://viralpatel.net/blogs/2010/02/some-useful-unix-file-finding-commands.html#comments</comments> <pubDate>Thu, 04 Feb 2010 08:36:18 +0000</pubDate> <dc:creator>Viral Patel</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[Unix Shell Script]]></category><guid isPermaLink="false">http://viralpatel.net/blogs/?p=2010</guid> <description><![CDATA[Following are some bunch of commands that might be useful if you want to find files in unix/linux. Large Files Find files larger than 10MB in the current directory downwards&#8230; Find files larger than 100MB&#8230; Old Files Find files last modified over 30days ago&#8230; Find files last modified over 365days ago&#8230; Find files last accessed [...]]]></description> <content:encoded><![CDATA[<p><img src="http://img.viralpatel.net/2010/02/magnifying-glass-find-files-unix.jpg" alt="magnifying-glass-find-files-unix" title="magnifying-glass-find-files-unix" width="206" height="112" class="alignright size-full wp-image-2020" />Following are some bunch of commands that might be useful if you want to find files in unix/linux.</p><h2>Large Files</h2><p>Find files larger than 10MB in the current directory downwards&#8230;</p><pre class="brush: bash; title: ; notranslate">
find . -size +10000000c -ls
</pre><p>Find files larger than 100MB&#8230;</p><pre class="brush: bash; title: ; notranslate">
find . -size +100000000c -ls
</pre><h2>Old Files</h2><p>Find files last modified over 30days ago&#8230;</p><pre class="brush: bash; title: ; notranslate">
find . -type f -mtime 30 -ls
</pre><p>Find files last modified over 365days ago&#8230;</p><pre class="brush: bash; title: ; notranslate">
find . -type f -mtime 365 -ls
</pre><p>Find files last accessed over 30days ago&#8230;</p><pre class="brush: bash; title: ; notranslate">
find . -type f -atime 30 -ls
</pre><p>Find files last accessed over 365days ago&#8230;</p><pre class="brush: bash; title: ; notranslate">
find . -type f -atime 365 -ls
</pre><h2>Find Recently Updated Files</h2><p>There have been instances where a runaway process is seemingly using  up any and all space left on a partition. Finding the culprit file is  always useful.</p><p>If the file is being updated at the current time  then we can use find to find files modified in the last day&#8230;</p><pre class="brush: bash; title: ; notranslate">
find  . -type f -mtime -1 -ls
</pre><p>Better still, if we know a file is being  written to now, we can touch a file and ask the find command to list  any files updated after the timestamp of that file, which will logically  then list the rogue file in question.</p><pre class="brush: bash; title: ; notranslate">
touch testfile
find .  -type f -newer testfile -ls
</pre><h2>Finding tar Files</h2><p>A clean up of redundant tar (backup) files, after completing a piece of work say, is sometimes forgotten. Conversely, if tar files are needed, they can be identified and duly compressed (using compress or gzip) if not already done so, to help save space. Either way, the following lists all tar files for review.</p><pre class="brush: bash; title: ; notranslate">
find . -type f -name &quot;*.tar&quot; -ls
find . -type f -name &quot;*.tar.Z&quot; -ls
</pre><h2>Large Directories</h2><p>List, in order, the largest sub-directories (units are in Kb)&#8230;</p><pre class="brush: bash; title: ; notranslate">
du -sk * | sort -n
</pre><p>Sometimes it is useful to then cd into that suspect directory and re-run the du command until the large files are found.</p><h2>Removing Files using Find</h2><p>The above find commands can be edited to remove the files found rather than list them. The &#8220;-ls&#8221; switch can be changed for &#8220;-exec rm {}\;&#8221;=.</p><p>e.g.</p><pre class="brush: bash; title: ; notranslate">
find . -type f -mtime 365 -exec rm {} \;
</pre><p>Running the command with the &#8220;-ls&#8221; switch first, is always prudent to see what will be removed.</p><p>The &#8220;-ls&#8221; switch prints out summary information about the file (like owner and permissions). If just the filename is required then swap &#8220;-ls&#8221; switch for &#8220;-print&#8221;.</p><p>Are you using different commands to find a file? Please share it using below comment form. <img src='http://viralpatel.net/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><div id="relatedpost"><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://viralpatel.net/blogs/2010/01/unix-shell-script-line-ending-executable-issue-subversion.html" title="Unix Shell Script Line Ending &#038; Executable Issue with Subversion">Unix Shell Script Line Ending &#038; Executable Issue with Subversion</a></li><li><a href="http://viralpatel.net/blogs/2009/11/shell-script-replace-text-variables-multiple-files-unix.html" title="Replace Text in Variables &#038; Single/Multiple-Files in UNIX">Replace Text in Variables &#038; Single/Multiple-Files in UNIX</a></li><li><a href="http://viralpatel.net/blogs/2009/08/shell-script-rename-moving-files-unix.html" title="Shell Script to Rename &#038; Move files in Unix">Shell Script to Rename &#038; Move files in Unix</a></li><li><a href="http://viralpatel.net/blogs/2009/08/generate-random-number-unix-shell-script.html" title="Generate Random Number in UNIX Shell Script">Generate Random Number in UNIX Shell Script</a></li><li><a href="http://viralpatel.net/blogs/2009/07/writing-functions-in-shell-script.html" title="Writing Functions in Shell Script">Writing Functions in Shell Script</a></li><li><a href="http://viralpatel.net/blogs/2009/05/how-to-execute-command-prompt-command-view-output-java.html" title="How to execute a command prompt command &#038; view output in Java">How to execute a command prompt command &#038; view output in Java</a></li><li><a href="http://viralpatel.net/blogs/2008/12/how-to-reset-mysql-root-password.html" title="How to: Reset MySQL root password">How to: Reset MySQL root password</a></li></ul></div>]]></content:encoded> <wfw:commentRss>http://viralpatel.net/blogs/2010/02/some-useful-unix-file-finding-commands.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Step by step Guide to Crack WinRAR</title><link>http://viralpatel.net/blogs/2010/02/step-by-step-guide-to-crack-winrar.html</link> <comments>http://viralpatel.net/blogs/2010/02/step-by-step-guide-to-crack-winrar.html#comments</comments> <pubDate>Wed, 03 Feb 2010 11:25:43 +0000</pubDate> <dc:creator>Rishabh Dangwal</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[cracking]]></category> <category><![CDATA[hacked]]></category><guid isPermaLink="false">http://viralpatel.net/blogs/?p=2018</guid> <description><![CDATA[Hi folks, its been a long time since I have posted some thing technical, so I will be writing about the challenge I got at NIT KU, where I cracked WinRAR 3.80 using a disassembler and will tell you the same here. You can crack any version of WinRAR using this method and need not [...]]]></description> <content:encoded><![CDATA[<p><img src="http://img.viralpatel.net/2010/02/image001.jpg" alt="" title="image001" class="alignright size-full wp-image-2019" />Hi folks, its been a long time since I have posted some thing technical, so I will be writing about the challenge I got at NIT KU, where I cracked WinRAR 3.80 using a disassembler and will tell you the same here. You can crack any version of WinRAR using this method and need not to pay for the registration fee and you can do this all by your self, easily. Furthermore, major software are cracked using the same way,but just get a bit complex in the methodology. This tutorial is intended for those who are new to cracking and disassembling.</p><p><em><strong>Disclaimer – By Reading this tutorial You agree that this tutorial is intended for educational purposes only and the author can not be held liable for any kind of damages done whatsoever to your machine, or damages caused by some other, creative application of this tutorial.</p><p>In any case you disagree with the above statement, stop here.<br /> </strong></em></p><h2>The Tools</h2><p>To perform this hack you will be needing -</p><ol><li>Any De-assembler (I use Hackers Disassembler and Hview )</li><li>Resource Hacker</li><li>A patch Creator ( Use Universal Patch Creator or Code fusion)</li></ol><p>You will be able to get them by <a rel="nofollow" href="http://rdhacker.blogspot.com/search/label/Google">googling</a> or you can download my set of tools provided.</p><h2>How to Crack ?</h2><p>You need to have a bit knowledge of assembly language,and in case you don&#8217;t have it,just cram the steps and it will work anytime,every time. Download the latest version of WinRAR from their website and install it.<br /> I will be cracking Winrar 3.80 here (cuz I already have it:P ). This is basically a 2 step process ( 4 step ,if you want to do things with a professional touch,period) .</p><p><img src="http://img.viralpatel.net/2010/02/image002.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>Now copy the WinRAR.exe file to desktop. Make a copy of it there.</p><h3>Step 1 – Hunting for Memory Address</h3><p>Now load Hackers Disasembler and load the copy in it.<br /> <img src="http://img.viralpatel.net/2010/02/image003.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>The Disassembler will disassemble the executable in assembly code. Now you need to search for strings that are used in WinRAR program. Press Ctrl + F and type “evaluation” without quotes and search in the assembly code. Hit enter&#8230;<br /> <img src="http://img.viralpatel.net/2010/02/image004.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>After you have reached this block of code by searching, just look at the block of code above it. There you will find that some assembly values are being compared and then code is jumped to some other function. Now see carefully, the “evaluation copy” function must be invoked after some specific condition is met. We need to look for it at the code and the make certain changes to the condition so that the program doesn&#8217;t checks for the condition.<br /> <img src="http://img.viralpatel.net/2010/02/image006.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>In the above code you can see this code -</p><pre>
00444B6A: 803DF4B84B0000 cmp byte ptr [004BB8F4], 00
00444B71: 0F859B000000 JNE 00444C12
</pre><p>This is the code responsible for validating you as a legal user <img src='http://viralpatel.net/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Just note down the memory address that leads to jump (JNE) at some memory location. In this case, note down 00444B71.</p><p>Note : For any WinRAR version, this code and memory address might be different,but the JNE will be same. Just note down the respective memory address that checks.</p><p>Now you need to search for the code that brings that ugly nag screen “Please purchase WinRAR license” after your trial period of 40 days is over. For this,look over your toolbar and click on “D” which stands for looking for Dialog references.</p><p><img src="http://img.viralpatel.net/2010/02/image007.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>Now in the dialog box that opens,search for “please” and you will get the reference as -<br /> ID-REMINDER, “Please purchase WinRAR license”<br /> <img src="http://img.viralpatel.net/2010/02/image008.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>Double click on it and you will reach the subsequent code.<br /> <img src="http://img.viralpatel.net/2010/02/image009.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>The code will be something like</p><pre>
* String: “REMINDER”
0048731A: 68EB5E4B00 push 004B5EEB
</pre><p>Just note the memory address that invokes the REMINDER dialog. In this case its 0048731A. Note it down.<br /> <em>Note : For any WinRAR version, this code and memory address might be different.But the Reminder Memory address code will always PUSH something. Just note down the respective memory address that PUSH ‘s.</em></p><h3>Step 2 – Fixing and Patching</h3><p>Now in this step we will be patching up values of memory addresses we noted earlier. I will be doing this using HVIEW.<br /> Now load the copy you disassembled in Hacker’s Disassembler in Hview.<br /> <img src="http://img.viralpatel.net/2010/02/image010.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>After you have loaded it, you will see the code is unreadable. Its just like opening an EXE file in notepad. You need to decode it. To do that, just press F4 and yoiu will get an option to decode it. Hit DECODE and you will be able to see code in the form of assembly code and memory addresses.<br /> <img src="http://img.viralpatel.net/2010/02/image011.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>After you have done that, you need to search for memory addresses you noted down earlier. Just hit F5 and a search box will be there. Now you need to enter the memory address. To do that, enter a “.” and the type memory address neglecting the earlier “00” . The “.” will suffice for “00”. ie -<br /> Type .444B71 in place of 00444B71<br /> <img src="http://img.viralpatel.net/2010/02/image012.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>and search in the code.<br /> <img src="http://img.viralpatel.net/2010/02/image013.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>After you have reached the respective code, you need to make changes to it. Press F3 and you will be able to edit the code.Now make the following changes &#8211;<br /> <img src="http://img.viralpatel.net/2010/02/image014.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>After you have done it, save it by pressing F9.<br /> Now search for next memory location by pressing F5 and entering it. Reach there and make the following changes by pressing F3 -<br /> <img src="http://img.viralpatel.net/2010/02/image015.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>Save the changes by pressing F9 and exit HVIEW by pressing F10.<br /> Congrats&#8230;You have cracked WinRAR <img src='http://viralpatel.net/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Replace the original WinRAR.exe with this copyofwinrar.exe by renaming it. It will work 100% fine <img src='http://viralpatel.net/blogs/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /></p><h3>Step 3 – Spicing up the EXE</h3><p>Now U have a 100% working version of EXE, you might want to change your registration information in WinRAR. TO do this, you can use Resource hacker.<br /> <img src="http://img.viralpatel.net/2010/02/image016.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>Launch Resource Hacker, load the copyofwinrar.exe in it<br /> <img src="http://img.viralpatel.net/2010/02/image017.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>Now go to DIALOG –> Expand tree –> ABOUTRARDLG and click it. Now Find Trial copy line and replace it with your favorite one <img src='http://viralpatel.net/blogs/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br /> <img src="http://img.viralpatel.net/2010/02/image018.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>and click on Compile Script button.<br /> <img src="http://img.viralpatel.net/2010/02/image019.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>Now save the file with any name on your desktop or any location what so ever.<br /> <img src="http://img.viralpatel.net/2010/02/image020.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>Now you have a fully patched WinRAR.exe file <img src='http://viralpatel.net/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) you can either use it, or also can distribute it like a real cracker. If you want to learn that, move on to next step.</p><h3>Step 4 – Creating a working Patch (or giving Professional touch <img src='http://viralpatel.net/blogs/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> )</h3><p>I will be using diablo2oo2&#8242;s Universal Patcher (UPE) for creating the patch. The patch will work like any authentic one for that WinRAR version. Just like the one U downloaded at anytime of your life from any Crack and Keygen website.<br /> Launch Patch Creator and click on add new project. Enter project Information and click on save.<br /> <img src="http://img.viralpatel.net/2010/02/image021.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>Click on Add – > Offset patch<br /> <img src="http://img.viralpatel.net/2010/02/image022.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>After you have done that, double click on offset patch and then</p><ol><li>Give path of original winrar.exe</li><li>Give path of unmodified Winrar.exe (again)</li><li>Give path for fully patched Winrar.exe (ie Cracked Winrar.exe in this case)</li><li>Click on compare and it will show difference between both files</li><li>Click on save.</li></ol><p><img src="http://img.viralpatel.net/2010/02/image023.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>Now in the next window, click on Create Patch and save it. The Patch will be created. Now copy it in WinRAR installation directory and hit on patch, it WILL<br /> <img src="http://img.viralpatel.net/2010/02/image024.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>Congrats you have created a patch of your own and have learned to crack WinRAR <img src='http://viralpatel.net/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br /> <img src="http://img.viralpatel.net/2010/02/image025.jpg" alt="" title="image001" class="aligncenter size-full wp-image-2019" /></p><p>You can crack other software in the same way…just practice, debug and disassemble and you will get the way <img src='http://viralpatel.net/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p><em>[PS: The above is the long way to do it, I will be telling you the shortest way to crack WinRAR in just 1 step, the main aim of this tutorial was to introduce you to disassemblers and tools, and do some dirty work with your hand. ]<br /> </em></p><p>Cheers</p><style type="text/css">#author-info{font-family:Helvetica,Arial,Helvetica,sans-serif;width:650px;height:130px;background-color:#f4f4f4;border:1px
solid #eee}#author-info #a-pic{width:90px;height:75%;display:inline;float:left;padding:15px}#author-info #a-pic #a-avatar{border-bottom:1px solid #999;border-right:1px solid #999;padding:2px;background-color:white;height:80px;width:80px}#author-info #a-pic #a-avatar
img{border:0px
solid;padding:0px}#author-info #a-details{width:520px;height:75%;display:inline;float:right;padding:15px
10px 0px 0px}#author-info #a-details #a-about{color:#0C3FC4;font-size:1.13em;font-weight:bold;margin-bottom:3px}#author-info #a-details #a-det{font-size:14px}</style><div id="author-info"><div id="a-pic"><div id="a-avatar"> <img src="http://img.viralpatel.net/author/rishabh-dangwal.jpg" /></div></div><div id="a-details"><div id="a-about"> About the Author</div><div id="a-det"> <a href="http://www.prohack.in" rel="nofollow" target="_blank">Rishabh Dangwal</a> is a freelance security consultant, technoblogger and a student pursuing engineering. His tastes include fiddling with every possible piece of computers and technology he could get his hands on and sharing them to the world.</div></div></div><div id="relatedpost"><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://viralpatel.net/blogs/2010/01/google-takes-china-stop-censoring.html" title="Google Takes on China; Will Stop Censoring Results">Google Takes on China; Will Stop Censoring Results</a></li><li><a href="http://viralpatel.net/blogs/2010/01/simplest-virus-fork-bomb.html" title="Simplest Virus – Fork Bomb">Simplest Virus – Fork Bomb</a></li><li><a href="http://viralpatel.net/blogs/2010/01/hacking-wifi-network-using-backtrack.html" title="Hacking Wifi Network Using BackTrack">Hacking Wifi Network Using BackTrack</a></li><li><a href="http://viralpatel.net/blogs/2009/09/how-to-create-ie-specific-css-stylesheet.html" title="How To: Create an IE Specific Stylesheet">How To: Create an IE Specific Stylesheet</a></li><li><a href="http://viralpatel.net/blogs/2009/04/omg-salma-hayek-apple-mobileme-account-hacked.html" title="OMG: Salma Hayek&#8217;s Apple MobileMe account Hacked!!">OMG: Salma Hayek&#8217;s Apple MobileMe account Hacked!!</a></li></ul></div>]]></content:encoded> <wfw:commentRss>http://viralpatel.net/blogs/2010/02/step-by-step-guide-to-crack-winrar.html/feed</wfw:commentRss> <slash:comments>15</slash:comments> </item> <item><title>Hacking Wifi Network Using BackTrack</title><link>http://viralpatel.net/blogs/2010/01/hacking-wifi-network-using-backtrack.html</link> <comments>http://viralpatel.net/blogs/2010/01/hacking-wifi-network-using-backtrack.html#comments</comments> <pubDate>Mon, 11 Jan 2010 07:00:57 +0000</pubDate> <dc:creator>Rishabh Dangwal</dc:creator> <category><![CDATA[Fun]]></category> <category><![CDATA[General]]></category> <category><![CDATA[hacked]]></category> <category><![CDATA[hacking wifi]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[social networking]]></category><guid isPermaLink="false">http://viralpatel.net/blogs/?p=1978</guid> <description><![CDATA[Wifi or Wireless Fidelity is the name of a popular wireless networking technology that uses radio waves to provide wireless high-speed Internet and network connections (as if you didnt know..),Wifi has become an integral part of our lives today. Wifi is secured using a WPA protocol which intends to secure Wireless LANs like Wired LAN’s [...]]]></description> <content:encoded><![CDATA[<p><img src="http://img.viralpatel.net/2010/01/wifi-hacked.png" alt="wifi-hacked" title="wifi-hacked" width="158" height="177" class="alignright size-full wp-image-1979" />Wifi or Wireless Fidelity is the name of a popular wireless networking technology that uses radio waves to provide wireless high-speed Internet and network connections (as if you didnt know..),Wifi has become an integral part of our lives today. Wifi is secured using a WPA protocol which intends to secure Wireless LANs like Wired LAN’s by encrypting data over radio waves,however, it has been found that WEP is not as secure as once believed.Now almost anyone can hack into a Wifi network by generating the valid WEP key using Bactrack. Read on to learn how..</p><p><em><strong>Disclaimer:</strong> This tutorial is given for educational purposes only and that for any misuse of this information; the blogger cannot be held liable.</em></p><h2>GETTING BACKTRACK</h2><p>BackTrack is a slax based top rated Linux live distribution focused on penetration testing which consists of more than 300 up to date tools along with the ability of customizing scripts, configuring and modding kernels which makes it a true gem and a must have for every security enthusiastic out there. The best part &#8211; Its free and you can download it from &#8211; <a rel="nofollow" target="_blank" href="http://www.remote-exploit.org/backtrack_download.html"><strong>Remote Exploit</strong></a></p><h2>SETTING UP THE CARD AND THE CONSOLE</h2><p>Boot up Backtrack on your virtual machine/laptop and open up the command console and type the commands as they are given -</p><pre class="brush: bash; title: ; notranslate">
ifconfig
</pre><p>This is the Linux equivalent of <code>ipconfig</code>, you will see the network adaptors in your system. See which one is for Wi-Fi. A few examples are wlan0, wifi0, etc.</p><pre class="brush: bash; title: ; notranslate">
airmon-ng
</pre><p>This command will initialize the Wi-Fi network monitoring &#038; will tell you how many networks are in range.</p><pre class="brush: bash; title: ; notranslate">
airmon-ng stop [Wi-Fi Card name(without the quotes)]
</pre><p>This command will stop the cards broadcast and reception immediately</p><pre class="brush: bash; title: ; notranslate">
macchanger –mac [Desired MAC address] [Wi-Fi card name]
</pre><p>This command will change the current MAC address to any MAC address you desire, so that you don’t get caught later</p><pre class="brush: bash; title: ; notranslate">
airmon-ng start [Wi-Fi Card name]
</pre><p>You will see another extra adaptor that is set on monitor mode, use that adaptor for all further purposes in the following commands where – &#8220;[Wi-Fi card name]&#8221; appears</p><h2>DUMPING PACKETS</h2><p>Once you have set up all the parameters, you need to sniff and dump data packets in order to get the key. You can do so by using following commands. On the command console type these commands -</p><pre class="brush: bash; title: ; notranslate">
airodump-ng [Wi-Fi card name]
</pre><p>Copy and paste the BSSID in the following command and execute it</p><pre class="brush: bash; title: ; notranslate">
airodump-ng –c [Channel Number] –w [Desired Filename for later decryption] --bssid [BSSID] [Wi-Fi Card name]
</pre><p>As you execute the command, you will see a certain number of beacons and data packets that will be stored in the filename you have given. The file will be stored in the root of the system drive (Click on Computer and you will see the file).The file will be present in two formats: *.cap, *.txt.</p><h2>SPEEDING UP THINGS</h2><p>However packet dumping is quite a slow process, we need to speed up things to save our time. Open new console after the first data packet has been stored and type the command in the new console and execute it.</p><pre class="brush: bash; title: ; notranslate">
airreplay-ng -1 0 –a [BSSID] –h [FAKED MAC ADDRESS] -e [Wi-Fi name (you wish to hack)] [Wi-Fi card name]
</pre><p>As you type this command you will see that the data packets required for breaking the key will increase dramatically thereby saving you a lot of time.</p><h2>REVEALING WEP KEY</h2><p>Open another console once you have around 20,000 data packets and type the following command to reveal the WEP key.</p><pre class="brush: bash; title: ; notranslate">
aircrack-ng –n 64 –b [BSSID] [Filename without the extension]
</pre><p><img src="http://img.viralpatel.net/2010/01/wep-wifi-hacked.png" alt="wep-wifi-hacked" title="wep-wifi-hacked" width="122" height="126" class="alignright size-full wp-image-1980" />As you type this command, you will see that a key will appear in front of you in the given below format:<br /> <strong>XX:XX:XX:XX</strong></p><p>It is not necessary that the key should have exactly the same digits as shown above so please don’t freak out if you see a 10 digit or 14 digit key. Also if the decryption fails, you can change the bit level of the decryption in the command:</p><pre class="brush: bash; title: ; notranslate">
aircrack-ng –n [BIT LEVEL] –b [BSSID] [Filename without extension]
</pre><p>Remember, the bit level should be a number of 2n where n:1,2,3,4…<br /> e.g.</p><pre class="brush: bash; title: ; notranslate">
aircrack-ng –n 32 –b [BSSID] [Filename without the extension]
OR
aircrack-ng –n 128 –b [BSSID] [Filename without the extension] etc. etc.
</pre><p>Now just login using the WEP key you got.</p><p><em>Cheers..</em></p><style type="text/css">#author-info{font-family:Helvetica,Arial,Helvetica,sans-serif;width:650px;height:130px;background-color:#f4f4f4;border:1px
solid #eee}#author-info #a-pic{width:90px;height:75%;display:inline;float:left;padding:15px}#author-info #a-pic #a-avatar{border-bottom:1px solid #999;border-right:1px solid #999;padding:2px;background-color:white;height:80px;width:80px}#author-info #a-pic #a-avatar
img{border:0px
solid;padding:0px}#author-info #a-details{width:520px;height:75%;display:inline;float:right;padding:15px
10px 0px 0px}#author-info #a-details #a-about{color:#0C3FC4;font-size:1.13em;font-weight:bold;margin-bottom:3px}#author-info #a-details #a-det{font-size:14px}</style><div id="author-info"><div id="a-pic"><div id="a-avatar"> <img src="http://img.viralpatel.net/author/rishabh-dangwal.jpg" /></div></div><div id="a-details"><div id="a-about"> About the Author</div><div id="a-det"> <a href="http://www.prohack.in" rel="nofollow" target="_blank">Rishabh Dangwal</a> is a freelance security consultant, technoblogger and a student pursuing engineering. His tastes include fiddling with every possible piece of computers and technology he could get his hands on and sharing them to the world.</div></div></div><div id="relatedpost"><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://viralpatel.net/blogs/2010/02/step-by-step-guide-to-crack-winrar.html" title="Step by step Guide to Crack WinRAR">Step by step Guide to Crack WinRAR</a></li><li><a href="http://viralpatel.net/blogs/2010/01/google-takes-china-stop-censoring.html" title="Google Takes on China; Will Stop Censoring Results">Google Takes on China; Will Stop Censoring Results</a></li><li><a href="http://viralpatel.net/blogs/2010/01/simplest-virus-fork-bomb.html" title="Simplest Virus – Fork Bomb">Simplest Virus – Fork Bomb</a></li><li><a href="http://viralpatel.net/blogs/2009/12/compile-run-google-chromium-os-linux.html" title="Complete Guide To Compile &#038; Run Google Chromium OS on Linux">Complete Guide To Compile &#038; Run Google Chromium OS on Linux</a></li><li><a href="http://viralpatel.net/blogs/2009/09/how-to-create-ie-specific-css-stylesheet.html" title="How To: Create an IE Specific Stylesheet">How To: Create an IE Specific Stylesheet</a></li><li><a href="http://viralpatel.net/blogs/2009/04/omg-salma-hayek-apple-mobileme-account-hacked.html" title="OMG: Salma Hayek&#8217;s Apple MobileMe account Hacked!!">OMG: Salma Hayek&#8217;s Apple MobileMe account Hacked!!</a></li><li><a href="http://viralpatel.net/blogs/2009/04/google-android-adt-sdk-and-eclipse-ide-integration-on-linux.html" title="Google Android ADT, SDK and Eclipse IDE integration on Linux ">Google Android ADT, SDK and Eclipse IDE integration on Linux </a></li></ul></div>]]></content:encoded> <wfw:commentRss>http://viralpatel.net/blogs/2010/01/hacking-wifi-network-using-backtrack.html/feed</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>ViralPatel.net Turns One Year Old</title><link>http://viralpatel.net/blogs/2009/11/viralpatel-net-turns-one-year-old.html</link> <comments>http://viralpatel.net/blogs/2009/11/viralpatel-net-turns-one-year-old.html#comments</comments> <pubDate>Wed, 18 Nov 2009 09:00:03 +0000</pubDate> <dc:creator>Viral Patel</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[viralpatel-net]]></category><guid isPermaLink="false">http://viralpatel.net/blogs/?p=1897</guid> <description><![CDATA[I started writing ViralPatel.net one year ago, on November 18, 2008. Looking back, it’s been the best year of my life. This has been a great journey in learning new things. I would like to thank my friends who inspire me to start this blog and also contributed some of the great articles. For people [...]]]></description> <content:encoded><![CDATA[<p><img src="http://img.viralpatel.net/2009/11/bday-first-birthday.jpg" alt="bday-first-birthday" title="bday-first-birthday" width="201" height="178" class="alignleft size-full wp-image-1902" /> I started writing ViralPatel.net one year ago, on November 18, 2008. Looking back, it’s been the best year of my life. This has been a great journey in learning new things. I would like to thank my friends who inspire me to start this blog and also contributed some of the great articles.</p><p>For people interested in statistics, here they are. This will be the 220th post on ViralPatel.net, and 848 comments have been left on those posts. Many tutorials/articles has been publised on ViralPatel.net in last one year. Traffic and RSS subscribers continue to grow – there are around 650 RSS and email subscribers based on Feedburner count, and ViralPatel.net serves 120,874 page views per month. As of today, the Alexa rank of this website is 44,530.</p><p>Thanks to everyone who made ViralPatel.net possible.</p><p>A lot’s changed in the last twelve months. I can only imagine what the next twelve will bring.</p><div id="relatedpost"><h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://viralpatel.net/blogs/2009/07/writing-functions-in-shell-script.html" title="Writing Functions in Shell Script">Writing Functions in Shell Script</a></li><li><a href="http://viralpatel.net/blogs/2011/12/hibernate-one-to-many-annotation-tutorial.html" title="Hibernate One To Many Annotation tutorial">Hibernate One To Many Annotation tutorial</a></li><li><a href="http://viralpatel.net/blogs/2011/01/tutorial-save-get-blob-object-spring-3-mvc-hibernate.html" title="Tutorial:Saving/Retreving BLOB object in Spring 3 MVC and Hibernate">Tutorial:Saving/Retreving BLOB object in Spring 3 MVC and Hibernate</a></li><li><a href="http://viralpatel.net/blogs/2009/10/create-search-engine-google-custom-search-api.html" title="Create your own Search Engine(Interface) using Google Custom Search API">Create your own Search Engine(Interface) using Google Custom Search API</a></li><li><a href="http://viralpatel.net/blogs/2009/09/take-database-automate-backup-website.html" title="Taking Backup of your Website and Wordpress Blog">Taking Backup of your Website and Wordpress Blog</a></li><li><a href="http://viralpatel.net/blogs/2010/11/multiple-checkbox-select-deselect-jquery-tutorial-example.html" title="Multiple Checkbox Select/Deselect using jQuery &#8211; Tutorial with Example">Multiple Checkbox Select/Deselect using jQuery &#8211; Tutorial with Example</a></li><li><a href="http://viralpatel.net/blogs/2008/11/enable-gzip-compression-in-tomcat.html" title="Enable GZIP compression in tomcat">Enable GZIP compression in tomcat</a></li></ul></div>]]></content:encoded> <wfw:commentRss>http://viralpatel.net/blogs/2009/11/viralpatel-net-turns-one-year-old.html/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Sitemap XML: Improving Website&#8217;s SEO score and Search Engine Visibility</title><link>http://viralpatel.net/blogs/2009/09/sitemap-xml-improve-website-seo-search-engine.html</link> <comments>http://viralpatel.net/blogs/2009/09/sitemap-xml-improve-website-seo-search-engine.html#comments</comments> <pubDate>Mon, 14 Sep 2009 12:53:40 +0000</pubDate> <dc:creator>Viral Patel</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[google]]></category> <category><![CDATA[search engine optimization]]></category> <category><![CDATA[seo]]></category> <category><![CDATA[sitemap]]></category><guid isPermaLink="false">http://viralpatel.net/blogs/?p=1767</guid> <description><![CDATA[The Sitemaps protocol allows a webmaster to inform search engines about URLs on a website that are available for crawling. A Sitemap is an XML file that lists the URLs for a site. It allows webmasters to include additional information about each URL: when it was last updated, how often it changes, and how important [...]]]></description> <content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-1770" title="sitemap-xml" src="http://img.viralpatel.net/2009/09/sitemap-xml.png" alt="sitemap-xml" width="254" height="195" />The Sitemaps protocol allows a webmaster to inform search engines about URLs on a website that are available for crawling. A Sitemap is an XML file that lists the URLs for a site. It allows webmasters to include additional information about each URL: when it was last updated, how often it changes, and how important it is in relation to other URLs in the site. This allows search engines to crawl the site more intelligently. Sitemaps are a URL inclusion protocol and complement robots.txt, a URL exclusion protocol.</p><p>Sitemap are the best way to sent notification of your website&#8217;s update to different Search Engine. Bots of different Search Engines like Google Bot crawl a website on regular basis and update indexes for the new information. But the way these bots crawl a website and the frequency of crawling remains unpredictable. Thus, if you post new information on your website, it is not sure when will that information is indexed by search engine bots. By generating Sitemap and submitting to search engines such as Google, we can ensure that the update is picked up by the bots at its earliest.</p><p>Almost all the content management systems (like Drupal, WordPress, Joomla etc) have plugins to generate sitemap dynamically. All you have to do is just to configure such plugins/addons in your website&#8217;s content management system and that&#8217;s it.</p><p>There are lots of Online tools which can generate sitemap of your website for free. One of such tool is <a rel="nofollow" href="http://www.xml-sitemaps.com" target="_blank">XML-Sitemaps.com</a>. All you have to do is just give your website&#8217;s URL to this tool and it will generate a sitemap for all the links/pages of the website.</p><h2>Structure of Sitemap XML</h2><table border="1"><tbody><tr><th>Element</th><th>Required?</th><th>Description</th></tr><tr><td>&lt;urlset&gt;</td><td>Yes</td><td>The document-level element for the Sitemap. The rest of the document after the &#8216;&lt;?xml version&gt;&#8217; element must be contained in this.</td></tr><tr><td>&lt;url&gt;</td><td>Yes</td><td>Parent element for each entry. The remaining elements are children of this.</td></tr><tr><td>&lt;loc&gt;</td><td>Yes</td><td>Provides the full URL of the page, including the protocol (e.g. http, https) and a trailing slash, if required by the site&#8217;s hosting server. This value must be less than 2,048 characters.</td></tr><tr><td>&lt;lastmod&gt;</td><td>No</td><td>The date that the file was last modified, inISO 8601 format. This can display the full date and time or, if desired, may simply be the date in the format YYYY-MM-DD.</td></tr><tr><td>&lt;changefreq&gt;</td><td>No</td><td>How frequently the page may change:</p><ul><li>always</li><li>hourly</li><li>daily</li><li>weekly</li><li>monthly</li><li>yearly</li><li>never</li></ul><p>&#8216;Always&#8217; is used to denote documents that change each time that they are accessed. &#8216;Never&#8217; is used to denote archived URLs (i.e. files that will not be changed again).</p><p>This is used only as a guide for <a title="web crawlers" href="http://viralpatel.net/blogs/2009/04/how-to-write-a-web-crawler-in-java.html">crawlers</a>, and is not used to determine how frequently pages are indexed.</td></tr><tr><td>&lt;priority&gt;</td><td>No</td><td>The priority of that URL relative to other URLs on the site. This allows webmasters to suggest to crawlers which pages are considered more important.The valid range is from 0.0 to 1.0, with 1.0 being the most important. The default value is 0.5.</p><p>Rating all pages on a site with a high priority does not affect search listings, as it is only used to suggest to the crawlers how important pages in the site are to one another.</td></tr></tbody></table><div id="relatedpost"><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://viralpatel.net/blogs/2009/08/seo-guide-wordpress-blogs-matt-cutts.html" title="SEO for Bloggers by Google&#8217;s own Matt Cutts!">SEO for Bloggers by Google&#8217;s own Matt Cutts!</a></li><li><a href="http://viralpatel.net/blogs/2011/07/google-plus-homepage-redirect.html" title="Redirect your homepage /+ URL to your Google + profile">Redirect your homepage /+ URL to your Google + profile</a></li><li><a href="http://viralpatel.net/blogs/2010/01/google-takes-china-stop-censoring.html" title="Google Takes on China; Will Stop Censoring Results">Google Takes on China; Will Stop Censoring Results</a></li><li><a href="http://viralpatel.net/blogs/2010/01/google-first-doodle-newton-anniversary.html" title="Google&#8217;s First Animated Doodle for Newton&#8217;s Anniversary">Google&#8217;s First Animated Doodle for Newton&#8217;s Anniversary</a></li><li><a href="http://viralpatel.net/blogs/2009/12/the-unofficial-google-text-to-speech-api.html" title="The Unofficial Google Text-To-Speech API">The Unofficial Google Text-To-Speech API</a></li><li><a href="http://viralpatel.net/blogs/2009/12/compile-run-google-chromium-os-linux.html" title="Complete Guide To Compile &#038; Run Google Chromium OS on Linux">Complete Guide To Compile &#038; Run Google Chromium OS on Linux</a></li><li><a href="http://viralpatel.net/blogs/2009/11/go-google-programming-language.html" title="GO: Google Launches its own Programming Language">GO: Google Launches its own Programming Language</a></li></ul></div>]]></content:encoded> <wfw:commentRss>http://viralpatel.net/blogs/2009/09/sitemap-xml-improve-website-seo-search-engine.html/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Taking Backup of your Website and WordPress Blog</title><link>http://viralpatel.net/blogs/2009/09/take-database-automate-backup-website.html</link> <comments>http://viralpatel.net/blogs/2009/09/take-database-automate-backup-website.html#comments</comments> <pubDate>Mon, 07 Sep 2009 10:09:31 +0000</pubDate> <dc:creator>Viral Patel</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[security]]></category> <category><![CDATA[website backup]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress tips]]></category><guid isPermaLink="false">http://viralpatel.net/blogs/?p=1739</guid> <description><![CDATA[Recently we updated viralpatel.net and moved to WordPress 2.8.4. The process of upgrading the wordpress went smooth. The wordpress installation you are running your website on must be updated regularly to avoid any kind of security threats in older versions of wordpress. But while you play with your stable website code, it is always advisable [...]]]></description> <content:encoded><![CDATA[<p>Recently we updated <a href="http://viralpatel.net/">viralpatel.net</a> and moved to WordPress 2.8.4. The process of upgrading the wordpress went smooth. The wordpress installation you are running your website on must be updated regularly to avoid any kind of <a target="_new" rel="nofollow" href="http://scobleizer.com/2009/09/05/i-dont-feel-safe-with-wordpress-hackers-broke-in-and-took-things/">security threats</a> in older versions of wordpress.</p><p>But while you play with your stable website code, it is always advisable to take backup of your website. The web hosting companies often take backup of the website hosted on their servers, but it is good to keep the backup locally.</p><p>Let us see different ways of taking Backup of a website.</p><h2>Taking Code Backup of Website</h2><p>A webmaster should often take the code backup of website to avoid any accidental loss of code. Also before every major/minor update in website, the backup of the code should be kept at a safe place. Following are few simple methods of taking website dumps or backup of code.</p><h3>Full Backup using cPanel</h3><p>cPanel provides wide variety of useful features to take backups of websites. One of such feature is Backup Wizard.<br /> <img src="http://img.viralpatel.net/2009/09/website-backup-cpanel.png" alt="website-backup-cpanel" title="website-backup-cpanel" width="500" height="171" class="aligncenter size-full wp-image-1742" /><br /> <strong>Goto cPanel -> Files -> Backup Wizard</strong></p><p>You can take backup of the code, database, email filter configuration etc using this wizard.<br /> <img src="http://img.viralpatel.net/2009/09/full-backup-website.png" alt="full-backup-website" title="full-backup-website" width="715" height="319" class="aligncenter size-full wp-image-1743" /></p><h3>Backup using FTP</h3><p>FTP can be used to take backup of your website code. Lot of FTP clients are available which can be used to connect to a website using FTP and take the backup. My favorites are <a target="_new" rel="nofollow" href="http://filezilla-project.org/">FileZilla</a> and <a target="_new" rel="nofollow" href="http://fireftp.mozdev.org/">FireFTP</a> (FireFTP is the popular Firefox extension).<br /> <img src="http://img.viralpatel.net/2009/09/fireftp.jpg" alt="fireftp" title="fireftp" width="528" height="372" class="aligncenter size-full wp-image-1746" /></p><h3>Database Backup using PHPMyAdmin</h3><p>PHPMyAdmin is a great MySQL frontend client which is already installed with cPanel. PHPMyAdmin can be used to take database backups directly.<br /> <img src="http://img.viralpatel.net/2009/09/phpmyadmin-wordpress-database.png" alt="phpmyadmin-wordpress-database" title="phpmyadmin-wordpress-database" width="460" height="292" class="aligncenter size-full wp-image-1744" /><br /> Select PHPMyAdmin from your cPanel and select all the tables that you need to take backup of. Then click on Export and save the exported file in your machine. Database backup should be taken before any of the major updates in the website.</p><h3>Automatic WordPress Database Backup using plugin</h3><p><img src="http://img.viralpatel.net/2009/09/db-manager-plugin.png" alt="db-manager-plugin" title="db-manager-plugin" width="516" height="267" class="aligncenter size-full wp-image-1745" /><br /> If you are using WordPress as your website CMS/Blogging software, you may want to take advantage of <a target="_new" rel="nofollow" href="http://wordpress.org/extend/plugins/wp-dbmanager/">WP-DBManager</a>, a cool wordpress plugin that take cares of the database backup.<br /> WP-DBManager provides a number of options including optimize database, repair database, backup database, restore database, delete backup database , drop/empty tables and run selected queries. It also supports automatic scheduling of backing up and optimizing of database.</p><h2>Automatic Database Backup using Cron Job</h2><p>Cron Jobs are great way of scheduling daily task in your Webhosting space which can be configured to run at particular interval of time. You may want to schedule a Cron Job which automatically takes database backup on daily basis.</p><p>Here is a DB backup script that can be used for daily automatic DB backups. This script can backup multiple DBs at the same time. The script below is set to backup 2 DBs. If you want to backup more just copy and paste the bottom section and change info to match that DB. If you just want to backup just 1 DB then delete the second section of the bottom section of the script.The functions of the script are commented in the script.<br /> Here are the steps to configure the automatic backup.</p><ol><li>Create a folder on the root of your web space called backups (don&#8217;t place this in the public_html directory. It belongs just about that in the directory structure)</li><li>Create a folder named database_backups in the backups folder you just created.</li><li>create a folder named the same as your DB in the database_backups folder you just created.</li><li>Replace all of the text in the script enclosed in &#8221; &#8221; with your specific info.</li><li>Save the db_dump script and place in the backups folder you created.</li><li>CHMOD (permission) all files and folders in the backup directory to 700 including the backup directory</li><li>Creat a CRON job in cPanel to execute this script. Go to the CRON tab in cPanel and click on advanced. Place this text in the command line replacing (&#8220;accountname&#8221;) /home/&#8221;accountname&#8221;/backups/db_dump.txt</li><li>Change the CRON time to run at your desired time and press commit changes</li></ol><pre>
#==============================================
#Save the script below as db_dump.txt
#==============================================

#!/bin/bash

# Script Created by Fernis
# Last edited 8/25/07 by Fernis

# Script Function:
# This bash script backups up the "DBname" and "DBname" db everyday at 4am with a file name time stamp and tar.gz zips the file.
# The "DBname" db will be saved in /backups/database_backups/"DBname"/
# The "DBname" db will be stored in /backups/database_backups/"DBname"/
# Db backups older than 30 days will be deleted.

#[Changes Directory]
cd /home/"accountname"/backups/

#[Old DB Deletion Script]
find /home/"accountname"/backups/database_backups -name "*.tar.gz" -mtime +30 -exec rm -f {} \;

#[Stamps the file name with a date]
TIMESTAMP=`date +%m-%d-%y-%H%M`

#[DB Backup Scripts]

# "DBname"
HOST=localhost
DBNAME="DBname"
USER="DBusername"
PASSWORD="DBpassword"
DUMP_PATH=/home/"accountname"/backups/database_backups/"DBname"
mysqldump --opt -c -e -Q -h$HOST -u$USER -p$PASSWORD $DBNAME > $DBNAME.sql
tar czpf $DUMP_PATH/$DBNAME.$TIMESTAMP.tar.gz $DBNAME.sql
rm -f $DBNAME.sql

# "DBname"
HOST=localhost
DBNAME="DBname"
USER="DBusername"
PASSWORD="DBpassword"
DUMP_PATH=/home/"accountname"/backups/database_backups/"DBname"
mysqldump --opt -c -e -Q -h$HOST -u$USER -p$PASSWORD $DBNAME > $DBNAME.sql
tar czpf $DUMP_PATH/$DBNAME.$TIMESTAMP.tar.gz $DBNAME.sql
rm -f $DBNAME.sql

#=======================================
#END OF BACKUP SCRIPT
#=======================================
</pre><div id="relatedpost"><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://viralpatel.net/blogs/2009/11/share-shared-google-reader-items-blog-website.html" title="Sharing Smartly with Google Reader">Sharing Smartly with Google Reader</a></li><li><a href="http://viralpatel.net/blogs/2009/10/wordpress-disable-post-revision-history-version-tracking.html" title="How to Disable Post Revision History or Version Tracking in Wordpress">How to Disable Post Revision History or Version Tracking in Wordpress</a></li><li><a href="http://viralpatel.net/blogs/2009/08/wordpress-insert-content-after-post.html" title="Wordpress Tip: Insert Content automatically after each Post in wordpress">Wordpress Tip: Insert Content automatically after each Post in wordpress</a></li><li><a href="http://viralpatel.net/blogs/2009/08/turn-off-wordpress-image-thumbnails.html" title="Save Webserver Space by turning off Image Thumbnails in Wordpress">Save Webserver Space by turning off Image Thumbnails in Wordpress</a></li><li><a href="http://viralpatel.net/blogs/2010/12/password-protect-your-webpages-using-htaccess.html" title="Password Protect your webpages using htaccess">Password Protect your webpages using htaccess</a></li><li><a href="http://viralpatel.net/blogs/2010/06/say-hello-to-wordpress-3-0.html" title="Say Hello to WordPress 3.0!">Say Hello to WordPress 3.0!</a></li><li><a href="http://viralpatel.net/blogs/2010/01/simplest-virus-fork-bomb.html" title="Simplest Virus – Fork Bomb">Simplest Virus – Fork Bomb</a></li></ul></div>]]></content:encoded> <wfw:commentRss>http://viralpatel.net/blogs/2009/09/take-database-automate-backup-website.html/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Gartner&#8217;s Hype Cycle Special Report for 2009</title><link>http://viralpatel.net/blogs/2009/09/gartners-hype-cycle-special-report-2009.html</link> <comments>http://viralpatel.net/blogs/2009/09/gartners-hype-cycle-special-report-2009.html#comments</comments> <pubDate>Tue, 01 Sep 2009 12:50:15 +0000</pubDate> <dc:creator>Viral Patel</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[entrepreneur]]></category> <category><![CDATA[gartner hype cycle]]></category> <category><![CDATA[Web 2.0]]></category><guid isPermaLink="false">http://viralpatel.net/blogs/?p=1729</guid> <description><![CDATA[This is a Hype Cycle Chart, which Gartner is using for past many years now. As is known, it demystifies the Hype and helps find the Right Technology to invest in at the Right Time. Gartner&#8217;s Hype Cycle characterizes the typical progression of an emerging technology, from over enthusiasm through a period of disillusionment to [...]]]></description> <content:encoded><![CDATA[<p>This is a Hype Cycle Chart, which Gartner is using for past many years now. As is known, it demystifies the Hype and helps find the Right Technology to invest in at the Right Time.</p><p>Gartner&#8217;s Hype Cycle characterizes the typical progression of an emerging technology, from over enthusiasm through a period of disillusionment to an eventual understanding of the technology&#8217;s relevance and role in a market or domain.<br /> <img src="http://img.viralpatel.net/2009/09/Gartner-Hype-Cycle-characterize.jpg" alt="Gartner-Hype-Cycle-characterize" title="Gartner-Hype-Cycle-characterize" width="673" height="512" class="aligncenter size-full wp-image-1731" /><br /> Also, It has a very interesting depiction which can be useful to decide “Which Technologies to Invest In &#038; How”… It’s called Priority Matrix.</p><p>The Priority Matrix is a tool for prioritizing emerging technologies by forcing technology planners to look beyond the hype and assess technology opportunities in terms of their relative impact on the enterprise and the timing of that impact.<br /> <img src="http://img.viralpatel.net/2009/09/priority-martix.jpg" alt="priority-martix" title="priority-martix" width="673" height="445" class="aligncenter size-full wp-image-1732" /></p><div id="relatedpost"><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://viralpatel.net/blogs/2010/10/introduction-html5-domstorage-api-example.html" title="Introduction to HTML5 DOMStorage API with Example">Introduction to HTML5 DOMStorage API with Example</a></li><li><a href="http://viralpatel.net/blogs/2010/06/facebook-facts-you-didnt-know.html" title="Facebook: Facts you probably didnt know">Facebook: Facts you probably didnt know</a></li><li><a href="http://viralpatel.net/blogs/2010/01/oembed-open-format-web-developers.html" title="oEmbed: An Open Format Every Developer Should Know About">oEmbed: An Open Format Every Developer Should Know About</a></li><li><a href="http://viralpatel.net/blogs/2009/05/gravatar-manage-your-user-avatars-for-free.html" title="Gravatar: Manage your user avatars for free">Gravatar: Manage your user avatars for free</a></li><li><a href="http://viralpatel.net/blogs/2009/05/web-30-is-around-the-corner.html" title="Web 3.0 is around the corner !">Web 3.0 is around the corner !</a></li><li><a href="http://viralpatel.net/blogs/2009/05/capture-website-screenshot-screenshot-capture-utilities.html" title="Capture Website Screenshot with screenshot capture utilities">Capture Website Screenshot with screenshot capture utilities</a></li><li><a href="http://viralpatel.net/blogs/2009/03/chrome-experiment-googles-new-site-showcase-chrome-javascript.html" title="Chrome Experiment: Google&#8217;s new site to showcase Chrome and JavaScript">Chrome Experiment: Google&#8217;s new site to showcase Chrome and JavaScript</a></li></ul></div>]]></content:encoded> <wfw:commentRss>http://viralpatel.net/blogs/2009/09/gartners-hype-cycle-special-report-2009.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Shell Script to Rename &amp; Move files in Unix</title><link>http://viralpatel.net/blogs/2009/08/shell-script-rename-moving-files-unix.html</link> <comments>http://viralpatel.net/blogs/2009/08/shell-script-rename-moving-files-unix.html#comments</comments> <pubDate>Thu, 27 Aug 2009 13:55:15 +0000</pubDate> <dc:creator>Viral Patel</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[Unix Shell Script]]></category><guid isPermaLink="false">http://viralpatel.net/blogs/?p=1698</guid> <description><![CDATA[Problem Statement: I have few files in source directory. I have to move them to another destination directory. The source directory have *.txt files that needs to be moved to destination directory. The destination filename should be *.txt.backup. So how to accomplish the above task in Unix Shell Script? Well the solution is simple: Run [...]]]></description> <content:encoded><![CDATA[<p><strong>Problem Statement:</strong> I have few files in <strong>source</strong> directory. I have to move them to another <strong>destination</strong> directory. The source directory have *.txt files that needs to be moved to destination directory. The destination filename should be *.txt.backup.</p><p>So how to accomplish the above task in Unix Shell Script?</p><p>Well the solution is simple:</p><pre class="brush: cpp; title: ; notranslate">
cd source/
for file in *.txt
do
   mv &quot;${file}&quot; ../destination/&quot;${file}.backup&quot;
</pre><p>Run a loop for each txt file in <strong>source/</strong> directory and call mv command with parameters.</p><p>Does the above problem have a simpler solution than this?</p><div id="relatedpost"><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://viralpatel.net/blogs/2010/02/some-useful-unix-file-finding-commands.html" title="Some Useful Unix File Finding Commands">Some Useful Unix File Finding Commands</a></li><li><a href="http://viralpatel.net/blogs/2010/01/unix-shell-script-line-ending-executable-issue-subversion.html" title="Unix Shell Script Line Ending &#038; Executable Issue with Subversion">Unix Shell Script Line Ending &#038; Executable Issue with Subversion</a></li><li><a href="http://viralpatel.net/blogs/2009/11/shell-script-replace-text-variables-multiple-files-unix.html" title="Replace Text in Variables &#038; Single/Multiple-Files in UNIX">Replace Text in Variables &#038; Single/Multiple-Files in UNIX</a></li><li><a href="http://viralpatel.net/blogs/2009/08/generate-random-number-unix-shell-script.html" title="Generate Random Number in UNIX Shell Script">Generate Random Number in UNIX Shell Script</a></li><li><a href="http://viralpatel.net/blogs/2009/07/writing-functions-in-shell-script.html" title="Writing Functions in Shell Script">Writing Functions in Shell Script</a></li><li><a href="http://viralpatel.net/blogs/2009/05/how-to-execute-command-prompt-command-view-output-java.html" title="How to execute a command prompt command &#038; view output in Java">How to execute a command prompt command &#038; view output in Java</a></li><li><a href="http://viralpatel.net/blogs/2008/12/how-to-reset-mysql-root-password.html" title="How to: Reset MySQL root password">How to: Reset MySQL root password</a></li></ul></div>]]></content:encoded> <wfw:commentRss>http://viralpatel.net/blogs/2009/08/shell-script-rename-moving-files-unix.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: viralpatel.net @ 2012-02-09 02:52:30 -->
