Skip to content

Commit

Permalink
kitty
Browse files Browse the repository at this point in the history
  • Loading branch information
4xLoff committed Apr 1, 2024
1 parent 7ec7cd0 commit b54f774
Showing 1 changed file with 54 additions and 38 deletions.
92 changes: 54 additions & 38 deletions _posts/blog/2024-02-13-Entorno-Pentesting.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ image:

I'm someone who often installs virtual machines for my testing, and I've become very accustomed to working in that environment as it's more efficient for me. I find it frustrating to work in a regular Kali environment now, it's quite challenging for me haha.

I'm going to share my personal configuration of Bspwm + Polybar + Kitty + Spotify with you, which can be installed on any Linux distribution designed for Penetration Testing, Ethical Hacking, CTFs, etc.
I'm going to share my personal configuration of Bspwm + Polybar + VSC + nvim + Kitty + Spotify with you, which can be installed on any Linux distribution designed for Penetration Testing, Ethical Hacking, CTFs, etc.

{:.note title="Attention"}
I must say that I'm not a developer, so the code is quite straightforward. It lacks validations and could be infinitely improved. When installing, we'll see how everything is set up. I've kept it this way to catch any errors. It serves its purpose, which is to install the entire environment on top of a freshly installed image. I encourage you to modify it to your liking. It's something I'm planning to do myself as I prepare for OSCP, and I take any opportunity to practice scripting."

Good Luck

***
---

<!--more-->

1. this ordered seed list will be replaced by the toc
{:toc}
{:toc}

***
---

## Considerations

Expand Down Expand Up @@ -57,6 +57,23 @@ I have automated the entire installation, so you no longer need to configure eit

![list](/assets/img/entorno/nvim.png){:.lead width="800" height="100" loading="lazy"}

| Shortcut kitty | Comando |
| ----------------------------------- | ------------------ |
| Nueva pestaña | `ctrl+shift+t` |
| Cerrar pestaña | `ctrl+shift+q` |
| Siguiente pestaña | `ctrl+shift+right` |
| Pestaña anterior | `ctrl+shift+left` |
| Siguiente diseño | `ctrl+shift+l` |
| Mover pestaña adelante | `ctrl+shift+.` |
| Mover pestaña atrás | `ctrl+shift+,` |
| Establecer título de pestaña | `ctrl+shift+alt+t` |
| Nueva ventana | `ctrl+shift+enter` |
| Nueva ventana del sistema operativo | `ctrl+shift+n` |
| Cerrar ventana | `ctrl+shift+w` |
| ctrl + shift + z | zomm |

- see more in the [link](https://sw.kovidgoyal.net/kitty/overview/)

All of us who use this type of environment are used to seeing our IP and VPN from Hack the box. This is also implemented in the following way, for example.

To configure the IP and name of the HTB machine we use.
Expand All @@ -76,7 +93,7 @@ cleartarget
![list](/assets/img/entorno/sp.png){:.lead width="800" height="100" loading="lazy"}

{:.note}
It is also used to clean the target when there is no IP set.
It is also used to clear the target when there is no IP set, and if you click on the target IP you will copy it to the clipboard.

Still, I like my environment to be simple, so I have removed what I don't need and implemented the following.

Expand Down Expand Up @@ -131,39 +148,38 @@ You can choose the mode you prefer.

## hotkeys

| Shortcut | Description |
|------------------------|-------------|
| super + Enter | Terminal Emulator - /usr/bin/kitty |
| super + d | Program Launcher - rofi |
| super + Escape | Reload sxhkd configuration |
| super + alt + {q,r} | Quit/Restart bspwm |
| super + {_,shift + }q | Close/Kill window |
| super + m | Toggle between tiled and monocle layout |
| super + y | Send newest marked window to newest preselected window |
| super + g | Swap current window with biggest window |
| super + {t,shift + t,s,f} | Set window state |
| super + ctrl + {m,x,y,z} | Set window flags |
| super + {_,shift + }{Left,Down,Up,Right} | Focus window in given direction |
| super + {p,b,comma,period} | Focus next/previous window on current desktop |
| super + {_,shift + }c | Focus next/previous window on current desktop |
| super + bracket{left,right} | Focus next/previous desktop on current monitor |
| super + {grave,Tab} | Focus last window/desktop |
| super + {o,i} | Focus older/newer window in focus history |
| super + {_,shift + }{1-9,0} | Focus or send to given desktop |
| super + ctrl + alt + {Left,Down,Up,Right} | Preselect direction |
| super + ctrl + {1-9} | Preselect ratio |
| super + ctrl + alt + space | Cancel preselection for focused window |
| super + ctrl + shift + space | Cancel preselection for focused desktop |
| super + alt + {Left,Down,Up,Right} | Expand window |
| super + alt + shift + {Left,Down,Up,Right} | Contract window |
| super + ctrl + {Left,Down,Up,Right} | Move floating window |
| super + {Left,Down,Up,Right} | Custom move window |
| super + shift + f | Open Firefox |
| super + shift + g | Open Chrome |
| super + b | Open BurpSuite Community Edition |
| super + shift + o | Open Obsidian |
| super + q | Lock screen with i3lock-fancy |

| Shortcut | Description |
| ------------------------------------------ | ------------------------------------------------------ |
| super + Enter | Terminal Emulator - /usr/bin/kitty |
| super + d | Program Launcher - rofi |
| super + Escape | Reload sxhkd configuration |
| super + alt + {q,r} | Quit/Restart bspwm |
| super + {\_,shift + }q | Close/Kill window |
| super + m | Toggle between tiled and monocle layout |
| super + y | Send newest marked window to newest preselected window |
| super + g | Swap current window with biggest window |
| super + {t,shift + t,s,f} | Set window state |
| super + ctrl + {m,x,y,z} | Set window flags |
| super + {\_,shift + }{Left,Down,Up,Right} | Focus window in given direction |
| super + {p,b,comma,period} | Focus next/previous window on current desktop |
| super + {\_,shift + }c | Focus next/previous window on current desktop |
| super + bracket{left,right} | Focus next/previous desktop on current monitor |
| super + {grave,Tab} | Focus last window/desktop |
| super + {o,i} | Focus older/newer window in focus history |
| super + {\_,shift + }{1-9,0} | Focus or send to given desktop |
| super + ctrl + alt + {Left,Down,Up,Right} | Preselect direction |
| super + ctrl + {1-9} | Preselect ratio |
| super + ctrl + alt + space | Cancel preselection for focused window |
| super + ctrl + shift + space | Cancel preselection for focused desktop |
| super + alt + {Left,Down,Up,Right} | Expand window |
| super + alt + shift + {Left,Down,Up,Right} | Contract window |
| super + ctrl + {Left,Down,Up,Right} | Move floating window |
| super + {Left,Down,Up,Right} | Custom move window |
| super + shift + f | Open Firefox |
| super + shift + g | Open Chrome |
| super + b | Open BurpSuite Community Edition |
| super + shift + o | Open Obsidian |
| super + q | Lock screen with i3lock-fancy |

---

Expand Down

0 comments on commit b54f774

Please sign in to comment.