calebstewart / pwncat

Fancy reverse and bind shell handler
https://pwncat.readthedocs.io
MIT License
2.59k stars 252 forks source link

Enhancement request: Support the ability to change local directory while in pwncat #218

Closed DanaEpp closed 2 years ago

DanaEpp commented 2 years ago

Feature Description

Sometimes when running pwncat it is launched from an unexpected location. It would be nice to be able to change the local working directory while in session, so that if you are in a dir without write perms you can switch away to a dir you do have permission to.

It would be helpful if it supported tab completion to help with path discovery. ie: When recording all loot downloads in a deep file structure like /home/user/engagements/client_some_gawd_aweful_guid/host_abc/loot

It would be great if this followed similar syntax as other tools do for "local change directory", like lcd loot. This way, when running download without a destination path it will drop it to the right directory cleanly.

Alternatives

Right now if you use download source destination it will drop it where it should go. However, this gets cumbersome if you are trying to record all loot downloads in a deep file structure. ie: /home/user/engagements/client_some_gawd_aweful_guid/host_abc/loot

DanaEpp commented 2 years ago

That's awesome. Thanks Caleb!