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:

  1. Open windows command prompt or powershell as administrator.
  2. Disable recovery enviroment:
reagentc /disable
  1. Run diskpart command
diskpart
  1. Check for the disk number that has the Recovery Partition. To check, Run
list disk
  1. Select the correct disk
select disk NUMBER
  1. Check for the partition number that is the Recovery Partition. To check, Run
list partition
  1. Select the correct partition
select partition NUMBER
  1. 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.

  1. Update your package repositories.(Only do this if snapd is not installed) Syntax:
apt update && apt upgrade -y
  1. Install snapd. (Only required if snapd is not already installed.) Syntax:
apt install snapd -y
  1. Install certbot. Syntax:
snap install --classic certbot
  1. Set snapd binary. Syntax:
ln -s /snap/bin/certbot /usr/bin/certbot

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.

  1. On the grub menu, Press e
  2. Find the line that starts with linux and usually (but not always) ends with quiet.
  3. At the end of that line, Type init=/bin/bash. If for some reason, bash shell isn't available, sh can be used.
  4. Press Ctrl + X to boot into shell.
  5. In the shell, Make sure the disks show up using the lsblk/blkid/df command.
  6. Once verified, Type mount -rw -o remount / to make the filesystem writeable
  7. Now, Type passwd root to change the root password of the server.
  8. Once done, Reboot the server.
  1. Now once the server is booted, you can login to the server using the new password.
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9