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 by certbot. Although, Avoiding snapd should be considered in general applications.
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.