Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] eval specific function returns #1

Open
ahxxm opened this issue May 30, 2019 · 3 comments

Comments

@ahxxm
Copy link

commented May 30, 2019

for example the script has a string obfuscate function for access, defined like this:

var _0x131 = function(index, key){return obfs();}

then access becomes:

this[_0x131('0x2', '3W*K')](_0x131('0x3', '8uoO'))

there will be tons of _0x131 call, but currently I need to:

  • copy _0x131 definition to console and eval
  • select one full call, click eval
  • select next....

@ahxxm ahxxm changed the title [feature request] eval function returns [feature request] eval specific function returns May 30, 2019

@ahxxm

This comment has been minimized.

Copy link
Author

commented May 30, 2019

one workaround for select is to use built-in Ctrl-f: next match, eval, next match .. but sill not scalable..
image

@willnode

This comment has been minimized.

Copy link
Owner

commented May 30, 2019

I think i get your idea. A "function subtitution". It behaves similar to array subtitution but does eval to a function.

One challenging problem to this idea is when that function requires a variable or a function that's outside their scope, e.g. Window -- but I think it's far less common anyway so let's see if I can make it happen.

@ahxxm

This comment has been minimized.

Copy link
Author

commented May 30, 2019

I wrote an AHK script to do repetitive mouse clicks..

In my case the function is not self-contained, it does require a variable and this variable requires additional initialization step. I had to eval it before use eval button..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.