Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:evil [2009/05/25 00:35]
127.0.0.1 external edit
linux:evil [2013/01/04 11:31] (current)
a
Line 22: Line 22:
  
    :(){:|:&};:    :(){:|:&};:
 +   
 +
 +<note tip>**DEFENDING AGAINST THE ATTACK (forkbomb attack)** \\
 +\\
 + This is very easy to defend against. All you need to do is set limits to the number of processes that a user can open. These can be set per user, per group or globally. And you can set this one of two ways.
 +
 +You can use the ulimit command for instant change that only lasts until the user logs off, or make the change permanent by editing the /etc/security/limits.conf file.
 +
 +To use the ulimit command simply type “ulimit -u” with the number of processes that you want users to be allowed to run. So to set the limit to 512 just type:
 +
 +   sudo ulimit -u 512
 +
 + You can also change the ''/etc/security/limits.conf'' file to make the change permanent. Full instructions can be found on AskUbuntu.com, but basically just add the following line to the config file:
 +
 +<code>
 +    *    hard    nproc    512
 +</code>
 +
 +The “*” means apply the change to everyone, “Hard” means it is a hard limit, and “nproc 512″ locks the number of processes to 512.
 +
 +You need to adjust the number of processes to a number that would be the best setting for your system. 512 seemed to work great on mine. Don’t set the number to low, or you may have other “denial of service” type issues, lol.
 +
 +more: http://www.infosecisland.com/blogview/22745-An-Eleven-Character-Linux-Denial-of-Service-Attack-amp-How-to-Defend-Against-it.html
 +</note>
  
  
linux/evil.1243204502.txt.gz · Last modified: 2013/01/04 11:31 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready