question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[new feature] sanitize array value

See original GitHub issue

hi,

lets say now is like

var _0x2MX0 = ["\x75\x70\x64\x61\x74\x65\x64\x21","\x75\x72\x6c","\x23\x6f\x43\x4f\x4d\x50\x41\x4e\x59\x5f\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e\x4c\x61\x72\x67\x65"];
if (realORdebug)
                _0x2IN18890 = _0x2IN0[5];
            else
                _0x2IN18890 = _0x2IN0[4];

will be more secure as

if (_0x2IN6850)
                _0x2IN18890 = _0x2IN0[(9-4)];
            else
                _0x2IN18890 = _0x2IN0[~((-(2))-3)];

years ago implemented on a desktop application doing JS obfuscation, getting snippets from Poly engine by http://confuser.codeplex.com/SourceControl/latest#Confuser.Core/Poly/

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
sanex3339commented, Mar 19, 2017

Escape unicode sequence - very bad protection, that’s why i created option to disable it (escapeUnicodeSequence: false) and i thinking i should make this option disabled by default.

Real string protection - stringArrayEncoding option with rc4 value

1reaction
sanex3339commented, Mar 18, 2017

just replace eval with console.log -) https://jsfiddle.net/ayb9hrg8/

Read more comments on GitHub >

github_iconTop Results From Across the Web

what is a good method to sanitize the whole $_POST array in ...
This question already has answers here:​​ The $_POST values are then individually embedded into new variables, so I would only be using array_map ......
Read more >
Sanitizing Arrays: The WordPress Settings API - Tom McFarlin
A custom sanitization function that will take the incoming input, ... Initialize the new array that will hold the sanitize values.
Read more >
Sanitizing text fields in array - php - WordPress Stack Exchange
The best way to sanitize text fields within WordPress is to use sanitize_text_field() function: $data = sanitize_text_field( $_POST['key'] );.
Read more >
Sanitizer() - Web APIs - MDN Web Docs
The Sanitizer() constructor creates a new Sanitizer object, ... key is the attribute name and the value is an Array of allowed tag...
Read more >
Sanitizing a multi-dimensional array #1660 - GitHub
How can I sanitize a multi-dimensional array in POST? $_POST['my-example'] is a multi-dimensional array like: array( array( 'someValue' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found