How to Install and Uninstall molly-guard Package on Kali Linux
Last updated: November 22,2024
1. Install "molly-guard" package
This is a short guide on how to install molly-guard on Kali Linux
$
sudo apt update
Copied
$
sudo apt install
molly-guard
Copied
2. Uninstall "molly-guard" package
In this section, we are going to explain the necessary steps to uninstall molly-guard on Kali Linux:
$
sudo apt remove
molly-guard
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the molly-guard package on Kali Linux
Package: molly-guard
Version: 0.8.3
Installed-Size: 56
Maintainer: Simó Albert i Beltran
Architecture: all
Depends: procps
Enhances: init, kexec-tools, mosh, openssh-server, pm-utils, systemd, sysvinit, upstart
Size: 12204
SHA256: bcd9799a6ae79463ac5964715dd79fccaa081a1ead630b423e2d24d03451c474
SHA1: 5cd4b4c548ad6079d0659f6ca87be3e338b93e4e
MD5sum: 935a4618568794bbfcd4c4076dace48f
Description: protects machines from accidental shutdowns/reboots
The package installs a shell script that overrides the existing
shutdown/reboot/halt/poweroff/coldreboot/pm-hibernate/pm-suspend* commands
and first runs a set of scripts, which all have to exit successfully,
before molly-guard invokes the real command.
.
One of the scripts checks for existing SSH sessions. If any of the four
commands are called interactively over an SSH session, the shell script
prompts you to enter the name of the host you wish to shut down. This should
adequately prevent you from accidental shutdowns and reboots.
.
molly-guard diverts the real binaries to /lib/molly-guard/. You can bypass
molly-guard by running those binaries directly.
Description-md5:
Tag: implemented-in::shell, interface::commandline, network::server,
protocol::ssh, role::program, scope::utility
Section: admin
Priority: optional
Filename: pool/main/m/molly-guard/molly-guard_0.8.3_all.deb
Version: 0.8.3
Installed-Size: 56
Maintainer: Simó Albert i Beltran
Architecture: all
Depends: procps
Enhances: init, kexec-tools, mosh, openssh-server, pm-utils, systemd, sysvinit, upstart
Size: 12204
SHA256: bcd9799a6ae79463ac5964715dd79fccaa081a1ead630b423e2d24d03451c474
SHA1: 5cd4b4c548ad6079d0659f6ca87be3e338b93e4e
MD5sum: 935a4618568794bbfcd4c4076dace48f
Description: protects machines from accidental shutdowns/reboots
The package installs a shell script that overrides the existing
shutdown/reboot/halt/poweroff/coldreboot/pm-hibernate/pm-suspend* commands
and first runs a set of scripts, which all have to exit successfully,
before molly-guard invokes the real command.
.
One of the scripts checks for existing SSH sessions. If any of the four
commands are called interactively over an SSH session, the shell script
prompts you to enter the name of the host you wish to shut down. This should
adequately prevent you from accidental shutdowns and reboots.
.
molly-guard diverts the real binaries to /lib/molly-guard/. You can bypass
molly-guard by running those binaries directly.
Description-md5:
Tag: implemented-in::shell, interface::commandline, network::server,
protocol::ssh, role::program, scope::utility
Section: admin
Priority: optional
Filename: pool/main/m/molly-guard/molly-guard_0.8.3_all.deb