pupy icon indicating copy to clipboard operation
pupy copied to clipboard

The persistence script was not working?

Open baka9moe opened this issue 5 years ago • 4 comments

[-] payload generation failed: pupwinutils.persistence
Traceback (most recent call last):
  File "/home/ubuntu/tools/pupy_new/pupy/pupy/commands/gen.py", line 133, in do
    output = pupygen.pupygen(args, config, server, handler.display)
  File "/home/ubuntu/tools/pupy_new/pupy/pupy/pupygen.py", line 591, in pupygen
    debug=args.debug_scriptlets)
  File "/home/ubuntu/tools/pupy_new/pupy/pupy/pupygen.py", line 485, in pack_scriptlets
    script_code = sp.pack()
  File "/home/ubuntu/tools/pupy_new/pupy/pupy/scriptlets/__init__.py", line 141, in pack
    dependencies.importer(requirements, os=self.os)
  File "/home/ubuntu/tools/pupy_new/pupy/pupy/pupylib/payloads/dependencies.py", line 201, in importer
    blob, modules, _ = package(dependencies, os, arch, posix=posix, native=native)
  File "/home/ubuntu/tools/pupy_new/pupy/pupy/pupylib/payloads/dependencies.py", line 602, in package
    native=native
  File "/home/ubuntu/tools/pupy_new/pupy/pupy/pupylib/payloads/dependencies.py", line 560, in _package
    raise NotFoundError(module_name)
NotFoundError: pupwinutils.persistence

This is the command i used. gen -f client -O windows -A x64 -s keylogger -s persistence

baka9moe avatar Mar 12 '19 04:03 baka9moe

That scriptlet appears to be out of date. Back in Nov persistence methods were updated to be managed winpwnage, but the script wasn't updated.

https://github.com/n1nj4sec/pupy/commit/8e223560ffb7ac707dd0d9d8e36a56b517ce202b

glides avatar Mar 12 '19 23:03 glides

Any updates to this?

brezuicabogdan avatar Mar 09 '20 14:03 brezuicabogdan

@brezuicabogdan as far as I know you can use gen -l to list the persistence args but there's not much to run off of, as far as it shows. If you have any update on how to execute persistence, please reply back with some info on how you did it. I'm in the dark on this one.

I do use the startup folder for a little persistence though. since pupy's option does not work.

Vazza202 avatar Mar 18 '20 14:03 Vazza202

Fixed: https://github.com/n1nj4sec/pupy/pull/880

arschlochnop avatar Oct 06 '20 19:10 arschlochnop