KDot227 / SomalifuscatorV2

Most advanced and poorly coded windows batch obfuscator ever made (aka the best)
https://sped.lol
Apache License 2.0
279 stars 40 forks source link

return "^" if (ran := random.choice([True, False])) else "" #35

Closed minanagehsalalma closed 1 year ago

minanagehsalalma commented 1 year ago

running the setup.bat file

Traceback (most recent call last):
  File "C:\Users\Potato\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\Potato\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\src\main.py", line 7, in <module>
    from util.ui.ui import Ui, UiLinux
  File "C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\src\util\ui\ui.py", line 6, in <module>
    from util.methods.common.common import console
  File "C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\src\util\methods\common\common.py", line 74
    return "^" if (ran := random.choice([True, False])) else ""
                       ^
SyntaxError: invalid syntax
github-actions[bot] commented 1 year ago

If you need fast help join the server https://discord.gg/qvkC6kHqer

KDot227 commented 1 year ago

running the setup.bat file


Traceback (most recent call last):

  File "C:\Users\Potato\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main

    "__main__", mod_spec)

  File "C:\Users\Potato\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code

    exec(code, run_globals)

  File "C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\src\main.py", line 7, in <module>

    from util.ui.ui import Ui, UiLinux

  File "C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\src\util\ui\ui.py", line 6, in <module>

    from util.methods.common.common import console

  File "C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\src\util\methods\common\common.py", line 74

    return "^" if (ran := random.choice([True, False])) else ""

                       ^

SyntaxError: invalid syntax

Please use python 3.11 or higher. 3.10 might work too.

minanagehsalalma commented 1 year ago

@KDot227 thanks now the error is gone but the output bat file doesn't seem to work

trying to debug it

C:\Users\Potato\Downloads\Proj X\example>dddd_obf.bat > 1.txt
'■' is not recognized as an internal or external command,
operable program or batch file.
X\example was unexpected at this time.

and in the text file


C:\Users\Potato\Downloads\Proj X\example>þ & cls

C:\Users\Potato\Downloads\Proj X\example>þ  1>nul 2>&1  && exit   1>nul 2>&1  || cls  

```
KDot227 commented 1 year ago

@KDot227 thanks now the error is gone but the output bat file doesn't seem to work

trying to debug it


C:\Users\Potato\Downloads\Proj X\example>dddd_obf.bat > 1.txt

'■' is not recognized as an internal or external command,

operable program or batch file.

X\example was unexpected at this time.

and in the text file


C:\Users\Potato\Downloads\Proj X\example>þ & cls

C:\Users\Potato\Downloads\Proj X\example>þ  1>nul 2>&1  && exit   1>nul 2>&1  || cls  

I'll take a look when I'm home

KDot227 commented 1 year ago

does the code still execute when ran?

minanagehsalalma commented 1 year ago

does the code still execute when ran?

Nope

KDot227 commented 1 year ago

does the code still execute when ran?

Nope

Does it work with debug mode turned on?

minanagehsalalma commented 1 year ago

does the code still execute when ran?

Nope

Does it work with debug mode turned on?

nope , what diff does it make ?

FinalPlainText_obf.bat > 11.txt
1%PROGRAMFILES:C:\Program was unexpected at this time.
KDot227 commented 1 year ago

does the code still execute when ran?

Nope

Does it work with debug mode turned on?

nope , what diff does it make ?

FinalPlainText_obf.bat > 11.txt
1%PROGRAMFILES:C:\Program was unexpected at this time.

it gives the debug text and uses a lot less obfuscation. Can you try and find the line that doesn't work? Also please update and run test_all.py and press 3 and make sure all tests are obfuscated correctly. Providing your batch code would also help a lot.

minanagehsalalma commented 1 year ago

Also please update and run test_all.py and press 3 and make sure all tests are obfuscated correctly

updated to the latest version now i am getting this

Files=%l%jGK[R%y%pZmv#G%y%xiAy_%coMmOnprOgRAMfilEs(X86):~27 was unexpected at this time.

running the test_all.py

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ File Name                                                                              ┃ Level                ┃ Difference ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\tests\tests_full\simple_for.bat │ Obfuscated Correctly │ NONE       │
│ C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\tests\tests_full\test_10.bat    │ Obfuscated Correctly │ NONE       │
│ C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\tests\tests_full\test_2.bat     │ Obfuscated Correctly │ NONE       │
│ C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\tests\tests_full\test_3.bat     │ Obfuscated Correctly │ NONE       │
│ C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\tests\tests_full\test_4.bat     │ Obfuscated Correctly │ NONE       │
│ C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\tests\tests_full\test_5.bat     │ Obfuscated Correctly │ NONE       │
│ C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\tests\tests_full\test_7.bat     │ Obfuscated Correctly │ NONE       │
│ C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\tests\tests_full\test_8.bat     │ Obfuscated Correctly │ NONE       │
│ C:\Users\Potato\Downloads\Compressed\SomalifuscatorV2-main\tests\tests_full\test_9.bat     │ Obfuscated Correctly │ NONE       │
└────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────┴────────────┘
Press any key to continue...
KDot227 commented 1 year ago

can you send your batch code?

minanagehsalalma commented 1 year ago

can you send your batch code?

Here? Nope

But i can send u it... But where?

KDot227 commented 1 year ago

can you send your batch code?

Here? Nope

But i can send u it... But where?

kdot_227 discord

KDot227 commented 1 year ago

are you using any advanced for loops or if statements?

minanagehsalalma commented 1 year ago

can you send your batch code?

Here? Nope But i can send u it... But where?

kdot_227 discord

sent u add