sweetsoftware / Ares

Python botnet and backdoor
1.52k stars 476 forks source link

Agent.exe error #31

Closed traget closed 6 years ago

traget commented 7 years ago

Hi everyone! First of all, I added some modules to the agent, including the screenshot module which I think is cousing some errors. Agent.py runs fine as a python script, but when trying to compile it with pyinstaller I get the folowing output(cuted):

8875 INFO: Excluding import 'FixTk' 8875 INFO: Excluding import 'Tkinter' 8875 INFO: Excluding import 'PyQt5' 8875 WARNING: Removing import PIL.ImageQt from module PyQt5 8875 WARNING: Removing import PIL.ImageQt from module PyQt5.qRgba 8875 WARNING: Removing import PIL.ImageQt from module PyQt5.QPixmap 8875 WARNING: Removing import PIL.ImageQt from module PyQt5.QImage 8875 INFO: Excluding import 'PySide' 8875 WARNING: Removing import PIL.ImageQt from module PySide.QPixmap 8875 WARNING: Removing import PIL.ImageQt from module PySide.qRgba 8875 WARNING: Removing import PIL.ImageQt from module PySide 8875 WARNING: Removing import PIL.ImageQt from module PySide.QImage 8875 INFO: Excluding import 'PyQt4' 8875 WARNING: Removing import PIL.ImageQt from module PyQt4.qRgba 8875 WARNING: Removing import PIL.ImageQt from module PyQt4 8875 WARNING: Removing import PIL.ImageQt from module PyQt4.QImage 8875 WARNING: Removing import PIL.ImageQt from module PyQt4.QPixmap

The agent.exe fails with: Critical error: Failed to exec. script agent, if double clicked. However if I remove --noconsole, and then run it inside the console, I get the folowing error:

Traceback (most recent call last): File "agent.py", line 16, in <module> File "C:\Python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module exec(bytecode, module.__dict__) File "modules\screenshot.py", line 1, in <module> File "C:\Python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module exec(bytecode, module.__dict__) File "PIL\ImageGrab.py", line 18, in <module> File "C:\Python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module exec(bytecode, module.__dict__) File "PIL\Image.py", line 67, in <module> File "C:\Python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module exec(bytecode, module.__dict__) File "PIL\_imaging.py", line 7, in <module> File "PIL\_imaging.py", line 6, in __bootstrap__ ImportError: DLL load failed: The specified module could not be found. Failed to execute script agent

So I'm not sure how to fix this....

Pls help! 🥇

P.S: after more testing today, I discovered that the agent runs fine if screenshot module is excluded.