cbhue / pyfuscation Goto Github PK
View Code? Open in Web Editor NEWObfuscate powershell scripts by replacing Function names, Variables and Parameters.
License: BSD 3-Clause "New" or "Revised" License
Obfuscate powershell scripts by replacing Function names, Variables and Parameters.
License: BSD 3-Clause "New" or "Revised" License
Some functions get translated to words like décolleté which doesn't work well with PowerShell.
I think it is important to mention in readme that this python module is only for linux systems.
Just noticed the python script hasn't been pushed to the repo yet
in 171 line:
new = "$" + ''.join([random.choice(string.ascii_letters + str(vNum)) for n in range(15)])
the str(vNum) will cause that the number in the first place, and a variable can't start with a number!
Tried obfuscating powerview but the output .ps1 file is not obfuscated.
± python3 PyFuscation.py -f --ps ./PowerView.ps1
------------------------------------------------------------------------------------------------------
_|_|_| _|_|_|_| _| _|
_| _| _| _| _| _| _| _|_|_| _|_|_| _|_|_| _|_|_|_| _|_| _|_|_|
_|_|_| _| _| _|_|_| _| _| _|_| _| _| _| _| _| _| _| _| _|
_| _| _| _| _| _| _|_| _| _| _| _| _| _| _| _| _|
_| _|_|_| _| _|_|_| _|_|_| _|_|_| _|_|_| _|_| _| _|_| _| _|
_|
_|_|
------------------------------------------------------------------------------------------------------
[+] Tool : PyFuscation
[+] Author : CB Hue
[+] Twitter : @_cbhue_
[+] github : https://github.com/CBHue
------------------------------------------------------------------------------------------------------
[!] Obfuscating: ./PowerView.ps1
sed: 1: "/<#/,/#>/c\\": extra characters after \ at the end of c command
sed: 1: "./09232020_14_53_02/092 ...": invalid command code .
[snipped]
[*] Replaced Remove-DomainGroupMember With: pasteurize
[*] Replaced Remove-DomainObjectAcl With: eradicating
[*] Replaced Remove-RemoteConnection With: giddy
[*] Replaced Resolve-IPAddress With: vertebrae
[*] Replaced Set-DomainObject With: rigidity
[*] Replaced Set-DomainObjectOwner With: serest
[*] Replaced Set-DomainUserPassword With: bulletins
[*] Replaced Split-Path With: assessors
[*] Replaced Test-AdminAccess With: sloths
[*] Replaced Test-Write With: selvedge
[*] Replaced psenum With: blandishments
[*] Replaced struct With: infinity
[-] Obfuscated Functions located : ./09232020_14_53_02/09232020_14_53_02.functions
[-] Obfuscated script located at : ./09232020_14_53_02/09232020_14_53_02.ps1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.