elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Arreglado, de nuevo, el registro del warzone (wargame) de EHN


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  Error en exe creado con pyinstaller
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Error en exe creado con pyinstaller  (Leído 2,768 veces)
Sentex

Desconectado Desconectado

Mensajes: 87


Programador


Ver Perfil WWW
Error en exe creado con pyinstaller
« en: 8 Abril 2018, 23:27 pm »

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
  1. 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.
  2. 672 INFO: PyInstaller: 3.3.1
  3. 676 INFO: Python: 2.7.0
  4. 678 INFO: Platform: Windows-7-6.1.7601-SP2
  5. 685 INFO: wrote C:\RonMalware\client.spec
  6. 701 INFO: UPX is not available.
  7. 706 INFO: Extending PYTHONPATH with paths
  8. ['C:\\RonMalware', 'C:\\RonMalware']
  9. 713 INFO: checking Analysis
  10. 718 INFO: Building Analysis because out00-Analysis.toc is non existent
  11. 726 INFO: Initializing module dependency graph...
  12. 774 INFO: Initializing module graph hooks...
  13. 902 INFO: running Analysis out00-Analysis.toc
  14. 951 INFO: Adding Microsoft.VC90.CRT to dependent assemblies of final executable
  15.  required by c:\Python27\python.exe
  16. 997 INFO: Searching for assembly x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
  17. 1006 INFO: Found manifest C:\windows\WinSxS\Manifests\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_deadbeef.manifest
  18. 1026 INFO: Searching for file msvcr90.dll
  19. 1030 INFO: Found file C:\windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_deadbeef\msvcr90.dll
  20. 1041 INFO: Searching for file msvcp90.dll
  21. 1046 INFO: Found file C:\windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_deadbeef\msvcp90.dll
  22. 1060 INFO: Searching for file msvcm90.dll
  23. 1064 INFO: Found file C:\windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_deadbeef\msvcm90.dll
  24. 1074 INFO: Adding redirect Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 21022, 8)
  25. 1315 INFO: Caching module hooks...
  26. 1331 INFO: Analyzing C:\RonMalware\client.py
  27. 4644 INFO: Processing pre-safe import module hook   urllib3.packages.six.moves
  28. 11006 INFO: Processing pre-find module path hook   distutils
  29. 15789 INFO: Loading module hooks...
  30. 15792 INFO: Loading module hook "hook-distutils.py"...
  31. 15799 INFO: Loading module hook "hook-PIL.py"...
  32. 15807 INFO: Excluding import 'FixTk'
  33. 15813 INFO: Excluding import 'Tkinter'
  34. 15822 INFO: Excluding import 'PyQt5'
  35. 15830 INFO:   Removing import of PyQt5 from module PIL.ImageQt
  36. 15843 INFO: Excluding import 'PySide'
  37. 15862 INFO:   Removing import of PySide from module PIL.ImageQt
  38. 15869 INFO: Excluding import 'PyQt4'
  39. 15875 INFO:   Removing import of PyQt4 from module PIL.ImageQt
  40. 15885 INFO: Loading module hook "hook-httplib.py"...
  41. 15891 INFO: Loading module hook "hook-_tkinter.py"...
  42. 16690 INFO: checking Tree
  43. 16692 INFO: Building Tree because out00-Tree.toc is non existent
  44. 16698 INFO: Building Tree out00-Tree.toc
  45. 16977 INFO: checking Tree
  46. 16980 INFO: Building Tree because out01-Tree.toc is non existent
  47. 16991 INFO: Building Tree out01-Tree.toc
  48. 17029 INFO: Loading module hook "hook-PIL.Image.py"...
  49. 18325 INFO: Loading module hook "hook-requests.py"...
  50. 18339 INFO: Loading module hook "hook-cv2.py"...
  51. 21925 INFO: Processing pre-safe import module hook   _xmlplus
  52. 22714 INFO: Processing pre-find module path hook   site
  53. 22720 INFO: site: retargeting to fake-dir 'c:\\Python27\\lib\\site-packages\\PyInstaller\\fake-modules'
  54. 29451 INFO: Loading module hook "hook-certifi.py"...
  55. 29468 INFO: Loading module hook "hook-setuptools.py"...
  56. 29573 INFO: Loading module hook "hook-PIL.SpiderImagePlugin.py"...
  57. 29583 INFO: Excluding import 'FixTk'
  58. 29592 INFO: Excluding import 'Tkinter'
  59. 29599 INFO: Loading module hook "hook-encodings.py"...
  60. 31196 INFO: Loading module hook "hook-numpy.core.py"...
  61. 32574 INFO: Loading module hook "hook-sqlite3.py"...
  62. 33002 INFO: Loading module hook "hook-sysconfig.py"...
  63. 33013 INFO: Loading module hook "hook-xml.py"...
  64. 33201 INFO: Loading module hook "hook-pydoc.py"...
  65. 33210 INFO: Excluding import 'Tkinter'
  66. 33218 INFO:   Removing import of Tkinter from module pydoc
  67. 33224 INFO: Loading module hook "hook-pkg_resources.py"...
  68. 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.
  69. 34223 INFO: Processing pre-safe import module hook   win32com
  70. 34960 INFO: Loading module hook "hook-pywintypes.py"...
  71. 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.
  72. 35790 INFO: Loading module hook "hook-win32com.py"...
  73. 36960 INFO: Loading module hook "hook-pythoncom.py"...
  74. 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.
  75. 37862 INFO: Looking for ctypes DLLs
  76. 37944 INFO: Analyzing run-time hooks ...
  77. 37962 INFO: Including run-time hook 'pyi_rth__tkinter.py'
  78. 37970 INFO: Including run-time hook 'pyi_rth_pkgres.py'
  79. 37985 INFO: Including run-time hook 'pyi_rth_win32comgenpy.py'
  80. 37997 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
  81. 38030 INFO: Looking for dynamic libraries
  82. 38300 INFO: Searching for assembly x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
  83. 38308 INFO: Found manifest c:\Python27\lib\site-packages\Pythonwin\Microsoft.VC90.MFC.manifest
  84. 38321 INFO: Searching for file mfc90.dll
  85. 38324 INFO: Found file c:\Python27\lib\site-packages\Pythonwin\mfc90.dll
  86. 38332 INFO: Searching for file mfc90u.dll
  87. 38336 INFO: Found file c:\Python27\lib\site-packages\Pythonwin\mfc90u.dll
  88. 38347 INFO: Searching for file mfcm90.dll
  89. 38365 INFO: Found file c:\Python27\lib\site-packages\Pythonwin\mfcm90.dll
  90. 38375 INFO: Searching for file mfcm90u.dll
  91. 38379 INFO: Found file c:\Python27\lib\site-packages\Pythonwin\mfcm90u.dll
  92. 38390 INFO: Adding redirect Microsoft.VC90.MFC version (9, 0, 21022, 8) -> (9, 0, 21022, 8)
  93. 58931 INFO: Looking for eggs
  94. 58934 INFO: Using Python library c:\Python27\python27.dll
  95. 58945 INFO: Found binding redirects:
  96. [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')]
  97. 59011 INFO: Warnings written to C:\RonMalware\build\client\warnclient.txt
  98. 59221 INFO: Graph cross-reference written to C:\RonMalware\build\client\xref-client.html
  99. 59745 INFO: checking PYZ
  100. 59747 INFO: Building PYZ because out00-PYZ.toc is non existent
  101. 59758 INFO: Building PYZ (ZlibArchive) C:\RonMalware\build\client\out00-PYZ.pyz
  102. 61743 INFO: Building PYZ (ZlibArchive) C:\RonMalware\build\client\out00-PYZ.pyz completed successfully.
  103. 62003 INFO: checking PKG
  104. 62006 INFO: Building PKG because out00-PKG.toc is non existent
  105. 62013 INFO: Building PKG (CArchive) out00-PKG.pkg
  106. 63257 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 21022, 8)
  107. 83576 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.
  108. 83863 INFO: Bootloader c:\Python27\lib\site-packages\PyInstaller\bootloader\Windows-32bit\runw.exe
  109. 83872 INFO: checking EXE
  110. 83876 INFO: Building EXE because out00-EXE.toc is non existent
  111. 83883 INFO: Building EXE from out00-EXE.toc
  112. 83888 INFO: Appending archive to EXE C:\RonMalware\dist\client.exe
  113. 83995 INFO: Building EXE from out00-EXE.toc completed successfully.
  114.  


