Donnerstag, 30. Juni 2011

Google-Queries: Auf der Suche nach Passwörtern Teil 2

Natürlich gibt es auch bei Linux eine Möglichkeit Installationen unbeaufsichtigt durch zu führen.
Nur erstellt man dazu keine Antwortdatei wie bei M$ sondern bei Redhatdistributionen (und kompatiblen wie: Fedora, Centos, Scientific Linux,..) ein sogenanntes Kickstartfile.
Interessanterweise wird bei jeder Installation von Redhat/Fedora so ein Kickstartfile automatisch erzeugt und im Homeverzeichnis von root abgelegt unter dem Namen anaconda-ks.cfg.

Vielleicht wollen Sie ja nun einhundert Maschinen genau so haben wie gerade eben jene von Ihnen installierte Maschine, dann haben Sie schon ein fertiges Kickstartfile und brauchen es nur mehr an Ihre Wünsche anpassen.

Bei der Installation von Fedora/Redhat setzt man natürlich auch ein Passwort für den Account root, womit sich dieses dann als md5 oder sha Hash im Kickstartfile findet.
Sucht man nun im Google mit allinurl:anaconda-ks.cfg oder rootpw iscrypted filetype:cfg nach solchen Files, wird man fündig werden:

https://fedorahosted.org/fedora-data/attachment/wiki/anaconda/mmcgrath/anaconda-ks.cfg

# Kickstart file automatically generated by anaconda.

#version=F9
install
url --url http://astromirror.uchicago.edu/fedora/linux/releases/9/Fedora/x86_64/os/
lang en_US.UTF-8
keyboard us
xconfig --startxonboot
network --device eth0 --bootproto dhcp --hostname desktop.mmcgrath.net
rootpw --iscrypted $6$FloP/rKy/FRD4.AR$hIfA2bNuNyyQ3oIF1IvN88oLSgw31BbJJFvkHCAT/nI.PSVSjLILzS/C0.e8fjbhrlajTA69ilp4YyC9irXw40
firewall --enabled --port=22:tcp
authconfig --enableshadow --passalgo=sha512
selinux --enforcing
timezone --utc America/Chicago
bootloader --location=partition --driveorder=sda,sdb,sdc --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --linux
#part raid.1 --onpart sda1
#part raid.11 --size=256 --ondisk=sdb --asprimary
#part raid.2 --onpart sda2
#part pv.4 --noformat --onpart sda4
#part raid.12 --size=15000 --ondisk=sdb
#raid /boot --fstype ext3 --level=RAID1 --device=md0 raid.1 raid.11
#raid / --fstype ext3 --level=RAID1 --device=md1 raid.2 raid.12
#volgroup VolGroup00 --noformat --useexisting --pesize=4096 pv.4
#logvol swap --noformat --useexisting --fstype swap --name=swap --vgname=VolGroup00 --size=1024
%packages
@legacy-fonts
@fonts
@core
@base
@hardware-support
@base-x
@dial-up
@printing
@kde-desktop
@admin-tools
@graphical-internet
...

http://clumens.fedorapeople.org/anaconda-ks.cfg

# Kickstart file automatically generated by anaconda.

#version=RHEL6
graphical
install
cdrom
lang en_US.UTF-8
keyboard us
rootpw --iscrypted $6$8CTo1myJOzWRabl1$VBF9kx6iKY9KTxCdYNcAXoSxz/bHkcq.tNT.lWNVHoQHSj34nTYNEh8hp2XBQO9bbzlWlkOm2m8F2Y9il4BRP.
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512 --enablefingerprint
selinux --enforcing
timezone --utc America/New_York
bootloader --location=mbr --driveorder=sda --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --linux --drives=sda
ignoredisk --only-use=sda
autopart
#volgroup VolGroup --pesize=4096 pv.KTMxHt-FEYp-8Im0-U3QP-22ao-tPqH-NQfQmf
#logvol / --fstype=ext4 --name=lv_root --vgname=VolGroup --grow --size=1024 --maxsize=51200
#logvol swap --name=lv_swap --vgname=VolGroup --grow --size=496 --maxsize=992
#part /boot --fstype=ext4 --size=500
#part pv.KTMxHt-FEYp-8Im0-U3QP-22ao-tPqH-NQfQmf --grow --size=1
%packages
@base
@console-internet
@core
@debugging
@basic-desktop
@desktop-debugging
@desktop-platform
@directory-client
@fonts
@general-desktop
...

