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

JS variable bulk renamer #149

Closed
2 tasks done
KOLANICH opened this issue Feb 6, 2019 · 5 comments
Closed
2 tasks done

JS variable bulk renamer #149

KOLANICH opened this issue Feb 6, 2019 · 5 comments
Labels
Beginner Simple projects that can be done by people relatively new to programming. Joined This project has someone working on it. Little work This project takes little time to complete. (ETA couple of days)

Comments

@KOLANICH
Copy link

KOLANICH commented Feb 6, 2019

Project description

JS obfuscators tend to reuse variable (and everything else) names if their scopes don't overlap in order to break search.

This can be undone. Just descend the AST, for each scope create a mapping old var name -> new var name, where a new name is unique, and rename the vars. Then one can search the document by variables names.

Relevant Technology

ESPrima.

Complexity and required time

Complexity

  • Beginner - This project requires no or little prior knowledge of the technolog(y|ies) specified to contribute to the project

Required time (ETA)

  • Little work - A couple of days
@FredrikAugust FredrikAugust added Beginner Simple projects that can be done by people relatively new to programming. Little work This project takes little time to complete. (ETA couple of days) labels May 15, 2019
@FredrikAugust
Copy link
Collaborator

I'll start to work on this now.

@FredrikAugust FredrikAugust added the Joined This project has someone working on it. label May 16, 2019
@FredrikAugust
Copy link
Collaborator

https://fredrikaugust.github.io/bulk-renamer/. Constructive feedback is welcome :)

@FredrikAugust
Copy link
Collaborator

Github pages hasn't updated the settings yet, but it should be up soon.

@KOLANICH
Copy link
Author

Thank you. I guess further discussion should go in that repo.

@KOLANICH
Copy link
Author

BTW: https://github.com/palant/js-analysis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Beginner Simple projects that can be done by people relatively new to programming. Joined This project has someone working on it. Little work This project takes little time to complete. (ETA couple of days)
Projects
None yet
Development

No branches or pull requests

2 participants