Perspective HTML Injection

So... while doing some module debugging, I noticed Ignition trying to access a non-existent folder <install-directory>\data\modules\com.inductiveautomation.perspective\injectables.

After creating the folder manually, Ignition then tried to access:

injectables\head_top.txt
injectables\head_bottom.txt
injectables\body_top.txt
injectables\body_bottom.txt

And what do you know, any HTML you put in these files will be directly loaded in the DOM of all Perspective sessions :man_shrugging: .

java_xpBJWmVKrm

PS: Please don't send the hit squad :upside_down_face: .

12 Likes

Oh this is gonna be fun !

edit: It's been 11h and we still haven't heard from Victor.
I'm guessing he's currently being held in custody for of all the server fires in his area.

8 Likes

TL;DR: This has been possible forever. You're certainly allowed to do it (we can't stop you) but I'll present the following caveats as reasons we haven't and won't document this:

  1. You can completely break Perspective, pretty easily, with this
  2. We don't want you to have to know HTML or JS to develop in Perspective
  3. We don't want people doing silly stuff like trying to dynamically modify these
  4. Anything you do use this for should be considered unsupported. If we ever broke this functionality, it would likely be because we offered a supported, first-party solution, so I wouldn't necessarily worry about it dropping out from underneath you, but also, don't even think about contacting support if you do use this and something goes wrong.
6 Likes

I had exams xd

Does look interesting though. could be usefull to track some general things on every page. Tho it being loaded everywhere is not super versatile

Yea, right...
You don't wanna say IA orange clockworked you for a week somewhere in a damp basement, I get it.

xD It was AI actual not IA :stuck_out_tongue: im following a course for AI (artifical intellengce)

Nope. Unfortunately, AI doesn't stand for Actual Intelligence. :rofl:

Well for many specific applications AI is a lot smarter than us.
But yes the all purpose general super AI isnt there yet

reading up on some of the recent questions...

This could be usefull for:

1 Like

I'm with ya. I've been learning it too.

Hear me out……

banner ads

:laughing:

1 Like

it would be super easy to add in google adds or something yes...
i dont think you'll be able to sell that to your clients though xd

watch this add for 10 sec before you can press the emergency stop button
Clash of clans...

7 Likes

does this get loaded in on the login page too? could be usefull to highjack that page for 3th party login methodes or something

(if you know what you are doing ofc)