http://www.oldwell.com/183/anaconda-ks.cfg:

# Kickstart file automatically generated by anaconda.

install
lang en_US
langsupport --default en_US.UTF-8 en_US.UTF-8
keyboard us
mouse genericps/2 --device psaux --emulthree
xconfig --card "Intel 810" --videoram 16384 --hsync 30-70 --vsync 50-120 --resolution 1024x768 --depth 16 --startxonboot --defaultdesktop gnome
network --device eth0 --bootproto dhcp
network --device eth1 --bootproto dhcp
rootpw --iscrypted $1$ªûðFƵlx$Cy5UUW6NvQB7nKRU2igGH1
firewall --medium --dhcp --port smtp:tcp --port http:tcp --port ftp:tcp --port ssh:tcp --port telnet:tcp
authconfig --enableshadow --enablemd5
timezone America/New_York
bootloader --location=mbr
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --all
#part / --fstype ext3 --size=3500
#part swap --size=651 --grow
%packages
@ Administration Tools
@ Dialup Networking Support
...
kuickshow
%post
/usr/sbin/useradd brittonj
chfn -f 'Jim Britton' brittonj
/usr/sbin/usermod -p '$1$ahiÁCÿõj$prw14ZWR.zRPLdpkwZldu1' brittonj
/usr/sbin/useradd changp
chfn -f 'Paul Chang' changp/usr/sbin/usermod -p '$1$ZºëÚÊã1Ï$.b/gijeo4T.BThuOcp0d4.' changp

http://dominia.org/djao/anaconda-ks.cfg:

# Kickstart file automatically generated by anaconda.

install
lang en_US
langsupport --default en_US.iso885915 zh_CN.GB18030 zh_TW.Big5 en_US.iso885915 ja_JP.eucJP ko_KR.eucKR
keyboard us
mouse msintellips/2 --device psaux
xconfig --card "VESA driver (generic)" --videoram 16384 --hsync 31.5-48.5 --vsync 50-70 --resolution 1024x768 --depth 32 --startxonboot
network --device eth0 --bootproto dhcp
rootpw --iscrypted $1$qpXuEpyZ$Kj3646rMCQW7SvxrWcmq8.
# The actual root password for this kickstart is g09u5jhlegp90u3;oiuar98ut43t
firewall --disabled
authconfig --enableshadow --enablemd5
timezone America/New_York
bootloader --append hdc=ide-scsi
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#part /boot --fstype ext3 --size=50 --ondisk=hda
#part / --fstype ext3 --size=1100 --grow --ondisk=hda
#part swap --size=240 --grow --maxsize=480 --ondisk=hda
%packages
@ Printing Support
@ Classic X Window System
...

http://dlugosz.eu/livecd/anaconda-ks.cfg:


# Kickstart file automatically generated by anaconda.

#version=F11
install
url --url=ftp://ftp.pld-linux.org/dists/3.0
lang en_US.UTF-8
keyboard pl2
rootpw --iscrypted $6$Z1rrrIhIprF8YnF4$Q8k60ABhoM7LScUuTUKh3t.zDyWtfZgvKrT/dFM5DFWo.SFBFKovoSFQ1qkoD.XZpMa4aQI1jRzRGQ36qIDX41
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --enforcing
timezone --utc America/New_York
bootloader --location=mbr --driveorder=sda
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --linux --drives=sda
#part /boot --fstype ext3 --size=200 --ondisk=sda
#part / --fstype ext3 --onpart sda2
repo --name="PLD Th - architecture specific" --baseurl=ftp://ftp.pld-linux.org/dists/3.0/PLD/i686/RPMS/
repo --name="PLD Th - generic packages" --baseurl=ftp://ftp.pld-linux.org/dists/3.0/PLD/noarch/RPMS/
%packages
@base
@basic
mawk
tar
libstdc++
-SysVinit
-syslog-ng
-ntp-client

