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

Run failed #11

Closed mamba-2021 closed 1 week ago

mamba-2021 commented 1 week ago

Great tool But I have a problem. When this tool is running locally, it appears blank. Could you please help me take a look Is there a problem with my system, or is it because some features of the tool have been commented out, or something image Thank you.

The-Viper-One commented 1 week ago

Hi @mamba-2021.

When running this locally, you should load the script into memory using "dot sourcing." This involves loading it into the current scope with the following command:

. .\PsMapExec.ps1

You can then freely run commands such as:

PsMapExec -help

image

A second and generally preferred option is to load directly into memory from Github.

IEX(New-Object System.Net.WebClient).DownloadString("https://raw.githubusercontent.com/The-Viper-One/PsMapExec/main/PsMapExec.ps1")

Then check if loaded correctly.

PsMapExec -help

image

I hope this helps!

mamba-2021 commented 1 week ago

image I used the first method you recommended, and now it's ready. Thank you very much, big shot. I wish you a happy life