Skip to content

Instantly share code, notes, and snippets.

@v0s
Last active November 9, 2024 20:29
Show Gist options
  • Save v0s/6067c305f676d203056c0cab310e9b26 to your computer and use it in GitHub Desktop.
Save v0s/6067c305f676d203056c0cab310e9b26 to your computer and use it in GitHub Desktop.
** Если нет 1.5 часов, можно пропустить dist-upgrade, === Advanced === и disk shrink. Сэкономит полчаса
Подробная установка: https://youtu.be/nZ3mDnpZeic
https://kali.download/base-images/*/*-installer-amd64.iso.torrent
/etc/network/interfaces - change interface to eth0
static
address 192.168.192.64
netmask 255.255.255.0
gateway 192.168.192.2
dns-nameservers 8.8.8.8
sudo passwd root
userdel -r user # required if created a normal user instead of root
rm -rf /home/user
apt update
apt -y dist-upgrade
apt -y install lightdm open-vm-tools-desktop mate-desktop-environment
reboot
System-Preferences-Hardware-Power Management -> Put = Never
System-Preferences-Look and Feel-Appearance -> Theme = Blue-Submarine, change 'Cantarell' to Sans
System-Preferences-Look and Feel-Screensaver -> [ ] Activate
Applications-Usual-System-MATE Terminal -> Add to panel
Terminal -> Edit-Profile Preferences Font = Monospace 11, [v] Copy into clipboard, [v] Use custom size = 120x36, Colors-Text color = #e2e2e2, Scrolling [v] Unlimited
rm -rf /var/cache/man/* ; chattr +i /var/cache/man
apt -y install build-essential linux-headers-amd64 pv netcat-traditional socat htop mc screen vim strace ltrace edb-debugger aptitude apt-file autoconf automake cmake bison dc libtool lzop mtr php-gmp gcc-multilib ncdu fonts-noto-color-emoji kali-root-login zstd
/etc/lightdm/lightdm.conf -> autologin-user=root
=== Fix desktop icons ===
1. mv /usr/bin/caja{,_orig}
2. vim /usr/bin/caja
#!/bin/bash
if [ "$DESKTOP_AUTOSTART_ID" = "" ]; then
exec caja_orig "$@"
else
exec caja_orig --force-desktop -n
fi
3. chmod +x /usr/bin/caja
=========================
=== Fix startup delay ===
> vim /usr/share/applications/mate-panel.desktop
X-MATE-Autostart-Phase=Applications
=========================
mkdir -p /mnt/hgfs
vim /etc/rc.local
----- start -----
#!/bin/bash
vmhgfs-fuse -o allow_other .host:/ /mnt/hgfs
------ end ------
chmod +x /etc/rc.local
shared folders
echo set enable-bracketed-paste off >> /etc/inputrc
cp /etc/skel/.bashrc.original /root/.bashrc
.bashrc -> ignoredups, HIST *1000, alias, export PIP_BREAK_SYSTEM_PACKAGES=1
/usr/share/vim/vim*/defaults.vim -> "set mouse=a
/etc/php/*/cli/php.ini -> date.timezone = Europe/Moscow
/etc/default/grub -> GRUB_TIMEOUT=1
update-grub
/etc/initramfs-tools/initramfs.conf -> MODULES=dep, COMPRESS=lzop
update-initramfs -u -k all
apt-get autoremove --purge
reboot
=== Advanced ===
1. qira
https://t.me/spbctf/213954
2. pip install ipython angr pwn
3. boolector
cd /root/Desktop
git clone -b master --depth 1 https://github.com/boolector/boolector
pip install cython
cd boolector
./contrib/setup-lingeling.sh
./contrib/setup-btor2tools.sh
./configure.sh --python --py3 && cd build && make
cp lib/pyboolector.so /usr/local/lib/python3.*/dist-packages/
4. apt -y install qemu-system crossbuild-essential-arm64 crossbuild-essential-armel crossbuild-essential-armhf crossbuild-essential-mips crossbuild-essential-mips64 crossbuild-essential-mips64el crossbuild-essential-mipsel crossbuild-essential-powerpc crossbuild-essential-ppc64el crossbuild-essential-riscv64 adb apksigner aria2 byobu ca-certificates clang dietlibc-dev docker.io docker-compose dos2unix elfutils faketime ffmpeg gdb gettext git gnupg gocr golang-go imagemagick jpegoptim jq libelf-dev libgmp-dev libheif-examples libimage-exiftool-perl libldap-dev libmcrypt-dev libncurses-dev libplist-utils libpng-dev libpq-dev libreadline-dev libsasl2-dev libssl-dev libunwind-dev moreutils musl-dev musl-tools nasm ncat net-tools npm oathtool openvpn p7zip-full parallel patchelf pdftk php-bcmath php-curl php-dev php-gd php-mbstring php-pear php-sqlite3 php-ssh2 php-xml php-yaml pkg-config poppler-utils proxychains4 pwgen pypy3 python3-pip python3-openssl qemu-user-static qrencode rar rename ripgrep smbclient speedtest-cli sqlite3 ssh-import-id sshpass tcc tor unrar upx wget whois wine wine64 wireguard-tools x11-apps x11-utils xclip zip zipalign
apt autoremove --purge needrestart
5. docker
vim /etc/default/grub -> GRUB_CMDLINE_LINUX_DEFAULT="vsyscall=emulate"
update-grub
6. opencl runtime
### PoCL included out of the box
hashcat -b # check runtime
7. php-mcrypt
apt -y install php-pear php-dev libmcrypt-dev
pecl install channel://pecl.php.net/mcrypt-1.0.7
vim /etc/php/*/cli/php.ini -> extension=mcrypt
8. wine32
dpkg --add-architecture i386
apt update
apt -y install wine32
wine cmd /c ver # check wine
9. apt-file update
apt-get autoremove --purge
10. apt-fast
curl https://raw.githubusercontent.com/ilikenwf/apt-fast/master/quick-install.sh | bash
================
vmware-toolbox-cmd disk shrink /
@burkov
Copy link

burkov commented Sep 21, 2018

Terminal -> Edit-Profile Preferences Font = Monospace 11, [v] Copy into clipboard, [v] Use custom size = 120x36, Colors-Text color = #e2e2e2, Scrolling [v] Unlimited

чтоб руками не настраивать тему терминала можно проюзать удобный скрипт с https://mayccoll.github.io/Gogh/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment