notas:seguridad
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previaPróxima revisiónAmbos lados, revisión siguiente | ||
notas:seguridad [2014/06/03 14:05] – [Seguridad] cayu | notas:seguridad [2014/08/20 14:45] – [Seguridad] cayu | ||
---|---|---|---|
Línea 6: | Línea 6: | ||
* [[notas: | * [[notas: | ||
+ | === Legales === | ||
+ | |||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
=== Exploits === | === Exploits === | ||
- | Exploits útiles cuando vas a un lugar donde no se acuerdan | + | Exploits útiles cuando vas a un lugar donde no saben el password de root |
{{: | {{: | ||
Línea 18: | Línea 23: | ||
{{: | {{: | ||
+ | |||
+ | {{: | ||
=== Bombas lógicas === | === Bombas lógicas === | ||
* [[notas: | * [[notas: | ||
- | + | | |
- | ===== How to: Prevent a fork bomb by limiting user process ===== | + | |
- | + | ||
- | Limiting user processes is important for running a stable system. To limit user process just add user name or group or all users to **/ | + | |
- | + | ||
- | + | ||
- | ==== Understanding / | + | |
- | + | ||
- | + | ||
- | Each line describes a limit for a user in the form: | + | |
- | < | + | |
- | Where: | + | |
- | + | ||
- | + | ||
- | * **domain** can be: | + | |
- | * an user name | + | |
- | * a group name, with @group syntax | + | |
- | * the wildcard *, for default entry | + | |
- | * the wildcard %, can be also used with %group syntax, for maxlogin limit | + | |
- | * **type** can have the two values: | + | |
- | * " | + | |
- | * " | + | |
- | * **item** can be one of the following: | + | |
- | * core - limits the core file size (KB) | + | |
- | * **value** can be one of the following: | + | |
- | * core - limits the core file size (KB) | + | |
- | * data - max data size (KB) | + | |
- | * fsize - maximum filesize (KB) | + | |
- | * memlock - max locked-in-memory address space (KB) | + | |
- | * nofile - max number of open files | + | |
- | * rss - max resident set size (KB) | + | |
- | * stack - max stack size (KB) | + | |
- | * cpu - max CPU time (MIN) | + | |
- | * **nproc - max number of processes** | + | |
- | * as - address space limit | + | |
- | * maxlogins - max number of logins for this user | + | |
- | * maxsyslogins - max number of logins on the system | + | |
- | * priority - the priority | + | |
- | * locks - max number of file locks the user can hold | + | |
- | * sigpending - max number of pending signals | + | |
- | * msgqueue - max memory used by POSIX message queues (bytes) | + | |
- | * nice - max nice priority allowed to raise to | + | |
- | * rtprio - max realtime priority | + | |
- | * chroot - change root to directory (Debian-specific) | + | |
- | + | ||
- | Login as the root and open configuration file: | + | |
- | + | ||
- | < | + | |
- | # vi / | + | |
- | </ | + | |
- | + | ||
- | Following will prevent | + | |
- | + | ||
- | < | + | |
- | vivek hard nproc 300 | + | |
- | @student hard nproc 50 | + | |
- | @faculty soft nproc 100 | + | |
- | @pusers hard nproc 200 | + | |
- | </ | + | |
- | + | ||
- | Above will prevent anyone in the student group from having more than 50 processes, faculty and pusers group limit is set to 100 and 200. Vivek can create only 300 process. Please note that KDE and Gnome desktop system can launch many process. | + | |
- | + | ||
- | Save and close the file. Test your new system | + | |
- | + | ||
- | < | + | |
- | $ :(){ :|:& };: | + | |
- | </ | + | |
- | + | ||
- | ==== Fuente ==== | + | |
- | + | ||
- | http:// | + | |
===== Prevenir fingerprints ===== | ===== Prevenir fingerprints ===== |