<?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>AOIP - Anything Over IP &#187; IPS</title>
	<atom:link href="http://www.anythingoverip.co.za/category/tutorials/course-content/ips-course-content-tutorials-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anythingoverip.co.za</link>
	<description>Anything Over IP</description>
	<lastBuildDate>Wed, 27 Jul 2011 05:24:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>DoS TCP SYN Attack Mitigation</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/iscw/dos-tcp-syn-attack-mitigation/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/iscw/dos-tcp-syn-attack-mitigation/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 14:22:40 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Access-Lists]]></category>
		<category><![CDATA[Intrusion Prevention]]></category>
		<category><![CDATA[IPS]]></category>
		<category><![CDATA[ISCW]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Access Lists]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=525</guid>
		<description><![CDATA[TCP SYN flooding is often used in conjunction with IP spoofing. The main aim of a TCP SYN flood is to send a TCP SYN packet to a host inside your network from a spoofed IP address. The TCP SYN ACK is then sent to a machine that is not expecting one, or a machine [...]]]></description>
			<content:encoded><![CDATA[<p>TCP SYN flooding is often used in conjunction with <a href="http://www.anythingoverip.co.za/tutorials/course-content/iscw/ip-address-spoofing-mitigation-with-access-control-lists-acl/">IP spoofing</a>.</p>
<p>The main aim of a TCP SYN flood is to send a TCP SYN packet to a host inside your network from a spoofed IP address. The TCP SYN ACK is then sent to a machine that is not expecting one, or a machine that doesn’t exist. This causes a ‘half-opened’ connection (Embryonic Connection) to exist since the 3-way handshake has not completed with a ACK.</p>
<p> </p>
<p>A Cisco router is only capable of having a certain amount of connections open to it (This is different depending on the router model) so if an attacker was to send thousands of spoofed TCP SYN packets the router would reach maximum allowed connections, even though the connections are not complete. This would prevent the router from allowing legitimate connections been created.</p>
<p> </p>
<p>In order to completely fix this problem, a firewall that supports dynamic embryonic connections would need to be installed, however a router can prevent the flood of TCP SYN packets by disallowing connections from the outside coming into your network.</p>
<p> </p>
<p>This means that only connections that were created from inside your network would work and all connections from the outside would be denied.</p>
<p> </p>
<p>Here is the configuration breakdown. (FastEthernet 0/0 is the outside network)</p>
<p style="text-align: center;"> <img class="aligncenter size-full wp-image-392" title="ACL_Diagram" src="http://www.anythingoverip.co.za/wp-content/uploads/2009/08/ACL_Diagram.jpg" alt="ACL_Diagram" width="350" height="89" /></p>
<p><strong>AOIP.ORG(config)# access-list 101 permit tcp any 192.168.1.0 0.0.0.255 established</strong></p>
<p><strong>AOIP.ORG(config)# access-list 101 deny ip any any log</strong></p>
<p><strong>AOIP.ORG(config)# interface fa0/0</strong></p>
<p><strong>AOIP.ORG(config-if)# ip access-group 101 in</strong></p>
<p><strong>AOIP.ORG(config-if)# exit</strong></p>
<p><strong>AOIP.ORG(config)#</strong></p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/ip-address-spoofing-mitigation-with-access-control-lists-acl/' rel='bookmark' title='Permanent Link: IP Address Spoofing Mitigation with Access Control Lists (ACL)'>IP Address Spoofing Mitigation with Access Control Lists (ACL)</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/mitigating-subseven-attacks/' rel='bookmark' title='Permanent Link: Mitigating SubSeven attacks'>Mitigating SubSeven attacks</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/mitigating-smurf-dos-attacks/' rel='bookmark' title='Permanent Link: Mitigating Smurf DoS Attacks'>Mitigating Smurf DoS Attacks</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/iscw/dos-tcp-syn-attack-mitigation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Decrypting Type 7 Passwords (enable password)</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/snd/decrypting-type-7-passwords-enable-password/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/snd/decrypting-type-7-passwords-enable-password/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 09:57:39 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[IINS]]></category>
		<category><![CDATA[IPS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SND]]></category>
		<category><![CDATA[SNRS]]></category>
		<category><![CDATA[Decryption]]></category>
		<category><![CDATA[Encyption]]></category>
		<category><![CDATA[Passwords]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=398</guid>
		<description><![CDATA[The big difference between the enable password and the enable secret is the encryption level. The enable password by default is saved in clear text so when looking at the running-configuration of the router you will be able to read the password. It is possible to encrypt this password using the service password-encryption command.   [...]]]></description>
			<content:encoded><![CDATA[<p>The big difference between the <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/setting-the-enable-password-and-secret-on-a-cisco-device/">enable password </a>and the <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/setting-the-enable-password-and-secret-on-a-cisco-device/">enable secret </a>is the <a href="http://www.anythingoverip.co.za/networking-101/how-encryption-works/">encryption</a> level.</p>
<p>The <strong>enable password</strong> by default is saved in clear text so when looking at the <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/the-difference-between-run-and-start-and-how-to-save/">running-configuration </a>of the router you will be able to read the password. It is possible to encrypt this password using the <strong>service password-encryption</strong> command.</p>
<p> </p>
<p>The <strong>service password-encryption</strong> command will also encrypt all other clear text passwords on your router including the <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-vty-access/">VTY</a>, AUX, <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-the-console-port-on-a-cisco-device/">Console</a> and <a href="http://www.anythingoverip.co.za/tutorials/course-content/snd/login-local-on-a-cisco-router/">User passwords.</a> Although the <strong>service password-encryption</strong> command encrypts your passwords so you can no longer read them in the running-configuration, the encryption algorithm is not very secure.</p>
<p> </p>
<p>If we look at the running-configuration of my router in the article <a href="http://www.anythingoverip.co.za/ciscoconf/basicconfig/setting-the-enable-password-and-secret-on-a-cisco-device/">Setting the enable password and secret on a Cisco device</a> , you will see that after the <strong>service password-encryption</strong> command was issued the password was stored in the running-configuration as</p>
<p> </p>
<p>Enable password 7  <strong>12180A1E02</strong></p>
<p> </p>
<p>The number ‘7’ tells me the type of password, the rest of the number is the password in its encrypted format.</p>
<p>Copy and paste with password without the &#8217;7&#8242; into the below form, and see just how easy it is to decrypt the enable password.</p>
<p> </p>
<p><strong>NOTE: Please only use the below form for password recovery and demonstration purposes! </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<html>
<body>

<center>

<script language="JavaScript1.2" type="text/javascript"> 
  
<!-- 
  
// Is the character a digit? 
  
function isDigit(theDigit) 
  
{ 
  
var digitArray = new Array('0','1','2','3','4','5','6','7','8','9') 
  
  
for (j = 0; j < digitArray.length; j++) { 
  
if (theDigit == digitArray[j]) 
  
return true 
  
} 
  
return false 
  
} 
  
  
  
// Generate a config file ready for loading 
  
function crackPassword(form) 
  
{ 
  
var crypttext=form.crypttext.value.toUpperCase() 
  
var plaintext='' 
  
var xlat="dsfd;kfoA,.iyewrkldJKDHSUBsgvca69834ncxv9873254k;fg87" 
  
var seed, i, val=0 
  
  
if(crypttext.length & 1) 
  
return 
  
  
seed = (crypttext.charCodeAt(0) - 0x30) * 10 + crypttext.charCodeAt(1) - 0x30 
  
  
if (seed > 15 || !isDigit(crypttext.charAt(0)) || !isDigit(crypttext.charAt(1))) 
  
return 
  
  
for (i = 2 ; i <= crypttext.length; i++) { 
  
if(i !=2 && !(i & 1)) { 
  
plaintext+=String.fromCharCode(val ^ xlat.charCodeAt(seed++)) 
  
seed%=xlat.length 
  
val = 0; 
  
} 
  
  
val *= 16 
  
  
if(isDigit(crypttext.charAt(i))) { 
  
val += crypttext.charCodeAt(i) - 0x30 
  
continue 
  
} 
  
  
  
if(crypttext.charCodeAt(i) >= 0x41 && crypttext.charCodeAt(i) <= 0x46) { 
  
val += crypttext.charCodeAt(i) - 0x41 + 0x0a 
  
continue 
  
} 
  
  
if(crypttext.length != i) 
  
return 
  
} 
  
  
form.plaintext.value=plaintext 
  
} 
  
  
--> 
  
</script> 
  
  
  
<form name="never-you-mind" id="never-you-mind" action="#" style="width: 344px"> 
  
<table border="0"> 
  
<tr><td style="width: 334px" class="style12"> 
  
<p class="style11"> 
  
<span class="style9">Enter encrypted password:<br/> 
  
</span><span class="style8"><span class="style9"> 
  
<span class="style2"> 
  
<input name="crypttext" type="text" size="60" style="width: 167px" /></span></span></span><span class="style9"> 
  
</span> 
  
</p> 
  
<p class="style11"><span class="style9">Decrypted 
  
password is:<br/> 
  
</span><span class="style8"><span class="style9"> 
  
<span class="style2"> 
  
<input name="plaintext" type="text" size="40" style="width: 167px" /></span></span></span><span class="style9"> 
  
</span> 
  
</p> 
  
<p class="style10"> 
  
  
<input type="button" value="Show Password" onclick="crackPassword(this.form)" style="width: 118px" /></p> 
  
</td></tr></table> 
  
</form> 

</center>
</body>
</html>




<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/setting-the-enable-password-and-secret-on-a-cisco-device/' rel='bookmark' title='Permanent Link: Setting the enable password and secret on a Cisco device'>Setting the enable password and secret on a Cisco device</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/hashing-what-is-it-and-how-does-it-work/' rel='bookmark' title='Permanent Link: Hashing, What is it and how does it work?'>Hashing, What is it and how does it work?</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/how-encryption-works/' rel='bookmark' title='Permanent Link: How encryption works'>How encryption works</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/snd/decrypting-type-7-passwords-enable-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

