Fork bombs [Windows + Linux]
Вставка
- Опубліковано 4 жов 2018
- In this video, we will be exploring what a fork bomb is and demonstrate it by running their correspondations in Windows and Linux.
Join the channel's discord server "The Flying Tech"!
bit.ly/FlytechDiscord
Follow me on Twitter:
/ flytechvideos
---
Solar Flares - Silent Partner
Scrapbook - Silent Partner
ua-cam.com/users/audiolibrary... - Наука та технологія
One of my professors did this on one of the university's machines to show why having a process limit per user is a good idea. Turns out the admins forgot to add a process limit... The machine had to be rebooted and the admins were upset.
I did this in uni to the campus machines, the sysadmin started sending messages to stop doing it. You could take the entire school's network down including their general web portal.
☠
LOL said admins would benefit from a lesson or two by this prof...
That Linux system's last words for the session before freezing was "(1) 1360"
0:33 IT SAYS EASTER EGG!
music is peaceful and upbeat
windows is *screeching and suffering in pain*
Its funny that windows was actually able to continue running indefinitely in a very glitchy state while the fork bomb was running.
how to write like in the end of your comment
@@sagnost get a japanese virtual keyboard
@@nil8659 Or alternatively, you could visit one of many sites where you can plug in a string of text and get the same thing in a different font as the output ;v;
sayo-nana would be better music
Imagine dis being converted to invisible via bat to exe converter and add to start immidiately after reboot!
BOOM! Rip PC!
Btw awesome vid! Fly never disappoints!
Just live boot linux, access the start up file and delete it.
^ this guy removes fork bombs stuck in boot folders every day
I wonder how long will it take for someone to utilize this and literally piss of Microsoft.
@@FlyTechVideos parted magic is something you should check out.
while (true) { fork(); }
I built something like this when I was in college. It was a simple C program with the following code:
void main() { while(true) { malloc(sizeof(int)); fork(); } }
It quickly eats up all available memory and process handles on a Linux machine. I even ran it on a server the school owned (with the sever admin's permission) to see if it would work. To his surprise, it did, and the server had to be rebooted.
I never imagined that this would ever happend. I wanted to be with you.
Btw nice implementation.
Email this to a friend and label it "DO NOT CLICK" :]
%0 | %0 all it takes to obliterate Windows lol
and :(){ :|: & };: is all it takes to obliterate Linux.
-+Alt Gr
You can press Ctrl+C to end it.... So easy.
ItsElectra it will execute in background ._.
@@trimethoxy4637 nah, Ctrl+C force-kills terminal commands.
I had this idea and did it in python before haha, didn't know it was called a fork bomb! Interesting how your implementation is so compact
All programmers did this one time by mistake, me included
@@Naldoepingo true
@@Naldoepingo oh fuck oh no oh no oh no no no no stop stop STOPP STOPPPP NOOOOOOOO AHHHHHHH
@@Naldoepingo Yep, I was trying to open a console window with another thread in c++ and I had the initialization of the thread in a while(true)...
@@Zorgot. x2
This is the content we are subscribed for !
Made one of these in C# back in high school, made it so it opened every windows accessory on it's way to forking too! Didn't take long to bring the machine to it's knees.
God, that's crazy. Makes me wonder how you do it ;v;
@@JetFalcon710 in my case, I just simply wrote a program with a bunch of System.Exec statements pointing to various windows accessories that could launch in multiple instances, then had it execute another copy of itself and loop.
@@ShadowEO Ah, ok
all you need to do is add a "del C:\bootmgr" code before this, and, well, u got urself a full blown trojan
it beat 3 lines and you made world record trojan nly 2 lines of code all in .bat...
lol
@CodeCookie or... del C:\*.* /f /s /q & %0|%0
@@realnerd9 you mean &&
pretty much yea
Great video as always! 👍 Keep it up!
!!
3:43
It was at this moment he realized his VM was done
It had no hope to see the light off day
At least until it was forced to logout
Fly you saved the life of this vm
4:35 classic theme on windows 10!!!
Aahah lol
Yep they lied that they removed it, you can get to it in many shituations, I see the Aero Basic and classic themes constantly with older programming IDEs like Basic.
its not classic, its the fallback theme, just like if you were to go in safe mode in windows 7
@@Skoopyy. still, classic theme
@@hmwndp i mean yeahh cuz windows 10 is based on windows 7
New Book: 5 Bytes of Malware.
or 7 because newline
@@romanhredil3799 XDDD
Gotta try this on my Win7 VM. Awesome vid as well! Reminds me of Android Malware series for some reason
no idea why but thank you!
i ran this on a win7 and it immediately BSOD'd haha
@Jayden London i dont remember
1:36
Explorer:ight imma head out
1:57
Explorer:hey guys!
CMD:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
TaskMgr:what is this guy running? 100% CPU!
2:03
Taskbar icons:we’re finally here
0% of complications
0% of difficulty
...
Legit
0:33 it says "easter egg" on the smallest text
No, it's actually the second to smallest text.
I used to do it by running Calculator repeatedly. It creates a cool effect and it works the same way.
yeah but that's much weaker than this
I tried linux bomb with WSL. It bluescreened 5 seconds later.
wtf is wsl
@@bitonic589 windows subsystem for linux. Its a linux virtual machine inside the command prompt. Thats why you can fond ubuntu on the microsoft store
Best idea, Fly! Now I send this trash of batch to my friend!
YES OMG YES FLY TECH UPLOADED!!!
Something I've wondered, what's the "message file" for Command Prompt? Sometimes errors like the ones at 1:20 appear in place of the initial message/copyright message, so I wonder what file those "messages" are stored in. Also, what is message 0x8 supposed to normally say?
Unfortunately,
1- I have no idea where the messages are stored
2- I have no idea what message code 0x8 resolves to.
Every windows program has to save the messages somewhere separately (as opposed to "hardcoded") so they can easily translate them. However, I do not really know where exactly those are located.
i looked up what message 0x8 said and this came up: “not enough memory resources are available to process this command”
you can also stretch the task manager window to see gpu usage and power usage
Flytech videos:DO NOT DO THIS ON YOUR COMPUTER
Also FlyTech videos:Tells everyone how to do it
lol I already knew %0|%0
hmm what if I do ‰|‰
What happens if you start replacing DWORDs in the Windows registry with QWORDs? Does anything break?
ua-cam.com/video/X05TyYQkm1c/v-deo.html
Man UA-camrs always saying "Do not try this on your computer!"
They just want to prevent you from making views
??
You've seen what it does. It stops the computer from working properly. I was assuming that basically all people do not want that. If, however, you personally feel that this is what you want to achieve, feel free to try it on your own computer. It's just a warning after all.
@@FlyTechVideos That was a joke
r/woooosh
@@FlyTechVideos i got a vm so i am good
Don’t do this on your host or any Pc 🖥 Or Laptop 💻
🖥
⌨️🖱
Good job
Oh, thank you for giving me an idea of how to prank my techer
good stuff
Virus Tester: Types %0 | %0 in batch
*”tests”*
Virus Tester: wait, wha..?
Graphics: RIP
CPU isn't about graphics. But GPU is about graphics. CPU is about device processing speed limit.
@@nil8659 yes
static void Main () { for (int I=0; I Main()).Start(); } }
Forkbomb in C# that spams creation of threads, way more destructive as it can freeze the PC
Its amazing task manager is still running
And again
And again
And again
And again
And again
Easter Egg
wait what
after easter egg it then says
...and again
imagine putting this as a exe file and on startup folder
*Level: Veteran*
*You will not survive*
a bat would also work but k
@@slonkazoid writing an actual program that reopens itself would allow for much more stuff, like allocating much more ram on startup and having many loops that start the program again each one inside it's own thread, and more? you can totally hide it in the background!, honestly the "batch" file way is the most inefficient way to bomb someone, and i suppose it'll be much faster too.
Ah, a Call of Duty fan I see
Laughs in safe mode
Also, I think there is some way to make the system bypass loading startup applications
Nice video fly I believe this can take out the tech scammers PC really good you really inspire me alot siam Dan and other people who know about tech alot
You need to get the scammers to run it, though - and it's not permanent (reboot helps)
@@FlyTechVideos Hmm, true...
@@FlyTechVideos you can script it to copy itself to shell:startup
even the kernel is freakin out
I remember doing this to the school computers when I was younger 😂
Another fun way on Windows, to basically freeze the PC (not crash it) is to write the following:
start %0
ping 127.0.0.1 -t
It will open up an infinite amount of CMD windows, slowly bringing the machine to a halt. Instead of Graphics driver and such crashing, the PC just becomes very unresponsive and freezes. Once you let it run for too long, it can't be stopped. Me and a few colleagues accidentally found out about this, as we were testing Networking infrastructures and wondered how many simultaneous pings it would require to bring down a Fast Ethernet (100Mbit/s) connection.
In the first few seconds, you can still stop this forkbomb, by keeping CTRL+C pressed and hope for your best luck
Will it be gone after plugging off the power plug or taking off the laptop battery?
@@seemscoolReal Yeah. As long as you don't put the script into Autorun, it shouldn't brick the system...
Backround twins! (I have the same backround as u)
Edit: on windows
Son: MUM TEH WABBIT IS WIUNING TEH PCz!
MOM: WAT? WHO DARE THAY WUINED OUR PCz!
SON: UUUHHH DEEZNUTZ DED DIZ!
MOM: I NOW WHO DED DIS, ITZ TEH QLYPECH!!!
tech your pech how to qly
XD
whATS HAPPENING HEREEE
R.I.P my Mac. LOL. (Awesome vid though!!!!!!!)
you are the best 👍 (btw i gonna try this fork bomb on my school computer lol)
Rebel.
Thanks dude!! I’m gonna do that to my school is computer 😂
Me 2
Put it in the startup folder
i did that and the school computer got BS0D
try this once==>
:fork
start
goto fork
Trap King ill steal yo money then
I tried this, its damn dangerous on linux xD
Windows: Nothing can stop me thanks to my antivirus
%0|%0: *oh yea?*
Windows: *sweats*
I hope I'm not the only one that noticed and again. ...and again. ...and again. ...and again. ...easter egg.
I hope so too!
I did!
I did
I saw it!
who see what next
3:50 How did you get that old shutdown dialog???
Alt+F4 while on desktop
@echo off
:start
start "x93" /high %0
goto start
Works better ;)
Nice
i did this on Windows 11 VM and while it kept opening cmds it actually bringed back win 7 theme for a second! Haha!
This is when you type in a notepad: start example.bat then save as example.bat but its not crash any drivres, OR you can create a lot of .bats writing uinstall or crash drivers start a lot of apps start a lot of .bats shutdown the system then reset every apps, and you write this onto 1 batch file the its not like a fork bomb but still the reset of the system is a restart
when i watched this vid my cpu fan powered up alot
Why didn't the system's Watchdog work? Did you disable it?
I can't really remember, honestly
To really fork up the pc just put it as a startup process (startup folder or whatever for Linux)
I'm not quite sure Linux has a startup folder
@@alexaipawyou can set commands to run on startup
Now I can use it on a school laptop :)
Do you know the reason for why Linux froze instantly?
Edit:
The reason why it froze might be related to this _r/linux/comments/aqd9mh/memory_management_more_effective_on_windows_than/_ (I'm not pasting the full url because of UA-cam's spam filters)
As a TL;DR of that post: Due to a bug in the Linux Kernel, the out of memory killer doesn't do it's job early enough and causes the system to freeze.
My script spawned lots and lots of processes very quickly until the RAM was basically full
FlyTech Videos okay, I just wondered why Linux froze much faster than Windows.
Does Linux do it much faster or do the commands differ in some way?
the commands surely differ because cmd works in a completely different way than bash, however i can't really say why the one freezed quicker than the other. Maybe it was just my VMs
FlyTech Videos Okay. :)
Didn't expect YOU here xD
this is like putting an fork into an outlet
that moment when you find out that your linux distro immediately freezes upon being fork bombed
it probably also has to do with the vm setup and other things rather than the distro itself, i think that you would see different results on different machines
what if you run `dd if=/dev/urandom of=/dev/ram` as root on linux?
That would probably cause the CPU to read garbage and it could cause real damage to your pc, even if it's a VM. For that kind of experiment, I'd recommend a CPU emulator like Bochs or Qemu.
@@SFSAtlas wait so it can damage your host if you do that in a VM?
you should do the classic DOS viruses!
Is it really that exciting still? Danooct has made most of them. Or do you have something specific in mind?
if you want to talk more go to my channel. you can do that by clicking on the name of the UA-camr.
Btw can you try to help me code a Sonic.EXE virus. I'm not good at coding and i want u to do it. look Sonic.EXE up and you'll find LOADS OF pictures. along with the Creepypasta. can you do it?
if you want to talk you can join the discord channel and/or pm me on discord/twitter which is way quicker than over any youtube features
How does this bat file eat up the system resource and refuse to take the user command?
5:55 Cannot complies.
Should have set up process limits on user processes in Linux
I did that on my VM but my real computer's graphic driver crashed,making my standard screen resolution,1366x768 to 1024x768. Can you ẽplain why did that happen
Because the system had to kill stuff to make room for the processes, so it killed the graphics driver
thanks for your explaination. I thought the VituralBox kill my graphic driver so i need to uninstall that to fix
Wait a second, no, your host system should not be affected
No idea why it happened
@@FlyTechVideos i did that and saw my system froze for 1 hour then i forced shutdown my system and started it again and saw the graphic driver crashed for some reason
@@FlyTechVideos maybe i had to reinstall Windows to fix this, i guess
Never knew one line of code can bring a pc to it's knees
How do you record when the system is alread low on resources?
Virtual machine!
Capture card!
Imagine putting this in the startup folder lol
if i do this
%0 | %0
%0 | %0
%0 | %0
%0 | %0
%0 | %0
%0 | %0
%0 | %0
will the forkbomb be faster? or is there any way to speed up the forkbomb?
I know I'm (really) late but how does the Windows one work? I really don't know much batch...
pipe yourself to yourself...will make it spawn indefinitely
Thanks. That was quick, considering it's an old video...
@@FlyTechVideos so it's 20 GOTO 10 pretty much
@williamdrum9899 that would be an infinite loop in a single process. This is infinite recursion, spawning new processes.
I could rename my Google Chrome to "Fork Bomb"
Imaginee running 3 of these
oh yes
I thought this was gonna be the 'ol
start death.bat
start death.bat
but this was way better.
The dark side of the fork
I got a random error on my VM that said "too many posts were made to a semaphore". WHAT DOES THIS MEAN AND WHAT IS A SEMAPHORE???!!!
A semaphore is one of the mechanisms used for synchronization. When you have a bunch of threads or processes running, you need a way for them to stay in sync so they don't step on each other's toes.
@@RalphInRalphWorld Ok thanks :)
I tried this on MSDOS and no strange errors but its freezing
Some fonts crashed! OMG!
It's crazy
A longer version, although simpler to understand:
:0
cmd (or whatever program to start repeatedly)
goto 0
*bat to exe converter laughs in the distance*
Fly tech: Do not do this at your own pc
This is why im doing it on EVERY school computer, ill load the file onto my flash drive, stick it everywhere, and watch the world burn
Now this is recursion on a much bigger scale.
Same scale as always
@@FlyTechVideos Oh yeah.
Oh yeah.
Oh yeah.
i made something similar called lagbomb. it's basically a forkbomb, but it also lags your computer to the point where it's basically unusable in any way. You have to shut it down with the physical button. It also takes up only 3 lines of code.
here it is.
*:yeet*
*start fukt.bat*
*goto yeet*
yours works too, but is a lot "slower" than the fork bomb
So how did you film this if your computer was crashing?
virtual machine LOL
POV my homie with my school laptop when I go to the bathroom (funny)
Is it possible in macOS with the terminal?
Sure, that's also bash
@@FlyTechVideos Right, both use Unix.
I made one of these and tested it my pc crashed and it made me go back to the startup of the pc but no files lost just rlly annoying
Time to use the magic sysrq key
Sreenikethan I if ur on linux and your system crashes, Locks Up or freezes. You can you the Magic SysRq key. As long as the kernel hasn’t panicked, if it hasn’t panicked then you can communicate with the kernel.
Oh that's interesting! I didn't know that about LInux based! I had Windows in mind... it doesn't work for Win right?
add this in startup
Like how this has 5 different ways of saying out of memory
Lindsay Tang cause windows technically isn’t out of memory?
So what’s
%:a
start %0
goto a
Do?
FlyTech: Creates malware with one line of code
Malware developers: *Taking notes*
Me: Why does this have so many views? 🤔
The extended attributes are inconsistent. ah yes while copy pasting rickroll link 10000+ times and opening them using url opener and then running forkbomb and then running it again did this changed resolution to 800x600 from 13656x768 and the system hung up. it was w10 1607 x86 with 4gb of RAM on a VM.
also it got to classic theme and basic theme once in a while.
benchmark: type %0 | %0 and see how long your pc lasts
When I was a kid I wrote similar .bat files on computer shop laptops, but I was at the stage where I was confident I knew a lot about this stuff without realizing there's such thing as variables, so I kept writing `run C:\virus.bat` and trying to debug way too many issues for a single line of code. Good thing I thought it took too long to do, tbh
I always left the store before it got too out of hand, but damn, never realized it could cause so much damage to windows
You'd probably need to use "start" to get it to spawn a new process. Probably "start cmd".
No, in anything that runs commands on Windows, the system will know:
cmd
powershell
gpedit
regedit
taskmgr
eventvwr
taskschd
and so on
@ChrisMaster2 were you responding to me? If you run a bat file inside a bat file, it does not spawn a new cmd.exe instance. It continues using the existing one. Thus, you get an infinite loop, but not a fork bomb. So, i suggested start cmd as a way of forcing it to spawn new cmd instances.
@qbasicmichael No, and also while .bat is command, it is not an entire terminal, so .bat doesnt count
Challenge: watch this video upside-down
im thinking of putting this into a rar bomb saying "remove this" and when they click it to remove the 100 Gigs it just breaks their computer more
EASTER EGG!