The-Viper-One / PsMapExec

A PowerShell tool that takes strong inspiration from CrackMapExec / NetExec
https://viperone.gitbook.io/pentest-everything/psmapexec
BSD 2-Clause "Simplified" License
785 stars 92 forks source link

Any way to run without writing to disk? #6

Open evs-zdl opened 7 months ago

evs-zdl commented 7 months ago

Hi,

Great tool! Thanks so much!

In a situation where one needs to stay off disk, is there a way to run this so that all output/activity doesn't need to be written to disk and instead have output only in the PS console window?

Apologies in advance if I've missed something obvious.

Thanks

The-Viper-One commented 7 months ago

Hey,

Quite possibly yes. In its current state it does "run" in memory but as you might have seen some of the output does get stored to the disk on the local system.

image

For example, when running commands and checking access this will all be in memory. But if you use the -Module SAM for example this will write the output to the system you are running PsMapExec from.

I will set up a parameter that prevents output to disk in the next update. I will leave this issue open for time time being so I do not forget about it and will comment on this issue thread when the next update is pushed.

evs-zdl commented 7 months ago

Great stuff, that'll be really helpful.

Thanks for the quick response.