Captcha Cracking 1 EG 04-18-2016, 04:15 AM
#1
Python Script for EG(enigmagroup) Captcha Cracking 1 Mission
With this script you can crack simple random words/number captchas and Solvemedia Captchas. (Solve V1.9)
For solve or other Captchas you need to edit the sites!
[hide=2]
You need to Edit the file_path![/hide]
With this script you can crack simple random words/number captchas and Solvemedia Captchas. (Solve V1.9)
For solve or other Captchas you need to edit the sites!
[hide=2]
Code:
# -*- encoding: cp949 -*-
import Image
import urllib2
import pytesser
def download_photo(filename):
file_path = "%s%s" % ("C:\\Users\\Ko\\Documents\\Visual Studio 2012\\Projects\\PythonApplication37\\", filename)
downloaded_image = file(file_path, "wb")
req = urllib2.Request('http://www.enigmagroup.org/missions/captcha/1/image.php')
req.add_header('Cookie','본인 쿠키')
image_on_web = urllib2.urlopen(req)
while True:
buf = image_on_web.read()
if len(buf) == 0:
break
downloaded_image.write(buf)
downloaded_image.close()
image_on_web.close()
return file_path
download_photo('image.png')
im = Image.open('image.png')
for i in range(im.size[1]):
for j in range(im.size[0]):
if im.getpixel((j,i)) !=0:
im.putpixel((j,i),10)
x = 2
im.transform((im.size[0]/x,im.size[1]/x),Image.EXTENT,(0,0,im.size[0],im.size[1])).save('image.png')
answer = pytesser.image_to_string( Image.open('image.png') ) #답 도출
req = urllib2.Request('http://www.enigmagroup.org/missions/captcha/1/image.php','answer='+answer+'&submit=true')
req.add_header('Referer','http://www.enigmagroup.org/missions/captcha/1/image.php')
req.add_header('Cookie','본인 쿠키')
print urllib2.urlopen(req).read()You need to Edit the file_path![/hide]
![[Image: vmqBSIW.png]](http://i.imgur.com/vmqBSIW.png)


![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)