это сканер директорий.
Логи сайта ведет в c:/сайт_log.txt
Код:
#!/usr/bin/python
#header scan
#http://sql.parsers.info/
#faza02[at]gmail[dot]com
import urllib
def scan():
print ' ____________________________ '
print ' / /\ '
print ' / _/ /\ '
print ' / by faza02 / \/ '
print ' / /\ '
print '/___________________________/ / '
print '\___________________________\/ '
print ' \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ '
good = [100, 101, 200, 201,202, 203,204,205, 206, 300, 301, 302, 303, 304, 305]
site = raw_input(u'\nsite: ')
dirlist = raw_input(u'dirs: ')
fileopen = open(dirlist, 'a+').readlines()
for i in range(len(fileopen)):
state = urllib.urlopen('http://' + site + fileopen[i][:-1]).getcode()
if state in good:
print fileopen[i][:-1] + ' - ' + str(state)
open('c:/'+site+'_log.txt', 'a+').write(fileopen[i][:-1] + ' - ' + str(state) + '\n')
scan()
print '\nok!'




