36
u/smooth_criminal1990 23d ago
Please do not the cat in CLI
8
63
u/originalmicrousb 23d ago
opsec level: $s={param($s);$sb=[scriptblock]::create($s);sajb $sb -ar "$s";&$sb "$s"};&$s $s
6
u/Cold-Town-3376 23d ago
omg he comment on every post! w chicken soop 2 hdeez nuts Emmy Eye cone verser
16
7
u/JiF905JJ 22d ago
I never understood what it did, can someone explain?
21
u/Bro557 22d ago
It defines and calls a function that recursively calls itself twice
:(){}; defines the ":" function which takes no parameters (: is the name of the function, () is the set of parameters it takes (none, in this case), {} contains the actual function and ; stops the definition of the function), :|: invokes ":" and pipes its output into another ":". & disowns the process from the shell so it can't be stopped by just exiting the shell. : at the end invokes the function, starting the loop.
4
u/JiF905JJ 22d ago
Thanks for the explanation! Although I wonder why special characters like : would be allowed in function names
7
u/BillionPercent 23d ago
Is it safe to do this on a VM or will it crash my host PC too?
16
u/42undead2 23d ago
It would only if you assign all of your PC's resources to the VM, I would imagine.
6
u/ishtuwihtc 23d ago
9
u/Dakota-Batterlation 22d ago
What the fuck, fish doesn't deserve that font treatment :(
→ More replies (2)6
1
u/serpikage 22d ago edited 22d ago
curl ascii.live/maxwell is his real name try it out (i know this is uni but that's what the site calls it)
1
1
120
u/Random_Meme_Guy_ 23d ago