Malicious Methods
Delete Windows Recovery Partition
There are many reasons why one would want to delete the recovery partion on windows, It can be:
- Want to use a thrid party recovery program
- Have a recovery disk already and don't want overhead
- Unable to increase windows C drive partition
Cons of removing this partition: The recovery partition is a special windows partition that is used to restore windows back to its factory settings by request in the windows recovery menu or in case of a system failure.
Steps to remove the partition:
- Open windows command prompt or powershell as administrator.
- Disable recovery enviroment:
reagentc /disable
- Run
diskpart
command
diskpart
- Check for the disk number that has the Recovery Partition. To check, Run
list disk
- Select the correct disk
select disk NUMBER
- Check for the partition number that is the Recovery Partition. To check, Run
list partition
- Select the correct partition
select partition NUMBER
- Delete the partition
delete partition override
Now the Windows Recovery Partition has been deleted and you can exit out of the terminal as no further action is needed.
How to install CertBot
Certbot is an SSL installer tool that works with letsencrypt
and supports nginx
and apache
. It works on many systems but this guide will only contain how to use it for debian based systems.
Method 1: Using snapd
This is the recommened way of installing certbot (application) by certbot (application developers). Although, Avoiding snapd should be considered in general applications. It does install certbot with all the plugins you may require which can be an advantage.
snapd
happpens to be already installed.- Update your package repositories.(Only do this if snapd is not installed) Syntax:
apt update && apt upgrade -y
- Install snapd. (Only required if snapd is not already installed.) Syntax:
apt install snapd -y
- Install certbot. Syntax:
snap install --classic certbot
- Set snapd binary. Syntax:
ln -s /snap/bin/certbot /usr/bin/certbot
Method 2: Using apt
Prefering to use apt would always be the recommended way to install software even though it might be behind few versions/not always the latest release of the software. Even though certbot developers don't recommend this way of installation, It can be considered the "better way" to install the software.
- Update your package repositories & install
software-properties
package. Syntax:
apt install software-properties-common && apt update && apt upgrade -y
- Install certbot. Syntax:
apt install certbot
- Install
nginx
plugin. Syntax:
apt install python-certbot-nginx
- Install
apache
plugin. Syntax:
apt install python-certbot-apache
Reset Password on Debian Based systems
Resetting the password on debian based systems is faily easy as long as there's access to the Grub Menu and don't even require hotkeys to be working. Here's how to reset the password on debian systems using grub menu.
- On the grub menu, Press
e
- Find the line that starts with
linux
and usually (but not always) ends withquiet
. - At the end of that line, Type
init=/bin/bash
. If for some reason, bash shell isn't available,sh
can be used. - Press
Ctrl + X
to boot into shell. - In the shell, Make sure the disks show up using the
lsblk
/blkid
/df
command. - Once verified, Type
mount -rw -o remount /
to make the filesystem writeable - Now, Type
passwd root
to change the root password of the server. - Once done, Reboot the server.
reboot
or systemctl reboot
command won't work. It is recommended that you use Ctrl
+ Alt
+ Del
to reboot it. Or Power cycling the server is also an option here.- Now once the server is booted, you can login to the server using the new password.