fedora-kickstarts/fedora-live-security.ks

150 lines
3.6 KiB
Plaintext
Raw Normal View History

# Filename:
# fedora-livecd-security.ks
# Description:
2012-09-16 11:32:25 +00:00
# A fully functional live OS based on Fedora for use in security auditing,
# forensics research, and penetration testing.
# Maintainers:
2013-08-13 11:51:50 +00:00
# Fabian Affolter <fab [AT] fedoraproject <dot> org>
# Joerg Simon <jsimon [AT] fedoraproject <dot> org>
# Acknowledgements:
2013-08-13 11:51:50 +00:00
# Fedora LiveCD Xfce Spin team - some work here was and will be inherited,
2016-02-06 10:43:19 +00:00
# many thanks, especially to Christoph Wickert!
# Fedora LXDE Spin - Copied over stuff to make LXDE Default
2013-08-13 11:51:50 +00:00
# Luke Macken and Adam Miller for the original OpenBox Security ks and all
2012-09-16 11:32:25 +00:00
# the Security Applications!
2011-02-28 13:45:40 +00:00
# Hiemanshu Sharma <hiemanshu [AT] fedoraproject <dot> org>
%include fedora-live-base.ks
%include fedora-live-minimization.ks
2013-10-01 21:32:48 +00:00
# spin was failing to compose due to lack of space, so bumping the size.
part / --size 10240
%packages
2013-08-13 11:51:50 +00:00
@xfce-desktop
@xfce-apps
2014-06-13 13:59:22 +00:00
# Security tools
2013-08-13 11:51:50 +00:00
@security-lab
security-menus
2013-09-05 22:36:47 +00:00
# unlock default keyring. FIXME: Should probably be done in comps
gnome-keyring-pam
# save some space
2013-08-13 11:51:50 +00:00
-autofs
-acpid
2013-08-13 11:51:50 +00:00
-gimp-help
-desktop-backgrounds-basic
-realmd # only seems to be used in GNOME
-PackageKit* # we switched to yumex, so we don't need this
-aspell-* # dictionaries are big
2013-09-05 22:35:55 +00:00
-gnumeric
-foomatic-db-ppds
-foomatic
-stix-fonts
-ibus-typing-booster
-xfce4-sensors-plugin
2013-10-01 21:32:48 +00:00
-man-pages-*
2011-05-07 12:02:42 +00:00
# drop some system-config things
2010-10-27 13:43:07 +00:00
-system-config-rootpassword
-policycoreutils-gui
2013-08-13 11:51:50 +00:00
# exclude some packages to save some space
# use './fsl-maintenance.py -l' in your security spin git folder to build
-ArpON
2013-10-01 21:32:48 +00:00
-aide
-binwalk
-bkhive
2013-08-13 11:51:50 +00:00
-bonesi
2013-10-01 21:32:48 +00:00
-bro
2013-08-13 11:51:50 +00:00
-cmospwd
-dnstop
2013-10-01 21:32:48 +00:00
-etherape
2013-08-13 11:51:50 +00:00
-hfsutils
2013-10-01 21:32:48 +00:00
-httpie
-httrack
-hydra
2013-08-13 11:51:50 +00:00
-kismon
2013-10-01 21:32:48 +00:00
-labrea
-nebula
2013-08-13 11:51:50 +00:00
-netsed
-onesixtyone
2013-10-01 21:32:48 +00:00
-packETH
-pads
2013-08-13 11:51:50 +00:00
-pdfcrack
-proxychains
-pyrit
-raddump
2013-10-01 21:32:48 +00:00
-rkhunter
2013-08-13 11:51:50 +00:00
-safecopy
2013-10-01 21:32:48 +00:00
-samdump2
2013-08-13 11:51:50 +00:00
-scalpel
-sslstrip
-tcpreen
-tcpreplay
-tripwire
-wipe
2015-02-20 13:44:56 +00:00
-zmap
2014-06-13 13:59:22 +00:00
%end
%post
2013-08-13 11:51:50 +00:00
# xfce configuration
# create /etc/sysconfig/desktop (needed for installation)
2013-08-13 11:51:50 +00:00
cat > /etc/sysconfig/desktop <<EOF
2013-08-13 11:51:50 +00:00
PREFERRED=/usr/bin/startxfce4
DISPLAYMANAGER=/usr/sbin/lightdm
EOF
cat >> /etc/rc.d/init.d/livesys << EOF
2013-08-13 11:51:50 +00:00
mkdir -p /home/liveuser/.config/xfce4
cat > /home/liveuser/.config/xfce4/helpers.rc << FOE
MailReader=sylpheed-claws
FileManager=Thunar
WebBrowser=midori
FOE
2013-08-13 11:51:50 +00:00
# disable screensaver locking (#674410)
cat >> /home/liveuser/.xscreensaver << FOE
mode: off
lock: False
dpmsEnabled: False
2010-04-22 09:03:47 +00:00
FOE
2013-08-13 11:51:50 +00:00
# deactivate xfconf-migration (#683161)
rm -f /etc/xdg/autostart/xfconf-migration-4.6.desktop || :
# deactivate xfce4-panel first-run dialog (#693569)
mkdir -p /home/liveuser/.config/xfce4/xfconf/xfce-perchannel-xml
cp /etc/xdg/xfce4/panel/default.xml /home/liveuser/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
# set up lightdm autologin
sed -i 's/^#autologin-user=.*/autologin-user=liveuser/' /etc/lightdm/lightdm.conf
sed -i 's/^#autologin-user-timeout=.*/autologin-user-timeout=0/' /etc/lightdm/lightdm.conf
#sed -i 's/^#show-language-selector=.*/show-language-selector=true/' /etc/lightdm/lightdm-gtk-greeter.conf
# set Xfce as default session, otherwise login will fail
sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf
# Show harddisk install on the desktop
sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop
mkdir /home/liveuser/Desktop
cp /usr/share/applications/liveinst.desktop /home/liveuser/Desktop
2013-08-13 11:51:50 +00:00
# and mark it as executable (new Xfce security feature)
chmod +x /home/liveuser/Desktop/liveinst.desktop
2013-08-13 11:51:50 +00:00
# this goes at the end after all other changes.
chown -R liveuser:liveuser /home/liveuser
restorecon -R /home/liveuser
EOF
%end