From b2184c3d25462b50af2b4435f6fb7fa4ae8b48f2 Mon Sep 17 00:00:00 2001 From: Kaj Forney Date: Thu, 18 Oct 2018 15:21:53 -0600 Subject: [PATCH] Add hook. Former-commit-id: 7244023e38261c619a083a55ff382e5e3553918e Former-commit-id: 5ac98680a7f1feb041c15c1a52debe175982b5db --- .../hooks/live/pentest-distro-builder.chroot | 23 +++++++++++++++++++ .../hooks/pentest-distro-builder.chroot | 23 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 modules/live-build-config/kali-config/common/hooks/live/pentest-distro-builder.chroot create mode 100644 modules/parrot-build/templates/common/hooks/pentest-distro-builder.chroot diff --git a/modules/live-build-config/kali-config/common/hooks/live/pentest-distro-builder.chroot b/modules/live-build-config/kali-config/common/hooks/live/pentest-distro-builder.chroot new file mode 100644 index 00000000..9c22c5cb --- /dev/null +++ b/modules/live-build-config/kali-config/common/hooks/live/pentest-distro-builder.chroot @@ -0,0 +1,23 @@ +#!/bin/sh + +#Populate root's home folder from /etc/skel +cp -ru /etc/skel/* /root/ + +#Time to git stuff... +cd /root/ +git clone https://github.com/Veil-Framework/Veil.git +git clone https://github.com/leebaird/discover.git +git clone https://github.com/trustedsec/ptf + +#Enable our desired services +ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa +systemctl enable ssh +systemctl enable cups +systemctl enable apache2 +systemctl enable mysql +systemctl enable postgresql +systemctl enable tor +systemctl enable cockpit.socket + +msfdb init + diff --git a/modules/parrot-build/templates/common/hooks/pentest-distro-builder.chroot b/modules/parrot-build/templates/common/hooks/pentest-distro-builder.chroot new file mode 100644 index 00000000..9c22c5cb --- /dev/null +++ b/modules/parrot-build/templates/common/hooks/pentest-distro-builder.chroot @@ -0,0 +1,23 @@ +#!/bin/sh + +#Populate root's home folder from /etc/skel +cp -ru /etc/skel/* /root/ + +#Time to git stuff... +cd /root/ +git clone https://github.com/Veil-Framework/Veil.git +git clone https://github.com/leebaird/discover.git +git clone https://github.com/trustedsec/ptf + +#Enable our desired services +ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa +systemctl enable ssh +systemctl enable cups +systemctl enable apache2 +systemctl enable mysql +systemctl enable postgresql +systemctl enable tor +systemctl enable cockpit.socket + +msfdb init +