summaryrefslogtreecommitdiffstats
path: root/Debian.md
blob: a88f1d337fa403664f14aa56d5801982c556f706 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# ParrotOS 
```bash
# Allow ssh into the machine
curl https://meta.sr.ht/~a14m.keys > ~/.ssh/authorized_keys
sudo ln -sf ~/.rc/etc/ssh/sshd_config /etc/ssh/sshd_config
sudo systemctl enable ssh

# Setup extra PenTools
## SecLists
git clone https://github.com/danielmiessler/SecLists.git ~/SecLists
sudo mv ~/SecLists /usr/share/

## Arsenal
git clone https://github.com/Orange-Cyberdefense/arsenal.git ~/arsenal
sudo mv ~/arsenal /usr/share/
cd /usr/share/arsenal/
python3 -m pip install -r requirements.txt

## searchsploit
sudo git clone https://github.com/offensive-security/exploitdb.git /opt/exploitdb
sudo ln -sf /opt/exploitdb/searchsploit /usr/local/bin/searchsploit
cp -n /opt/exploitdb/.searchsploit_rc ~/

## ffuf
sudo apt install ffuf -y

## dotdotpwn.pl
git clone https://github.com/wireghoul/dotdotpwn.git ~/dotdotpwn
sudo mv ~/dotdotpwn /opt/

## Thefuck
sudo pip3 install thefuck
```

# Extras :
## Essentials
- Add missing dependencies
```bash
sudo apt remove neovim -y
sudo apt update -y
sudo apt upgrade -y
sudo reboot
sudo apt install scdaemon vim htop tmux pass pass-extension-otp git-crypt pinentry-tty -y
git clone https://git.sr.ht/~a14m/.rc ~/.rc
ln -sf ~/.rc/.bashrc ~/.bashrc

sudo ln -sf /usr/bin/pinentry-tty /usr/local/bin/pinentry-tty
sudo ln -sf /usr/bin/pinentry-curses /usr/local/bin/pinentry-curses
ln -sf ~/.rc/.gnupg/gpg.conf ~/.gnupg/gpg.conf
```

- Configure rc files
```bash
ln -sf ~/.rc/.editorconfig ~/.editorconfig
ln -sf ~/.rc/.inputrc ~/.inputrc
ln -sf ~/.rc/.screenrc ~/.screenrc
ln -sf ~/.rc/.tmux.conf ~/.tmux.conf

ln -sf ~/.rc/.gitconfig ~/.gitconfig
ln -sf ~/.rc/.gitconfig.work.inc ~/.gitconfig.work.inc
ln -sf ~/.rc/.gitignore_global ~/.gitignore_global

mkdir -p ~/.ssh

mkdir -p ~/.config/htop
ln -sf ~/.rc/.config/htop/htoprc ~/.config/htop/htoprc
cd ~/.rc
git remote remove origin
git remote add origin [email protected]:~a14m/.rc
```