<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Lazyfire's Blog</title>
	<atom:link href="http://lazysource.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lazysource.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 17 Dec 2008 12:09:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='lazysource.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Lazyfire's Blog</title>
		<link>http://lazysource.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://lazysource.wordpress.com/osd.xml" title="Lazyfire&#039;s Blog" />
	<atom:link rel='hub' href='http://lazysource.wordpress.com/?pushpress=hub'/>
		<item>
		<title>how to run a python script in the background as a service</title>
		<link>http://lazysource.wordpress.com/2008/12/17/how-to-run-a-python-script-in-the-background-as-a-service/</link>
		<comments>http://lazysource.wordpress.com/2008/12/17/how-to-run-a-python-script-in-the-background-as-a-service/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 12:09:14 +0000</pubDate>
		<dc:creator>lazysource</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lazysource.wordpress.com/?p=30</guid>
		<description><![CDATA[nohup python pyscript.py &#38;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=30&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>nohup python pyscript.py &amp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lazysource.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lazysource.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lazysource.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lazysource.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lazysource.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lazysource.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lazysource.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lazysource.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lazysource.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lazysource.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lazysource.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lazysource.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lazysource.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lazysource.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=30&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lazysource.wordpress.com/2008/12/17/how-to-run-a-python-script-in-the-background-as-a-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36d0a4eeb408fd1b9affd1992e1d87c2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lazysource</media:title>
		</media:content>
	</item>
		<item>
		<title>How to play with udp in python</title>
		<link>http://lazysource.wordpress.com/2008/12/03/how-to-play-with-udp-in-python/</link>
		<comments>http://lazysource.wordpress.com/2008/12/03/how-to-play-with-udp-in-python/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 12:43:36 +0000</pubDate>
		<dc:creator>lazysource</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lazysource.wordpress.com/?p=28</guid>
		<description><![CDATA[#!/usr/bin/env python from socket import * host = "10.0.0.148" port = 514 buf = 1024 address = (host,port) sock = socket(AF_INET,SOCK_DGRAM) sock.bind(address) while 1:     data,addr = sock.recvfrom(buf)     if not data:         print "Client has exited!"         break     else:         print data sock.close()<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=28&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>#!/usr/bin/env python
from socket import *
host = "10.0.0.148"
port = 514
buf = 1024
address = (host,port)
sock = socket(AF_INET,SOCK_DGRAM)
sock.bind(address)
while 1:
    data,addr = sock.recvfrom(buf)
    if not data:
        print "Client has exited!"
        break
    else:
        print data
sock.close()</pre>
<pre></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lazysource.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lazysource.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lazysource.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lazysource.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lazysource.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lazysource.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lazysource.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lazysource.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lazysource.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lazysource.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lazysource.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lazysource.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lazysource.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lazysource.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=28&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lazysource.wordpress.com/2008/12/03/how-to-play-with-udp-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36d0a4eeb408fd1b9affd1992e1d87c2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lazysource</media:title>
		</media:content>
	</item>
		<item>
		<title>THE RESULTS LOL</title>
		<link>http://lazysource.wordpress.com/2008/11/19/the-results-lol/</link>
		<comments>http://lazysource.wordpress.com/2008/11/19/the-results-lol/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 06:19:43 +0000</pubDate>
		<dc:creator>lazysource</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lazysource.wordpress.com/?p=23</guid>
		<description><![CDATA[I didint know whether I should have given up on non threading or not. I nearly fell asleep waiting for the iterations to complete. But here are the results:(on a ubuntu 8.10 latest kernel core 2 duo t5000 series): Threading: 10 loops, best of 3: 1.78 sec per loop Non-Threading: 10 loops, best of 3: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=23&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I didint know whether I should have given up on non threading or not. I nearly fell asleep waiting for the iterations to complete. But here are the results:(on a ubuntu 8.10 latest kernel core 2 duo t5000 series):</p>
<p>Threading:</p>
<p>10 loops, best of 3: 1.78 sec per loop</p>
<p>Non-Threading:</p>
<p>10 loops, best of 3: 1.77 sec per loop</p>
<p>And the windows result:</p>
<p>10 loops, best of 3: 535 msec per loop</p>
<p>Why do my threading attempts always fail?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lazysource.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lazysource.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lazysource.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lazysource.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lazysource.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lazysource.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lazysource.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lazysource.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lazysource.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lazysource.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lazysource.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lazysource.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lazysource.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lazysource.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=23&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lazysource.wordpress.com/2008/11/19/the-results-lol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36d0a4eeb408fd1b9affd1992e1d87c2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lazysource</media:title>
		</media:content>
	</item>
		<item>
		<title>Brute force MD5 cracker&#8230;. Linux Multithreaded (need a quad core to test this on a long password)</title>
		<link>http://lazysource.wordpress.com/2008/11/19/brute-force-md5-cracker-for-those-who-use-linux-and-can-enjoy-the-benefits-of-using-a-multithreading-operating-system/</link>
		<comments>http://lazysource.wordpress.com/2008/11/19/brute-force-md5-cracker-for-those-who-use-linux-and-can-enjoy-the-benefits-of-using-a-multithreading-operating-system/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 05:47:01 +0000</pubDate>
		<dc:creator>lazysource</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lazysource.wordpress.com/?p=21</guid>
		<description><![CDATA[#!/usr/bin/env python import threading import timeit import hashlib import sys # This is the much better version using multithreading. # Created by blu3man@gmail.com # # # Many thanks to Rohit Krishna Kumar http://www.geocities.com/rohitkkumar # brute.alpha was loosely based of his work. and improved class brute(threading.Thread):     def __init__(self, depth, testrange, vaultpass):     threading.Thread.__init__(self)         self.depth [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=21&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>#!/usr/bin/env python
import threading
import timeit
import hashlib
import sys
# This is the much better version using multithreading.
# Created by blu3man@gmail.com
#
#
# Many thanks to Rohit Krishna Kumar http://www.geocities.com/rohitkkumar
# brute.alpha was loosely based of his work. and improved

class brute(threading.Thread):
    def __init__(self, depth, testrange, vaultpass):
    threading.Thread.__init__(self)
        self.depth = depth
        self.vaultpass = vaultpass
        self.max = depth
        self.password = ""
        self.process()
        print self.password

    def process(self):
        l = []
        guess = self.listify(testrange)
        for i in range(self.max):########THIS IS THE BEGINING
            l.append('')
        self.alpha(l, self.depth, guess)

    def alpha(self, l, depth, guesses):      
        if(depth==0):                       # String has been generated
            s=""                            
            for k in l:                     # Make the list into a string
                s+=k                       
            self.crak(s, self.vaultpass)         # Call your password cracking routine here <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
        else:                               
            for i in range(0, len(guesses)): 
                l[self.depth-depth]=guesses[i]
                self.alpha(l,depth-1, guesses)

    def listify(self, chars):
        possible = []
        for i in range(0, len(chars)):
            possible.append(chars[i])
        return possible

    def crak(self, trial, vault):
        test = hashlib.md5(trial).hexdigest()
        if test == vault:
            self.password = "Unencrypted data: %s" % trial

hashpass = "21ad0bd836b90d08f4cf640b4c298e7c" # our hash we want to crack ... in this case its "bb" hashed.
testrange = "0123456789abcdefghijklmnopqrstuvwqyzABCDEFGHIJKLMNOPQRSTUVWXYZ" # our character range
maxilength = 3 # our maximum length
def main():)
    for i in range(1, maxilength + 1): #this time we have a thread for each length.
        t = brute(i, testrange, hashpass)
            t.setDaemon(True)
            t.start()

if __name__=="__main__":

    main()</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lazysource.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lazysource.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lazysource.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lazysource.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lazysource.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lazysource.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lazysource.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lazysource.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lazysource.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lazysource.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lazysource.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lazysource.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lazysource.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lazysource.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=21&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lazysource.wordpress.com/2008/11/19/brute-force-md5-cracker-for-those-who-use-linux-and-can-enjoy-the-benefits-of-using-a-multithreading-operating-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36d0a4eeb408fd1b9affd1992e1d87c2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lazysource</media:title>
		</media:content>
	</item>
		<item>
		<title>double day. MD5 brute forcer (single threaded)</title>
		<link>http://lazysource.wordpress.com/2008/11/19/double-day-md5-brute-forcer-single-threaded-for-the-m-users-who-will-never-live-long-enough-to-gain-results-from-it/</link>
		<comments>http://lazysource.wordpress.com/2008/11/19/double-day-md5-brute-forcer-single-threaded-for-the-m-users-who-will-never-live-long-enough-to-gain-results-from-it/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 05:24:19 +0000</pubDate>
		<dc:creator>lazysource</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lazysource.wordpress.com/?p=19</guid>
		<description><![CDATA[import hashlib import sys # by blu3man@gmail.com #for all you windowz users. a Single threaded md5 cracker # have fun sleeping # Many thanks to Rohit Krishna Kumar http://www.geocities.com/rohitkkumar # brute.alpha was loosely based of his work. and improved..... class brute:     def __init__(self, depth, testrange, vaultpass):         self.depth = 1         self.vaultpass = vaultpass [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=19&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>import hashlib
import sys
# by blu3man@gmail.com
#for all you windowz users. a Single threaded md5 cracker
# have fun sleeping
# Many thanks to Rohit Krishna Kumar http://www.geocities.com/rohitkkumar
# brute.alpha was loosely based of his work. and improved.....

class brute:
    def __init__(self, depth, testrange, vaultpass):
        self.depth = 1
        self.vaultpass = vaultpass
        self.max = depth
        self.password = ""
        self.process()
        print self.password

    def process(self):
        l = []
        guess = self.listify(testrange)
        for i in range(self.max): ########THIS IS THE BEGINING
            l.append('')
            self.alpha(l, self.depth, guess)
            self.depth += 1

    def alpha(self, l, depth, guesses):     
        if(depth==0):                       # String has been generated
            s=""                           
            for k in l:                     # Make the list into a string
                s+=k                       
            self.crak(s, self.vaultpass)
            print s                         # Call your password cracking routine here <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
        else:                              
            for i in range(0, len(guesses)):
                l[self.depth-depth]=guesses[i]
                self.alpha(l,depth-1, guesses)

    def listify(self, chars):
        possible = []
        for i in range(0, len(chars)):
            possible.append(chars[i])
        return possible

    def crak(self, trial, vault):
        test = hashlib.md5(trial).hexdigest()
        if test == vault:
            self.password = "Unencrypted data: %s" % trial

hashpass = "21ad0bd836b90d08f4cf640b4c298e7c"  # add in the hash you want to break here
testrange = "0123456789abcdefghijklmnopqrstuvwqyzABCDEFGHIJKLMNOPQRSTUVWXYZ" #list of letters you want to use
maxilength = 2 #how long you want to check... ie 2 characters long
manly = brute(maxilength, testrange, hashpass)
manly</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lazysource.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lazysource.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lazysource.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lazysource.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lazysource.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lazysource.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lazysource.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lazysource.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lazysource.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lazysource.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lazysource.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lazysource.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lazysource.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lazysource.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=19&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lazysource.wordpress.com/2008/11/19/double-day-md5-brute-forcer-single-threaded-for-the-m-users-who-will-never-live-long-enough-to-gain-results-from-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36d0a4eeb408fd1b9affd1992e1d87c2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lazysource</media:title>
		</media:content>
	</item>
		<item>
		<title>Concept port scanner</title>
		<link>http://lazysource.wordpress.com/2008/11/18/concept-port-scanner/</link>
		<comments>http://lazysource.wordpress.com/2008/11/18/concept-port-scanner/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 03:54:29 +0000</pubDate>
		<dc:creator>lazysource</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lazysource.wordpress.com/?p=17</guid>
		<description><![CDATA[#!/usr/bin/env python import socket import sys #usage scan host portmax #basic port scanner without using pings target = str(sys.argv[1]) portmax = int(sys.argv[2]) def useless():     return 0 for n in range(portmax):    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)    address = (target, n)    try:       sock.connect(address)       print address, "IS OPEN (listening)"    except socket.error:       [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=17&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>#!/usr/bin/env python
import socket
import sys
#usage scan host portmax
#basic port scanner without using pings
target = str(sys.argv[1])
portmax = int(sys.argv[2])
def useless():
    return 0
for n in range(portmax):
   sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
   address = (target, n)
   try:
      sock.connect(address)
      print address, "IS OPEN (listening)"
   except socket.error:
      useless()
   sock.close()</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lazysource.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lazysource.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lazysource.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lazysource.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lazysource.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lazysource.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lazysource.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lazysource.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lazysource.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lazysource.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lazysource.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lazysource.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lazysource.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lazysource.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=17&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lazysource.wordpress.com/2008/11/18/concept-port-scanner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36d0a4eeb408fd1b9affd1992e1d87c2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lazysource</media:title>
		</media:content>
	</item>
		<item>
		<title>MD5 Encryption/password authentication &#8211; concept</title>
		<link>http://lazysource.wordpress.com/2008/11/17/md5-encryptionpassword-authentication-concept/</link>
		<comments>http://lazysource.wordpress.com/2008/11/17/md5-encryptionpassword-authentication-concept/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 12:25:19 +0000</pubDate>
		<dc:creator>lazysource</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lazysource.wordpress.com/?p=15</guid>
		<description><![CDATA[#!/usr/bin/env python # Lets make a basic authentication program using MD5 as our encryption for our passwords import hashlib # to make our md5 hashes def hasher(someinput):     stuff = hashlib.md5(someinput).hexdigest()     return stuff class authman:    ###### I was going to add more to this class but am now tired and ill go to sleep [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=15&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>#!/usr/bin/env python
# Lets make a basic authentication program using MD5 as our encryption for our passwords
import hashlib

# to make our md5 hashes
def hasher(someinput):
    stuff = hashlib.md5(someinput).hexdigest()
    return stuff

class authman:    ###### I was going to add more to this class but am now tired and ill go to sleep now..... im sure you can figure it out
    def __init__(self, manifest):
        self.manifest = manifest
        self.userpass = []
        self.splitter()

    def splitter(self): #does the initial caching of the file to the list
        try:
            datafile = open(self.manifest, "r")
        except IOError: # if the file doesnt exist
            datafile = open(self.manifest, "w")
            datafile.write("exampleuser:examplepass")
            datafile.close()
            datafile = open(self.manifest, "r")
        count = 0
        for line in datafile:
            for word in line.split(":"):
                count += 1
                if count == 3:
                    self.userpass.append([x, y])
                    count = 1    
                if count == 1:
                    x = word.strip()
                if count == 2:
                    y = word.strip()
        self.userpass.append([x, y]) # add the last user as he is not in the loop
        datafile.close()

    def auth(self, useri, passi):
        good = 0
        for login in self.userpass:
            if login[0] == useri and login[1] == passi:
                good = 1
        if good == 1:
            return "AUTHENTICATED"
        else:
            return "FAILURE"

    def useradd(self, useri, passi):
        datafile = open(self.manifest, "a")
        userline = "%s:%s\n" % (useri,passi)
        datafile.write(userline)
        datafile.close()

def menus():
    try:
        menu = input("1)add user\n2)test user\n3)exit\n\n What would you like to do?")
        if menu==1:
            username = raw_input("what would you like to use as your username?")
            password = raw_input("and password?")
            newpass = hasher(password)
            authgator.useradd(username, newpass)
            menu = 0
            menus()
        if menu==2:
            username = raw_input("please enter the username you wish to test?")
            password = raw_input("and password?")
            newpass = hasher(password)
            result = authgator.auth(username, newpass)
            print result
            raw_input("press to continue")
            menu = 0
            menus()
        if menu==3:
            exit
    except NameError:
        print "bad option"
        menus()

if __name__ == "__main__":
    f = "userlist.txt"
    authgator = authman(f)
    menus()</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lazysource.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lazysource.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lazysource.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lazysource.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lazysource.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lazysource.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lazysource.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lazysource.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lazysource.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lazysource.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lazysource.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lazysource.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lazysource.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lazysource.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=15&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lazysource.wordpress.com/2008/11/17/md5-encryptionpassword-authentication-concept/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36d0a4eeb408fd1b9affd1992e1d87c2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lazysource</media:title>
		</media:content>
	</item>
		<item>
		<title>The smallest rss reader I could make in python (quite old code i found)</title>
		<link>http://lazysource.wordpress.com/2008/11/15/the-smallest-rss-reader-i-could-make-in-python-quite-old-code-i-found/</link>
		<comments>http://lazysource.wordpress.com/2008/11/15/the-smallest-rss-reader-i-could-make-in-python-quite-old-code-i-found/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 12:56:57 +0000</pubDate>
		<dc:creator>lazysource</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lazysource.wordpress.com/?p=13</guid>
		<description><![CDATA[#!/usr/bin/env python import urllib2 from xml.dom import minidom, Node def dout(part):     if(itemnode.nodeName == part):         part = part + ":\n"         for textnode in itemnode.childNodes:             part += textnode.nodeValue         print part + "\n" feed = urllib2.urlopen(raw_input("enter address of the feed")) xmldata = minidom.parse(feed) for node in xmldata.getElementsByTagName('item'):     for itemnode in node.childNodes:         [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=13&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>#!/usr/bin/env python
import urllib2
from xml.dom import minidom, Node
def dout(part):
    if(itemnode.nodeName == part):
        part = part + ":\n"
        for textnode in itemnode.childNodes:
            part += textnode.nodeValue
        print part + "\n"
feed = urllib2.urlopen(raw_input("enter address of the feed"))
xmldata = minidom.parse(feed)
for node in xmldata.getElementsByTagName('item'):
    for itemnode in node.childNodes:
        dout("title")
        dout("description")</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lazysource.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lazysource.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lazysource.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lazysource.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lazysource.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lazysource.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lazysource.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lazysource.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lazysource.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lazysource.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lazysource.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lazysource.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lazysource.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lazysource.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=13&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lazysource.wordpress.com/2008/11/15/the-smallest-rss-reader-i-could-make-in-python-quite-old-code-i-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36d0a4eeb408fd1b9affd1992e1d87c2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lazysource</media:title>
		</media:content>
	</item>
		<item>
		<title>A wecrawler using no 3rd party plugins.</title>
		<link>http://lazysource.wordpress.com/2008/11/15/a-wecrawler-using-no-3rd-party-plugins/</link>
		<comments>http://lazysource.wordpress.com/2008/11/15/a-wecrawler-using-no-3rd-party-plugins/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 06:23:47 +0000</pubDate>
		<dc:creator>lazysource</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lazysource.wordpress.com/?p=8</guid>
		<description><![CDATA[#!/usr/bin/env python import urllib2 from sgmllib import SGMLParser, SGMLParseError ################################################################# ################# web crawler ################################## ################################################################# # #Copyright (c) 2008, blu3man@gmail.com #All rights reserved. # #Redistribution and use in source and binary forms, with or without modification, #are permitted provided that the following conditions are met: # #    * Redistributions of source code must retain the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=8&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>#!/usr/bin/env python
import urllib2
from sgmllib import SGMLParser, SGMLParseError

#################################################################
################# web crawler ##################################
#################################################################
#
#Copyright (c) 2008, blu3man@gmail.com
#All rights reserved.
#
#Redistribution and use in source and binary forms, with or without modification,
#are permitted provided that the following conditions are met:
#
#    * Redistributions of source code must retain the above copyright notice,
#    this list of conditions and the following disclaimer.
#    * Redistributions in binary form must reproduce the above copyright notice,
#    this list of conditions and the following disclaimer in the documentation
#    and/or other materials provided with the distribution.
#    * Neither the name of the residence nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
#WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
#IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
#INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
#NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
#PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
#ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
#POSSIBILITY OF SUCH DAMAGE.
#
########################################################################
#Other liscesees include http://emptywebsite.com/ (for using the site in my code) to which I found no liscence.
#

##########################Link Discoverer#############################

class urllister(SGMLParser):                                        
    def reset(self):                                                     
        SGMLParser.reset(self)                                      
        self.urls = []                                              
        self.href = ''                                               

    def start_a(self, attrs):                                       
        for tag, value in attrs:                                    
            if tag == 'href':                                       
                self.href = value                                   
            if self.href not in self.urls: #make sure we arnt in the list already
                    if self.href[:4] == "http":  # make sure we are a fqdn over http protocole
                        self.urls.append(self.href)                
######################################################################

######################text searcher####################################
class textcrawl: # search = what i want... page = source(read) .... url = address                                           
    def __init__(self, search, page, url):                         
        found=page.find(search)                                    
        fcount = 0                                                 
        while found &gt; -1:                                          
            fcount += 1                                            
            found=page.find(search, found+1) #start from 1 character after previous occurance
        self.answer = "found %d occurences of %s at %s" % (fcount, search, url)
#####################################################################

###########################the spider itself###########################
#####http://emptywebsite.com/ is a site with no links#################
class linkwalker:
    def __init__(self, webpage, phrase):
        self.phrase = phrase
        #results = open('results.txt', 'w')
        self.purl = webpage
        self.been = []
        self.manifest = self.nomnoms(webpage)
        for link in self.manifest:
            if link not in self.been:
                emptyness = self.nomnoms(link)
                for recurl in emptyness:
                    self.manifest.append(recurl) #behold the power of this

    def nomnoms(self, purl): #eats pages.... ALIVE and writes results to a file
        self.been.append(purl)
        try:
            sock = urllib2.urlopen(purl)
        except urllib2.URLError:
            duck = [ 'http://emptywebsite.com/' ]
            return duck
        except urllib2.HTTPError:
            duck = [ 'http://emptywebsite.com/' ]
            return duck
        if(sock):
            page = sock.read()
            parser = urllister()
            try:
                parser.feed(page)
            except SGMLParseError:
                duck = [ 'http://emptywebsite.com/' ]
                return duck
            sock.close()
            parser.close()
            findstuff = textcrawl(self.phrase, page, purl)
            textfound = findstuff.answer
            self.fwriter(textfound)
            return (parser.urls)
        else:
            duck = [ 'http://emptywebsite.com/' ]
            return duck

    def fwriter(self, res):
        fres = "%s \n \n" % res
        file = open('results2.txt', 'a')
        file.write(fres)
        file.close()
############################################################3  

phrase = raw_input("what would you like to search for?")
webbie = raw_input("where would you like to search from? eg http:\www.(insertwebsitehere).com")
mysearch=linkwalker(webbie, phrase)</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lazysource.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lazysource.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lazysource.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lazysource.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lazysource.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lazysource.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lazysource.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lazysource.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lazysource.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lazysource.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lazysource.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lazysource.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lazysource.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lazysource.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lazysource.wordpress.com&amp;blog=5467631&amp;post=8&amp;subd=lazysource&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lazysource.wordpress.com/2008/11/15/a-wecrawler-using-no-3rd-party-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36d0a4eeb408fd1b9affd1992e1d87c2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lazysource</media:title>
		</media:content>
	</item>
	</channel>
</rss>
