Last active
July 23, 2023 14:57
-
-
Save v0s/6067c305f676d203056c0cab310e9b26 to your computer and use it in GitHub Desktop.
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
** Если нет 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-Keyboard Shortcuts -> Maximize window = Winkey+Up, Restore window = Winkey+Down | |
System-Preferences-Hardware-Power Management -> Put = Never | |
System-Preferences-Look and Feel-Appearance -> Theme = Blue-Submarine, Fonts-Rendering = Monochrome, 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 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 | |
========================= | |
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 | |
.bashrc -> ignoredup, HIST *1000, alias, PROMPT_ALTERNATIVE=oneline, #NEWLINE_BEFORE_PROMPT | |
/usr/share/vim/vim8*/defaults.vim -> "set mouse=a | |
/etc/php/7.*/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 | |
vim /etc/apt/sources.list -> включить deb-src | |
apt update | |
apt -y build-dep qemu ; apt -y install gcc-multilib | |
cd /root/Desktop | |
git clone https://github.com/korniltsev/qira | |
cd qira | |
vim install.sh | |
tracers/qemu/qira-i386 -> tracers/qemu/qira-v5-i386 | |
./qemu_build.sh -> ./qemu_build_v5.sh | |
vim tracers/qemu_build_v5.sh | |
qemu/qemu -> qemu/qemu_v5 | |
git clone ... -> git clone ... qemu_v5 | |
vim run_tests.sh | |
#!/bin/bash -e -> #!/bin/bash | |
./install.sh # если выпадет с ошибкой питоновых пакетов, твикаем версии в requirements.txt руками... | |
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.9/dist-packages/ | |
4. apt -y install qemu gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf gcc-arm-none-eabi gcc-avr gcc-mingw-w64 gcc-mips64el-linux-gnuabi64 gcc-mips64-linux-gnuabi64 gcc-mipsel-linux-gnu gcc-mips-linux-gnu gcc-powerpc64le-linux-gnu gcc-powerpc64-linux-gnu gcc-powerpc-linux-gnu gcc-sparc64-linux-gnu gcc-multilib-mips64el-linux-gnuabi64 gcc-multilib-mips64-linux-gnuabi64 gcc-multilib-mipsel-linux-gnu gcc-multilib-mips-linux-gnu gcc-multilib-powerpc64-linux-gnu gcc-multilib-powerpc-linux-gnu gcc-multilib-sparc64-linux-gnu | |
5. docker | |
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian bullseye stable" > /etc/apt/sources.list.d/docker.list | |
apt update | |
apt -y install docker-ce | |
vim /etc/default/grub -> GRUB_CMDLINE_LINUX_DEFAULT="quiet vsyscall=emulate" | |
update-grub | |
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
curl -L https://raw.githubusercontent.com/docker/compose/1.29.2/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose | |
6. opencl runtime | |
cd /root/Desktop | |
wget -O- http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/13793/l_opencl_p_18.1.0.013.tgz | tar xzv | |
cd *opencl* | |
./install.sh | |
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.4 | |
vim /etc/php/7.*/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 | |
================ | |
vmware-toolbox-cmd disk shrink / | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
чтоб руками не настраивать тему терминала можно проюзать удобный скрипт с https://mayccoll.github.io/Gogh/