En línea

Preguntas o peticiones en twitter o discord:

Discord: MrSentex#1227
Twitter: @fbi_sentex
Sentex

Desconectado Desconectado

Mensajes: 87


Programador


Ver Perfil WWW
Re: Error en exe creado con pyinstaller
« Respuesta #1 en: 10 Abril 2018, 15:51 pm »

Error Solucionado!

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


En línea

Preguntas o peticiones en twitter o discord:

Discord: MrSentex#1227
Twitter: @fbi_sentex
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Antivirus Bifrost 1.2 (Creado por mi) « 1 2 3 4 5 »
Seguridad
dimitrix 45 21,500 Último mensaje 10 Diciembre 2011, 18:29 pm
por $Edu$
Manual PHP Basico creado por mi :)
PHP
djtuxy 3 2,459 Último mensaje 11 Diciembre 2009, 20:05 pm
por :ohk<any>
Decompilar un .exe creado en CLIPPER
Ingeniería Inversa
cocoupn 1 6,911 Último mensaje 22 Abril 2010, 18:07 pm
por tena
PyArmor + Pyinstaller
Scripting
painpills 0 1,888 Último mensaje 3 Abril 2023, 15:52 pm
por painpills
¿Consideras el uso de pyinstaller una practica profesional?
Software
4v1dy4 2 4,798 Último mensaje 27 Octubre 2023, 13:04 pm
por 4v1dy4
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines