Skip to content

Commit 02c0497

Browse files
author
cube
committed
Supuestamente sirve
0 parents  commit 02c0497

File tree

537 files changed

+154332
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

537 files changed

+154332
-0
lines changed

.zshrc

+151
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
# Fix the Java Problem
2+
export _JAVA_AWT_WM_NONREPARENTING=1
3+
4+
# Enable Powerlevel10k instant prompt. Should stay at the top of ~/.zshrc.
5+
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
6+
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
7+
fi
8+
9+
# Set up the prompt
10+
11+
autoload -Uz promptinit
12+
promptinit
13+
prompt adam1
14+
15+
setopt histignorealldups sharehistory
16+
17+
# Use emacs keybindings even if our EDITOR is set to vi
18+
bindkey -e
19+
20+
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
21+
HISTSIZE=1000
22+
SAVEHIST=1000
23+
HISTFILE=~/.zsh_history
24+
25+
# Use modern completion system
26+
autoload -Uz compinit
27+
compinit
28+
29+
zstyle ':completion:*' auto-description 'specify: %d'
30+
zstyle ':completion:*' completer _expand _complete _correct _approximate
31+
zstyle ':completion:*' format 'Completing %d'
32+
zstyle ':completion:*' group-name ''
33+
zstyle ':completion:*' menu select=2
34+
eval "$(dircolors -b)"
35+
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
36+
zstyle ':completion:*' list-colors ''
37+
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
38+
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
39+
zstyle ':completion:*' menu select=long
40+
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
41+
zstyle ':completion:*' use-compctl false
42+
zstyle ':completion:*' verbose true
43+
44+
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
45+
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
46+
47+
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
48+
[[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh
49+
50+
# Manual configuration
51+
52+
PATH=/root/.local/bin:/snap/bin:/usr/sandbox/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/share/games:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
53+
54+
# Custom Aliases
55+
56+
alias ll='lsd -lh --group-dirs=first'
57+
alias la='lsd -a --group-dirs=first'
58+
alias l='lsd --group-dirs=first'
59+
alias lla='lsd -lha --group-dirs=first'
60+
alias ls='lsd --group-dirs=first'
61+
alias cat='/bin/batcat --paging=never'
62+
alias catn='cat'
63+
alias catnl='batcat'
64+
65+
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
66+
67+
# Plugins
68+
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
69+
#source /usr/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh
70+
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
71+
source /usr/share/zsh-sudo/sudo.plugin.zsh
72+
73+
# Functions
74+
function mkt(){
75+
mkdir {nmap,content,exploits,scripts}
76+
}
77+
78+
# Extract nmap information
79+
function extractPorts(){
80+
ports="$(cat $1 | grep -oP '\d{1,5}/open' | awk '{print $1}' FS='/' | xargs | tr ' ' ',')"
81+
ip_address="$(cat $1 | grep -oP '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}' | sort -u | head -n 1)"
82+
echo -e "\n[*] Extracting information...\n" > extractPorts.tmp
83+
echo -e "\t[*] IP Address: $ip_address" >> extractPorts.tmp
84+
echo -e "\t[*] Open ports: $ports\n" >> extractPorts.tmp
85+
echo $ports | tr -d '\n' | xclip -sel clip
86+
echo -e "[*] Ports copied to clipboard\n" >> extractPorts.tmp
87+
cat extractPorts.tmp; rm extractPorts.tmp
88+
}
89+
90+
# Settarget
91+
92+
function settarget(){
93+
if [ $# -eq 1 ]; then
94+
echo $1 > ~/.config/bin/target
95+
elif [ $# -gt 2 ]; then
96+
echo "settarget [IP] [NAME] | settarget [IP]"
97+
else
98+
echo $1 $2 > ~/.config/bin/target
99+
fi
100+
}
101+
102+
# Set 'man' colors
103+
function man() {
104+
env \
105+
LESS_TERMCAP_mb=$'\e[01;31m' \
106+
LESS_TERMCAP_md=$'\e[01;31m' \
107+
LESS_TERMCAP_me=$'\e[0m' \
108+
LESS_TERMCAP_se=$'\e[0m' \
109+
LESS_TERMCAP_so=$'\e[01;44;33m' \
110+
LESS_TERMCAP_ue=$'\e[0m' \
111+
LESS_TERMCAP_us=$'\e[01;32m' \
112+
man "$@"
113+
}
114+
115+
# fzf improvement
116+
function fzf-lovely(){
117+
118+
if [ "$1" = "h" ]; then
119+
fzf -m --reverse --preview-window down:20 --preview '[[ $(file --mime {}) =~ binary ]] &&
120+
echo {} is a binary file ||
121+
(bat --style=numbers --color=always {} ||
122+
highlight -O ansi -l {} ||
123+
coderay {} ||
124+
rougify {} ||
125+
cat {}) 2> /dev/null | head -500'
126+
127+
else
128+
fzf -m --preview '[[ $(file --mime {}) =~ binary ]] &&
129+
echo {} is a binary file ||
130+
(bat --style=numbers --color=always {} ||
131+
highlight -O ansi -l {} ||
132+
coderay {} ||
133+
rougify {} ||
134+
cat {}) 2> /dev/null | head -500'
135+
fi
136+
}
137+
138+
function rmk(){
139+
scrub -p dod $1
140+
shred -zun 10 -v $1
141+
}
142+
143+
# Finalize Powerlevel10k instant prompt. Should stay at the bottom of ~/.zshrc.
144+
(( ! ${+functions[p10k-instant-prompt-finalize]} )) || p10k-instant-prompt-finalize
145+
146+
bindkey "^[[H" beginning-of-line
147+
bindkey "^[[F" end-of-line
148+
bindkey "^[[3~" delete-char
149+
bindkey "^[[1;3C" forward-word
150+
bindkey "^[[1;3D" backward-word
151+
source ~/.powerlevel10k/powerlevel10k.zsh-theme

AutoInstall.sh

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/bin/bash
2+
3+
ruta=$(pwd)
4+
5+
chmod +x $ruta/theme.sh
6+
chmod +x $ruta/Kali.sh
7+
chmod +x $ruta/Parrot.sh
8+
9+
menu()
10+
{
11+
echo -e "\033[32m#-------------------------------------------------------------#\033[0m"
12+
echo -e "\033[32m# 31/07/2023 #\033[0m"
13+
echo -e "\033[32m#-------------------------------------------------------------#\033[0m"
14+
echo -e "\033[32m# By: ZLCube, xsJacksx, S4vitar, MrPr1ngles, Elisaelias02 #\033[0m"
15+
echo -e "\033[32m#-------------------------------------------------------------#\033[0m"
16+
echo -e "\033[32m# ___ _ ______ #\033[0m"
17+
echo -e "\033[32m# / _ \ | | | ___ \ #\033[0m"
18+
echo -e "\033[32m# / /_\ \_ _| |_ ___ | |_/ / ___ _ ____ ___ __ ___ #\033[0m"
19+
echo -e "\033[32m# | _ | | | | __/ _ \| ___ \/ __| '_ \ \ /\ / / '_ ' _ \ #\033[0m"
20+
echo -e "\033[32m# | | | | |_| | || (_) | |_/ /\__ \ |_) \ V V /| | | | | | #\033[0m"
21+
echo -e "\033[32m# \_| |_/\__,_|\__\___/\____/ |___/ .__/ \_/\_/ |_| |_| |_| #\033[0m"
22+
echo -e "\033[32m# | | #\033[0m"
23+
echo -e "\033[32m# |_| #\033[0m"
24+
echo -e "\033[32m# #\033[0m"
25+
echo -e "\033[32m#-------------------------------------------------------------#\033[0m"
26+
echo -e "\033[32m# SELECCIONE SU SISTEMA OPERATIVO: #\033[0m"
27+
echo -e "\033[32m#-------------------------------------------------------------#\033[0m"
28+
echo -e "\033[32m# (1) Kali #\033[0m"
29+
echo -e "\033[32m# (2) Parrot #\033[0m"
30+
echo -e "\033[32m#-------------------------------------------------------------#\033[0m"
31+
}
32+
33+
exec()
34+
{
35+
case $1 in
36+
1)
37+
./Kali.sh
38+
;;
39+
2)
40+
./Parrot.sh
41+
;;
42+
3)
43+
echo "Exit script"
44+
exit 0
45+
;;
46+
*)
47+
echo "Opcion invalida"
48+
;;
49+
esac
50+
}
51+
52+
while true; do
53+
menu
54+
read -p "> " opcion
55+
exec $opcion
56+
done

Fonts2/fonts/Helvetica.ttf

311 KB
Binary file not shown.

Fonts2/fonts/Helvetica_Bold.ttf

301 KB
Binary file not shown.
271 KB
Binary file not shown.
3.14 MB
Binary file not shown.
1.24 MB
Binary file not shown.

Fonts2/fonts/feather.ttf

79.6 KB
Binary file not shown.
Binary file not shown.
49.4 KB
Binary file not shown.
Binary file not shown.

Kali.sh

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
#!/bin/bash
2+
3+
if [ "$(whoami)" == "root" ]; then
4+
exit 1
5+
fi
6+
7+
ruta=$(pwd)
8+
9+
# Instalando dependencias de Entorno
10+
11+
sudo apt install -y build-essential git vim xcb libxcb-util0-dev libxcb-ewmh-dev libxcb-randr0-dev libxcb-icccm4-dev libxcb-keysyms1-dev libxcb-xinerama0-dev libasound2-dev libxcb-xtest0-dev libxcb-shape0-dev
12+
13+
# Instalando Requerimientos para la polybar
14+
15+
sudo apt install -y cmake cmake-data pkg-config python3-sphinx libcairo2-dev libxcb1-dev libxcb-util0-dev libxcb-randr0-dev libxcb-composite0-dev python3-xcbgen xcb-proto libxcb-image0-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-xkb-dev libxcb-xrm-dev libxcb-cursor-dev libasound2-dev libpulse-dev libjsoncpp-dev libmpdclient-dev libuv1-dev libnl-genl-3-dev
16+
17+
# Dependencias de Picom
18+
19+
sudo apt install -y meson picom libxext-dev libxcb1-dev libxcb-damage0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-composite0-dev libxcb-image0-dev libxcb-present-dev libxcb-xinerama0-dev libpixman-1-dev libdbus-1-dev libconfig-dev libgl1-mesa-dev libpcre2-dev libevdev-dev uthash-dev libev-dev libx11-xcb-dev libxcb-glx0-dev libpcre3 libpcre3-dev
20+
21+
# Instalamos paquetes adionales
22+
23+
sudo apt install -y kitty feh scrot scrub rofi xclip bat locate ranger neofetch wmname acpi bspwm sxhkd imagemagick cmatrix
24+
25+
# Creando carpeta de Reposistorios
26+
27+
mkdir ~/github
28+
mkdir ~/ScreenShots
29+
30+
# Descargar Repositorios Necesarios
31+
32+
cd ~/github
33+
git clone --recursive https://github.com/polybar/polybar
34+
git clone https://github.com/ibhagwan/picom.git
35+
36+
# Instalando Polybar
37+
38+
cd ~/github/polybar
39+
mkdir build
40+
cd build
41+
cmake ..
42+
make -j$(nproc)
43+
sudo make install
44+
45+
# Instalando Picom
46+
47+
cd ~/github/picom
48+
git submodule update --init --recursive
49+
meson --buildtype=release . build
50+
ninja -C build
51+
sudo ninja -C build install
52+
53+
# Instalando p10k
54+
55+
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.powerlevel10k
56+
echo 'source ~/.powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
57+
58+
# Instalando p10k root
59+
60+
sudo git clone --depth=1 https://github.com/romkatv/powerlevel10k.git /root/.powerlevel10k
61+
62+
# Configuramos el tema Nord de Rofi:
63+
64+
mkdir -p ~/.config/rofi/themes
65+
cp $ruta/rofi/nord.rasi ~/.config/rofi/themes/
66+
67+
# Instando lsd
68+
sudo dpkg -i $ruta/lsd.deb
69+
70+
# Instalamos la fuentes
71+
sudo cp -v $ruta/fonts/HNF/* /usr/local/share/fonts/
72+
sudo cp -v $ruta/Fonts2/fonts/* /usr/share/fonts/truetype/
73+
74+
75+
# Copiando Archivos de Configuración
76+
rm -r ~/.config/polybar
77+
sudo cp -rv $ruta/kitty /opt/
78+
rm -rf ~/.zshrc
79+
cp -v $ruta/.zshrc ~/.zshrc
80+
81+
# Script
82+
sudo cp -v $ruta/scripts/whichSystem.py /usr/local/bin/
83+
sudo cp -v $ruta/scripts/screenshot /usr/local/bin/
84+
85+
# Plugins ZSH
86+
87+
sudo apt install -y zsh-syntax-highlighting zsh-autosuggestions
88+
sudo mkdir /usr/share/zsh-sudo
89+
cd /usr/share/zsh-sudo
90+
sudo wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/sudo/sudo.plugin.zsh
91+
sudo ln -s -fv ~/.zshrc /root/.zshrc
92+
93+
./theme.sh
94+
95+
# Mensaje de Instalado
96+
97+
notify-send "BSPWM INSTALADO"

Parrot.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
echo "Parrot Instalado"

README.md

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# AutoBspwm
2+
3+
Este es un script de instalación de BSPWM para kali o parrot linux, cabe aclarar que puede funcionar en otras distribuciones base debian sin embargo en las unicas que se mantiene estable y las cuales les daremos soporte será Kali linux y Parrot linux
4+
5+
6+
1.- Uso del Script
7+
8+
```
9+
git clone https://github.com/ZLCube/AutoBspwm.git
10+
11+
cd AutoBspwm
12+
13+
chmod +x AutoInstall.sh
14+
15+
./AutoInstall.sh
16+
```
17+
18+
2.- Wallpaper
19+
20+
Para cambiar el wallpaper usaremos el comando
21+
``` nano .config/bspwm/bspwmrc ``` y renombrando el apartado wallpaper con el nombre del wallpaper de tu eleccion en la carpeta ```~/.config/Wallpaper/```.
22+
23+
La configuración es la misma que el entorno de s4vitar al menos en cuanto a shortcuts y terminal se refiere.
24+
25+
3.- Nvim
26+
27+
Esta no esta incluida en el scripts
28+
29+
4.- En caso de unicamente requerir los dotfiles recuerda que los componentes basicos son bspwm, picom, pollybar, sxhkd, hacknerf fonts
30+
31+
UNA MENCION HONORIFICA A Mr. Pr1ngl3s, y a xjacksx por su gran colaboración y autorizacion de usar sus repositorios así como a S4vitar por la configuración del entorno, te dejo el enlace a los perfiles de cada uno de ellos.
32+
33+
xJacksx https://github.com/xJackSx/
34+
35+
Mr.Pr1ngl3s https://github.com/MrPr1ngl3s
36+
37+
S4vitar https://github.com/s4vitar
38+
39+
Si necesitas más ayuda con la configuración pica en la imagen que te lleva a mi tutorial en mi canal de YT:
40+
41+
Pendiente: [![Watch the video](linkdeimagen)](linkdeyt)
42+
43+
#===============================MIS-REDES==================================#
44+
45+
Practicamente ZLCube en todos lados
46+
47+
https://www.youtube.com/@zlcube9936
48+
49+
https://www.twitter.com/zlcube
50+
51+
https://www.tiktok.com/@zlcube
52+
53+
https://www.twitch.tv/zlcube
54+
55+
https://www.instagram.com/zlcube
56+
57+
#=========================================================================#

0 commit comments

Comments
 (0)