peass-ng / PEASS-ng

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

fix path too long #350

Closed Donovoi closed 1 year ago

Donovoi commented 1 year ago

Hi Carlos,

I believe I have fixed the path too long issue by using AlphaFS - https://alphafs.alphaleonis.com/

I've also managed to optimize two methods (I think, hopefully you can test this before merging also).

I've left some of your code commented so you can see what methods I've changed and quickly benchmark/test but happy to remove that and do the pull request again.

This will be my first c# commit so hopefully doesn't break anything.

Sorry about the wait

carlospolop commented 1 year ago

Thanks @Donovoi !! If you are interested in adding more stuff to Winpeas I could suggest you a couple of things