http://www.adu.mr/Pages/_derived/_vti_cnf/anaconda-ks.cfg:


# Kickstart file automatically generated by anaconda.

install
lang fr_FR
langsupport --default fr_FR@euro fr_FR@euro
keyboard fr-latin1
mouse none --device null
xconfig --card "ATI Mach64" --videoram 4096 --hsync 31.5 --vsync 50-61 --resolution 1024x768 --depth 16
network --device eth0 --bootproto static --ip 82.151.72.1 --netmask 255.255.255.248 --gateway 82.151.72.2 --nameserver 82.151.72.1 --hostname aduserv
rootpw --iscrypted $1$wgGKáºWu$UJu0mP1FgA4ZpW06Abnbj.
firewall --medium
authconfig --enableshadow --enablemd5
timezone --utc GMT
bootloader --useLilo
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --all --drives=sda
#part /boot --fstype ext3 --size=50 --ondisk=sda
#part /usr --fstype ext3 --size=1400 --grow --ondisk=sda
#part /home --fstype ext3 --size=512 --grow --ondisk=sda
#part /var --fstype ext3 --size=512
#part / --fstype ext3 --size=384 --ondisk=sda
#part swap --size=256 --grow --maxsize=512 --ondisk=sda
%packages
@ Printing Support
@ Classic X Window System
@ Sound and Multimedia Support
@ Network Support
...
audiofile-devel
cdrecord-devel
%post
/usr/sbin/useradd dgadu
chfn -f 'Mohamed Mahmoud Ould Ahmed' dgadu
/usr/sbin/usermod -p '$1$äæßîuæíÕ$gMiS3vF49wozkWok47aD61' dgadu

http://cisx1.uma.maine.edu/~wbackman/anaconda-ks.cfg:

# Kickstart file automatically generated by anaconda.

install
url --url http://cisx1.uma.maine.edu/fedora/core/5/i386/os
keyboard us
lang en_US.UTF-8
network --device eth0 --bootproto dhcp
rootpw --iscrypted $1$F6H5vPwW$/z8x66JJh79TclQkSnBIc1
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone America/New_York
bootloader --location=mbr --driveorder=sda
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all --drives=sda --initlabel
part /boot --fstype ext3 --size=100 --ondisk=sda
part pv.2 --size=0 --grow --ondisk=sda
volgroup VolGroup00 --pesize=32768 pv.2
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=192 --grow --maxsize=384
reboot
%packages
@base
@core
@dialup
@java
cracklib-dicts
rmt
tzdata
%post

http://noisyvoid.com/mythtv/anaconda-ks.cfg:

# Kickstart file automatically generated by anaconda.

install
cdrom
lang en_US.UTF-8
keyboard uk
xconfig --driver "vesa" --videoram 65536 --resolution 800x600 --depth 16 --startxonboot
monitor --hsync 30-95 --vsync 47-160
network --device eth0 --bootproto dhcp
#rootpw --iscrypted $DEAD
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone Europe/London
bootloader --location=mbr --driveorder=hda --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --linux
#part /boot --fstype ext3 --size=100
#part / --fstype ext3 --size=12288
#part swap --size=512
#part /video --fstype jfs --size=100 --grow
%packages
@admin-tools
@base
...

http://homepages.ed.ac.uk/mcairney/anaconda-ks.cfg:


# Kickstart file automatically generated by anaconda.

install
cdrom
lang en_US.UTF-8
keyboard uk
xconfig --driver "nv" --videoram 262144 --resolution 800x600 --depth 16 --startxonboot
monitor --hsync 31.5-37.9 --vsync 50-70
network --device eth0 --bootproto dhcp
rootpw --iscrypted $1$gp9PGQ9y$mziGTG3oUbYiJlRzgqkfo0
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone Europe/London
bootloader --location=mbr --driveorder=hda --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --all --drives=hda
#part /boot --fstype ext3 --size=100 --ondisk=hda
#part pv.4 --size=0 --grow --ondisk=hda
#volgroup VolGroup00 --pesize=32768 pv.4
#logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=1000 --grow --maxsize=1984
#logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
%packages
@admin-tools
@authoring-and-publishing
@base
@base-x
...