pupy icon indicating copy to clipboard operation
pupy copied to clipboard

Generate a no-random server && ps1_oneliner

Open hohenh opened this issue 5 years ago • 2 comments

Debian 9 x64 INSTALL : by readme github via virtualenv ~/.local/bin/pupysh.py

Hi,

I want generate a no-random server, in the past with you're previous code, i have fix this problem.

See : https://github.com/n1nj4sec/pupy/issues/683#issuecomment-429061520

But actualy the code have been changed.

./pupysh && gen -f .NET_oneliner (or ps1_oneliner)

That run a server and generate a line like : http://192.168.0.12/RANDOM/RANDOM

I have try to change a line in /pupy/pupy/pupylib/PupyWeb.py line 292--> return '/'+'testing'

But that didn't work. That change only the webroot=/, and i think this is no a good work. I am not comfortable with python, i'm better with bash.

Is it possible to tell me how change that, like previous code ? Or, maybe i can try to find a way. Thank for helps, and sorry for my english

My opinion "I think the possibility of running a server non-random is very usefull, for penetration-testing and other work. It's very simple to test the persistence (windows) in start-up's folder, but if you have a ssh shell problem, or if the server have a problem, you can't restart a same server for use the payload and you should make again a payload."

hohenh avatar Jul 05 '19 21:07 hohenh

It would be nice if we had the chance to set our own URI paths! Vote up for that!

kkar avatar Aug 28 '19 18:08 kkar

You can configure a static webroot in the config file. You can also enable payload persistence there. So, generate the PS one-liner and then navigate to the webroot (~/.config/pupy/data/wwwroot/) and rename it.

Now everything is static.

glides avatar Sep 18 '19 17:09 glides