GithubHelp home page GithubHelp logo

Comments (2)

LcyDev avatar LcyDev commented on August 25, 2024
# Any of these will raise an exception when obfuscated:
{print(i) for i in range(2)}
[print(i) for i in range(2)]
(print(i) for i in range(2))

Error:

{path}\obfuscated>py test.py

    module __main__ raised an Exception:
     unexpected indent (<string>, line 88)
Traceback (most recent call last):
  File "{path}\obfuscated\test.py", line 85, in <module>
    _invert._algorithm(Add = -50834 * _invert.DetectVar)

                                                                  ;XXWXXXWXWWWWWWXXXWXX()(wwwwxxwxwwwwxwwwwxwww(OO0Oooo0O0O0oO00o0(oOooooOOOoooDOooODoOo(WWWWWWWWXWXXXWWXWWWXXX('\x76\x61\x72\x73'))),_statistics.System(_positive='LLJJJIJJIIIIIILIIIIJ')+_statistics.System(_positive='wxwwxwwxwxxwwxwxxxxw')))
  File "<string>", line 88
    print(lilljiiijijiiljlljiljjil)
    ^
IndentationError: unexpected indent
 ^^^

from hyperion.

LcyDev avatar LcyDev commented on August 25, 2024

However, defining a variable and using comprehensions work perfectly:

    dict_comp = {i: i*i for i in range(10)}
    list_comp = [x*x for x in range(10)]
    set_comp = {i%3 for i in range(10)}
    gen_comp = (2*x+5 for x in range(10))

And updating the code to this will work:

    # Any of these will work perfectly:
    print("Starting Test")
    print(" Test1: {}")
    x = {print(i) for i in range(2)}
    print(" Test2: []")
    y = [print(i) for i in range(2)]
    print(" Test3: ()")
    z = (print(i) for i in range(2))
    print("Success!")
{path}\obfuscated>py test.py

    Starting Test
     Test1: {}
    0
    1
     Test2: []
    0
    1
     Test3: ()
    Success!

from hyperion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.