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

Closed
ahxxm opened this issue May 30, 2019 · 4 comments
Closed

[feature request] eval specific function returns #1

ahxxm opened this issue May 30, 2019 · 4 comments

Comments

@ahxxm
Copy link

@ahxxm ahxxm 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
Copy link
Author

@ahxxm ahxxm 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

Loading

@willnode
Copy link
Owner

@willnode willnode 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.

Loading

@ahxxm
Copy link
Author

@ahxxm ahxxm 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..

Loading

@willnode
Copy link
Owner

@willnode willnode commented Dec 24, 2020

This is now can be done using eval push and pop (new feature). Thanks for the suggestion.

Loading

@willnode willnode closed this Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants