亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: 網(wǎng)中人來解釋下 :() { :|:& }; : # <--- 這個(gè)別亂跑!好奇會(huì)死人的! [打印本頁]

作者: zwfha    時(shí)間: 2007-04-25 09:27
標(biāo)題: 網(wǎng)中人來解釋下 :() { :|:& }; : # <--- 這個(gè)別亂跑!好奇會(huì)死人的!
看帖子時(shí)看到"網(wǎng)中人"的簽名.
) { :& }; :      # <--- 這個(gè)別亂跑!好奇會(huì)死人的!

試了一下...遠(yuǎn)程SSH登陸不上機(jī)器了....
請(qǐng)問一下 這個(gè)執(zhí)行的是什么操作?????

謝謝...
作者: Edengundam    時(shí)間: 2007-04-25 09:32
提示你下, 前半部分是函數(shù)定義, 后半部分是調(diào)用函數(shù)
作者: zwfha    時(shí)間: 2007-04-25 10:10
剛剛開始看SHELL.不明白 ....慢慢學(xué)吧...
作者: jlboy    時(shí)間: 2007-04-25 10:14
我也想知道
作者: ly5066113    時(shí)間: 2007-04-25 10:56
我運(yùn)行了一下怎么是這個(gè)結(jié)果?
$ ) { :& }; :
ksh: :: This is not an identifier.
作者: zwfha    時(shí)間: 2007-04-25 14:13
要在bash下運(yùn)行的吧?!
我是在bash下運(yùn)行的.
作者: weichongli    時(shí)間: 2007-04-25 14:36
很有道理,不能亂跑,尤其是別在線上服務(wù)器上跑。

我在自己機(jī)器上跑了下,死機(jī)鳥。

變態(tài),剛回過頭來看一下……函數(shù)遞歸調(diào)用永遠(yuǎn)沒有退出點(diǎn)哇……

[ 本帖最后由 weichongli 于 2007-4-25 15:55 編輯 ]
作者: iori833    時(shí)間: 2007-04-25 14:39
原帖由 Edengundam 于 2007-4-25 09:32 發(fā)表
提示你下, 前半部分是函數(shù)定義, 后半部分是調(diào)用函數(shù)


原來是定義:這個(gè)函數(shù)再執(zhí)行,寫的這么隱諱  :em12:

[ 本帖最后由 iori833 于 2007-4-25 14:40 編輯 ]
作者: doctorjxd    時(shí)間: 2007-04-25 15:09
還是FreeBSD穩(wěn)定。
運(yùn)行這個(gè)語句之后,內(nèi)存全部用完,還用了100多Mswap空間。
接著提示Pipe call failed: Bad file descriptor
Cannot fork: Resource temporarily unavailable

然后又提示kern.ipc.maxpipekva exceeded; see tuning(7)
maxproc limit exceeded by uid 1001, please see tuning(7) and login.conf(5).

然后這個(gè)進(jìn)程被系統(tǒng)自動(dòng)殺死。
系統(tǒng)恢復(fù)正常。
作者: tksin    時(shí)間: 2007-04-25 16:13
在Mac OS X 上的Darwin也很穩(wěn)定的說, 用戶內(nèi)存不受影響,用system monitor看幾乎沒有變化。
只有一句 : fork: Resource temporarily unavailable。

bash中有限制資源占用和最大內(nèi)存及maximun number of process的功能,但是我沒有設(shè)定任何限制。看來BSD的內(nèi)核中還是有自動(dòng)調(diào)節(jié)限制資源無限占用的功能。



原帖由 doctorjxd 于 2007-4-25 15:09 發(fā)表
還是FreeBSD穩(wěn)定。
運(yùn)行這個(gè)語句之后,內(nèi)存全部用完,還用了100多Mswap空間。
接著提示Pipe call failed: Bad file descriptor
Cannot fork: Resource temporarily unavailable

然后又提示kern.ipc.maxpipe ...

作者: iori833    時(shí)間: 2007-04-25 23:31
原帖由 doctorjxd 于 2007-4-25 15:09 發(fā)表
還是FreeBSD穩(wěn)定。
運(yùn)行這個(gè)語句之后,內(nèi)存全部用完,還用了100多Mswap空間。
接著提示Pipe call failed: Bad file descriptor
Cannot fork: Resource temporarily unavailable

然后又提示kern.ipc.maxpipe ...



還是WINDOWS穩(wěn)定,跑了一下啥問題也沒有
作者: nimysun    時(shí)間: 2007-04-26 00:34
原帖由 tksin 于 2007-4-25 16:13 發(fā)表
在Mac OS X 上的Darwin也很穩(wěn)定的說, 用戶內(nèi)存不受影響,用system monitor看幾乎沒有變化。
只有一句 : fork: Resource temporarily unavailable。

