peass-ng / PEASS-ng

PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)

Home Page:https://book.hacktricks.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] WinPEAS Exceptions / Internet Explorer Enumeration

godylockz opened this issue · comments

Issue description

There are exceptions happening in winpeas c# executable due to calling Directory.EnumerateFiles or Directory.EnumerateDirectories without checking if the file/directory exists first. I believe its faster to check if something exists versus making it cause an exception since exception handling can be slow.

In IE History enumeration, the HKCU\\SOFTWARE\\Microsoft\\Internet Explorer\\TypedURLsTime registry key seems like its outdated and was filtering the history down to 0.

A pull request will follow for this issue.