index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-07-06 21:02:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-06 21:02:03 +0000 |
commit | 0c57871f3b3832e31c0c835a671064364c2e9575 (patch) | |
tree | 5fe159d12713f48af46d4c339b265f24d38f5858 /profiles/pentest.json | |
parent | 067b31b1aa7f0111f164dfda486adbe565d6a1a9 (diff) | |
parent | f840f9e714d9f7d2fcb601c46079978f7a20df71 (diff) |
-rw-r--r-- | profiles/pentest.json | 55 |
diff --git a/profiles/pentest.json b/profiles/pentest.json new file mode 100644 index 00000000..900836ce --- /dev/null +++ b/profiles/pentest.json @@ -0,0 +1,55 @@ +{ + "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 + } + } +} |