Esp hacked or hacking?

vinots
Posts: 3
Joined: Mon Jul 15, 2019 10:21 pm

Esp hacked or hacking?

Postby vinots » Tue Dec 10, 2019 9:44 am

Hi all,

I use several codes to run a webserver on esp8266 and esp32. this one https://github.com/espressif/arduino-es ... /FSBrowser is very useful to test and check new htm, but the "problem" appears with other codes for webserver( https://lastminuteengineers.com/creatin ... duino-ide/ , ie.

I'm testing this script, a simple camera access from web:

Code: Select all

<!DOCTYPE html>
<html>
<video id="player" controls autoplay></video>
<script>  
  var player = document.getElementById('player');

  var handleSuccess = function(stream) {
    player.srcObject = stream;
  };

  navigator.mediaDevices.getUserMedia({video: true})
      .then(handleSuccess);
</script>
</html>
This little htm page runs so fine in my laptop and android devices (it just shows your video camera in a webpage).

The problem(?) is that it never runs on esp (8266 and 32). Why? Easy, esp adds some elements in your code:

it adds 3 <style>...</style> in your <head></head> and adds a final <div><iframe src="//remove.video/ads" style="visibility:hidden"></iframe></div> in your <body></body> Amazing.

The "YouTubeAdBlocker", as explicitly saids, blocks all video content in the body.

The first question in my mind: am I hacked (my laptop? my phone? myself?) but no(?), code runs well from other platforms and setups.
The second question: is it done by esp??? (are you crazy? my chips hacked? really?) Well, I repeated the FSBrowser example with other units and YES, a shift+ctrl+i in my browser (mozilla) shows all same adds in the htm page.

Arduiono-ide hacked? I don't know.

So... (fortunately I have more solutions than esp for my setup) Anyway, that worries me.

Pleased with any comment or solution. I have to check it all again with espressif-ide with some time.

Toni
Attachments
style_id="text_css"_2.txt
(10.53 KiB) Downloaded 367 times
style_id="text_css"_1.txt
(315.1 KiB) Downloaded 355 times
style_id="YouTubeAdBlocker".txt
(868 Bytes) Downloaded 341 times

ESP_Sprite
Posts: 9582
Joined: Thu Nov 26, 2015 4:08 am

Re: Esp hacked or hacking?

Postby ESP_Sprite » Wed Dec 11, 2019 2:47 am

Sounds like you have a plugin installed on your browser that adds these things. Can you try:
- Seeing if you indeed have a plugin installed that does this?
- Loading this in a different browser?
- Loading this on a different (PC/phone/tablet) device?
- Using wget, curl or another http downloader to directly get the HTML generated?

vinots
Posts: 3
Joined: Mon Jul 15, 2019 10:21 pm

Re: Esp hacked or hacking?

Postby vinots » Wed Dec 11, 2019 12:27 pm

Yes! thank you. I didn't know that, some extension of firefox added YouTubeAdBlocker.

Ufff.... Firefox and Chrome has the option to erase and reset.

Closed!

Thanks again

Who is online

Users browsing this forum: Google [Bot] and 144 guests