peass-ng / PEASS-ng

PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)
https://book.hacktricks.xyz
Other
15.59k stars 3.03k forks source link

Requires pressing enter to continue, otherwise gets stuck (and does not prompt) #217

Open my-other-github-account opened 2 years ago

my-other-github-account commented 2 years ago

WinPEAS.bat is getting stuck at various stages in its work, and will appear to hang unless I press enter to make it continue. If this is intentional, there should be an option to turn it off, as well as a message explaining that input is required. Otherwise it looks like a processing hang.

Which parameters did you use for executing the script and how did you execute it?

winPEAS.bat

If winpeas, did you use a clean or obfuscated winpeas, and for which architecture?

any

Is there any AV / Threat protection in the system?

No

Please, indicate the OS, the OS version, and the kernel version (build number in case of Windows)

Microsoft Windows [Version 6.1.7601] (but has occurred in several versions)

ZoeS17 commented 2 years ago

There's only one PAUSE(in master, which wasn't in your revision) at winPEAS.bat:634 so it should likely only "pause" once. That being said does this issue still exist on current master branch?

For reference a git diff 256b22d0dcac8d027027d4455b251dc48ff20215 c44f1aa9ef085125fd57f9e2429be7dbbef4f8c5 -- winPEAS/winPEASbat/winPEAS.bat would show all the changes in a terminal. And as far as I see mostly color escapes and some label reroute magic, for formatting reasons. Though I also see a few 2>nul pipes that might fix this issue too. Though I cannot unstead how that would've allowed you proceed had those calls error in the revision you were likely reporting from.