C#-visit bomber, new process, end process ... (ConsoleApp)---Shinepans

Source: Internet
Author: User

This program can open the Web site to open its own initiative, and the initiative to end the process, so as to achieve the blog click traffic to add

Program.cs

Using system;using system.collections.generic;using system.linq;using system.text;using System.Threading;namespace tst{    class program    {        static void Main (string[] args)        {for            (int i=0;i<1000;i++)            {                Console.WriteLine ("added {0} times!", i);                Util Util = new Util ();                Util. Startthrad ();                Thread.Sleep (the);   Set the speed                util. Close ();}}}    

Util.cs

Using system;using system.collections.generic;using system.diagnostics;using system.linq;using System.Text;using System.threading;namespace tst{  Public  class Util    {public      void Startthrad ()      {          ThreadStart start = new ThreadStart (startie);          Thread thread = new thread (start);          Thread. Start ();      }      public void Close ()      {          process[] Pro = Process.getprocesses ();//Get all Processes          //traverse process for          (int i=0;i< Pro. length;i++)          {              //infer if is the process to find              if (Pro[i]. Processname.tostring (). ToLower () = = "360chrome")  //I tested the 360 speed browser, the other browser please change the process name                  Pro[i]. Kill (); End process;          }      }      private void Startie ()      {          Process.Start ("http://user.qzone.qq.com/574273250");  The address to be visited, the site's calculation rules for their own query, there are different methods of calculation, time interval, ID number, etc.}}      



C#-visit bomber, new process, end process ... (ConsoleApp)---shinepans

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.