|
|
|
@ -51,17 +51,24 @@ configure_zsh() {
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
configure_kaboxer() {
|
|
|
|
|
# Create the group if needed
|
|
|
|
|
addgroup --system kaboxer || true
|
|
|
|
|
# This is generically named in case we want to add other groups in the future.
|
|
|
|
|
configure_usergroups() {
|
|
|
|
|
# Create the kaboxer group if needed
|
|
|
|
|
addgroup --system kaboxer || true
|
|
|
|
|
# Create the wireshark group if needed
|
|
|
|
|
addgroup --system wireshark || true
|
|
|
|
|
|
|
|
|
|
# Add the users to the group
|
|
|
|
|
for user in $(get_user_list); do
|
|
|
|
|
echo "INFO: adding user '$user' to group 'kaboxer'"
|
|
|
|
|
adduser $user kaboxer || true
|
|
|
|
|
done
|
|
|
|
|
# kaboxer - for kaboxer
|
|
|
|
|
# dialout - for serial access
|
|
|
|
|
# wireshark - capture sessions in wireshark
|
|
|
|
|
kali_groups="kaboxer,dialout,wireshark"
|
|
|
|
|
|
|
|
|
|
for user in $(get_user_list); do
|
|
|
|
|
echo "INFO: adding user '$user' to groups '$kali_groups'"
|
|
|
|
|
usermod -a -G "$kali_groups" $user || true
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
configure_sources_list
|
|
|
|
|
configure_zsh
|
|
|
|
|
configure_kaboxer
|
|
|
|
|
configure_usergroups
|
|
|
|
|