bash中有限制資源占用和最大內(nèi)存及maximun number of pro ...



恩,類bsd風(fēng)格的系統(tǒng)都可以做到。
作者: xmbbx    時(shí)間: 2007-04-26 09:05
好奇會(huì)死人的......
在論壇上已經(jīng)看到好幾個(gè)這樣的貼子了.
作者: herrapfel    時(shí)間: 2007-04-26 16:19
這個(gè)代碼這么強(qiáng)啊,我都不敢跑了~~~~~~~~~~~~~
作者: neil6843    時(shí)間: 2007-04-26 17:02
用WINDOWS下的cygwin試了一下,也死機(jī)了。
不知道HP-UX如何,回公司試一下
作者: net_xiaobao    時(shí)間: 2007-04-26 17:15
標(biāo)題: 回復(fù) 1樓 zwfha 的帖子
這條語句大家能解釋一下嗎
作者: 網(wǎng)中人    時(shí)間: 2007-04-27 01:28
源出:
http://www.72891.cn/viewthread.php?tid=889552
作者: Edengundam    時(shí)間: 2007-04-27 09:09
本來想找下netman帖的帖子, 結(jié)果我灌水太多了...>_<
作者: waker    時(shí)間: 2007-04-27 12:11
為啥不google下fork bomb?這玩意兒打有狗那年就有了

  1. fork bomb

  2. The fork bomb is a form of denial of service attack against a computer system that uses the fork function. It relies on the assumption that the number of programs and processes which may be simultaneously executed on a computer has a limit.

  3. A fork bomb works by creating a large number of processes very quickly in order to saturate the available space in the list of processes kept by the computer's operating system. If the process table becomes saturated, no new programs may be started until another terminates. Even if that happens, it is not likely that a useful program may be started since the instances of the bomb program are each waiting to take that slot themselves.

  4. Not only do fork bombs use space in the process table, they each use processor time and memory. As a result of this, the system and existing programs slow down and become much more difficult (slow), or even impossible, to use.


  5. Canonical forkbombs include this one on Unix (using the Bash shell) (Explanation):

  6. :(){ :|:& };:

  7. Or in Microsoft Windows using a batch file:

  8. :s
  9. start %0
  10. goto s

  11. Or using Perl:

  12. (forking using the Perl interpreter):
  13. perl -e "fork while fork" &

  14. Or in C:

  15. #include <unistd.h>

  16. int main(void)
  17. {
  18.   while(1) {
  19.     fork();
  20.   }
  21.   return 0;
  22. }

  23. Difficulty of cure

  24. Once a successful fork bomb has been activated in a system it may not be possible to resume normal operation without rebooting, as the only solution to a fork bomb is to destroy all instances of it. Trying to use a program to kill the rogue processes normally requires another process be created, which may not be possible if there are no empty slots in the process table, or space in memory structures.

  25. Prevention

  26. One way to prevent a fork bomb is to limit the number of processes that a single user may own. When a process tries to create another process and the owner of that process already owns more than the maximum, the creation fails. The maximum should be low enough that if all the users who might simultaneously bomb a system do, there are still enough resources left to avoid disaster. Note that an accidental fork bomb is highly unlikely to involve more than one user.

  27. Unix-type systems typically have such a limit, controlled by a ulimit shell command. With a Linux kernel, it is the RLIMIT_NPROC rlimit of a process. If a process tries to perform a fork and the user that owns that process already owns more than RLIMIT_NPROC processes, it fails.

  28. Note that simply limiting the number of processes a process may create does not prevent a fork bomb, because each process that the fork bomb creates also creates processes. A distributive resource allocation system in which a process' resources are a share of its parents resources would work, but distributive resource systems are not in common use.

  29. Another solution involves the detection of fork bombs by the operating system, which is not widely practiced although has been implemented in the form of a kernel module for the Linux kernel [1].

  30. Further challenges

  31. Even with the above precautions, fork bombs can still have disastrous effects on a system. For example, if a server has 24 CPUs and allows ordinary users to have up to 100 processes, a fork bomb can still saturate all 24 CPUs even after it can no longer multiply. This can make the system completely unresponsive, to the point where an admin cannot log in to fix the problem.

  32. This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors
復(fù)制代碼

作者: Edengundam    時(shí)間: 2007-04-27 12:16
蔥白下waker....
作者: davistar    時(shí)間: 2007-04-27 12:18
原帖由 waker 于 2007-4-27 12:11 發(fā)表
為啥不google下fork bomb?這玩意兒打有狗那年就有了
[code]
fork bomb

The fork bomb is a form of denial of service attack against a computer system that uses the fork function. It relies on the as ...


