Questions tagged [javascript]

JavaScript or JS is an interpreted computer programming language. It was originally implemented as part of web browsers.

JavaScript or JS is an interpreted computer programming language. It was originally implemented as part of web browsers so that client-side scripts could interact with the user, control the browser, communicate asynchronously, and alter the document content that was displayed. JavaScript is a prototype-based scripting language that is dynamic, weakly typed, and has first-class functions.

JS is a multi-paradigm language, supporting object-oriented, imperative, and functional programming styles.

100 questions
7
votes
1 answer

How do I reverse this javascript code? How is it packed?

I've a couple of questions regarding this javascript code, I found injected in one of my web pages. What is this script doing? Which tool is used to pack or obfuscate this script? How can I learn the working of this script? I've used this tool:…
4
votes
1 answer

Is there a tool to compare javascript files for differences, while also ignoring local identifier changes?

When trying to compare the difference between two minified javascript files with random identifier names, about 95% of the changes are identifiers being renamed. I would like to use a tool that ignores these renames and just shows actual code…
Camlan
  • 41
  • 1
2
votes
0 answers

How to analyse the communication between a WebApp loaded with awesomium and the native program?

I have a Windows program that uses awesomium to display a WebApp. This WebApp communicates in some way with the client program through some native calls. I found references to window.externalHost and window.native in the JS source, but it's build…
samuirai
  • 3,079
  • 4
  • 23
  • 37
2
votes
1 answer

HTML/JS app - getting a reference to an element which is not part of the DOM

I am trying to debug an app which I don't own which uses HTML5 and JS, which displays a video stream. The issue is that the video stutters when viewed in high resolution. Note that the code is obfuscated, but has been prettyfied which helps a…
KevinHJ
  • 123
  • 3
2
votes
0 answers

Generating specific request cookies for a website

I have a script that autocheckouts products on a website (bot), recently the site seemed to update something and I keep getting 403 blocks(Perimeter X). My old solution was simply to rotate and brute force with unblocked proxies but now with proxies…
scraps
  • 21
  • 1
2
votes
1 answer

automatically find the object "this" refers to in js

Im quite new to javascript and sometimes I find it really hard to find what object a keyword 'this' refers to. Is there a code editor that is able to do that for me? Or any other advice that could help me :) Thanks!
Hukei
  • 21
  • 1
2
votes
2 answers

How work this obfuscation, and how deobfuscate?

Ø Ø¡Ø¢Ø£Ø¤Ø¥Ø¦Ø§=~[];Ø Ø¡Ø¢Ø£Ø¤Ø¥Ø¦Ø§={___:++Ø Ø¡Ø¢Ø£Ø¤Ø¥Ø¦Ø§,$$$$:(![]+"")[Ø Ø¡Ø¢Ø£Ø¤Ø¥Ø¦Ø§],__$:++Ø Ø¡Ø¢Ø£Ø¤Ø¥Ø¦Ø§,$_$_:(![]+"")[Ø Ø¡Ø¢Ø£Ø¤Ø¥Ø¦Ø§],_$_:++Ø Ø¡Ø¢Ø£Ø¤Ø¥Ø¦Ø§,$_$$:({}+"")[Ø Ø¡Ø¢Ø£Ø¤Ø¥Ø¦Ø§],$$_$:(Ø Ø¡Ø¢Ø£Ø¤Ø¥Ø¦Ø§[Ø Ø¡Ø¢Ø£Ø¤Ø¥Ø¦Ø§]+"")[Ø…
ESCM
  • 143
  • 4
1
vote
0 answers

How does one go about reverse-engineering obfuscated/minified JavaScript in a browser like you would code in an IDE?

I am trying to figure out how some minified and possible highly-obfuscated JavaScript works. There are thousands of lines spanning multiple JS files. I have had a lot of success debugging it in my Chromium browser using dev tools and local overrides…
1
vote
0 answers

How to programmatically add HTML DOM breakpoints in chromium?

I've seen from this post about Chromium DevTools that there exists the possibility to add DOM breakpoints. Given that I've a full range of elements to monitor I was trying to find a way to programmatically add such breakpoints. To achieve a similar…
Gabrio
  • 111
  • 2
1
vote
2 answers

How to copy video address from tweet?

Twitter has an option to right-click on a video and "copy video address" but this button seems to be broken as it doesn't copy anything to the clipboard, even after I disable Ghostery/adblock. I wanted to find the link directly in the html source…
Tommy K
  • 119
  • 1
  • 3
1
vote
1 answer
1
vote
0 answers

Movies Anywhere ID?

I'm looking to automate requesting movies from different retailers on Movies Anywhere. The URL for the request is:…
Travis
  • 11
  • 1
1
vote
2 answers

IDA Pro Alternative for JavaScript?

I am looking for a good "disassembler" for JavaScript, like IDA Pro but for JS. I am looking at a chrome extension, but the JavaScript is heavily obfuscated. After deobfuscating, I am left with variable and function names like "_0xa893x5". This is…
jBit
  • 23
  • 6
0
votes
0 answers

Reversing an obfuscated javascript library making heavy use of promises

I am reversing a little javascript library for my private use. This library is using promises to pass data around between different functions. This way, you cannot backtrack the function that is responsible for "creating" the data. Its hidden behind…
0
votes
1 answer

Census world and US population clocks

I'm trying to figure out the formula used by the US Census Department's world and US population clocks here: https://www.census.gov/popclock/?intcmp=home_pop I'm pretty sure they're using a browser-computed formula and not contacting a server on the…
user10070
1
2