KDot227 / Somalifuscator-Powershell-Edition

Stable powershell Obfuscator with lots of room for improvement
MIT License
6 stars 0 forks source link

Breaks a lot of commands #1

Open nv05hndi1306 opened 2 weeks ago

nv05hndi1306 commented 2 weeks ago

This looks sick, respect! But it sadly destroys a lot of commands, which make the code kind of unusable. Is it normal?

KDot227 commented 1 week ago

This looks sick, respect! But it sadly destroys a lot of commands, which make the code kind of unusable. Is it normal?

Can you provide any instances of code which don't work?

nv05hndi1306 commented 1 week ago

This looks sick, respect! But it sadly destroys a lot of commands, which make the code kind of unusable. Is it normal?

Can you provide any instances of code which don't work?

If writing Write-Host "" the prompt will show [string]::Empty. Variables like $host or $null dont work anymore, switching between functions is buggy/sometimes dont work (either takes 1-3 seconds to instantly skips a function ->2nd function has for example $null = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") at the end so it doesnt stop, it just instantly "skips" it, as $null doesnt work)

Something like this also doesnt work anymore

for ($i = 35; $i -le 75; $i++) {
    Write-Host -NoNewline "`r Downloading "
    Write-Host -NoNewline "preset" -ForegroundColor Cyan
    Write-Host -NoNewline ", please wait ["
    Write-Host -NoNewline "$i%" -ForegroundColor Red
    Write-Host -NoNewline "]"
    Start-Sleep -Milliseconds 20
}

and more visual bugs

KDot227 commented 6 days ago

This looks sick, respect! But it sadly destroys a lot of commands, which make the code kind of unusable. Is it normal?

Can you provide any instances of code which don't work?

If writing Write-Host "" the prompt will show [string]::Empty. Variables like $host or $null dont work anymore, switching between functions is buggy/sometimes dont work (either takes 1-3 seconds to instantly skips a function ->2nd function has for example $null = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") at the end so it doesnt stop, it just instantly "skips" it, as $null doesnt work)

Something like this also doesnt work anymore

for ($i = 35; $i -le 75; $i++) {
    Write-Host -NoNewline "`r Downloading "
    Write-Host -NoNewline "preset" -ForegroundColor Cyan
    Write-Host -NoNewline ", please wait ["
    Write-Host -NoNewline "$i%" -ForegroundColor Red
    Write-Host -NoNewline "]"
    Start-Sleep -Milliseconds 20
}

and more visual bugs

I see. I'm fixing right now

KDot227 commented 6 days ago

Issue is now fixed with that code. If you encounter any more issues please lmk.

nv05hndi1306 commented 6 days ago

Issue is now fixed with that code. If you encounter any more issues please lmk.

Still the same issues, $host doesnt work, but it could be replaced, $null also doesnt work and it still shows [string]::Empty, if writing 'Write-Host ""'

nv05hndi1306 commented 5 days ago

Issue is now fixed with that code. If you encounter any more issues please lmk.

$env also doesnt work

KDot227 commented 5 days ago

Issue is now fixed with that code. If you encounter any more issues please lmk.

Still the same issues, $host doesnt work, but it could be replaced, $null also doesnt work and it still shows [string]::Empty, if writing 'Write-Host ""'

I need to add in all global vars to the list. Right now I only have a few. It can be found within the variable obfuscation file. Write-Host returns [string::Empty?

nv05hndi1306 commented 5 days ago

Issue is now fixed with that code. If you encounter any more issues please lmk.

Still the same issues, $host doesnt work, but it could be replaced, $null also doesnt work and it still shows [string]::Empty, if writing 'Write-Host ""'

I need to add in all global vars to the list. Right now I only have a few. It can be found within the variable obfuscation file. Write-Host returns [string::Empty?

Also yes and the other ones I've said

KDot227 commented 4 days ago

Thank you for the feedback. Both issues should be fixed now.

nv05hndi1306 commented 4 days ago

Thank you for the feedback. Both issues should be fixed now.

Nice, it is fixed, but I still found issues (sorry if im annoying ;D)

It duplicates "'", if they're in a write-host message (maybe also outside of these write suff) and if writing Write-Host "'", the script shows [string]::Empty, seems like it handles this ' incorrectly anywhere

nv05hndi1306 commented 4 days ago

IMG_1328 it also shows this

KDot227 commented 4 days ago

IMG_1328 it also shows this

What was the code before obfuscation?

nv05hndi1306 commented 4 days ago

IMG_1328 it also shows this

What was the code before obfuscation?

$Host.UI.RawUI.WindowSize = New-Object Management.Automation.Host.Size(121, 42) $Host.UI.RawUI.BufferSize = New-Object Management.Automation.Host.Size(121, 300)

its caused here, as the number obfuscation probably changes them

nv05hndi1306 commented 4 days ago

but idk why it duplicates the ' and shows [string]::Empty, if writing Write-Host "'"

KDot227 commented 3 days ago

but idk why it duplicates the ' and shows [string]::Empty, if writing Write-Host "'"

It's because I just didn't make a good enough check for it. I'll fix that today too thank you.

nv05hndi1306 commented 2 days ago

but idk why it duplicates the ' and shows [string]::Empty, if writing Write-Host "'"

It's because I just didn't make a good enough check for it. I'll fix that today too thank you.

Is it already changed?