nneonneo / sha1collider

Build two PDFs that have different content but identical SHA1 sums.
412 stars 70 forks source link

collide.py 213行报错,FileNotFoundError: [WinError 2] 系统找不到指定的文件。 #5

Open xk-mt opened 5 months ago

xk-mt commented 5 months ago

报错 File "C:\Users\17569\Desktop\md5\sha1collider-master\collide.py", line 213, in doit subprocess.check_call(['gs', '-r%d' % args.resolution, '-sDEVICE=png16m',

原因 我使用win10命令,没有gs命令,gs是linux中的,gs命令可以将PostScript文件转换为PDF文件,或者将PDF文件转换为其他格式,如JPEG、PNG、TIFF等,导致报错,希望可以兼容win0用户

image

nneonneo commented 5 months ago

You can install GhostScript for Windows: https://ghostscript.com/releases/gsdnld.html

xk-mt commented 5 months ago

您可以安装适用于 Windows 的 GhostScript:https://ghostscript.com/releases/gsdnld.html

非常感谢❤

EduLeonPavon commented 1 month ago

Hi. I have the same problem. I have installed Ghostscript but it doesn't seem to work.

nneonneo commented 1 month ago

@EduLeonPavon I'm going to need more details to help with the problem. Are you also on Windows? Is it crashing on the same line of code with the same error? If not, I'll need details of your platform and on the error that you are getting.

Also, please ensure that the directory containing GhostScript's gs program is on your PATH; you can learn more about editing PATH here: https://superuser.com/questions/284342/what-are-path-and-other-environment-variables-and-how-can-i-set-or-use-them.

EduLeonPavon commented 2 weeks ago

Hi again @nneonneo. I finally got it running from Kali Linux. Here is the video where I talk about SHA1Collider. Thank you very much for developing this program. It has been very useful. https://miperitoinformatico.com/por-que-no-se-puede-usar-el-algoritmo-sha1-para-firma-electronica-reconocida/

nneonneo commented 2 weeks ago

@EduLeonPavon Thanks! Would you mind mentioning how you got it to work? That will be very helpful for future readers :)