标签:网址 极速 rtt sleep art 规则 ring http gen
这个程序能够自己主动打开要打开的网址,而且自己主动结束进程,这样能够达到博文点击流量的添加
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("添加{0}次了!", i);
Util util = new Util();
util.StartThrad();
Thread.Sleep(5000); //设置速度
util.Close();
}
}
}
}
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(); //获取全部的进程
//遍历进程
for(int i=0;i<pro.Length;i++)
{
//推断是否为要查找的进程
if (pro[i].ProcessName.ToString().ToLower() == "360chrome") //本人測试的是 360极速浏览器 ,其它的浏览器请改进程名
pro[i].Kill(); //结束进程;
}
}
private void StartIE()
{
Process.Start("http://user.qzone.qq.com/574273250"); //待訪问的地址 ,站点的计算规则自己查询,有不同的计算方式,时间间隔,Id号等
}
}
}
C#-訪问轰炸机,新建进程,结束进程...(ConsoleApp)---ShinePans
标签:网址 极速 rtt sleep art 规则 ring http gen
原文地址:http://www.cnblogs.com/cynchanpin/p/6852195.html