有點(diǎn)郭德綱的味道
作者: hmilymb    時(shí)間: 2007-08-11 19:22
救命呀,我好奇運(yùn)行一下,遠(yuǎn)程機(jī)器掛掉了。。。
作者: janusle    時(shí)間: 2007-08-11 19:40
我不明白的是為什么要 后面加一個(gè) |

我覺得函數(shù)體里面就一個(gè) ": &" 就可以了啊。自己調(diào)用自己.
作者: ppp_qqq    時(shí)間: 2007-08-11 19:44
先執(zhí)行的后面那句,再執(zhí)行那個(gè)害死人句,機(jī)器沒有任何異常阿
tru64, 非root執(zhí)行。

不懂,學(xué)習(xí)。
作者: hmilymb    時(shí)間: 2007-08-12 03:21
) { :& }; :      # <--- 這個(gè)別亂跑!好奇會(huì)死人的!
echo '十人|日一|十十o' | sed 's/.../&\n/g'   # <--- 跟你講就不聽,再跑這個(gè)好了...

我先執(zhí)行后來的,出來:
十人|
日一|
十十o

好奇執(zhí)行前面的:
) { :& }; :

掛掉機(jī)器,然后打電話要維護(hù)人員重啟機(jī)器。!

SUSE LINUX Enterprise
作者: 大螞蟻    時(shí)間: 2007-08-12 17:26
一直都很蔥白歪殼啊 嘿嘿
作者: zwylinux    時(shí)間: 2007-08-12 19:08
原帖由 hmilymb 于 2007-8-11 19:22 發(fā)表
救命呀,我好奇運(yùn)行一下,遠(yuǎn)程機(jī)器掛掉了。。。

哎,都說亂跑會(huì)死人的,就是好奇。
作者: hmilymb    時(shí)間: 2007-08-13 02:57
) { :& }; :      # <--- 這個(gè)別亂跑!好奇會(huì)死人的!
echo '十人|日一|十十o' | sed 's/.../&\n/g'   # <--- 跟你講就不聽,再跑這個(gè)好了...
  


誤會(huì)呀(第二句誤導(dǎo)我了),
因?yàn)槲铱吹胶髞磉@句: 跟你講就不聽,再跑這個(gè)好了...

以為第二句是第一句的解決辦法,怎么知道原來不是,運(yùn)行第一句的時(shí)候機(jī)器已經(jīng)掛了,第二句已經(jīng)運(yùn)行不了了。。。
作者: mars531706    時(shí)間: 2007-08-13 06:49
原帖由 hmilymb 于 2007-8-13 02:57 發(fā)表


誤會(huì)呀(第二句誤導(dǎo)我了),
因?yàn)槲铱吹胶髞磉@句: 跟你講就不聽,再跑這個(gè)好了...

以為第二句是第一句的解決辦法,怎么知道原來不是,運(yùn)行第一句的時(shí)候機(jī)器已經(jīng)掛了,第 ...


本年度最經(jīng)典幽默
作者: zhaiduo    時(shí)間: 2007-08-13 13:55
這么多人掛機(jī)器啊,也不心痛啊
作者: 網(wǎng)中人    時(shí)間: 2007-08-13 14:45
呵,我層寫過一句是將 hard disk 幹掉的。
不過,想想太毒了,所以推出沒一會(huì)就改回來了。
要不哦,呵~~~~~~~~

(啊,不要打我。

[ 本帖最后由 網(wǎng)中人 于 2007-8-13 14:54 編輯 ]
作者: unixnovice    時(shí)間: 2007-08-23 14:03
再來看這個(gè)主題,想這個(gè)命令太強(qiáng)了

宕機(jī)專用
作者: litao19    時(shí)間: 2007-08-23 18:17
誰能詳細(xì)解釋下每個(gè)字符的具體含義

  1. :(){:|:&};:
復(fù)制代碼

作者: nonamexz    時(shí)間: 2007-08-25 23:25
我第一次看到這個(gè)簽名時(shí),也試了一下,還好,是拿測試機(jī)試的,后來沒辦法,自己跑機(jī)房去重啟機(jī)器,F(xiàn)在終于明白,為什么會(huì)死機(jī)了。順便樂一下,上當(dāng)?shù)牟恢刮乙粋(gè)啊。哈哈哈.......
作者: 小強(qiáng)_Sting    時(shí)間: 2007-08-25 23:34
......................
作者: locale    時(shí)間: 2009-03-09 21:03
今天我運(yùn)行了一下
) { :& }; :

。。。。。。
作者: szjrabbit    時(shí)間: 2009-03-10 17:40
上當(dāng)過,死機(jī)了,,,,,
作者: 少林功夫好    時(shí)間: 2013-05-14 18:13
回復(fù) 34# nonamexz


    怎么個(gè)意思呢?求解。




歡迎光臨 Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2