Discuss Scratch

HeHeTeeHeeHee
Scratcher
100+ posts

Can websites see you use the Console tab in Inspect Element? [I am scared]

Alright, so for school we have to do this program called I-Ready and I got bored, so I opened inspect element and went to the console so I could Console.log stuff. I did not use any malicious scripts, I just said “this is super buggy” and used console.log to print Hi. Then I scrolled up and said that running commands without authorization can get your account banned. Can the website see even see if you print stuff in the console. Using console.log does not send anything to a server, right?

If my account gets banned I will be in big trouble with my school because I need it for homework and other stuff that is “important.” All I did was console.log a few things (Not malicious, just random stuff such as Hi and a bunch of gibberish). To reproduce open Inspect Element than go to console tab, which is next to the Elements tab.

Last edited by HeHeTeeHeeHee (March 3, 2022 15:13:18)

NanoRook
Scratcher
1000+ posts

Can websites see you use the Console tab in Inspect Element? [I am scared]

No, you're fine. I know of a couple of websites and web-based applications that print special messages to the console, but that's usually because exploiters/scammers will sometimes try to get people to open the dev console and spell out their login token or something.

Websites can't track when you use the developer console, and it's not like it's illegal to use because it's a major fixture of every modern browser anyways.
Verixion
Scratcher
100+ posts

Can websites see you use the Console tab in Inspect Element? [I am scared]

There could be a completely hacky way but no website I've used can see that you've used the console tab.

They could override console.log and other built-in functions in JavaScript on document start, so be careful of what you put inside!
HeHeTeeHeeHee
Scratcher
100+ posts

Can websites see you use the Console tab in Inspect Element? [I am scared]

Verixion wrote:

There could be a completely hacky way but no website I've used can see that you've used the console tab.

They could override console.log and other built-in functions in JavaScript on document start, so be careful of what you put inside!

Like I said, I'm not scared they will see what i put as it wasn't bad or personal, but the fact that I ran a command (console.log()) could get me banned.

also i'm not banned yet and i dont think i will be
god286
Scratcher
1000+ posts

Can websites see you use the Console tab in Inspect Element? [I am scared]

Verixion wrote:

They could override console.log and other built-in functions in JavaScript on document start, so be careful of what you put inside!
Yeah..
// trick
const applicationState = console.log;
console.log = function(log) {
  applicationState(log);
  /* I can do whatever I want */
}
mybearworld
Scratcher
1000+ posts

Can websites see you use the Console tab in Inspect Element? [I am scared]


That's really hacky and unlikely though

Last edited by mybearworld (March 3, 2022 19:50:32)

god286
Scratcher
1000+ posts

Can websites see you use the Console tab in Inspect Element? [I am scared]

HeHeTeeHeeHee wrote:

but the fact that I ran a command (console.log()) could get me banned
Would userscripts get people banned?
HeHeTeeHeeHee
Scratcher
100+ posts

Can websites see you use the Console tab in Inspect Element? [I am scared]

mybearworld wrote:


That's really hacky and unlikely though

Yeah no, I just said hi, lol
I just felt like writing JS in a place that isn't an IDE

Last edited by HeHeTeeHeeHee (March 3, 2022 21:40:13)

Chiroyce
Scratcher
1000+ posts

Can websites see you use the Console tab in Inspect Element? [I am scared]

It's actually pretty easy for them to detect if you're using console.log, it's very unlikely they'll do this, though.

console.log = (e) => {alert("DO NOT USE THE JS CONSOLE!!")}



HeHeTeeHeeHee wrote:

Using console.log does not send anything to a server, right?
By default, no. If they are very very curious about the commands their users run, they can send your commands to the server (not all, but most)

// In this example it will only send console.log data
console.log = async (e) => {
    await fetch('/log-console-commands', {
        method: "POST",
        body: JSON.stringify( {command : e })
    })
}

Last edited by Chiroyce (March 4, 2022 04:32:19)

HeHeTeeHeeHee
Scratcher
100+ posts

Can websites see you use the Console tab in Inspect Element? [I am scared]

Chiroyce wrote:

It's actually pretty easy for them to detect if you're using console.log, it's very unlikely they'll do this, though.

console.log = (e) => {alert("DO NOT USE THE JS CONSOLE!!")}



HeHeTeeHeeHee wrote:

Using console.log does not send anything to a server, right?
By default, no. If they are very very curious about the commands their users run, they can send your commands to the server (not all, but most)

// In this example it will only send console.log data
console.log = async (e) => {
    await fetch('/log-console-commands', {
        method: "POST",
        body: JSON.stringify( {command : e })
    })
}

Yeah I doubt it lol, if they do, do you think they would ban me for console.logging jibberish
Chiroyce
Scratcher
1000+ posts

Can websites see you use the Console tab in Inspect Element? [I am scared]

HeHeTeeHeeHee wrote:

Yeah I doubt it lol, if they do, do you think they would ban me for console.logging jibberish
Most likely a warning, that's it. Don't worry, my school's website is even worse for the users lol



mybearworld
Scratcher
1000+ posts

Can websites see you use the Console tab in Inspect Element? [I am scared]

Actually, don't worry. If they really want to, they could block right clicks (as above) and could just ban the CTRL button:

Last edited by mybearworld (March 4, 2022 16:29:57)

Powered by DjangoBB