configs
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
| configs [2020/04/16 15:59] – [ip command] gregkedro | configs [2020/04/17 16:49] (actual) – gregkedro | ||
|---|---|---|---|
| Línea 368: | Línea 368: | ||
| **Debian Method** (as root): | **Debian Method** (as root): | ||
| < | < | ||
| - | / | + | / |
| - | / | + | / |
| - | / | + | / |
| systemctl restart networking | systemctl restart networking | ||
| systemctl status network | systemctl status network | ||
| </ | </ | ||
| + | |||
| + | ===== ifupdown vs. ifconfig ===== | ||
| + | |||
| + | **Debian, overview:** | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | **The** '' | ||
| + | * The '' | ||
| + | * Example: bring up the network with '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | **The** '' | ||
| + | * An '' | ||
| + | * An '' | ||
| ===== ip command ===== | ===== ip command ===== | ||
| - | **Usage of the '' | + | **Usage of the** '' |
| * If your distro did not install ifconfig, you can install it in Debian with '' | * If your distro did not install ifconfig, you can install it in Debian with '' | ||
| - | * Or you can use the horridly ugly syntax for '' | + | * Or you can use the horridly ugly syntax for '' |
| * From the following example you will need to replace the IP and the interface with your own. | * From the following example you will need to replace the IP and the interface with your own. | ||
| Línea 392: | Línea 409: | ||
| < | < | ||
| - | [1-3] All in one place... looks like this: | + | **[1-3] All in one place... looks like this:** |
| < | < | ||
| ip addr add 192.168.0.100/ | ip addr add 192.168.0.100/ | ||
| Línea 399: | Línea 416: | ||
| </ | </ | ||
| - | Note: This will only set up your network for your current work session. You'll lose it on reboot. | + | **Note on Persistence:** This will only set up your network for your current work session. You'll lose it on reboot. |
| + | * '' | ||
| + | |||
| + | < | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ======= Kali: root ======= | ||
| + | |||
| + | Kali made the spectacular decision to [[https:// | ||
| + | * When you install Kali Linux, you’ll be asked to create non-root user that will have admin privileges. Tools and commands that require root access will be run with sudo. | ||
| + | * So you have to type sudu... sudo... sudo... sudo... (really, guys??). | ||
| + | |||
| + | To configure password-less root rights for your normal user (but you still have no access to applications that are only in root's PATH): | ||
| + | |||
| + | < | ||
| + | sudo apt install kali-grant-root | ||
| + | sudo dpkg-reconfigure kali-grant-root | ||
| + | </ | ||
| + | |||
| + | Better: Unlock the root login. Just give root a password, log out, then log in as root: | ||
| + | |||
| + | < | ||
| + | sudo su - # do this as a normal user, give your password; you become root | ||
| + | passwd | ||
| + | </ | ||
| + | |||
| + | Ah... happiness again in the land of hacker [[https:// | ||
| ---- | ---- | ||
configs.1587052761.txt.gz · Última modificación: por gregkedro
