self deleting bash script

How to create a bash script that deletes itself This script will delete itself via the shred command (secure deletion) when it exits #!/bin/bash # # Author: Steve Stonebraker # Date: August 20, 2013 # Name: shred_self.sh # Purpose: securely…

remove magnify.exe

Problem You hate magnify.exe yet you are unable to delete magnify.exe Solution Take ownership of magnify.exe Move it to a new filename Celebrate i_hate_magnify.bat takeown /f “%windir%\system32\Magnify.exe” && icacls “%windir%\system32\Magnify.exe” /grant administrators:F echo “Took ownership of Magnify.exe!” move “%windir%\system32\Magnify.exe” “%windir%\system32\Magnify.exe.ihateyou”…

bat file as administrator

I wanted to be able to run a bat file as administrator in order to have an easy shortcut to edit my windows hosts file. Here’s what I found Shortcut to edit windows hosts file as Admin Creating the batch…