Jump to content

Automatic code execution on Project load


Recommended Posts

Hi all,

I recently found some interesting code at the german labviewforum.de.

Basically it looks like a not so funny prank.

LV-Chat

The included project starts an embedded VI after opening the .lvproj.

Warning:

I am not 100% sure if this is all harmless. As far as I can tell it displays some dialog boxes, writes a virus test pattern and opens notepad.exe with a temp file.

My current guess is, that the combination of a Xcontrol and the way LV loads lvclasses leads to the execution of the Init ability at load time.

I tried to copy the concept in the attached file xcontrol+lvclass.zip. But the Init.vi in my project doesn´t get executed before I manually open a VI that uses the XControl (this is of course the expected behavior).

Anyone has an idea what else is necessary to get this auto-execution at load time?

Link to comment

I was very scared as I opened the Chat project the first time.

The possible usage for distribution malicious code is really scary. On the other side, automatic launching of some helper VIs when I open a project might be a nice feature (e.g. forced update file state when working on a slow connection to a Perforce server, where LV-SCC integration is sometimes just unusable)

Thats why I want to understand how this works and what the load triggers are.

After I saved all VIs in the nutshell (they were not flagged as recompiled/edited) the auto-execution did stop in my machine at work. The .lvclass and .lvproj files didn't change, the VIs of course did. rolleyes.gif

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.