Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/deployments/pentest.json
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-07-06 22:23:29 +0200
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-07-06 22:23:29 +0200
commitd723dcf0d7c64f686fc6234a7da9649346d1f56f (patch)
tree36dceb8cd0dcb2d71294cf0d2bec8d76bee86756 /deployments/pentest.json
parent4167946d815f2ab9c6ebf0c597f3b5f5f9723b1e (diff)
Renaming deployments to profiles
Diffstat (limited to 'deployments/pentest.json')
-rw-r--r--deployments/pentest.json55
1 files changed, 0 insertions, 55 deletions
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" : "<STDIN>",
- "_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
- }
- }
-}