What's wrong with this python joke

Поделиться
HTML-код
  • Опубликовано: 16 янв 2025

Комментарии • 587

  • @altyshi
    @altyshi 6 месяцев назад +2157

    My errors are red.
    My screen is blue.
    I think I deleted system32.

  • @RiKO-6869
    @RiKO-6869 6 месяцев назад +2336

    Alternative video title: how to save 1GB of space on C disk

    • @tongpoo8985
      @tongpoo8985 6 месяцев назад

      Just never shut your computer down ever again and you can get a whole free gigabyte 🤌

    • @tundcwe123
      @tundcwe123 6 месяцев назад +161

      With just 2 lines of code!

    • @tomaspecl1082
      @tomaspecl1082 6 месяцев назад +157

      But remember, do not restart!

    • @hugurs2396
      @hugurs2396 6 месяцев назад +8

      😭

    • @cludration
      @cludration 6 месяцев назад +12

      and destroy windows LOL

  • @aperson1234-t8x
    @aperson1234-t8x 6 месяцев назад +865

    I always assumed these types of scripts were wrong on purpose in case anyone was dumb enough to try them

    • @legodragonx
      @legodragonx 6 месяцев назад +254

      I assumed they were just pseudocode that are easy readable and only mimicing python. Just to convey the idea

    • @Duckman4444
      @Duckman4444 6 месяцев назад +77

      I assumed that the code was a joke but it turns out the real joke was my pc not booting

    • @km077
      @km077 6 месяцев назад +12

      @@Duckman4444 Yes, that would be the punchline... that or the punch from the device owner. 😭

    • @verytuffcat
      @verytuffcat 6 месяцев назад +8

      ​​@@km077but that would just be a punch, not a line. or maybe it'll be the user's heart going flatline

    • @traveller23e
      @traveller23e 6 месяцев назад +11

      @@legodragonx And here I was thinking Python was just pseudocode that's easily readable and only mimicking a _real_ programming language 😛

  • @RomanianProductions
    @RomanianProductions 7 месяцев назад +832

    Fun fact: killing important processes in windows is not allowed but suspending them is… suspending "csrss.exe" for example hangs the system immediately and is impossible to recover from unless you force shutdown. I accidentally tested this and was surprised that it’s allowed

    • @fast_python
      @fast_python  7 месяцев назад +222

      yeah, this is really fun 😆

    • @apotatoman4862
      @apotatoman4862 6 месяцев назад +31

      genius to do that after this

    • @pretro6136
      @pretro6136 6 месяцев назад +7

      You can delete them, but it requires a lot of knowledge around windows

    • @crusaderACR
      @crusaderACR 6 месяцев назад +69

      Meanwhile Linux allows you to delete the fricking kernel and run zeros over it, and if it tries to complain you just yell a little harder

    • @asialsky
      @asialsky 6 месяцев назад

      Try running cmd as TrustedInstaller or System. Not usually allowed, but who cares what Microsoft thinks. ;)

  • @darkbladnewsofficial3580
    @darkbladnewsofficial3580 6 месяцев назад +339

    "The system is dead it just doesn't know it yet"

    • @kebien6020
      @kebien6020 6 месяцев назад +34

      Python: "Omae wa mou shindeiru"
      Windows: "NANI?"

    • @abigbagofchips
      @abigbagofchips 6 месяцев назад +8

      🎅🎅🐡🥕

    • @gneu1527
      @gneu1527 6 месяцев назад +7

      Hey apple?
      What?
      Import random
      Import os
      If random.randint(0,6) == 1:
      | os.remove("C:\Windows\System32")

    • @samukaze5810
      @samukaze5810 6 месяцев назад

      Your 100th like

    • @__christopher__
      @__christopher__ 6 месяцев назад

      Windows: "I'm not dead yet!"

  • @comrade_marshal
    @comrade_marshal 7 месяцев назад +1748

    Add lines to reboot PC after that ☠️

    • @4sent4
      @4sent4 7 месяцев назад +1

      `os.system("shutdown -t 0 -r -f")`

    • @TenCreator-2
      @TenCreator-2 7 месяцев назад +77

      It doesn’t matter ether way, windows will already be dead

    • @fast_python
      @fast_python  7 месяцев назад +443

      @@4sent4 "shutdown /r /f /n" for Windows (reboot force now)

    • @comrade_marshal
      @comrade_marshal 7 месяцев назад +167

      @@TenCreator-2 since OS is loaded on RAM, effect won't be visible. But forcing a reboot will surely be fun

    • @TenCreator-2
      @TenCreator-2 7 месяцев назад +10

      @@comrade_marshal yeah, I didn’t think of that, would be fun tho

  • @josephjustin4124
    @josephjustin4124 6 месяцев назад +216

    "Tutorial on deleting bloatware from windows" *deletes windows*

    • @SlayTh3DraG0n
      @SlayTh3DraG0n 6 месяцев назад +13

      Tutorial on deleting windows from bloatware

  • @rinkadev945
    @rinkadev945 7 месяцев назад +1043

    bro just gave us a tutorial to delete system32 with python

    • @choopie99
      @choopie99 6 месяцев назад +86

      yes, that was the purpose of this video, thanks for pointing that out.

    • @RubixstewYT
      @RubixstewYT 6 месяцев назад +24

      Nice one Sherlock! You figured out what the video was about!

    • @rinkadev945
      @rinkadev945 6 месяцев назад +28

      thx thx, i know i saved people lifes, thx

    • @MonkFeet10
      @MonkFeet10 6 месяцев назад +4

      Apply Russian Roulette (random) mechanics and we have danger!

    • @Yusuf-sy6rb
      @Yusuf-sy6rb 6 месяцев назад +9

      You learned grammar from TikTok or what?

  • @varietychan
    @varietychan 6 месяцев назад +265

    "Feel free to share it :)"
    what? The .py?

  • @another-niko-pfp-holder
    @another-niko-pfp-holder 6 месяцев назад +60

    whenever i code in python it's like my brain automatically forgets all this crucial info and i need to look at the documentation for half an hour to learn what i already know

    • @Marc-qz3bj
      @Marc-qz3bj 6 месяцев назад +14

      I literally searched for
      "How to print messages with python"
      Clicked search and the moment I saw "print" I just felt embareced

    • @baronbacku9984
      @baronbacku9984 5 месяцев назад +1

      me lookin up how to open files at least 10 times a day

    • @Fancy2209Real
      @Fancy2209Real 5 месяцев назад

      Reminds me of the time I made a function called trace that just printed the argument passed ​@@Marc-qz3bj

  • @trueriver1950
    @trueriver1950 6 месяцев назад +302

    Windows is already a form of Russian Roulette

    • @ThePC007
      @ThePC007 6 месяцев назад +23

      So is Python.

    • @halfsine
      @halfsine 5 месяцев назад

      no, it makes you want to do russian roulette

  • @blackog7820
    @blackog7820 7 месяцев назад +372

    Now imagine the potential, you can disguise this as a piracy installer for League of legends and watch the world burn

    • @fast_python
      @fast_python  7 месяцев назад +176

      That is why one should think twice before running a cracked software

    • @art0007i
      @art0007i 7 месяцев назад +97

      how would you pirate a free game

    • @fluoriteByte
      @fluoriteByte 7 месяцев назад

      ​@@art0007i game repacks for smaller download size

    • @zerron2156
      @zerron2156 7 месяцев назад +70

      I'd rather that than install the actual game, you'd do me a solid 👌

    • @someyetiwithinternetaccess1253
      @someyetiwithinternetaccess1253 7 месяцев назад +30

      ​@@art0007i that's the point 💀

  • @fcantil
    @fcantil 7 месяцев назад +140

    A reminder that using a forward slash (/) also works, but i suppose it is faster to just make it a raw string due to how the Explorer prefers to use backslashes

    • @fast_python
      @fast_python  7 месяцев назад +29

      good point

    • @realitant
      @realitant 6 месяцев назад +3

      It also can be platform dependent in certain use cases

    • @qlx-i
      @qlx-i 6 месяцев назад +9

      A reminder that windows is fucking trash and nothing in cmd is even remotely stndardized

    • @traveller23e
      @traveller23e 6 месяцев назад +2

      @@realitant to be fair, the directory being deleted is also platform-dependent

    • @traveller23e
      @traveller23e 6 месяцев назад

      @@qlx-i Powershell has its issues too. It's both a shell/scripting language _and_ a fully-fledged .net language, and native methods and .net stuff act in different ways. For example when you mess up the syntax they give different (and non-intuitive) feedback, and the working directories for native and .net methods are distinct. Truly the worst programming language I've ever had to use, barring esoteric languages and the like.

  • @packman28
    @packman28 6 месяцев назад +89

    Glad I wasn’t the only one who always got mildly annoyed whenever I saw this joke

  • @shadow_blader192
    @shadow_blader192 6 месяцев назад +344

    randint(0, 6) is 7 options :)

    • @dwdadevil
      @dwdadevil 6 месяцев назад +17

      Exactly!

    • @tonylovesmusic
      @tonylovesmusic 6 месяцев назад +31

      sometimes i forgot randint(a, b) chooses a random number between a and b,,,, and not a to b - 1 😅

    • @Rando2101
      @Rando2101 6 месяцев назад +5

      ​@@tonylovesmusicfr, I don't even know if it's good or bad

    • @theemeraldend4302
      @theemeraldend4302 6 месяцев назад +6

      @@Rando2101 I'd say it's good only because of consistancy with both numbers. Easier to explain to newer people to programming

    • @justaneric
      @justaneric 6 месяцев назад +6

      yeah, it can be 0, 1, 2, 3, 4, 5 or 6 which is 7 choices

  • @OrloxPhoenix
    @OrloxPhoenix 6 месяцев назад +48

    So the gun can't instantly kill you but you eventually bleed out 🤔

    • @tundcwe123
      @tundcwe123 6 месяцев назад +20

      Yes, you survive as long as you don't pass out. You can probably heal from that though, I am not sure how it works but I guess you could download the folder somewhere

    • @filval387
      @filval387 6 месяцев назад +19

      @@tundcwe123 "Hey bro... Can you email me your entire system32 folder?"
      "What? Why?"
      "My computer is bleeding to death..."
      "WHAT?!?!?!"

    • @tundcwe123
      @tundcwe123 6 месяцев назад +12

      @@filval387 "It lost in Russian roulette. Just email me the folder."

    • @fast_python
      @fast_python  6 месяцев назад +2

      it can hurt you in other ways X)

  • @SpecLad
    @SpecLad 6 месяцев назад +110

    The joke has another problem - Windows is not always installed in C:\Windows. You should be using the SystemRoot environment variable.

    • @seavuy
      @seavuy 6 месяцев назад +4

      whats the code then?

    • @marshmallow8709
      @marshmallow8709 6 месяцев назад +27

      ​@@seavuy aww cute

    • @shadesoftime
      @shadesoftime 6 месяцев назад +66

      The guy who has windows installed in something other than C:\Windows is probably smart enough to not run random python scripts already lol

    • @qlx-i
      @qlx-i 6 месяцев назад

      @@seavuy either os.environ["SystemRoot"] if the commenter is to trust idk i use linux

    • @emre_ez
      @emre_ez 6 месяцев назад +2

      Yeah while you could change the installation directory in versions like 9x in modern versions, you have to jump through a lot of hoops to do that. Enderman has a video on it

  • @therandomsomeone.
    @therandomsomeone. 7 месяцев назад +2446

    you gave the revolver 7 chambers
    edit: you clearly have no idea how random.randint works, so before replying rtfm

    • @fast_python
      @fast_python  7 месяцев назад +616

      I am not the first one en.wikipedia.org/wiki/Nagant_M1895

    • @Lixxide
      @Lixxide 6 месяцев назад +117

      bro got the the premium

    • @dizzeep2023
      @dizzeep2023 6 месяцев назад +89

      I‘m not sure (haven‘t look into the documentation in this case specifically) but often with functions that you give a range it is inclusive on the lower boundary and exclusive on the upper boundary.
      for x in range(0,5):
      print(x)
      Will give you
      0
      1
      2
      3
      4
      If that is the case for this randint function the revolver has six chambers: 0, 1, 2, 3, 4 and 5.
      Bottom line: read the documentation , everyone.

    • @therandomsomeone.
      @therandomsomeone. 6 месяцев назад +215

      @@dizzeep2023 randint does not work like range

    • @muslimgamerrr9479
      @muslimgamerrr9479 6 месяцев назад +17

      @@fast_python LMAO

  • @thismightbetwo
    @thismightbetwo 6 месяцев назад +26

    the bluescreen gave me a heart attack because i thought it was on my pc

  • @muskyoxes
    @muskyoxes 6 месяцев назад +22

    I know why it's wrong! Programming is illegal on windows unless you create a project in some hideous visual studio bloatware

  • @5cover
    @5cover 7 месяцев назад +83

    This is weird. I thought the System32 folder was protected by TrustedInstaller and as such not administrator permissions weren't even enough to remove it.

    • @fast_python
      @fast_python  7 месяцев назад +61

      Any system can be broken with admin permissions. That is why by default many Linux distributions does not include users in sudoers

    • @Jupiter__001_
      @Jupiter__001_ 6 месяцев назад +7

      ​@@fast_pythonBut that is a bit counterproductive because in Linux you need root permissions to install programmes

    • @fast_python
      @fast_python  6 месяцев назад +34

      @@Jupiter__001_ yes. Even more. I would expect that the first user always has admin/sudo permissions. It is simple logic - there are no users but me. If I can not do whatever I want, then who can?

    • @5cover
      @5cover 6 месяцев назад +8

      @@fast_python yes but OS critical files should be protected to prevent some random script from destroying your system. And in fact - they are. Most system32 files are owned by TrustedInstaller or the System user and their ACL don't include administrators.
      To alter windows system files you have to
      - Change ownership of the file to yourself (takeown)
      - Grant yourself total control over the file (icacls)
      But... I guess we're back to square 1, since you can do that automatically too.
      Someone suggested that the OS should be stored on a protected partition and that any modifications should be submitted to manual confirmation.
      Anyway, I wonder: did you alter the permission sets of System32 files before recording this video? I'd test it myself but I don't have access to a windows vm right now.

    • @fast_python
      @fast_python  6 месяцев назад +20

      @@5cover No, it is the default system installed from the image downloaded from the official MS website. I just uninstalled some excessive packages like Solitaire and XBox and switched off additional services like OneDrive. Oh, and changed the appearance to show hidden folders and file extensions. Visual effects were switched off in order to increase the performance. This VM has 4 GB RAM and even after all of this, Windows still works slowly as hell.

  • @GSFigure
    @GSFigure 6 месяцев назад +14

    The second I saw this meme I was instantly disgusted by how it fails to give you the correct odds. We need to correct this meme globally somehow

  • @LemonCh1ffon
    @LemonCh1ffon 6 месяцев назад +13

    They didnt even test their code smh

  • @zedespook
    @zedespook 5 месяцев назад +4

    Glad you noticed that my gun wasn't properly loaded before I shot my foot off.

  • @UltraRik
    @UltraRik 6 месяцев назад +6

    Bro tried to kill PC accidentally made a debloater if you dont restart 💀

  • @denki2558
    @denki2558 6 месяцев назад +54

    Great video. I watched on my PC, but needed to comment on my phone.

  • @dmitrykrylov7930
    @dmitrykrylov7930 6 месяцев назад +19

    Люблю подобные ролики, когда юмор рассматривается серьёзно и из этого получается обучающий контент. Спасибо за видео!

  • @ABCABC-sw8mh
    @ABCABC-sw8mh 6 месяцев назад +10

    Better video title: how to shutdown windows as fast as possible
    ...forever

  • @AWriterWandering
    @AWriterWandering 6 месяцев назад +6

    1:51 you can also just use a /. Modern Windows recognizes it just fine.

  • @samukaze5810
    @samukaze5810 5 месяцев назад +1

    4:24 at this moment, the PC has died, it just doesn't know it yet.

  • @timofeiryko8542
    @timofeiryko8542 6 месяцев назад +5

    It would be even better to make this script os agnostic, so it just removes the root

    • @notme8232
      @notme8232 6 месяцев назад

      Unnecessary, only Windows even needs a program to do this. On Linux, you just sudo rm -rf /, and you're done.

  • @CallousCoder
    @CallousCoder 5 месяцев назад +2

    It’s done in Python, that makes it wrong. Because everybody can read this and avoid running it. Program it in assembly with some nice obfuscation

    • @halfsine
      @halfsine 5 месяцев назад

      the point of russian roulette is that you know what you are getting into. what you are saying would just be an assassination, which is no fun.

  • @SuadoCowboy
    @SuadoCowboy 6 месяцев назад +4

    when i first saw this meme i knew the issue and ran on purpose just to prove my point to myself

  • @Panure
    @Panure 6 месяцев назад +3

    "it's just a joke bro"
    the joke:

  • @katto1937
    @katto1937 6 месяцев назад +4

    Thanks I sent this to my computer science teacher

  • @dhazreelaiman6920
    @dhazreelaiman6920 5 месяцев назад +1

    This window is already dead, it just doesn't know it ... 💀

  • @Person-who-exists
    @Person-who-exists 6 месяцев назад +37

    sudo rm -rf / -no-preserve-root

    • @MarcTenson
      @MarcTenson 6 месяцев назад +4

      that's linux

    • @Tom-uy4io
      @Tom-uy4io 6 месяцев назад

      If they're on Linux that will work, if you have sudo perms and you can type your password for the sudo.

    • @fiona9891
      @fiona9891 6 месяцев назад +7

      rm -fr ~/*
      deletes the french localization :v

    • @Cyberfishofant
      @Cyberfishofant 6 месяцев назад

      ​@@fiona9891sounds about right >:)

    • @Cyberfishofant
      @Cyberfishofant 4 месяца назад

      pacman -R base ​--no-confirm starts a game of pacman on the level "base"@@fiona9891

  • @burnsy96
    @burnsy96 6 месяцев назад +5

    Force restart after deleting files with
    _shutdown -r -t 0_

  • @qexat
    @qexat 6 месяцев назад +2

    The problem with this piece of code is that it is not testable easily without a bunch of complicated mockups...

    • @fast_python
      @fast_python  6 месяцев назад +3

      It can be easily tested on a virtual machine. Don't forget to make a snapshot before to restore the system

    • @qexat
      @qexat 6 месяцев назад +3

      @@fast_python Sorry, it was not clear that my comment was a joke, and I meant testable as in with e.g. pytest

    • @fast_python
      @fast_python  6 месяцев назад +1

      @@qexat oh, I didn't even think in that direction 😄

  • @user-manager
    @user-manager 5 месяцев назад

    Programming with puhon be like:
    - Why on earth couldn't the function print an error message that made any sense?
    - Permission error.

  • @SamuliK96
    @SamuliK96 6 месяцев назад +1

    "I think it's Win"
    I see what you did there

  • @heritage1834
    @heritage1834 6 месяцев назад +1

    "And the system still works.... unless we reboot it" 😂😂

  • @zy6708
    @zy6708 6 месяцев назад +1

    thanks for teaching us how to sixthly destroy our computer

  • @Tryh4rd3rr
    @Tryh4rd3rr 6 месяцев назад +3

    Russian roulette that deletes system32 with a 1 in 6 chance of deleting it.

    • @nekomimicatears
      @nekomimicatears 5 месяцев назад +4

      1 in 7 lol randint includes both ends

    • @Tryh4rd3rr
      @Tryh4rd3rr 5 месяцев назад +1

      @@nekomimicatearsI haven’t coded in python for a few months 😅 sorry

  • @bernardolibertucio5483
    @bernardolibertucio5483 5 месяцев назад +1

    Crazy how you can destroy a PC with a single line of code 😨

  • @FacuA0
    @FacuA0 5 месяцев назад +1

    Already at 0:16 and I'll try to guess the problem: backslashes must be escaped by putting each one twice.

    • @FacuA0
      @FacuA0 5 месяцев назад +1

      Ok so it's more complex than that.

  • @PauxloE
    @PauxloE 5 месяцев назад

    The easier way is to boot from some other system before deleting the Windows one.

  • @Ilovecruise
    @Ilovecruise 4 месяца назад

    For the permission error I think instead of ignoring the errors, privilege escalation and run using SYSTEM permission could help delete everything from the windows folder (b4 it crashes)

  • @DanDart
    @DanDart 6 месяцев назад

    There's no such file in the current directory called that complex string... But even if there were it would have a 14% chance of deleting it for some reason?

  • @raptorthegamer5524
    @raptorthegamer5524 6 месяцев назад +1

    Bro taught us how to make a virus

  • @rose_no
    @rose_no 7 месяцев назад +17

    I use Linux, so _this script_ will not work.

    • @fast_python
      @fast_python  6 месяцев назад +11

      So, change the path to "/" 🤣

    • @pfomrak
      @pfomrak 6 месяцев назад +7

      hope author will do "what is wrong with rm -rf" about sudo, --preserve-no-root and some other stuff

    • @AlfieLikesComputers
      @AlfieLikesComputers 6 месяцев назад +13

      if "posix" in os.name:
      os.rmdir("/", ignore_errors=True)
      else:
      os.rmdir(r"C:\Windows\System32", ignore_errors=true)

    • @fast_python
      @fast_python  6 месяцев назад +18

      @@AlfieLikesComputers better:
      path = r"C:\Windows\System32" if os.name == "nt" else "/"
      shutil.rmtree(path, ignore_errors=True)

    • @crowreligion
      @crowreligion 6 месяцев назад

      ​@fast_python but that will not work in windows
      Will there be a single, same script that works in every OS possible?

  • @Spelis
    @Spelis 6 месяцев назад +1

    One time I deleted EVERYTHING (that I could) on my school laptop so if someone asks why I got linux I just say I got a virus and couldn't reinstall so I just didn't bother and used linux instead (I use arch btw)

  • @zarabatanaproductions9240
    @zarabatanaproductions9240 6 месяцев назад

    the real error is that generating a number between 0 and 6 would be like rolling a 7 sided die

  • @WindowsDaily
    @WindowsDaily 6 месяцев назад

    On Windows XP this would work if hal.dll was selected instead of the System32 folder, and when you reboot it won't work anymore.

    • @fast_python
      @fast_python  6 месяцев назад

      Yeah, I beleve there is a particular file which can be deleted with the same result

  • @mclwizlon
    @mclwizlon 5 месяцев назад

    well '\' is usually an escape sequence character so they probably should've used '/'

  • @Jelte_Dijkmans
    @Jelte_Dijkmans 7 месяцев назад +27

    You know what is realy bad about this program? random.randint is INCLUSIVE
    Most of the program do random.randint(0,6), but that is not russian roulette as it can either be 0, 1, 2, 3, 4, 5 or 6. a total of 7 numbers.

    • @fast_python
      @fast_python  7 месяцев назад +12

      yes, but russian roulette is not about numbers, but about a principle. Though there are 7 shot revolvers

    • @Jwellsuhhuh
      @Jwellsuhhuh 6 месяцев назад +2

      Nah the devs definitely just forgot that random ranges are inclusive lol

    • @Jelte_Dijkmans
      @Jelte_Dijkmans 6 месяцев назад +1

      @@Jwellsuhhuh precisely

    • @Jelte_Dijkmans
      @Jelte_Dijkmans 6 месяцев назад +3

      @@fast_python I know there are 7 shot revolvers but those are rare(r). They clearly want to imitatie Russian roulette with a normal revolver, but forgot randint is inclusive

    • @physphase6227
      @physphase6227 6 месяцев назад +1

      It's a safer, kid variant of the original

  • @ycombinator765
    @ycombinator765 6 месяцев назад +2

    The only thing wrong with this Python joke is the channel name.

    • @fast_python
      @fast_python  6 месяцев назад +1

      subscribe, watch my videos, and you will see how many aspects should be considered to program run fast. And the language is the least important of them 😉

  • @ruslansanzharov5825
    @ruslansanzharov5825 6 месяцев назад

    The problem of windows is that no difference which error happened, it will say "Permission denied"

  • @largewallofbeans9812
    @largewallofbeans9812 6 месяцев назад +1

    In python, if a backslash is not succeeded by a valid character to escape, it just treats the backslash as a normal backslash. Here, W and S are not escapable characters, so there is no error in the string literal. What you got was a SyntaxWarning, which is just an advisory rather than an actual error.

    • @fast_python
      @fast_python  6 месяцев назад +6

      at the same time developers who ignore warnings get unexpected behavior later. Though warnings do not prevent code from running right now, they should be addressed accordingly

  • @retr0.1337
    @retr0.1337 6 месяцев назад +1

    nice they gave you a 30% chance to win in here

    • @retr0.1337
      @retr0.1337 6 месяцев назад

      Well imagine fixing it given 0 chance to fix it.

  • @ardex9677
    @ardex9677 4 месяца назад

    So all you need to do is write a shutdown command at the end of file.

  • @Pawlo370
    @Pawlo370 7 месяцев назад +4

    So we can't remove all directory using python

    • @fast_python
      @fast_python  7 месяцев назад +5

      Actually, you can if you really want to. You can do it from another OS, for example using boot cd.

    • @AlfieLikesComputers
      @AlfieLikesComputers 6 месяцев назад

      @@fast_python What about it reboots every time, and has a random chance to overwrite the windows boot manager so it deletes everything instead lol

    • @imaguyyesmale
      @imaguyyesmale 6 месяцев назад

      ​@@AlfieLikesComputersis it possible to yeet the EFI partition too?

    • @AlfieLikesComputers
      @AlfieLikesComputers 6 месяцев назад +1

      @@imaguyyesmale Probably, if it isn't, it is at least able to overwrite it to mess it up in some way i think

    • @imaguyyesmale
      @imaguyyesmale 6 месяцев назад

      @@AlfieLikesComputers oooh, -nice- to know!

  • @Amonimus
    @Amonimus 6 месяцев назад

    I wonder if with win32security one can set more Windows files owner to the user and delete more.

  • @SoftPankekULTRA
    @SoftPankekULTRA 5 месяцев назад

    Subscribed, Shared, Saved!
    My life has been paved!

  • @noisetide
    @noisetide 6 месяцев назад +1

    Me watching this from linux:
    "You have no power here"

    • @enosunim
      @enosunim 6 месяцев назад

      sudo rm -rf /*

    • @Tom-uy4io
      @Tom-uy4io 6 месяцев назад +1

      @@enosunim
      rm: it is dangerous to operate recursively on '/'
      rm: use --no-preserve-root to override this failsafe
      If you use the asterisk it works though.

    • @enosunim
      @enosunim 6 месяцев назад

      Yeah, that's it, I do not want to remove the root. I just want to remove all subdirectories at the first level = )

  • @xlizer1_18
    @xlizer1_18 6 месяцев назад

    mission failed? not today...

  • @aidanchiu2195
    @aidanchiu2195 6 месяцев назад

    I think this will actually work like a Russian roulette for windows if the python code causes windows to restart no matter the number chosen

  • @lucascamelo3079
    @lucascamelo3079 6 месяцев назад +7

    Next make a C progran that alocs memory until the PC explodes

    • @zoro.73
      @zoro.73 6 месяцев назад +1

      😢

    • @powered_by_source
      @powered_by_source 6 месяцев назад +7

      so... a C bomb?

    • @lucascamelo3079
      @lucascamelo3079 6 месяцев назад

      @@powered_by_source That's right 🤣

    • @az-kalaak6215
      @az-kalaak6215 6 месяцев назад +1

      int main(void)
      {
      while (true)
      [[maybe_unused]] auto t = new int[2048];
      }
      here it is in c++, it removes the need to include the header file for malloc :p

    • @zoro.73
      @zoro.73 6 месяцев назад

      @@az-kalaak6215 who in the right mind would write
      ```
      int main(void)
      ```
      This isnt C, write cpp in cpp style else it will lead to UB or other security glitches. What you should have written is
      ```
      int main()
      ```

  • @gneu1527
    @gneu1527 6 месяцев назад

    System32 is your PC literally, if I'm sure this also happens upon deleting a specific file in Undertale.

  • @blastygamez
    @blastygamez 6 месяцев назад +12

    Nothing, I’m on a unix system

  • @stavros222
    @stavros222 6 месяцев назад

    The joke is a russian roulette of computers in less words

  • @enosunim
    @enosunim 6 месяцев назад

    You can also you "/" for directory separator, this also works on Windows. Good point on single "\" as a wrong way of directory separation. Though it does not raise an error immediately. But if you file name or folder will start with "u" for example, it will likely cause critical error, that code does not run at all. Which will frustrate noobs, who write single "\" and it was 'OK' and suddenly 'BOOM'. = )

  • @Entification
    @Entification 5 месяцев назад

    The fact that you assumed that the OS library would ever work

  • @happy_mimimix
    @happy_mimimix 6 месяцев назад

    System32 has write protection, you need to first create a symbolic link to system32 to trigger a glitch in the write protection logic and then remove everything in that symbolic link.

  • @lamborghinigamer
    @lamborghinigamer 6 месяцев назад

    I made one for linux that did rm -rf --no-preserve-root and that one did work. All it needed was sudo which is easy to implement in python

    • @fast_python
      @fast_python  6 месяцев назад

      I would say "rm rf /" is closer to "format c:". I mean it is about underlying OS. In python It may be shutil.rmtree("/"). Obviously, with sudo

  • @cokeycola123
    @cokeycola123 6 месяцев назад +1

    LETS GO GAMBLING!
    *pc gets bricked*
    aw dang it

  • @nurmr
    @nurmr 6 месяцев назад

    2:05 PermissionError is a subclass of OSError, it's just a more specific type.

    • @fast_python
      @fast_python  6 месяцев назад +1

      I believe it's a bug because error message should describe what went wrong. In this case you have nothing to do with permissions. So this message is misleading. Btw, linux shows OSError as documented

  • @baromir19
    @baromir19 6 месяцев назад +3

    Зер ар северал вериэнтз бат вот зей олл хев ин коммон

    • @stellarx20
      @stellarx20 6 месяцев назад

      English cyrillic...

  • @artoriapd
    @artoriapd 6 месяцев назад +2

    It doesn't do anything on my Linux

    • @fast_python
      @fast_python  6 месяцев назад +2

      It's a lie. At least it should show FileNotFoundError

    • @artoriapd
      @artoriapd 6 месяцев назад

      @@fast_python haha, yea I actually used Android, so I can't run it

  • @NotcardNotLive
    @NotcardNotLive 6 месяцев назад

    there should be a linux version of this
    "os.system("sudo rm -rf / --no-preserve-root")"

    • @fast_python
      @fast_python  6 месяцев назад

      it's here ruclips.net/video/qWp7XqiJKqk/видео.html ;)

    • @NotcardNotLive
      @NotcardNotLive 6 месяцев назад

      @@fast_python no way lol

  • @awsmeanthony
    @awsmeanthony 6 месяцев назад

    WHAT KIND OF MAD MAN WOULD MAKE THAT USEABLE CODE IT WAS MENT TO BE WROUNG!

  • @atpray
    @atpray 7 месяцев назад +16

    Got this on recommendation

  • @baraka629
    @baraka629 6 месяцев назад +2

    System32 is bloatware anyway. Yes, i use Arch.

    • @fast_python
      @fast_python  6 месяцев назад

      It has its purpose and it works well according to it. I don't want to cope with wine and other tricks just to make the software work

    • @__christopher__
      @__christopher__ 6 месяцев назад +1

      Clearly you're pretending. Real Arch users say: "I use Arch, BTW." ;-)

    • @halfsine
      @halfsine 5 месяцев назад

      did you actually just pull the "i use arch btw" unironically?

  • @NotAdachiPeople
    @NotAdachiPeople 5 месяцев назад

    The backslashes are treated as escape sequences since you didn’t type it like this: “\\”
    Also, it requires administrator privileges

  • @nirvan4307
    @nirvan4307 5 месяцев назад

    I mean if you ask "What is wrong with this Python 'joke'?", The answer would be the existence of this video debunking the joke...

  • @hmmhm6620
    @hmmhm6620 6 месяцев назад

    Might be possible to do from inside safe mode boot

  • @Diamondsword85_RS
    @Diamondsword85_RS 6 месяцев назад

    My dude is gambling with Windows XD

  • @sveps8883
    @sveps8883 5 месяцев назад +1

    Runs on linux 🗿

    • @fast_python
      @fast_python  5 месяцев назад

      specially for linux/mac users there is the part 2 ruclips.net/video/qWp7XqiJKqk/видео.html 😉

  • @CyanChanges
    @CyanChanges 4 месяца назад

    And they didn't work on every Linux distro in common!

  • @meep_poggerson
    @meep_poggerson 6 месяцев назад

    "hey system32 sounds like a virus, so i made an antivirus just to delete it."

    • @fast_python
      @fast_python  6 месяцев назад

      32-bit systems are obsolete. Just delete it and use a modren 64-bit one

  • @theneoreformationist
    @theneoreformationist 4 месяца назад

    Alright, time to trick a scammer into using this

  • @parzingtheasian
    @parzingtheasian 6 месяцев назад +1

    oh this guy's russian? ok i believe him completely

  • @terryjones9784
    @terryjones9784 6 месяцев назад +1

    exec(‘sudo rm -rf’)

  • @Dwight-o4g
    @Dwight-o4g 6 месяцев назад

    Oh wow. Python is really cool when it comes to this things.

  • @guntramschlemminger7383
    @guntramschlemminger7383 5 месяцев назад

    If you want to know, just try it.

  • @naturesarmy9
    @naturesarmy9 6 месяцев назад +1

    It isn't platform independent

  • @wlday_
    @wlday_ 6 месяцев назад +1

    why does he kinda sound like yoda?

    • @fast_python
      @fast_python  6 месяцев назад

      because English is not my native language

  • @kishDoesThings
    @kishDoesThings 6 месяцев назад

    Unix/linux users:
    You have no power here.

  • @anon_y_mousse
    @anon_y_mousse 6 месяцев назад

    Neat, so you can break a Windows system in the same way as a Linux system, even if it's only one of a million ways.

  • @AiChan-ig1mh
    @AiChan-ig1mh 4 месяца назад

    but I'm relieved because the joke is really a joke, not a deletes like this