Error en exe creado con pyinstaller

Iniciado por Sentex, 8 Abril 2018, 23:27 PM

0 Miembros y 1 Visitante están viendo este tema.

Sentex

Buenas!.

Mi problema es el siguiente:

Tengo un script que quiero pasar a exe pero que no se vea y para ello uso el argumento --noconsole en pyinstaller pero cuando lo ejecuto da error. El script no tiene ningún error ya que funciona perfectamente sin pasarlo a exe. No se si es porque pyinstaller no coje todas las librerías pero necesito solucionarlo pronto. Gracias!.

Script:
https://github.com/MrSentex/RonMalware/blob/master/client.py

Output pyinstaller:
Código (bash) [Seleccionar]

0037:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
672 INFO: PyInstaller: 3.3.1
676 INFO: Python: 2.7.0
678 INFO: Platform: Windows-7-6.1.7601-SP2
685 INFO: wrote C:\RonMalware\client.spec
701 INFO: UPX is not available.
706 INFO: Extending PYTHONPATH with paths
['C:\\RonMalware', 'C:\\RonMalware']
713 INFO: checking Analysis
718 INFO: Building Analysis because out00-Analysis.toc is non existent
726 INFO: Initializing module dependency graph...
774 INFO: Initializing module graph hooks...
902 INFO: running Analysis out00-Analysis.toc
951 INFO: Adding Microsoft.VC90.CRT to dependent assemblies of final executable
  required by c:\Python27\python.exe
