This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1="\[\e[32m\]\u\[\e[m\]\[\e[32m\]@\[\e[m\]\[\e[32m\]\h\[\e[m\] \[\e[32m\][\[\e[m\] \w \[\e[32m\]]\[\e[m\]\[\e[32m\]\\$\[\e[m\] " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sed -e '/\(.\).*\1/d' file.txt > new-file.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For debian based distros | |
- Add it to your .config/i3/config (Shortcut = Ctrl+Win+Alt Up/down ) | |
- `Win+Shift+r` to reload i3 config | |
bindsym $mod+Control+Mod1+Up exec amixer -q set Master 10%+ unmute | |
bindsym $mod+Control+Mod1+Down exec amixer -q set Master 10%- unmute | |
## For brightness control | |
bindsym XF86MonBrightnessUp exec xrandr --output eDP-1 --brightness $(echo "$(xrandr --verbose |grep Brightness |grep -o '[0-9].*')+0.1" | bc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
background no | |
font Snap.se:size=8 | |
xftfont Snap.se:size=8 | |
use_xft yes | |
xftalpha 0.1 | |
update_interval 3.0 | |
total_run_times 0 | |
own_window yes | |
own_window_type normal | |
own_window_transparent yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 modos diferentes: | |
Sustituye en todo el fichero (:%s`) 3 o más saltos de línea (`\n\n\n\+`) por 2 (`\r\r`) y en la línea actual (`/g`), separado por `/`. | |
:%s/\n\n\n\+/\r\r/g | |
Ejecutando el comando cat al propio fichero con el parámetro -s (Suppress repeared empty output lines) | |
:%!cat -s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loggear con root desde la pantalla de inicio de sesión en Gnome 3 que por defecto viene deshabilitado | |
$ sudo vim /etc/pam.d/gdm-password | |
Comentar | |
#auth required pam_succeed_if.so user != root quiet_success |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Progress tool - Mostrar barra de progreso a la hora de realizar comando largos | |
$ sudo apt install progress | |
$ cp -r VirtualBox\ VMs virtual-bak | progress -m | |
Strings | |
-e Unicode strings, if they are UTF-8, might show up in the search for ASCII strings. But to search for other encodings use -e | |
-o Print the offset within the file before each string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Crear diccionarios | |
CeWL: Aplicación que rastrea una determinada URL a una profundidad especificada, siguiendo opcionalmente enlaces externos, y devuelve una lista de palabras que pueden ser usadas para crackers de contraseñas como John the Ripper. | |
Forense: | |
Ver tipo de archivo, para saber con qué herramienta abrirla o saber si esta cifrada | |
$ file archivo |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unix-privesc-check v2.1 ( http://code.google.com/p/unix-privesc-check ) | |
I: [file] Generating file cache... | |
I: [file] Cache generated... | |
I: [credentials] Starting at: Fri Sep 11 12:50:56 CEST 2020 | |
W: [credentials] /snap/core18/1880/etc/pam.d/chpasswd is owned by user root (group root) and is world-readable (-rw-r--r--) | |
W: [credentials] /snap/core18/1880/etc/pam.d/passwd is owned by user root (group root) and is world-readable (-rw-r--r--) | |
W: [credentials] /snap/core18/1880/etc/passwd is owned by user root (group root) and is world-readable (-rw-r--r--) | |
W: [credentials] /snap/core18/1880/usr/bin/gpasswd is owned by user root (group root) and is world-readable (-rwsr-xr-x) | |
W: [credentials] /snap/core18/1880/usr/bin/passwd is owned by user root (group root) and is world-readable (-rwsr-xr-x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ADVISORY: linpeas should be used for authorized penetration testing and/or educational purposes only. Any misuse of this software will not be the responsibility of the author or of any other collaborator. Use it at your own networks and/or with the network owner's permission. | |
Linux Privesc Checklist: https://book.hacktricks.xyz/linux-unix/linux-privilege-escalation-checklist | |
LEGEND: | |
RED/YELLOW: 99% a PE vector | |
RED: You must take a look at it | |
LightCyan: Users with console | |
Blue: Users without console & mounted devs | |
Green: Common things (users, groups, SUID/SGID, mounts, .sh scripts, cronjobs) | |
LightMangeta: Your username |
OlderNewer