MichaelXF / js-confuser

JS-Confuser is a JavaScript obfuscation tool to make your programs *impossible* to read.
https://js-confuser.com
MIT License
242 stars 37 forks source link

SyntaxError: Identifier '_0x0FD4B81' has already been declared #119

Open Probabilities opened 11 months ago

Probabilities commented 11 months ago

Describe the bug:

SyntaxError: Identifier '_0x0FD4B81' has already been declared

Config and Small code sample

Config:

{
            target: 'node',
            preset: 'high',

            nameRecycling: false, // Gives error if true

            stringConcealing: true,
            stringEncoding: true,
            stringSplitting: 0.99,

            shuffle: { hash: 0.99, true: 0.99 },
            identifierGenerator: 'hexadecimal',

            globalVariables: true,      
            objectExtraction: true,
            renameGlobals: true,
            renameVariables: true, // variable errors with true
            deadCode: true,

            calculator: true,
            stack: true,
            compact: true,
            lock: {
                osLock: ['windows'],
                integrity: true,
                antiDebug: false,
                countermeasures: true,
                selfDefending: true,
            },
        }

Code:

The code is span across multiple files. Summing up to around 5k lines of code. (cant send it)

Expected behavior

Should work lol

Actual behavior

Errors with "SyntaxError: Identifier '_0x0FD4B81' has already been declared"

Additional context

No idea what part of my code is causing this error since such a large project. Found that "renameVariables" is causing this error though. When set to false it runs fine but sensitive data can be seen when set to false. With that I would rather change my code than have this setting disabled.

Probabilities commented 11 months ago

Update: found the file in which the error is. I am willing to send the code to MichaelXF but I will not post public on github.