997 INFO: Searching for assembly x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
1006 INFO: Found manifest C:\windows\WinSxS\Manifests\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_deadbeef.manifest
1026 INFO: Searching for file msvcr90.dll
1030 INFO: Found file C:\windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_deadbeef\msvcr90.dll
1041 INFO: Searching for file msvcp90.dll
1046 INFO: Found file C:\windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_deadbeef\msvcp90.dll
1060 INFO: Searching for file msvcm90.dll
1064 INFO: Found file C:\windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_deadbeef\msvcm90.dll
1074 INFO: Adding redirect Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 21022, 8)
1315 INFO: Caching module hooks...
1331 INFO: Analyzing C:\RonMalware\client.py
4644 INFO: Processing pre-safe import module hook   urllib3.packages.six.moves
11006 INFO: Processing pre-find module path hook   distutils
15789 INFO: Loading module hooks...
15792 INFO: Loading module hook "hook-distutils.py"...
15799 INFO: Loading module hook "hook-PIL.py"...
15807 INFO: Excluding import 'FixTk'
15813 INFO: Excluding import 'Tkinter'
15822 INFO: Excluding import 'PyQt5'
15830 INFO:   Removing import of PyQt5 from module PIL.ImageQt
15843 INFO: Excluding import 'PySide'
15862 INFO:   Removing import of PySide from module PIL.ImageQt
15869 INFO: Excluding import 'PyQt4'
15875 INFO:   Removing import of PyQt4 from module PIL.ImageQt
15885 INFO: Loading module hook "hook-httplib.py"...
15891 INFO: Loading module hook "hook-_tkinter.py"...
16690 INFO: checking Tree
16692 INFO: Building Tree because out00-Tree.toc is non existent
16698 INFO: Building Tree out00-Tree.toc
16977 INFO: checking Tree
16980 INFO: Building Tree because out01-Tree.toc is non existent
16991 INFO: Building Tree out01-Tree.toc
17029 INFO: Loading module hook "hook-PIL.Image.py"...
18325 INFO: Loading module hook "hook-requests.py"...
18339 INFO: Loading module hook "hook-cv2.py"...
21925 INFO: Processing pre-safe import module hook   _xmlplus
22714 INFO: Processing pre-find module path hook   site
22720 INFO: site: retargeting to fake-dir 'c:\\Python27\\lib\\site-packages\\PyInstaller\\fake-modules'
29451 INFO: Loading module hook "hook-certifi.py"...
29468 INFO: Loading module hook "hook-setuptools.py"...
29573 INFO: Loading module hook "hook-PIL.SpiderImagePlugin.py"...
29583 INFO: Excluding import 'FixTk'
29592 INFO: Excluding import 'Tkinter'
29599 INFO: Loading module hook "hook-encodings.py"...
31196 INFO: Loading module hook "hook-numpy.core.py"...
32574 INFO: Loading module hook "hook-sqlite3.py"...
33002 INFO: Loading module hook "hook-sysconfig.py"...
33013 INFO: Loading module hook "hook-xml.py"...
33201 INFO: Loading module hook "hook-pydoc.py"...
33210 INFO: Excluding import 'Tkinter'
33218 INFO:   Removing import of Tkinter from module pydoc
33224 INFO: Loading module hook "hook-pkg_resources.py"...
0046:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
34223 INFO: Processing pre-safe import module hook   win32com
34960 INFO: Loading module hook "hook-pywintypes.py"...
0048:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
35790 INFO: Loading module hook "hook-win32com.py"...
36960 INFO: Loading module hook "hook-pythoncom.py"...
004a:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
37862 INFO: Looking for ctypes DLLs
37944 INFO: Analyzing run-time hooks ...
37962 INFO: Including run-time hook 'pyi_rth__tkinter.py'
37970 INFO: Including run-time hook 'pyi_rth_pkgres.py'
37985 INFO: Including run-time hook 'pyi_rth_win32comgenpy.py'
37997 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
38030 INFO: Looking for dynamic libraries
38300 INFO: Searching for assembly x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
38308 INFO: Found manifest c:\Python27\lib\site-packages\Pythonwin\Microsoft.VC90.MFC.manifest
38321 INFO: Searching for file mfc90.dll
38324 INFO: Found file c:\Python27\lib\site-packages\Pythonwin\mfc90.dll
38332 INFO: Searching for file mfc90u.dll
38336 INFO: Found file c:\Python27\lib\site-packages\Pythonwin\mfc90u.dll
38347 INFO: Searching for file mfcm90.dll
38365 INFO: Found file c:\Python27\lib\site-packages\Pythonwin\mfcm90.dll
38375 INFO: Searching for file mfcm90u.dll
38379 INFO: Found file c:\Python27\lib\site-packages\Pythonwin\mfcm90u.dll
38390 INFO: Adding redirect Microsoft.VC90.MFC version (9, 0, 21022, 8) -> (9, 0, 21022, 8)
58931 INFO: Looking for eggs
58934 INFO: Using Python library c:\Python27\python27.dll
58945 INFO: Found binding redirects:
[BindingRedirect(name=u'Microsoft.VC90.MFC', language=None, arch=u'x86', oldVersion=(9, 0, 21022, 8), newVersion=(9, 0, 21022, 8), publicKeyToken=u'1fc8b3b9a1e18e3b'), BindingRedirect(name=u'Microsoft.VC90.CRT', language=None, arch=u'x86', oldVersion=(9, 0, 21022, 8), newVersion=(9, 0, 21022, 8), publicKeyToken=u'1fc8b3b9a1e18e3b')]
59011 INFO: Warnings written to C:\RonMalware\build\client\warnclient.txt
59221 INFO: Graph cross-reference written to C:\RonMalware\build\client\xref-client.html
59745 INFO: checking PYZ
59747 INFO: Building PYZ because out00-PYZ.toc is non existent
59758 INFO: Building PYZ (ZlibArchive) C:\RonMalware\build\client\out00-PYZ.pyz
61743 INFO: Building PYZ (ZlibArchive) C:\RonMalware\build\client\out00-PYZ.pyz completed successfully.
62003 INFO: checking PKG
62006 INFO: Building PKG because out00-PKG.toc is non existent
62013 INFO: Building PKG (CArchive) out00-PKG.pkg
63257 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 21022, 8)
83576 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.
83863 INFO: Bootloader c:\Python27\lib\site-packages\PyInstaller\bootloader\Windows-32bit\runw.exe
83872 INFO: checking EXE
83876 INFO: Building EXE because out00-EXE.toc is non existent
83883 INFO: Building EXE from out00-EXE.toc
83888 INFO: Appending archive to EXE C:\RonMalware\dist\client.exe
83995 INFO: Building EXE from out00-EXE.toc completed successfully.
Preguntas o peticiones en twitter o discord:

Discord: MrSentex#1227
Twitter: @fbi_sentex

Sentex

Error Solucionado!

El uso de subprocess en --noconsole provoca un error fatal
Sustituir subprocess.Popen con output = os.popen("ipconfig").read()
Preguntas o peticiones en twitter o discord:

Discord: MrSentex#1227
Twitter: @fbi_sentex