Code Monkey home page Code Monkey logo

Comments (18)

Charliedean avatar Charliedean commented on July 18, 2024

Hi,
Can you run with payloads with the -debug flag please.

Thanks

from winpayloads.

patxeco avatar patxeco commented on July 18, 2024

Thanks for your speed, but how can i run payloads with the -debug flag ?
I'm sorry, I'm a little new

from winpayloads.

Charliedean avatar Charliedean commented on July 18, 2024

./Winpayloads.py -debug

from winpayloads.

patxeco avatar patxeco commented on July 18, 2024

Charliedean the output is as follows:
[*] Creating Payload using Pyinstaller ...

1031 WARNING: Internal error: early pywin32 import was introduced

Traceback (most recent call last):

  File "/opt/pyinstaller/pyinstaller.py", line 15, in

    Run ()
  File "Z: \ opt \ pyinstaller \ PyInstaller \ __ main__.py", line 62, in run

    Import PyInstaller.building.build_main

  File "Z: \ opt \ pyinstaller \ PyInstaller \ building \ build_main.py", line 32, in

    From ..depend import bindepend

  File "Z: \ opt \ pyinstaller \ PyInstaller \ depend \ bindepend.py", line 18, in

    Import pefile

ImportError: No module named pefile

Mv: can not perform `stat 'on' dist / payload.exe ': There is no file or directory

[*] Payload.exe Has Been Generated And Is Located Here: /root/winpayloads/Windows_Meterpreter_Reverse_Shell.exe

Rm: can not be deleted «dist»: There is no file or directory

Rm: can not delete «build»: There is no file or directory

Rm: can not be deleted «* .spec»: There is no file or directory

from winpayloads.

Charliedean avatar Charliedean commented on July 18, 2024

Okay re run the setup file with the -r flag
./setup.sh -r

from winpayloads.

patxeco avatar patxeco commented on July 18, 2024

I did it but the result is the same ...

from winpayloads.

Charliedean avatar Charliedean commented on July 18, 2024

Please give the output or I cannot help you.

from winpayloads.

Charliedean avatar Charliedean commented on July 18, 2024

The output of setup -r

from winpayloads.

patxeco avatar patxeco commented on July 18, 2024

The output of setup -r is very extensive you need all or something in particular.

from winpayloads.

Charliedean avatar Charliedean commented on July 18, 2024

Upload to pastebin please

from winpayloads.

patxeco avatar patxeco commented on July 18, 2024

Sorry to have delayed and thanks for your patience.
https://pastebin.com/rCGAec1X

from winpayloads.

Charliedean avatar Charliedean commented on July 18, 2024

Try this:
wine ~/.wine/drive_c/Python27/Scripts/pip.exe install pefile
Paste output please

from winpayloads.

patxeco avatar patxeco commented on July 18, 2024

root@kali:/# wine /root/.wine/drive_c/Python27/Scripts/pip.exe install pefile
You are using pip version 7.0.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied (use --upgrade to upgrade): pefile in c:\python27\lib\site-packages
Requirement already satisfied (use --upgrade to upgrade): future in c:\python27\lib\site-packages (from pefile)

from winpayloads.

Charliedean avatar Charliedean commented on July 18, 2024

Hmm odd.
You shouldn't have any issues.
Could you try to generate again?

from winpayloads.

patxeco avatar patxeco commented on July 18, 2024

[*] Creating Payload using Pyinstaller...
4269 WARNING: Internal error: early pywin32 import was introduced
Traceback (most recent call last):
File "/opt/pyinstaller/pyinstaller.py", line 15, in
run()
File "Z:\opt\pyinstaller\PyInstaller_main_.py", line 62, in run
import PyInstaller.building.build_main
File "Z:\opt\pyinstaller\PyInstaller\building\build_main.py", line 32, in
from ..depend import bindepend
File "Z:\opt\pyinstaller\PyInstaller\depend\bindepend.py", line 27, in
from . import dylib, utils
File "Z:\opt\pyinstaller\PyInstaller\depend\utils.py", line 25, in
from ..lib.modulegraph import util, modulegraph
File "Z:\opt\pyinstaller\PyInstaller\lib\modulegraph\util.py", line 16, in
from ._compat import StringIO, BytesIO, get_instructions
File "Z:\opt\pyinstaller\PyInstaller\lib\modulegraph_compat.py", line 29, in
from dis3 import get_instructions
ImportError: No module named dis3
mv: no se puede efectuar `stat' sobre 'dist/payload.exe': No existe el fichero o el directorio

[] Payload.exe Has Been Generated And Is Located Here: /root/winpayloads/Windows_Meterpreter_Reverse_Shell.exe
rm: no se puede borrar 'dist': No existe el fichero o el directorio
rm: no se puede borrar 'build': No existe el fichero o el directorio
rm: no se puede borrar '
.spec': No existe el fichero o el directorio

from winpayloads.

Charliedean avatar Charliedean commented on July 18, 2024

Okay try:
wine ~/.wine/drive_c/Python27/Scripts/pip.exe install dis3

from winpayloads.

patxeco avatar patxeco commented on July 18, 2024

Charliedean you finally found the solution, thank you very much for your help and your time.

from winpayloads.

Charliedean avatar Charliedean commented on July 18, 2024

No problem,
Not sure why you had this issue

from winpayloads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.