trustedsec / unicorn

Unicorn is a simple tool for using a PowerShell downgrade attack and inject shellcode straight into memory. Based on Matthew Graeber's powershell attacks and the powershell bypass technique presented by David Kennedy (TrustedSec) and Josh Kelly at Defcon 18.
https://www.trustedsec.com
Other
3.74k stars 817 forks source link

removed a singleton-comparison pitfall #159

Closed NaelsonDouglas closed 2 years ago

NaelsonDouglas commented 3 years ago

The problem In Python when comparing to singletons, the use of the operator 'is' instead of '==' is encouraged. This pitfall was detected using Pylint, under the code C0121 More about it can be found here: https://vald-phoenix.github.io/pylint-errors/plerr/errors/basic/C0121.html

Solution Replaced '==' to 'is' when comparing to singletons