How to inspect - log variable from js of website u visit?

How to inspect - log variable from js of website u visit?
0

#1

I want to see data of variables of desired website
So I tried to download full page and to add logs but then I got CORS.
Server does not have jsonp feature


#2

Did you try to inspect the element?
Then from inside the console, check out the Sources section. It usually shows the js file.


#3

that was my ‘very’ first attempt


#4

Did it not work?
What site were you looking at?


#5

No matter what target is, i asked globally


when u open js file.in sources, u cant inspect variables, in case u dont put `debugger;` in code + i cant use browser console cause in my case vatiable doesnt have global reference nor some kind nested reference

#6

I’m sorry. This must be beyond my scope of knowledge.
I hope someone else can provide the answer.


#7

I ll try soon to trace incoming data from server and somehow to change js file before it is loaded.in browser


#8

Please let me know how that is working for you.


#9

This article may be of interest to you:
Things you probably didn’t know you could do with Chrome’s Developer Console
http://me.dm/r-i5_T8q4mge?source=email-anon_edfcd2ed26fd--publication.newsletter


#10

very useful post ty
But do not help me in my case


https://www.tutorialspoint.com/security_testing/hacking_web_applications.htm

Here under section web proxy
burp suite can achive this
There is also how he works
I didnt try this, cause some time i will not have access to computer
But software features looks straightforward


#11

Thank you. I will check it out.