From d723dcf0d7c64f686fc6234a7da9649346d1f56f Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Mon, 6 Jul 2020 22:23:29 +0200 Subject: Renaming deployments to profiles --- deployments/pentest.json | 55 ------------------------------------------------ 1 file changed, 55 deletions(-) delete mode 100644 deployments/pentest.json (limited to 'deployments/pentest.json') diff --git a/deployments/pentest.json b/deployments/pentest.json deleted file mode 100644 index 900836ce..00000000 --- a/deployments/pentest.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "args" : { - "password" : "", - "_filebrowser" : "nemo gpicview-gtk3", - "_webbrowser" : "chromium", - "_window_manager" : "awesome", - "_keyboard_layout" : "sv-latin1", - "_virtulization" : "qemu ovmf", - "_pentest" : "nfs-utils smbmap crackmapexec samba bloodhound responder smbclient openvpn nmap tcpdump python-psutil python-systemd python-pycryptodomex screen", - "post" : "don't reboot" - }, - "post" : { - "Install workstation packages": { - "pacman -Syy --noconfirm openssh sshfs git {_webbrowser} {_window_manager} {_virtulization} {_filebrowser} dhclient gnu-free-fonts ttf-liberation xorg-server xorg-xrandr xorg-xinit xterm nano wget pulseaudio pulseaudio-alsa pavucontrol smbclient cifs-utils xscreensaver" : {"pass-args" : true} - }, - "Setup virtulization" : { - "sh -c \"Description=\\\"Bridge for virtual machines\\\"\nInterface=br0\nConnection=bridge\nBindsToInterfaces=(eno1)\nIP=no\nExecUpPost=\\\"ip link set dev br0 address $(cat /sys/class/net/eno1/address); IP=dhcp; ip_set\\\"\nExecDownPre=\\\"IP=dhcp\\\"\n\n## Ignore (R)STP and immediately activate the bridge\nSkipForwardingDelay=yes\"" : null - }, - "Setup loclization" : { - "sh -c \"echo 'setxkbmap se' >> /etc/X11/xinit/xinitrc\"" : null, - "sh -c \"echo 'KEYMAP={_keyboard_layout}\nFONT=lat9w-16' >> /etc/vconsole.conf\"" : {"pass-args" : true} - }, - "Configure desktop environment" : "awesome", - "Configure pentest environment" : { - "curl -O https://blackarch.org/strap.sh" : null, - "chmod +x strap.sh" : null, - "sh strap.sh" : {"debug" : true}, - "rm -rf /etc/pacman.d/gnupg" : null, - "pacman-key --init" : null, - "pacman-key --populate" : null, - "pacman-key --populate archlinux" : null, - "pacman-key --update" : null, - "pacman -Syy" : null, - "sh strap.sh" : null, - "sh strap.sh" : {"debug" : true}, - "pacman -Syy --noconfirm {_pentest}" : {"pass-args" : true}, - "touch /mnt/etc/openvpn/client/customer.conf" : {"no-chroot" : true}, - "sed -i 's/After=network.target/After=openvpn-client@customer.service\n&/' /mnt/usr/lib/systemd/system/sshd.service" : {"no-chroot" : true}, - "sed -i 's/ExecStart=/ExecStartPre=\\/usr\\/bin\\/sleep 30\n&/' /mnt/usr/lib/systemd/system/sshd.service" : {"no-chroot" : true}, - "echo 'Interface=eno1\nConnection=ethernet\nIP=dhcp' > /mnt/etc/netctl/LAN" : {"no-chroot" : true}, - "git clone https://github.com/Torxed/dumper.git" : null, - "mkdir /mnt/etc/dumper" : {"no-chroot" : true}, - "cp dumper/config.json /etc/dumper/" : null, - "cp dumper/dumper.py /usr/bin/" : null, - "chmod 440 /etc/dumper/config.json" : null, - "chmod 540 /usr/bin/dumper.py" : null, - "cp dumper/systemd/dumper\\@.service /etc/systemd/system/" : null, - "sed -i 's/#ListenAddress 0.0.0.0/ListenAddress 192.168.0.10/' /mnt/etc/ssh/sshd_config" : {"no-chroot" : true}, - "rm -rf dumper" : null, - "netctl enable LAN" : {"boot" : true}, - "systemctl enable dumper@eno1.service" : null, - "systemctl enable sshd" : null - } - } -} -- cgit v1.2.3-70-g09d2