Hnfull / Intensio-Obfuscator

Obfuscate a python code 2.x and 3.x
MIT License
624 stars 128 forks source link

syntax error raised while handling code folding #11

Closed EddieIvan01 closed 5 years ago

EddieIvan01 commented 5 years ago

source code:

a = [
    1, 2, 3, 4, 5, 
    6, 7, 8, 9, 0,
]
for _ in a:
    print('xx' 
        'xx')

command

python3 intensio_obfuscator.py -i t -c python -o s -m high -p

running output file

λ python3 x.py
  File "x.py", line 2
    mRPaDyfOMcwRmabGZJeyTdjmgpripLfmwSbyXgRdzTfGPKCrAvDVIVWYQNaXoVsKkYwfuSckBGuCYkDPdUXVqQKRXAgifdERowdVqwVmNZJvJXHclqIOlOAKGixJtTWM = 'KzAydUQYNeQHOEcbwskdvfJQWbfXTJsieWSJLjkQpwKvctoYMbyKRARqCTnqBkntcBuNCoXInfaeQNHslfHquZDTATCbRkhEqBKMOFdjTLaiIqGogrHOgSMoAqypVsuQ'

                                                       ^
SyntaxError: invalid syntax

the output file is like:

a = [
obfus_str1 = 'xxxxx'
obfus_str2 = 'xxxxx'
# etc.
Hnfull commented 5 years ago

thank you for this bug report :)

Hnfull commented 5 years ago