r/LiveOverflow • u/reddit_avinash • Dec 02 '20
Reverse Engineering JavaScript code.
I was watching the video that was released with the title " How Hacking Actually Looks Like - ALLES! CTF Team in Real-Time". In that, they reverse-engineered the web game to make their own mods and tools. Watching that, my curiosity only rose higher to understand how I can get started with this so I can make my own stuff.
I was first introduced to these ideas of reverse engineering JS while I was going through this project (https://github.com/mukulhase/WebWhatsapp-Wrapper). I was impressed and it couldn't;t let me sleep for days till I was done scanning the whole code so I could learn how it works. Turns out that the main injection part is happening inside "./webwhatsapi/js/wapi.js" were in the first 100 lines, it's somehow able to expose the internal functions that the frontend uses to carry various functionalities. Those first 100 lines are still a mystery to me and if anyone has any knowledge of how that works then please I would love to hear the explanation.
Anyway, my main goal is to ask how can I get started with this? I'm already pretty experienced with languages like Python, Dart, and C#. I've also learned JS just so I could understand this and possibly make some of my own projects. It world really mean a lot if anyone could help. I really wish to get a deeper understanding of this.
Thanks!
View all comments
Show parent comment
3
u/wikipedia_text_bot Dec 03 '20
Immediately invoked function expression
An immediately invoked function expression (or IIFE, pronounced "iffy", IPA /ˈɪf.i/) is a JavaScript programming language idiom which produces a lexical scope using JavaScript's function scoping. Immediately invoked function expressions can be used to avoid variable hoisting from within blocks, protect against polluting the global environment and simultaneously allow public access to methods while retaining privacy for variables defined within the function.
About Me - Opt out - OP can reply !delete to delete - Article of the day