Spambot重复部分不会快速垃圾邮件

时间:2018-02-27 18:28:32

标签: c# .net visual-studio

我正在开发一个spambot,但有一个问题我无法解决。我制作了你可以按的按钮,它表示你想要多少垃圾邮件。如果您想要发送垃圾邮件,您将有一定的时间去您想要发送垃圾邮件的地方。我做了一个函数,说明文本会垃圾邮件的数量。但问题是当它发送1条消息时它会等待一定的时间而不是500毫秒

脚本是用C#编写的。目标框架是:.NET Framework 4.6.1。

 
    public partial class Form1 : Form
        {
            public void Time()
            {
                for (int i = 0; i <= 10;)
                { 
                    Stuur();
                    i++;
                }
            } // 10x 

CountField1 = i.Sum(o => (int?)o.scd.Count1 ?? 0),
CountField2 = i.Sum(o => (int?)o.scd.Count2 ?? 0),

block {

public void Stuur() // does the sending { System.Threading.Thread.Sleep(500); SendKeys.Send(textBox3.Text); SendKeys.Send("{ENTER}"); } public Form1() { InitializeComponent(); } private void textBox4_TextChanged(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { MessageBox.Show("Rush B", "5 sec voor spam", MessageBoxButtons.OK, MessageBoxIcon.Error); System.Threading.Thread.Sleep(5000); Time(); } private void button2_Click(object sender, EventArgs e) // the credit

1 个答案:

答案 0 :(得分:0)

也许是这些方面的东西?

    public void Stuur() // does the sending
    {
          System.Threading.Thread.Sleep(5000);
          SendKeys.Send(textBox3.Text);
          SendKeys.Send("{ENTER}");
    }

    public Form1()
    {
        InitializeComponent();
    }

    private void textBox4_TextChanged(object sender, EventArgs e) { }

    private void button1_Click(object sender, EventArgs e) 
    { 
        for (int i = 0; i <= Int32.Parse(textBox.Text4); i++) {
            Stuur();
        }
    }

    private void button2_Click(object sender, EventArgs e) // the credit block
    {
        if (textBox6.Visible == true)
        {
            textBox6.Visible = false;
        } 
        else 
        {
            textBox6.Visible = true;
        }
    }

    private void checkBox1_CheckedChanged(object sender, EventArgs e) { }
}

编辑关闭括号