Sunday, June 2, 2019

:(){ :|:& };: Significado

Bash[edit]

In Bash, a fork bomb can be performed by declaring and calling a multiple-recursive function:
bomb(){
  bomb | bomb & 
}
bomb
Additionally, one of the most famous and commonly cited examples of a fork bomb is this dense one-line Bash command:
:(){ :|:& };:
This command is an obfuscated version of the above. The trick here is that : is used as a function name, which is possible because the colon is not a reserved character in Bash as it is in most other languages. Otherwise, it is identical.[6]
With unicode support, it can similarly be rendered as:
💣(){ 💣|💣& };💣

https://en.wikipedia.org/wiki/Fork_bomb



No Bash, uma bomba bifurcada pode ser executada declarando e chamando uma função recursiva múltipla:

bomb(){
  bomb | bomb & 
}
bomb
Além disso, um dos exemplos mais famosos e comumente citados de uma bomba fork é o comando Bash de uma linha: : () {: |: &} ;:

No comments:

Post a Comment

Remote Hybrid and Office work