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

 

 


Tema destacado: Los 10 CVE más críticos (peligrosos) de 2020


  Mostrar Mensajes
Páginas: 1 [2] 3 4 5 6 7 8 9 10
11  Programación / Scripting / 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.  
12  Comunicaciones / Mensajería / Re: grupo de hackers en IRC en: 7 Abril 2018, 14:04 pm
bale con v por favor

13  Foros Generales / Dudas Generales / Re: Extraer .png de archivo cifrado en: 7 Abril 2018, 13:45 pm
Esas imagenes estan en un formato distinto al que tu ves normalmente o están comprimidas busca en google!.
14  Foros Generales / Dudas Generales / Re: Leer Cookies De Chrome y Su Valor en: 7 Abril 2018, 13:41 pm
Chrome cifra datos con una librería del propio windows y la única forma de desencriptarla es con tu pc. Digamos que cada windows lo cifra con una pass diferente pues tu teniendo acceso al ordenador lo puedes descifrar pero si tu pasas la db a otro ordenador se te sera imposible desencriptarlo. Por ejemplo en python se usa la libreria win32crypt y para descifrar un valor es:
Código
  1. data_uncrypt = win32crypt.CryptUnprotectData(data_crypt, None, None, None, 0)[1]
Este código lo usan herramientas como lazagne para leer las bases de datos de contraseñas de chrome.
15  Programación / Scripting / Re: ¿AYUDA A PRINCIPIANTE? Script de conversión numérica en: 7 Abril 2018, 13:29 pm
Yo es que uso python 2.7 ya que es la version con mas cosicas y la que a mi gusto funciona mejor.
16  Programación / Scripting / Re: Como Pasar .pyw a .Exe en: 7 Abril 2018, 13:27 pm
Supongo que lo que quieres hacer es crear un .exe desde un .pyw para que no se vea la consola y tal. Pues yo ya encontre la solucion por mi solo y es usar pyinstaller de la siguiente forma: pyinstaller file.py --onefile --noconsole. Y listo ya lo tendrías sin consola y compatible con todos los windows desde el 7 hacia arriba. Si estas en linux tendrás que instalar en wine python y pip instalar pyinstaller usando pip install pyinstaller en una cmd de wine y luego hacer el comando que te proporcione mas arriba y lo tendrás guardado en una carpeta llamada dist.
17  Programación / Scripting / Re: [PYTHON]¿Crear archivo de texto? en: 1 Abril 2018, 21:45 pm
para saber si es linux o windows un codigo sencillo es el siguiente:
Código
  1. import sys
  2.  
  3. def checkos():
  4.    if sys.platform == "win32":
  5.        return True
  6.    else:
  7.        return False
  8. if checkos():
  9.    print "Windows detectado"
  10. else:
  11.    print "Linux detectado"
  12.  
Para crear un archivo te recomiendo el siguiente código:
Código
  1. with  open("fichero.txt", "w") as file:
  2.    data = file.read()
  3.    print data
  4.    file.close()
  5.  
18  Programación / Scripting / Re: Ejecutar un proceso en segundo plano en python en: 1 Abril 2018, 16:16 pm
pero con python no se puede hacer nada de eso?
19  Programación / Scripting / Re: Ejecutar un proceso en segundo plano en python en: 1 Abril 2018, 01:53 am
No quiero saber si el script esta ejecutandose quiero ejecutar otro script en python en segundo plano. Por ejemplo en windows se puede hacer con powershell pero no se como hacerlo en linux.
20  Programación / Scripting / Re: ¿AYUDA A PRINCIPIANTE? Script de conversión numérica en: 31 Marzo 2018, 21:21 pm
Pa ti

Código
  1. # -*- coding: utf-8 -*-
  2.  
  3. def inicio():
  4. print ("-- Menu --")
  5. print("***********")
  6. print ("1- Conversión decimal a binario")
  7. print ("2- Conversión binario a decimal")
  8. print ("3- Conversión binario a hexadecimal")
  9. print ("4- Salir de la aplicación")
  10. print("")
  11. menu = raw_input("ingrese una opción: ")
  12.  
  13.  
  14. if menu == "1":
  15.  decimal = raw_input("Ingrese número decimal: ")
  16.  decbin(decimal)
  17. elif menu == "2":
  18.  binario = raw_input("Ingrese número binario: ")
  19. elif menu == "3":
  20.  binario = raw_input("Ingrese número binario: ")
  21. else:
  22.  print "Ha ingresado una opción incorrecta."
  23.  
  24. def decbin(decimal):
  25. print("Conversión de Decimal (Base 10) a Binario (Base 2)")
  26. binario = bin(int(round(float(decimal))))
  27. print "Su número binario es: ", str(binario)
  28.  
  29. inicio()
  30.  

No hace falta print("") solo con print "" funciona en versiones desde la 2.7 en adelante
Páginas: 1 [2] 3 4 5 6 7 8 9 10
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines