<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hacking-Gurus &#187; Linux</title>
	<atom:link href="http://www.hacking-gurus.net/category/server-security/linux-unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hacking-gurus.net</link>
	<description>Security Blog</description>
	<lastBuildDate>Thu, 19 Jan 2012 21:06:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>OSI Model Explained..</title>
		<link>http://www.hacking-gurus.net/2009/09/22/osi-model-explained/</link>
		<comments>http://www.hacking-gurus.net/2009/09/22/osi-model-explained/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 15:11:46 +0000</pubDate>
		<dc:creator>r00t</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Tutorialz]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[osi]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://www.hacking-gurus.net/?p=152</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.hacking-gurus.net/2009/09/22/osi-model-explained/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "new";
		digg_title = "OSI+Model+Explained..";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p><img class="aligncenter" src="http://img139.imageshack.us/img139/9465/68osiexplim1.gif" alt="" width="712" height="1040" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacking-gurus.net/2009/09/22/osi-model-explained/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is ARP Poisoning? and how to fix it!</title>
		<link>http://www.hacking-gurus.net/2009/08/24/what-is-arp-poisoning-and-how-to-fix-it/</link>
		<comments>http://www.hacking-gurus.net/2009/08/24/what-is-arp-poisoning-and-how-to-fix-it/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 16:06:34 +0000</pubDate>
		<dc:creator>r00t</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Network Tools]]></category>
		<category><![CDATA[Tutorialz]]></category>
		<category><![CDATA[Address Resolution Protocol]]></category>
		<category><![CDATA[Arp Cache]]></category>
		<category><![CDATA[Arp Poisoning]]></category>
		<category><![CDATA[Arp Request]]></category>
		<category><![CDATA[Arp Requests]]></category>
		<category><![CDATA[Arp Table]]></category>
		<category><![CDATA[Company Contact]]></category>
		<category><![CDATA[Contact List]]></category>
		<category><![CDATA[Hp Laserjet Printer]]></category>
		<category><![CDATA[Ip Addresses]]></category>
		<category><![CDATA[Local Network]]></category>
		<category><![CDATA[Mac Address]]></category>
		<category><![CDATA[Mac Addresses]]></category>
		<category><![CDATA[Mayhem]]></category>
		<category><![CDATA[Message Types]]></category>
		<category><![CDATA[Receptionist]]></category>
		<category><![CDATA[Reverse Arp]]></category>
		<category><![CDATA[Roll Call]]></category>
		<category><![CDATA[Short Term Memory]]></category>
		<category><![CDATA[Social Engineering]]></category>

		<guid isPermaLink="false">http://www.hacking-gurus.net/2009/08/24/what-is-arp-poisoning-and-how-to-fix-it/</guid>
		<description><![CDATA[Hackers lie. Skillful hackers lie well. And well-rounded hackers can lie both to people and to machines. Lying to people, known as &#34;social engineering,&#34; involves tactics (detailed at length by convicted hacker Kevin Mitnick) such as posing as a company&#8217;s employee so the company&#8217;s real employees will blab secrets freely. Lying to machines involves lots [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.hacking-gurus.net/2009/08/24/what-is-arp-poisoning-and-how-to-fix-it/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "new";
		digg_title = "What+is+ARP+Poisoning%3F+and+how+to+fix+it%21";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "Hackers lie. Skillful hackers lie well. And well-rounded hackers can lie both to people and to machines.Lying to people, known as &quot;social engineering,&quot; involves tactics (detailed at length by convicted hacker Kevin Mitnick) such as posing as a company&#8217;s employee so the company&#8217;s real employees will blab secrets freely. Lying to...";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>Hackers lie. Skillful hackers lie well. And well-rounded hackers can lie both to people and to machines.</p>
<p><span id="more-133"></span></p>
<p>Lying to people, known as &quot;social engineering,&quot; involves tactics (detailed at length by convicted hacker <a href="http://www.amazon.com/exec/obidos/ASIN/0471237124/qid=1052258577/sr=2-1/ref=sr_2_1/104-0257092-3848757">Kevin Mitnick</a>) such as posing as a company&#8217;s employee so the company&#8217;s real employees will blab secrets freely. Lying to machines involves lots of different techniques, and a commonly used one &#8212; ARP Cache Poisoning &#8212; is the focus of this article. ARP poisoning enables local hackers to cause general networking mayhem. Because it&#8217;s mostly &quot;incurable,&quot; every administrator should be aware of how this attack works.</p>
<h4>ARP Refresher</h4>
<p>In <a href="http://www.watchguard.com/infocenter/editorial/135250.asp">Foundations: What Are NIC, MAC, and ARP?</a>, we explained that <a href="http://www.watchguard.com/glossary/a.asp#ARP">Address Resolution Protocol (ARP)</a> is how network devices associate <a href="http://www.watchguard.com/glossary/m.asp#MAC_address">MAC addresses</a> with <a href="http://www.watchguard.com/glossary/i.asp#IP_address">IP Addresses</a> so that devices on the local network can find each other. ARP is basically a form of networking roll call.</p>
<p>ARP, a very simple protocol, consists of merely four basic message types:</p>
<ol>
<li>
<p><strong>An ARP Request</strong>. Computer A asks the network, &quot;Who has this IP address?&quot;</p>
</li>
<li>
<p><strong>An ARP Reply</strong>. Computer B tells Computer A, &quot;I have that IP. My MAC address is [whatever it is].&quot;</p>
</li>
<li>
<p><strong>A Reverse ARP Request (RARP)</strong>. Same concept as ARP Request, but Computer A asks, &quot;Who has this MAC address?&quot;</p>
</li>
<li>
<p><strong>A RARP Reply</strong>. Computer B tells Computer A, &quot;I have that MAC. My IP address is [whatever it is]&quot;</p>
</li>
</ol>
<p>All network devices have an <em>ARP table</em>, a short-term memory of all the IP addresses and MAC addresses the device has already matched together. The ARP table ensures that the device doesn&#8217;t have to repeat ARP Requests for devices it has already communicated with.</p>
<p>Here&#8217;s an example of a normal ARP communication. Jessica, the receptionist, tells Word to print the latest company contact list. This is her first print job today. Her computer (IP address 192.168.0.16) wants to send the print job to the office&#8217;s HP LaserJet printer (IP address 192.168.0.45). So Jessica&#8217;s computer broadcasts an ARP Request to the entire local network asking, &quot;Who has the IP address, 192.168.0.45?&quot; as seen in <a href="http://www.watchguard.com/archive/files/images/ARPpoison1.jpg">Diagram 1</a>.</p>
<p>All the devices on the network ignore this ARP Request, except for the HP LaserJet printer. The printer recognizes its own IP in the request and sends an ARP Reply: &quot;Hey, my IP address is 192.168.0.45. Here is my MAC address: 00:90:7F:12:DE:7F,&quot; as in <a href="http://www.watchguard.com/archive/files/images/ARPpoison2.jpg">Diagram 2</a>.</p>
<p>Now Jessica&#8217;s computer knows the printer&#8217;s MAC address. It sends the print job to the correct device, and it also associates the printer&#8217;s MAC address of 00:90:7F:12:DE:7F with the printer&#8217;s IP address of 192.168.0.45 in its ARP table.</p>
<h4>Hey ARP, Did You Know Gullible Is Not in the Dictionary?</h4>
<p>The founders of networking probably simplified the communication process for ARP so that it would function efficiently. Unfortunately, this simplicity also leads to major insecurity. Know why my short description of ARP doesn&#8217;t mention any sort of <a href="http://www.watchguard.com/glossary/a.asp#authentication">authentication</a> method? Because in ARP, there is none.</p>
<p>ARP is very trusting, as in, gullible. When a networked device sends an ARP request, it simply trusts that when the ARP reply comes in, it really does come from the correct device. ARP provides no way to verify that the responding device is really who it says it is. In fact, many operating systems implement ARP so trustingly that devices that have not made an ARP request still accept ARP replies from other devices.</p>
<p>OK, so think like a malicious hacker. You just learned that the ARP protocol has no way of verifying ARP replies. You&#8217;ve learned many devices accept ARP replies before even requesting them. Hmmm. Well, why don&#8217;t I craft a perfectly valid, yet malicious, ARP reply containing any arbitrary IP and MAC address I choose? Since my victim&#8217;s computer will blindly accept the ARP entry into its ARP table, I can force my victim&#8217;s gullible computer into thinking any IP is related to any MAC address I want. Better yet, I can <em><a href="http://www.watchguard.com/glossary/b.asp#broadcast">broadcast</a></em> my faked ARP reply to my victim&#8217;s entire network and fool <em>all</em> his computers. Muahahaha<em>haa!</em></p>
<p>Back to reality. Now you probably understand why this common technique is called ARP Cache Poisoning (or just ARP Poisoning): the attacker lies to a device on your network, corrupting or &quot;poisoning&quot; its understanding of where other devices are. This frighteningly simple procedure enables the hacker to cause a variety of networking woes, described next.</p>
<h4>All Your ARP Are Belong To Us!</h4>
<p>The ability to associate any IP address with any MAC address provides hackers with many attack vectors, including Denial of Service, Man in the Middle, and MAC Flooding.</p>
<h4>Denial of Service</h4>
<p>A hacker can easily associate an operationally significant IP address to a false MAC address. For instance, a hacker can send an ARP reply associating your network router&#8217;s IP address with a MAC address that doesn&#8217;t exist. Your computers believe they know where your default gateway is, but in reality they&#8217;re sending any packet whose destination is not on the local segment, into the Great Bit Bucket in the Sky. In one move, the hacker has cut off your network from the Internet.</p>
<h4>Man in the Middle</h4>
<p>A hacker can exploit ARP Cache Poisoning to intercept network traffic between two devices in your network. For instance, let&#8217;s say the hacker wants to see all the traffic between your computer, 192.168.0.12, and your Internet router, 192.168.0.1. The hacker begins by sending a malicious ARP &quot;reply&quot; (for which there was no previous request) to your router, associating his computer&#8217;s MAC address with 192.168.0.12 (see <a href="http://www.watchguard.com/archive/files/images/ARPpoison3.jpg">Diagram 3</a>).</p>
<p>Now your router thinks the <em>hacker&#8217;s</em> computer is <em>your</em> computer.</p>
<p>Next, the hacker sends a malicious ARP reply to <em>your</em> computer, associating his MAC Address with 192.168.0.1 (see <a href="http://www.watchguard.com/archive/files/images/ARPpoison4.jpg">Diagram 4</a>).</p>
<p>Now your machine thinks the hacker&#8217;s <em>computer</em> is your <em>router</em>.</p>
<p>Finally, the hacker turns on an operating system feature called <em>IP forwarding</em>. This feature enables the hacker&#8217;s machine to forward any network traffic it receives from your computer to the router (shown in <a href="http://www.watchguard.com/archive/files/images/ARPpoison5.jpg">Diagram 5</a>).</p>
<p>Now, whenever you try to go to the Internet, your computer sends the network traffic to the hacker&#8217;s machine, which it then forwards to the real router. Since the hacker is still forwarding your traffic to the Internet router, you remain unaware that he is intercepting all your network traffic and perhaps also sniffing your clear text passwords or <a href="http://www.watchguard.com/glossary/s.asp#session_hijacking">hijacking</a> your secured Internet sessions.</p>
<h4>MAC Flooding</h4>
<p><em>MAC Flooding</em> is an ARP Cache Poisoning technique aimed at network switches. (If you need a reminder about the difference between a hub and a switch, see this <a href="http://www.watchguard.com/archive/files/images/Hub-Switch.sidebar.htm">sidebar</a>.) When certain switches are overloaded they often drop into a &quot;hub&quot; mode. In &quot;hub&quot; mode, the switch is too busy to enforce its port security features and just broadcasts all network traffic to every computer in your network. By flooding a switch&#8217;s ARP table with a ton of spoofed ARP replies, a hacker can overload many vendor&#8217;s switches and then <a href="http://www.robertgraham.com/pubs/sniffing-faq.html">packet sniff</a> your network while the switch is in &quot;hub&quot; mode.</p>
<h4>Scared? Good, Now Calm Down!</h4>
<p>This is scary stuff. ARP Cache Poisoning is trivial to exploit yet it can result in very significant network compromise. However, before you jump to Defcon-7, notice the major mitigating factor: only local attackers can exploit ARP&#8217;s insecurities. A hacker would need either physical access to your network, or control of a machine on your local network, in order to deliver an ARP Cache Poisoning attack. ARP&#8217;s insecurities can&#8217;t be exploited remotely.</p>
<p>That said, hackers have been known to gain local access to networks. Good network administrators should be aware of ARP Cache Poisoning techniques.</p>
<p>Since ARP Cache Poisoning results from a lack of security in a protocol that is required for TCP/IP networking to function, you can&#8217;t fix it. But you can help prevent ARP attacks using the following techniques.</p>
<h4>For Small Networks</h4>
<p>If you manage a small network, you might try using static IP addresses and static ARP tables. Using CLI commands, such as &quot;ipconfig /all&quot; in Windows or &quot;ifconfig&quot; in &#8216;NIX, you can learn the IP address and MAC address of every device in your network. Then using the &quot;arp -s&quot; command, you can add static ARP entries for all your known devices. &quot;Static&quot; means unchanging; this prevents hackers from adding spoofed ARP entries for devices in your network. You can even create a login script that would add these static entries to your PCs as they boot.</p>
<p>However, static ARP entries are hard to maintain; impossible in large networks. That&#8217;s because every device you add to your network has to be manually added to your ARP script or entered into each machine&#8217;s ARP table. But if you manage fewer than two dozen devices, this technique might work for you.</p>
<h4>For Large Networks</h4>
<p>If you manage a large network, research your network switch&#8217;s &quot;Port Security&quot; features. One &quot;Port Security&quot; feature lets you force your switch to allow only one MAC address for each physical port on the switch. This feature prevents hackers from changing the MAC address of their machine or from trying to map more than one MAC address to their machine. It can often help prevent ARP-based Man-in-the-Middle attacks.</p>
<h4>For All Networks</h4>
<p>Your best defense is understanding ARP Poisoning and monitoring for it. I&#8217;d highly recommend deploying an ARP monitoring tool, such as <a href="http://www.securityfocus.com/tools/142">ARPwatch</a>, to alert you when unusual ARP communication occurs. This kind of vigilance is still the greatest weapon against all kinds of attack &#8212; for, as Robert Louis Stevenson wrote, <em>&quot;The cruelest lies are often told in silence.&quot;</em></p>
<h4>Resources:</h4>
<p><a href="http://www.sans.org/rr/threats/address.php">Address Resolution Protocol Spoofing and Man-in-the-Middle Attacks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacking-gurus.net/2009/08/24/what-is-arp-poisoning-and-how-to-fix-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TTL and Traceroute Explained</title>
		<link>http://www.hacking-gurus.net/2009/08/24/ttl-and-traceroute-explained/</link>
		<comments>http://www.hacking-gurus.net/2009/08/24/ttl-and-traceroute-explained/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 15:58:51 +0000</pubDate>
		<dc:creator>r00t</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Network Tools]]></category>
		<category><![CDATA[Tutorialz]]></category>
		<category><![CDATA[Act]]></category>
		<category><![CDATA[Bandwidth]]></category>
		<category><![CDATA[Control Message]]></category>
		<category><![CDATA[Good Reason]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[Imagine]]></category>
		<category><![CDATA[Internet Control Message Protocol]]></category>
		<category><![CDATA[Internet Protocol Ip]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[Mail Server]]></category>
		<category><![CDATA[Network Administrator]]></category>
		<category><![CDATA[Router]]></category>
		<category><![CDATA[Simplicity]]></category>
		<category><![CDATA[Thing Of Beauty]]></category>
		<category><![CDATA[traceroute]]></category>
		<category><![CDATA[Ttl]]></category>
		<category><![CDATA[Van Jacobson]]></category>

		<guid isPermaLink="false">http://www.hacking-gurus.net/2009/08/24/ttl-and-traceroute-explained/</guid>
		<description><![CDATA[Introduction Imagine a world without tracert/traceroute. You would be sending your precious packets out into the big wide world with no idea where they go and what they might meet when they are out there. When you set up routers with complex route statements you wouldn&#8217;t really know if everything you want is travelling the [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.hacking-gurus.net/2009/08/24/ttl-and-traceroute-explained/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "new";
		digg_title = "TTL+and+Traceroute+Explained";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "Introduction     Imagine a world without tracert/traceroute. You would be sending your precious packets out into the big wide world with no idea where they go and what they might meet when they are out there. When you set up routers with complex route statements you wouldn&#8217;t really know if everything you want is travelling the path you intend...";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p><strong><u></u></strong></p>
<p><strong><u>Introduction </u></strong>    </p>
<p>Imagine a world without tracert/traceroute. You would be sending your precious packets out into the big wide world with no idea where they go and what they might meet when they are out there. When you set up routers with complex route statements you wouldn&#8217;t really know if everything you want is travelling the path you intend it to. When that pesky machine across the internet is &quot;hammering&quot; away at your mail server and you&#8217;d really like to know where it is you would be &quot;blind&quot;. Enter traceroute, the network administrator&#8217;s personal &quot;tracker&quot;.    <br />Traceroute was originally conceived as a hack by Van Jacobson in about 1988. He needed to find a way to delineate the path his packets were taking through a routed network to troubleshoot some problems. There were no tools available to do this and there was no clear and easy answer. With knowledge of how the network works Van created traceroute. The solution is elegant in it&#8217;s pure simplicity. It&#8217;s all in the TTL&#8230;..     <br />NOTE: My definition of a &quot;hack&quot; has always been that it is the use of the knowledge regarding how a system works to obtain results that the system was not intended to provide. As such I have always been extremely impressed by the pure simplicity of traceroute as a perfect example of a true &quot;hack&quot; of a system. It&#8217;s a little thing of beauty. </p>
<p><span id="more-131"></span></p>
<p><strong><u>What&#8217;s a TTL? </u></strong></p>
<p> <strong>
<p></p>
<p> The TTL, or Time To Live, is a field in the structure of an Internet Protocol, (IP), packet. Without a TTL a misrouted or mis-addressed packet sent out onto a network would forever travel cyberspace using up bandwidth for no good reason. The TTL is placed in the packets so that each router can check it and act accordingly. If a router that is not the destination of a packet receives one that has a TTL of 1 or 0 it must drop the packet, (not forward it onwards), and send an Internet Control Message Protocol, (ICMP), Time_Exceeded, (Type 11), packet to the originating IP address informing it that, to all intents and purposes, the destination IP address is &quot;too far away&quot; to be contacted. If a packet is received by a router that is not the destination of the packet then the router must decrement the TTL by one and forward the packet on to the next router, (or the destination IP address if that is the next &quot;hop&quot;). In this way control is maintained over messed up addresses or routes and the packets cannot wander forever.     <br />Van&#8217;s Hack.     <br />Knowing that the TTL is there for a reason and that a given response must occur if the number of hops required to reach the destination exceeds the TTL in the packet Van saw that this could be utilized to determine each router the packet passed through on it&#8217;s way to the destination address. This can be demonstrated manually and you can try this as you go if you like. Open a command/DOS prompt and type:-     <br />ping yahoo.com &lt;ENTER&gt;     <br /><strong></strong></strong>
<p><strong>The response will be:- </strong></p>
<p> <strong>
<p></p>
<p> Pinging yahoo.com [66.218.71.114] with 32 bytes of data:     <br />Reply from 216.109.127.30: bytes=32 time=40ms TTL=49     <br />Reply from 216.109.127.30: bytes=32 time=40ms TTL=49     <br />Reply from 216.109.127.30: bytes=32 time=40ms TTL=49     <br />Reply from 216.109.127.30: bytes=32 time=50ms TTL=49 </strong>
<p>Good, Yahoo is up&#8230;. But we have no idea how the packet got there. We can see that 32 bytes were sent, that it took an average of 42 milliseconds to get there and there&#8217;s that TTL thing set at 49. Knowing that most systems set the TTL at certain set points I can make a guess that the original TTL was 64 and, based on that assumption, I can guess that Yahoo is some 16 hops away from me&#8230;&#8230; But where? Try this:-     <br />Ping -i 1 yahoo.com &lt;ENTER&gt; </p>
<p>The -i switch allows you to set the TTL in the packet to anything you please between 1 and 255. Knowing that, we know that the first router should drop the packet if we set the TTL to 1 and send and ICMP Type 11 packet in return, (Time_Exceeded).     <br />The response will be:-     <br />Pinging yahoo.com [66.218.71.114] with 32 bytes of data:     <br />Reply from 207.XXX.XXX.1: TTL expired in transit.     <br />Reply from 207.XXX.XXX.1: TTL expired in transit.     <br />Reply from 207.XXX.XXX.1: TTL expired in transit.     <br />Reply from 207.XXX.XXX.1: TTL expired in transit.     <br />Well&#8230;. That&#8217;s the first router in the chain, (it&#8217;s actually my firewall. Your result will differ but it will be the first hop on the route to Yahoo from your computer). If we now set the TTL to 2 then the next router will send our Time_Exceeded packet back to us. Try:-     <br />ping -i 2 yahoo.com &lt;ENTER&gt;     <br />The response is:-     <br />Pinging yahoo.com [66.218.71.114] with 32 bytes of data:     <br />Reply from 207.XXX.XXX.17: TTL expired in transit.     <br />Reply from 207.XXX.XXX.17: TTL expired in transit.     <br />Reply from 207.XXX.XXX.17: TTL expired in transit.     <br />Reply from 207.XXX.XXX.17: TTL expired in transit.     <br />Nice&#8230; Thats my border router. Now I have two steps in the route. As long as I keep incrementing the TTL in the -i switch of the ping command I can manually tracert as far along the route to Yahoo as I get the Time_Exceeded responses from the routers. When you hit a firewall that will not respond to ping requests you will receive a &quot;Request timed out&quot; message. Usually this is the point you would give up, but it&#8217;s worth going another step or two because sometimes the firewall is set to not respond to pings themselves and not to allow them to the first internal router but they may allow them to the specific host you are trying to contact so it is worth going the extra mile.     <br />Am I restricted to ICMP Pings?     <br />Not at all. Just because your target has a firewall in place that stops pings doesn&#8217;t mean you can&#8217;t enumerate internal devices on the target network. Let&#8217;s say it&#8217;s a web server and the end of the traceroute looks like this:- (NOTE: It doesn&#8217;t for Yahoo and at this point do not continue to experiment with Yahoo or any other domain you don&#8217;t have rights or permission to do this against.)     <br />14 70 ms 70 ms 80 ms unknown.level3.net [64.152.69.30]     <br />15 70 ms 70 ms 80 ms unknown-66-218-82-226.yahoo.com [66.218.82.226]     <br />16 * * * Request timed out.     <br />17 * * * Request timed out.     <br />18 70 ms 70 ms 80 ms <a href="http://www.yahoo.com">www.yahoo.com</a> [66.218.71.114]     <br />We know that <a href="http://www.yahoo.com">www.yahoo.com</a> accepts HTTP requests on port 80 so we know that the firewall will let them in and we are really curious to see what those two &quot;Request timed out&quot; devices are. So you can fire up your favorite packet crafter, make up a packet that is a simple SYN request on port 80 to <a href="http://www.yahoo.com">www.yahoo.com</a> and set the TTL to 16 and send it out. With your trusty packet sniffer running you will receive the Time_Expired on your HTTP SYN packet. With some research as to the make-up of that packet you might be able to determine the operating system of the device, (Cisco IOS etc.). This works because even though HTTP is a TCP protocol the packets themselves are &quot;wrapped&quot; in the Internet Protocol, (IP), containing the TTL information and the required response to a packet that has &quot;run out of hops&quot; is the ICMP Time_Exceeded.     <br />Conclusion     <br />As you can see a very simple and innocuous looking part of a packet that has a simple function has been &quot;subverted&quot; into being a more powerful tool than it was ever intended. Today, every network administrator uses traceroute/tracert daily and most have no idea they are using a &quot;hacking tool&quot;. Others have taken Van&#8217;s original concept and improved upon it and found other ways to &quot;exploit&quot; the principle quite successfully but in my opinion his &quot;hack&quot; is still the most elegant.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacking-gurus.net/2009/08/24/ttl-and-traceroute-explained/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Crack MD5 Password Hash Online</title>
		<link>http://www.hacking-gurus.net/2009/04/30/crack-md5-password-hash-online/</link>
		<comments>http://www.hacking-gurus.net/2009/04/30/crack-md5-password-hash-online/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 03:23:19 +0000</pubDate>
		<dc:creator>r00t</dc:creator>
				<category><![CDATA[Database Security]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Password Recovery]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorialz]]></category>
		<category><![CDATA[Website Security]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[hacked]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[passwd]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web security]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.hacking-gurus.net/?p=111</guid>
		<description><![CDATA[Hello , below is some links to crack md5 password hashes online , i will keep this post updated with all online links for cracking md5. http://gdataonline.com http://md5.rednoize.com http://ice.breaker.free.fr http://www.milw0rm.com/md5/ http://shm.hard-core.pl/md5/ http://www.hashchecker.com http://lasecwww.epfl.ch/%7Eoechslin/projects/ophcrack/ http://md5.benramsey.com http://md5.altervista.org http://shm.hard-core.pl http://plain-text.info http://www.passcracking.ru/ http://www.securitystats.com/tools/hashcrack.php http://www.xmd5.org/index_en.htm]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.hacking-gurus.net/2009/04/30/crack-md5-password-hash-online/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "new";
		digg_title = "Crack+MD5+Password+Hash+Online";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "Hello ,below is some links to crack md5 password hashes online , i will keep this post updated with all online links for cracking md5.http://gdataonline.comhttp://md5.rednoize.comhttp://ice.breaker.free.frhttp://www.milw0rm.com/md5/http://shm.hard-core.pl/md5/http://www.hashchecker.comhttp://lasecwww.epfl.ch/%7Eoechslin/projects/ophcrack/http://md5.benramsey.comhttp://md5.altervista.orghttp://shm.hard-core.plhttp://plain-text.infohttp://www.passcracking.ru/http://www.securitystats.com/tools/hashcrack.phphttp://www.xmd5.org/index_en.htm";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>Hello ,</p>
<p>below is some links to crack md5 password hashes online , i will keep this post updated with all online links for cracking md5.</p>
<p><span id="more-111"></span></p>
<p><a href="http://gdataonline.com" target="_blank">http://gdataonline.com</a><br />
<a href="http://md5.rednoize.com" target="_blank">http://md5.rednoize.com</a><br />
<a href="http://ice.breaker.free.fr" target="_blank">http://ice.breaker.free.fr</a><br />
<a href="http://www.milw0rm.com/md5/" target="_blank"><strong>http://www.milw0rm.com/md5/</strong></a><br />
<a href="http://shm.hard-core.pl/md5/" target="_blank">http://shm.hard-core.pl/md5/</a><br />
<a href="http://www.hashchecker.com" target="_blank">http://www.hashchecker.com</a><br />
<a href="http://lasecwww.epfl.ch/%7Eoechslin/projects/ophcrack/" target="_blank">http://lasecwww.epfl.ch/%7Eoechslin/projects/ophcrack/</a><br />
<a href="http://md5.benramsey.com" target="_blank">http://md5.benramsey.com</a><br />
<a href="http://md5.altervista.org" target="_blank">http://md5.altervista.org</a><br />
<a href="http://shm.hard-core.pl" target="_blank">http://shm.hard-core.pl</a><br />
<a href="http://plain-text.info" target="_blank">http://plain-text.info</a><br />
<a href="http://www.passcracking.ru/" target="_blank">http://www.passcracking.ru/</a><br />
<a href="http://www.securitystats.com/tools/hashcrack.php" target="_blank">http://www.securitystats.com/tools/hashcrack.php</a><br />
<a href="http://www.xmd5.org/index_en.htm" target="_blank">http://www.xmd5.org/index_en.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacking-gurus.net/2009/04/30/crack-md5-password-hash-online/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>How to Backing up and Restoring Your MySQL Server</title>
		<link>http://www.hacking-gurus.net/2009/04/30/how-to-backing-up-and-restoring-your-mysql-server/</link>
		<comments>http://www.hacking-gurus.net/2009/04/30/how-to-backing-up-and-restoring-your-mysql-server/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 03:05:55 +0000</pubDate>
		<dc:creator>r00t</dc:creator>
				<category><![CDATA[Database Security]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorialz]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[web security]]></category>

		<guid isPermaLink="false">http://www.hacking-gurus.net/?p=107</guid>
		<description><![CDATA[Hello , i have created a small bash script to backup complete mysql server and then restore it. you can download the script and configure it as per your need. Download : mysql-backup.sh 29-Apr-2009 08:31 488 mysql-restore.sh 29-Apr-2009 08:31 1.0K you need to change permissions for this script to be executed change permissions using : [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.hacking-gurus.net/2009/04/30/how-to-backing-up-and-restoring-your-mysql-server/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "new";
		digg_title = "How+to+Backing+up+and+Restoring+Your+MySQL+Server";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "Hello ,i have created a small bash script to backup complete mysql server and then restore it. you can download the script and configure it as per your need.Download :      mysql-backup.sh         29-Apr-2009 08:31  488      mysql-restore.sh        29-Apr-2009 08:31  1.0Kyou need to change permissions for this script to be executed change permissions...";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>Hello ,</p>
<p>i have created a small bash script to backup complete mysql server and then restore it. you can download the script and configure it as per your need.</p>
<p><span id="more-107"></span></p>
<p>Download :</p>
<pre>      <a href="../../../../../downloads/mysql-backup.sh">mysql-backup.sh</a>         29-Apr-2009 08:31  488
      <a href="../../../../../downloads/mysql-restore.sh">mysql-restore.sh</a>        29-Apr-2009 08:31  1.0K</pre>
<p>you need to change permissions for this script to be executed change permissions using :</p>
<p><em>chmod +x mysql-backup.sh</em></p>
<p><em>chmod +x mysql-restore.sh</em></p>
<p>This script requres mysql server, mysql clinet  and mysqldump to take backup of databases and then to restore it ,</p>
<p>Please post you feedback if you got any problem using this script please comment below .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacking-gurus.net/2009/04/30/how-to-backing-up-and-restoring-your-mysql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion Backup and Restore</title>
		<link>http://www.hacking-gurus.net/2009/04/26/subversion-backup-and-restore/</link>
		<comments>http://www.hacking-gurus.net/2009/04/26/subversion-backup-and-restore/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 17:30:58 +0000</pubDate>
		<dc:creator>r00t</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorialz]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.hacking-gurus.net/?p=92</guid>
		<description><![CDATA[Hello guys , i hope most of you have subversion installed and running , and you might have got chance        to  take backup of you subversion repositories. i have created couple of scripts that can take mass backup of all repositores in your   subversion repositories parent directory also the other script restore all repositories , [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.hacking-gurus.net/2009/04/26/subversion-backup-and-restore/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "new";
		digg_title = "Subversion+Backup+and+Restore";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "Hello guys ,i hope most of you have subversion installed and running , and you might have got chance        to  take backup of you subversion repositories.i have created couple of scripts that can take mass backup of all repositores in your   subversion repositories parent directory also the other script restore all repositories , all you ...";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p><img class="alignleft size-thumbnail wp-image-93" title="subversion ogo" src="http://www.hacking-gurus.net/wp-content/uploads/2009/04/subversion_logo-384x332-150x150.png" alt="subversion ogo" width="150" height="150" /></p>
<p><span id="more-92"></span></p>
<p>Hello guys ,</p>
<p>i hope most of you have subversion installed and running , and you might have got chance        to  take <strong>backup</strong> of you subversion repositories.</p>
<p>i have created couple of scripts that can take mass backup of all repositores in your   subversion repositories parent directory also the other script restore all repositories , all you  need is to change path for backup place and your repositores folder and then enjoy while this script take backup of each repository automatically it saves a lot of time.</p>
<p>Download Both scripts :</p>
<p><a href="http://www.hacking-gurus.net/downloads/backup.sh" target="_self">Backup.sh</a></p>
<p><a href="http://www.hacking-gurus.net/downloads/restore.sh">Restore.sh</a></p>
<p><strong>Below is step by step procedure on how to use this script :</strong></p>
<p><strong>Please if you modify it don&#8217;t remove my name or links</strong></p>
<p>Step 1 ) upload <em>backup.sh</em> to you subversion server ,</p>
<p>Step 2) configure backup.sh according to your server requirements</p>
<p>Step 3) modify permissions for script using :</p>
<p><em>chmod +x backup.sh</em></p>
<p>Step 4) start the backup using : (* you should have permissions to directories on server where your repo exists)</p>
<p><em>sh backup.sh</em></p>
<p>Step 5) check backup logs using :</p>
<p><em>tail -f  {logfilepathhere}</em></p>
<p>Step 6)  Now Backup completed <img src='http://www.hacking-gurus.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  so you can compress backups files using :</p>
<p><em>tar cfz subversion_backup.tar.gz /home/svn/backups/full</em></p>
<p>Step 7) Move backup to new server where you want to take your svn or to some safe place</p>
<p>Step <img src='http://www.hacking-gurus.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Start the restore process &amp; upload restore.sh</p>
<p>Step 9) config paths in restore.sh as in step 2</p>
<p>Step 10) change permission of it using :</p>
<p><em>chmod +x restore.sh</em></p>
<p>Step 11)<em> </em>Execute the restore script :</p>
<p><em> sh restore.sh</em></p>
<p>Step 12) Every thing is restored you may go to bed for sleep now <img src='http://www.hacking-gurus.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Enjoy the script and do post your feedback , if anyone need subversion installation or backup or any other professional service you may contact me adeel.ahmad+hackinggurus<strong> at </strong>networkncc.com .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacking-gurus.net/2009/04/26/subversion-backup-and-restore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Reasons Websites get hacked</title>
		<link>http://www.hacking-gurus.net/2009/04/15/10-reasons-websites-get-hacked/</link>
		<comments>http://www.hacking-gurus.net/2009/04/15/10-reasons-websites-get-hacked/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 18:42:35 +0000</pubDate>
		<dc:creator>r00t</dc:creator>
				<category><![CDATA[Database Security]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorialz]]></category>
		<category><![CDATA[Website Security]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[DOS]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[hacked]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sql injection]]></category>

		<guid isPermaLink="false">http://www.hacking-gurus.net/?p=82</guid>
		<description><![CDATA[1. Cross site scripting (XSS) The problem: The “most prevalent and pernicious” Web application security vulnerability, XSS flaws happen when an application sends user data to a Web browser without first validating or encoding the content. This lets hackers execute malicious scripts in a browser, letting them hijack user sessions, deface Web sites, insert hostile [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.hacking-gurus.net/2009/04/15/10-reasons-websites-get-hacked/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "new";
		digg_title = "10+Reasons+Websites+get+hacked";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "1. Cross site scripting (XSS)The problem: The “most prevalent and pernicious” Web application security vulnerability, XSS flaws happen when an application sends user data to a Web browser without first validating or encoding the content. This lets hackers execute malicious scripts in a browser, letting them hijack user sessions, deface Web sites,...";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p><strong>1. Cross site scripting (XSS)</strong></p>
<p>The problem: The “most prevalent and pernicious” Web application security vulnerability, XSS flaws happen when an application sends user data to a Web browser without first validating or encoding the content. This lets hackers execute malicious scripts in a browser, letting them hijack user sessions, deface Web sites, insert hostile content and conduct phishing and malware attacks.</p>
<p><span id="more-82"></span></p>
<p>Attacks are usually executed with JavaScript, letting hackers manipulate any aspect of a page. In a worst-case scenario, a hacker could steal information and impersonate a user on a bank’s Web site, according to Snyder.</p>
<p>Real-world example: PayPal was targeted last year when attackers redirected PayPal visitors to a page warning users their accounts had been compromised. Victims were redirected to a phishing site and prompted to enter PayPal login information, Social Security numbers and credit card details. PayPal said it closed the vulnerability in June 2006.</p>
<p>How to protect users: Use a whitelist to validate all incoming data, which rejects any data that’s not specified on the whitelist as being good. This approach is the opposite of blacklisting, which rejects only inputs known to be bad. Additionally, use appropriate encoding of all output data. “Validation allows the detection of attacks, and encoding prevents any successful script injection from running in the browser,” OWASP says.</p>
<p><strong><br />
2. Injection flaws</strong></p>
<p>The problem: When user-supplied data is sent to interpreters as part of a command or query, hackers trick the interpreter — which interprets text-based commands — into executing unintended commands. “Injection flaws allow attackers to create, read, update, or delete any arbitrary data available to the application,” OWASP writes. “In the worst-case scenario, these flaws allow an attacker to completely compromise the application and the underlying systems, even bypassing deeply nested firewalled environments.”</p>
<p>Real-world example: Russian hackers broke into a Rhode Island government Web site to steal credit card data in January 2006. Hackers claimed the SQL injection attack stole 53,000 credit card numbers, while the hosting service provider claims it was only 4,113.</p>
<p>How to protect users: Avoid using interpreters if possible. “If you must invoke an interpreter, the key method to avoid injections is the use of safe APIs, such as strongly typed parameterized queries and object relational mapping libraries,” OWASP writes.</p>
<p><strong>3. Malicious file execution</strong></p>
<p>The problem: Hackers can perform remote code execution, remote installation of rootkits, or completely compromise a system. Any type of Web application is vulnerable if it accepts filenames or files from users. The vulnerability may be most common with PHP, a widely used scripting language for Web development.</p>
<p>Real-world example: A teenage programmer discovered in 2002 that Guess.com was vulnerable to attacks that could steal more than 200,000 customer records from the Guess database, including names, credit card numbers and expiration dates. Guess agreed to upgrade its information security the next year after being investigated by the Federal Trade Commission.</p>
<p>How to protect users: Don’t use input supplied by users in any filename for server-based resources, such as images and script inclusions. Set firewall rules to prevent new connections to external Web sites and internal systems.</p>
<p><strong>4. Insecure direct object reference</strong></p>
<p>The problem: Attackers manipulate direct object references to gain unauthorized access to other objects. It happens when URLs or form parameters contain references to objects such as files, directories, database records or keys.</p>
<p>Banking Web sites commonly use a customer account number as the primary key, and may expose account numbers in the Web interface.</p>
<p>“References to database keys are frequently exposed,” OWASP writes. “An attacker can attack these parameters simply by guessing or searching for another valid key. Often, these are sequential in nature.”</p>
<p>Real-world example: An Australian Taxation Office site was hacked in 2000 by a user who changed a tax ID present in a URL to access details on 17,000 companies. The hacker e-mailed the 17,000 businesses to notify them of the security breach.</p>
<p>How to protect users: Use an index, indirect reference map or another indirect method to avoid exposure of direct object references. If you can’t avoid direct references, authorize Web site visitors before using them</p>
<p><strong><br />
5. Cross site request forgery</strong></p>
<p>The problem: “Simple and devastating,” this attack takes control of victim’s browser when it is logged onto a Web site, and sends malicious requests to the Web application. Web sites are extremely vulnerable, partly because they tend to authorize requests based on session cookies or “remember me” functionality. Banks are potential targets.</p>
<p>“Ninety-nine percent of the applications on the Internet are susceptible to cross site request forgery,” Williams says. “Has there been an actual exploit where someone’s lost money? Probably the banks don’t even know. To the bank, all it looks like is a legitimate transaction from a logged-in user.”</p>
<p>Real-world example: A hacker known as Samy gained more than a million “friends” on MySpace.com with a worm in late 2005, automatically including the message “Samy is my hero” in thousands of MySpace pages. The attack itself may not have been that harmful, but it was said to demonstrate the power of combining cross site scripting with cross site request forgery. Another example that came to light one year ago exposed a Google vulnerability allowing outside sites to change a Google user’s language preferences.</p>
<p>How to protect users: Don’t rely on credentials or tokens automatically submitted by browsers. “The only solution is to use a custom token that the browser will not ‘remember,’” OWASP writes. 		<!-- / message --></p>
<p><strong>6. Information leakage and improper error handling</strong></p>
<p>The problem: Error messages that applications generate and display to users are useful to hackers when they violate privacy or unintentionally leak information about the program’s configuration and internal workings.</p>
<p>“Web applications will often leak information about their internal state through detailed or debug error messages. Often, this information can be leveraged to launch or even automate more powerful attacks,” OWASP says.</p>
<p>Real-world example: Information leakage goes well beyond error handling, applying also to breaches occurring when confidential data is left in plain sight. The ChoicePoint debacle in early 2005 thus falls somewhere in this category. The records of 163,000 consumers were compromised after criminals pretending to be legitimate ChoicePoint customers sought details about individuals listed in the company’s database of personal information. ChoicePoint subsequently limited its sales of information products containing sensitive data.</p>
<p>How to protect users: Use a testing tool such as OWASP’S WebScarab Project to see what errors your application generates. “Applications that have not been tested in this way will almost certainly generate unexpected error output,” OWASP writes.</p>
<p><strong><br />
7. Broken authentication and session management</strong></p>
<p>The problem: User and administrative accounts can be hijacked when applications fail to protect credentials and session tokens from beginning to end. Watch out for privacy violations and the undermining of authorization and accountability controls.</p>
<p>“Flaws in the main authentication mechanism are not uncommon, but weaknesses are more often introduced through ancillary authentication functions such as logout, password management, timeout, remember me, secret question and account update,” OWASP writes.</p>
<p>Real-world example: Microsoft had to eliminate a vulnerability in Hotmail that could have let malicious JavaScript programmers steal user passwords in 2002. Revealed by a networking products reseller, the flaw was vulnerable to e-mails containing Trojans that altered the Hotmail user interface, forcing users to repeatedly reenter their passwords and unwittingly send them to hackers.</p>
<p>How to protect users: Communication and credential storage has to be secure. The SSL protocol for transmitting private documents should be the only option for authenticated parts of the application, and credentials should be stored in hashed or encrypted form.</p>
<p>Another tip: get rid of custom cookies used for authentication or session management.</p>
<p><strong>8. Insecure cryptographic storage</strong></p>
<p>The problem: Many Web developers fail to encrypt sensitive data in storage, even though cryptography is a key part of most Web applications. Even when encryption is present, it’s often poorly designed, using inappropriate ciphers.</p>
<p>“These flaws can lead to disclosure of sensitive data and compliance violations,” OWASP writes.</p>
<p>Real-world example: The TJX data breach that exposed 45.7 million credit and debit card numbers. A Canadian government investigation faulted TJX for failing to upgrade its data encryption system before it was targeted by electronic eavesdropping starting in July 2005.<br />
How to protect users: Don’t invent your own cryptographic algorithms. “Only use approved public algorithms such as AES, RSA public key cryptography, and SHA-256 or better for hashing,” OWASP advises.</p>
<p>Furthermore, generate keys offline, and never transmit private keys over insecure channels.</p>
<p><strong><br />
9. Insecure communications</strong></p>
<p>The problem: Similar to No. 8, this is a failure to encrypt network traffic when it’s necessary to protect sensitive communications. Attackers can access unprotected conversations, including transmissions of credentials and sensitive information. For this reason, PCI standards require encryption of credit card information transmitted over the Internet.</p>
<p>Real-world example: TJX again. Investigators believe hackers used a telescope-shaped antenna and laptop computer to steal data exchanged wirelessly between portable price-checking devices, cash registers and store computers, the Wall Street Journal reported.</p>
<p>“The $17.4-billion retailer&#8217;s wireless network had less security than many people have on their home networks,” the Journal wrote. TJX was using the WEP encoding system, rather than the more robust WPA.</p>
<p>How to protect users: Use SSL on any authenticated connection or during the transmission of sensitive data, such as user credentials, credit card details, health records and other private information. SSL or a similar encryption protocol should also be applied to client, partner, staff and administrative access to online systems. Use transport layer security or protocol level encryption to protect communications between parts of your infrastructure, such as Web servers and database systems.</p>
<p><strong><br />
10. Failure to restrict URL access</strong></p>
<p>The problem: Some Web pages are supposed to be restricted to a small subset of privileged users, such as administrators. Yet often there’s no real protection of these pages, and hackers can find the URLs by making educated guesses. Say a URL refers to an ID number such as “123456.” A hacker might say ‘I wonder what’s in 123457?’ Williams says.</p>
<p>The attacks targeting this vulnerability are called forced browsing, “which encompasses guessing links and brute force techniques to find unprotected pages,” OWASP says.</p>
<p>Real-world example: A hole on the Macworld Conference &amp; Expo Web site this year let users get “Platinum” passes worth nearly $1,700 and special access to a Steve Jobs keynote speech, all for free. The flaw was code that evaluated privileges on the client but not on the server, letting people grab free passes via JavaScript on the browser, rather than the server.</p>
<p>How to protect users: Don’t assume users will be unaware of hidden URLs. All URLs and business functions should be protected by an effective access control mechanism that verifies the user’s role and privileges. “Make sure this is done … every step of the way, not just once towards the beginning of any multi-step process,’ OWASP advises.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacking-gurus.net/2009/04/15/10-reasons-websites-get-hacked/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Catch A Hacker</title>
		<link>http://www.hacking-gurus.net/2009/04/04/how-to-catch-a-hacker/</link>
		<comments>http://www.hacking-gurus.net/2009/04/04/how-to-catch-a-hacker/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 18:35:32 +0000</pubDate>
		<dc:creator>r00t</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorialz]]></category>
		<category><![CDATA[hacked]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.hacking-gurus.net/?p=64</guid>
		<description><![CDATA[How To Catch A Hacker I just wrote this guide to give you some tips of which you may not have heard yet. Hopefully, it won&#8217;t come to a hacker getting in, but if it does&#8230; Tip 1: Hackers cover their tracks. Experienced hackers cover them more thorougly, but amateur hackers sometimes leave things behind. [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.hacking-gurus.net/2009/04/04/how-to-catch-a-hacker/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "new";
		digg_title = "How+To+Catch+A+Hacker";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "How To Catch A HackerI just wrote this guide to give you some tips of which you may not have heard yet. Hopefully, it won&#8217;t come to a hacker getting in, but if it does&#8230;Tip 1: Hackers cover their tracks. Experienced hackers cover them more thorougly, but amateur hackers sometimes leave things behind. Don&#8217;t expect them to leave any really...";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>How To Catch A Hacker</p>
<p>I just wrote this guide to give you some tips of which you may not have heard yet. Hopefully, it won&#8217;t come to a hacker getting in, but if it does&#8230;</p>
<p><span id="more-64"></span></p>
<p>Tip 1: Hackers cover their tracks. Experienced hackers cover them more thorougly, but amateur hackers sometimes leave things behind. Don&#8217;t expect them to leave any really big evidence behind; expect more of little things here and there you might find surprising. For example, if you&#8217;re writing a term paper and a black hat hacker accidently saved it when he took a paragraph out- that&#8217;s suspicious. Where did that paragraph go? Well, for one thing, now you know he was in that area. Check the folders surrounding the file- you might find something.</p>
<p>Tip 2: Decipher between the type of hackers that are attacking you. Experienced hackers will have a more in depth look around when they penetrate your system. They won&#8217;t touch much because they know that that won&#8217;t add too much to their knowledge. But if you know a hacker&#8217;s been in, and some files are messed with, and you have a log of someone guessing passwords to a file or something of that sort, its probably some newbie who&#8217;s just starting out. These are the easiest hackers to catch. They usually get so caught up in thoughts like &#8220;I&#8217;m in!&#8221; that they forget the basics, such as work behind a proxy.</p>
<p>My friend was setting up a webserver once. His first time too, and he wasn&#8217;t to anxious to set up some good software to protect against hackers and viruses. He didn&#8217;t put up one IDS, and before you know it, the obvious happened. But this time, a newbie had struck. The nice log files showed, bluntly across the screen, multiple instances of a foreign IP address that stood out. Some stupid newbie had tried to login as &#8220;uucp&#8221; on my friend&#8217;s XP computer, with a password of &#8220;uucp.&#8221; Well, that&#8217;s great, but he also had tried the same user/pass combination three times, enough to get himself logged nicely. Even a semi-brainless user with some form of neurological system knows that uucp isn&#8217;t a default XP account. Again, excitement toiled this hacker&#8217;s brain, and maybe if he hadn&#8217;t done that, along with a few other stupid things, he wouldn&#8217;t have gotten caught. What other things did he do? Well, lets see. He openned 35 instances of MS-DOS. He tried to clean the printer&#8217;s heads, and he edited a .gif in notepad. Then he uninstalled a few programs and installed some html editor, and replaced four files with the words &#8220;14P.&#8221;</p>
<p>He might as well have posted his phone number. In a few days, we had tracked him down to a<br />
suburban town in Ohio. We let him go, not pressing any charges, because he had done nothing really damaging and had provided me with an example of a moron for this guide.</p>
<p>Tip 3: Don&#8217;t go crazy if you lose data. Chances are, if it was that important, you would have backed it up anyway. Most hackers nowadays wish they were back in 1989 when they could use a Black Box and having a Rainbow Book actually meant something. Most hackers aren&#8217;t blackhat, they are whitehat, and some even greyhat. But in the end, most hackers that are in systems aren&#8217;t satisfied by looking around. From past experiences, I have concluded that many hackers like to remember where&#8217;ve they been. So, what do they do? They either press delete here and there, or copy some files onto their systems. Stupid hackers (yes, there are plenty of stupid hackers) send files to e-mail addresses. Some free email companies will give you the IP of a certain e-mail address&#8217;s user if you can prove that user has been notoriously hacking you. But most of the time, by the time you get the e-mail addy it&#8217;s been unused for weeks if not months or years, and services like hotmail have already deleted it.</p>
<p>Tip 4: Save information! Any information that you get from a log file (proxy server IP, things like &#8220;14P&#8221;, e-mail addresses that things were sent to, etc.) should be saved to a floppy disk (they&#8217;re not floppy anymore, I wish I could get out of the habit of calling them that) incase there&#8217;s a next time. If you get another attack, from the same proxy, or with similar e-mail addresses (e.g: one says Blackjack <a href="mailto:123@something.what">123@something.what</a>ever and the other says <a href="mailto:Black_jack_45@something.znn.com">Black_jack_45@something.znn.com</a>) you can make an assumption that these hackers are the same people. In that case, it would probably be worth the effort to resolve the IP using the proxy and do a traceroute. Pressing charges is recommended if this is a repeat offender.</p>
<p>Tip 5: Don&#8217;t be stupid. If you&#8217;ve been hacked, take security to the next level. Hackers do talk about people they&#8217;ve hacked and they do post IPs and e-mail addresses. Proof? Take a look at Defcon Conventions. I&#8217;ve never gone to one, but I&#8217;ve seen the photos. The &#8220;Wall of Shame&#8221;-type of boards I&#8217;ve seen have IPs and e-mail addresses written all over them in fat red, dry-erase ink. Don&#8217;t be the one to go searching the Defcon website and find your e-mail address posted on the Wall of Shame board!</p>
<p>Tip 6: Don&#8217;t rely on luck. Chances are, sometime or another, you&#8217;re going to be targeted for an attack. Here you can rely on luck. Maybe they&#8217;ll forget? Maybe they don&#8217;t know how to do it? If you think this way, a surprise is going to hit your face very hard. Another way you could stupidly rely on luck is by saying this: It&#8217;s probably just a whitehat. On the contrary, my friend, it&#8217;s probably just a blackhat. A blackhat with knowledge stored in his head, ready to be used as an ax. It&#8217;s your data. You take the chance.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacking-gurus.net/2009/04/04/how-to-catch-a-hacker/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Writing SQL Injection exploits in Perl</title>
		<link>http://www.hacking-gurus.net/2009/04/04/writing-sql-injection-exploits-in-perl/</link>
		<comments>http://www.hacking-gurus.net/2009/04/04/writing-sql-injection-exploits-in-perl/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 18:30:22 +0000</pubDate>
		<dc:creator>r00t</dc:creator>
				<category><![CDATA[Database Security]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorialz]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[explots]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[hacked]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[ipchain]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[perl exploits]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sql injection]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[web security]]></category>

		<guid isPermaLink="false">http://www.hacking-gurus.net/?p=62</guid>
		<description><![CDATA[[1] Introduction [2] Little panning of Perl language used into an internet context [3] Perl SQL Injection by examples [4] Gr33tz to &#8230; &#8212;+&#8212; StArT [1] Introduction Perl can be considered a very powerfull programming language in we think to the internet context. Infact we can make a lot of operation across the internet just [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.hacking-gurus.net/2009/04/04/writing-sql-injection-exploits-in-perl/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "new";
		digg_title = "Writing+SQL+Injection+exploits+in+Perl";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = " Introduction Little panning of Perl language used into an internet context Perl SQL Injection by examples Gr33tz to &#8230;&#8212;+&#8212; StArT IntroductionPerl can be considered a very powerfull programming language in we think to the internet context. Infact we can make a lotof operation across the internet just writing a litlle bit of code. So...";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>[1] Introduction<br />
[2] Little panning of Perl language used into an internet context<br />
[3] Perl SQL Injection by examples<br />
[4] Gr33tz to &#8230;</p>
<p><span id="more-62"></span></p>
<p>&#8212;+&#8212; StArT</p>
<p>[1] Introduction</p>
<p>Perl can be considered a very powerfull programming language in we think to the internet context. Infact we can make a lot<br />
of operation across the internet just writing a litlle bit of code. So i decided to write a similar guide to make an<br />
easiest life to everyone who decide to start writing a perl exploit.<br />
There are few requisites u need to proceed:<br />
- U must know the basics operation of perl (print, chomp, while, die, if, etc etc&#8230;);<br />
- U must know what kind of SQL code u need to inject to obtain a specific thing (stealing pwd, add new admin, etc etc&#8230;).</p>
<p>Now, we are ready to start&#8230;</p>
<p>[2] Little panning of Perl language used into an internet context</p>
<p>Using a Perl code into an internet context means that u should be able to make a sort of dialog between your script and the<br />
server side (or other..). To make this u need to use some &#8220;Perl modules&#8221;.<br />
Those modules must be put on the head of the script. In this tut we are going to use only the &#8220;IO::Socket&#8221; module, but<br />
there are thousand and if u are curious just search on cpan to retrieve info on every module.</p>
<p>[-] Using the IO::Socket module<br />
Using this module is quite simple. To make the Perl Interpreter able to use this module u must write on the starting<br />
of the script &#8220;use IO::Socket&#8221;. With this module u&#8217;ll be able to connect to every server defined previously, using<br />
a chomp, look at the example.</p>
<p>Example:<br />
print &#8220;Insert the host to connect: &#8220;;<br />
chomp ($host=&lt;STDIN&gt;);</p>
<p>Now suppose that the host inserted is www.host.com. We must declare to the interpreter that we want to connect to this<br />
host. To do this, we must create a new sock that will be used by the interpreter to connect.<br />
To create this we are going to write something like this:</p>
<p>$sock = IO::Socket::INET-&gt;new(Proto=&gt;&#8221;tcp&#8221;, PeerAddr=&gt;&#8221;$host&#8221;, PeerPort=&gt;&#8221;80&#8243;)<br />
or die &#8221; ]+[ Connecting ... Can't connect to host.nn";</p>
<p>In this piece of code we have declared that the interpreter must use the "IO::Socket" module, creating a new<br />
connection, through the TCP protocol, using the port 80 and direct to the host specified in the chomp<br />
($host=www.fbi.gov).<br />
If connection is not possible an error message will appear ("Connecting ... Can't connect to host").<br />
Resume:<br />
- Proto=&gt;TCP -------&gt; The protocol to use (TCP/UDP)<br />
- PeerAddr=&gt; -------&gt; The server/host to connect<br />
- PeerPort=&gt; -------&gt; Port to use for the connection</p>
<p>Ok, now let's go to the next step, which is the real hearth of this tut.</p>
<p>[3] Perl SQL Injection</p>
<p>Assuming that we know what kind of SQL statement must inject, now we are going to see how to do this.</p>
<p>The SQL code must be treaty like a normal variable (like &#8220;$injection&#8221;).</p>
<p>Example:<br />
$injection=index.php/forum?=[SQL_CODE]</p>
<p>This string means that we are going to inject the query into &#8220;index.php/forum&#8221; path, following the correct syntax that<br />
will bring us to cause a SQL Injection &#8220;?=&#8221;.</p>
<p>Now we must create a piece of code that will go to inject this query into the host vuln.</p>
<p>print $sock &#8220;GET $injection HTTP/1.1n&#8221;;<br />
print $sock &#8220;Accept: */*n&#8221;;<br />
print $sock &#8220;User-Agent: Hackern&#8221;;<br />
print $sock &#8220;Host: $hostn&#8221;;<br />
print $sock &#8220;Connection: closenn&#8221;;</p>
<p>This piece of code is the most important one into the building of an exploit.<br />
It can be considered the &#8220;validation&#8221; of the connection.<br />
In this case the &#8220;print&#8221; command doesn&#8217;t show anything on screen, but it creates a dialogue and sends commands to the host.</p>
<p>In the first line the script will send a &#8220;GET&#8221; to the selected page defined into &#8220;$injection&#8221;.<br />
In the third line it tells to the host &#8220;who/what&#8221; is making the request of &#8220;GET&#8221;. In this case this is Hacker, but it<br />
can be &#8220;Mozilla/5.0 Firefox/1.0.4&#8243; or other.<br />
In the fourth line it defines the host to connect to, &#8220;$host&#8221;.</p>
<p>With the execution of this script we have made our injection.</p>
<p>Resume of the exploit:</p>
<p>use IO::Socket</p>
<p>print &#8220;Insert the host to connect: &#8220;;<br />
chomp ($host=&lt;STDIN&gt;);</p>
<p>$sock = IO::Socket::INET-&gt;new(Proto=&gt;&#8221;tcp&#8221;, PeerAddr=&gt;&#8221;$host&#8221;, PeerPort=&gt;&#8221;80&#8243;)<br />
or die &#8221; ]+[ Connecting ... Can't connect to host.nn";</p>
<p>$injection=index.php/forum?=[SQL_CODE]</p>
<p>print $sock &#8220;GET $injection HTTP/1.1n&#8221;;<br />
print $sock &#8220;Accept: */*n&#8221;;<br />
print $sock &#8220;User-Agent: Hackern&#8221;;<br />
print $sock &#8220;Host: $hostn&#8221;;<br />
print $sock &#8220;Connection: closenn&#8221;;<br />
close ($sock); #this line terminates the connection</p>
<p>A little trick:</p>
<p>Assuming that, with the execution of SQL Inj, u want to retrieve a MD5 Hash PWD, u must be able to recognize it.<br />
Additionally, u want that your script will show the PWD on your screen.<br />
Well, to make this, the next piece of code, could be one of the possible solutions.</p>
<p>while($answer = &lt;$sock&gt;) {<br />
if ($answer =~ /([0-9a-f]{32})/) {<br />
print &#8220;]+[ Found! The hash is: $1n&#8221;;<br />
exit(); }</p>
<p>This string means that if the answer of the host will show a &#8220;word&#8221; made by 32 characters (&#8220;0&#8243; to &#8220;9&#8243; and &#8220;a&#8221; to &#8220;f&#8221;),<br />
this word must be considered the MD5 Hash PWD and it must be showed on screen.</p>
<p>Conclusions:<br />
The method showed in this tut is only one of the 10000 existing, but, for me, this is the most complete one.<br />
U could use also the module &#8220;LWP::Simple&#8221; in the place of &#8220;IO::Socket&#8221;, but u should change something into the code.<br />
This method can be used also, not only for SQL Injection, but, for example, remote file upload or other.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacking-gurus.net/2009/04/04/writing-sql-injection-exploits-in-perl/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>basic linux commands</title>
		<link>http://www.hacking-gurus.net/2009/04/04/basic-linux-commands/</link>
		<comments>http://www.hacking-gurus.net/2009/04/04/basic-linux-commands/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 18:18:36 +0000</pubDate>
		<dc:creator>r00t</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorialz]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[basic commands]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux help]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shell commands]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.hacking-gurus.net/?p=59</guid>
		<description><![CDATA[UNIX Commands UNIX Commands are usefull, because without them you will not be able to explore shells etc. I listed all commands that may be helpfull for newbie exploiters. pwd &#8211; shows actual path where you are ifconfig [interface] &#8211; show interface config e.g. ethernet , wlan etc ls &#8211; lists files in directorcy ls [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.hacking-gurus.net/2009/04/04/basic-linux-commands/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "new";
		digg_title = "basic+linux+commands";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "UNIX CommandsUNIX Commands are usefull, because without them you will not be able to explore shells etc. I listed all commands that may be helpfull for newbie exploiters.pwd &#8211; shows actual path where you areifconfig  &#8211; show interface config e.g. ethernet , wlan etcls &#8211; lists files in directorcyls -l &#8211; lists files in directory...";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>UNIX Commands</p>
<p>UNIX Commands are usefull, because without them you will not be able to explore shells etc. I listed all commands that may be helpfull for newbie exploiters.</p>
<p><span id="more-59"></span></p>
<p>pwd &#8211; shows actual path where you are</p>
<p>ifconfig [interface] &#8211; show interface config e.g. ethernet , wlan etc<br />
ls &#8211; lists files in directorcy</p>
<p>ls -l &#8211; lists files in directory with details like date, size, attributes</p>
<p>ls -a &#8211; lists files in directory and shows hidden files</p>
<p>For example you are actually in directory /www/docs/pub/ccbill/files so putting ls command will let you to see all files in this directory. If you want move to /www/docs/pub/ directory then you just need to put ls /www/docs/pub/ it will move you there and show all files there also.</p>
<p>cat [file name] &#8211; shows content of file</p>
<p>For example you want to check what is inside /www/docs/pub/ccbill/.htpasswd file so you simply put cat /www/docs/pub/ccbill/.htpasswd command and all info inside will be displayed</p>
<p>locate [file name] &#8211; will let you to locate file directly, when the files are found it will display paths</p>
<p>For example you want to find htpasswd file on server so simply put locate htpasswd and it will find all paths with this file for you.</p>
<p>rm [file name] &#8211; removes a file, you can also add -i to make a confirmation for deleting</p>
<p>cp [file name 1] [file name 2] &#8211; copies a file</p>
<p>mv [file name 1] [file name] &#8211; moves a file</p>
<p>mkdir [dir name] &#8211; makes a new directory</p>
<p>i will post more soon and will explain commands one by one in my next posts so keep looking for them <img src='http://www.hacking-gurus.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacking-gurus.net/2009/04/04/basic-linux-commands/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

