一个非常简陋的域名注册辅助工具
来源:互联网 发布:海德划船机怎么样知乎 编辑:程序博客网 时间:2024/05/01 17:18
using System;
using System.Net;
using System.Threading;
using System.IO;
using System.Text;
namespace banyi.com
{
class Get900host
{
public string GetString(string uri,string postData)
{
WebClient myWebClient = new WebClient();
myWebClient.Headers.Add("Content-Type","application/x-www-form-urlencoded");
byte[] byteArray = Encoding.ASCII.GetBytes(postData);
byte[] responseArray = myWebClient.UploadData(uri,"POST",byteArray);
return Encoding.GetEncoding(54936).GetString(responseArray);
}
}
class test
{
static void Main()
{
Console.WriteLine("请输入一个数字");
string startNumber=Console.ReadLine();
string DomainName;
string content;
int j;
if (startNumber!="")
{
j=int.Parse(startNumber);
for (int i=0;i<1000;i++)
{
j=j+1;
DomainName=j.ToString();
string url="http://www.900host.com/services/domain/whois.asp";
string postdata="module=domainsearch&searchType=IntDomain&action=check&searchedDomainName="+ DomainName +"&suffix=.com&img.x=42&img.y=9";
Get900host myGet900host = new Get900host();
content=myGet900host.GetString(url,postdata);
if (content.IndexOf("以下域名已被注册")==-1)
{
Console.WriteLine(DomainName);
}
else
{
Console.WriteLine(" 已被注册"+DomainName);
}
}
}
}
}
}
using System.Net;
using System.Threading;
using System.IO;
using System.Text;
namespace banyi.com
{
class Get900host
{
public string GetString(string uri,string postData)
{
WebClient myWebClient = new WebClient();
myWebClient.Headers.Add("Content-Type","application/x-www-form-urlencoded");
byte[] byteArray = Encoding.ASCII.GetBytes(postData);
byte[] responseArray = myWebClient.UploadData(uri,"POST",byteArray);
return Encoding.GetEncoding(54936).GetString(responseArray);
}
}
class test
{
static void Main()
{
Console.WriteLine("请输入一个数字");
string startNumber=Console.ReadLine();
string DomainName;
string content;
int j;
if (startNumber!="")
{
j=int.Parse(startNumber);
for (int i=0;i<1000;i++)
{
j=j+1;
DomainName=j.ToString();
string url="http://www.900host.com/services/domain/whois.asp";
string postdata="module=domainsearch&searchType=IntDomain&action=check&searchedDomainName="+ DomainName +"&suffix=.com&img.x=42&img.y=9";
Get900host myGet900host = new Get900host();
content=myGet900host.GetString(url,postdata);
if (content.IndexOf("以下域名已被注册")==-1)
{
Console.WriteLine(DomainName);
}
else
{
Console.WriteLine(" 已被注册"+DomainName);
}
}
}
}
}
}
- 一个非常简陋的域名注册辅助工具
- 一个简陋的makefile
- 非常简陋的聊天界面代码
- 一个简陋的文字计数器
- FSCapture -- Web开发非常实用的辅助工具
- 一个简陋的中文自动分词程序
- 一个简陋的lua调试器
- 实现一个简陋的MVC框架
- 实现一个简陋的双向绑定
- 一个比较简陋的动态标题栏
- 实现一个简陋的记事本软件
- 用自己的姓名注册一个属于自己的域名
- 把一个godaddy的域名转回国内的注册商
- 对一个曾经被注册过的域名的抢注
- 一个简单的域名注册情况查询程序
- 注册域名的重要性
- 注册域名的分类
- 注册域名的步骤
- 软件工程之需求分析
- 软件需求说明书
- 怎样做需求分析
- 闲来无事,过了三天“神雕侠侣”的生活
- Windows Server 2003 家族是什么?
- 一个非常简陋的域名注册辅助工具
- 回顾工程师生涯的点滴良言
- 小孩会打架就是长大了
- 纯ASP上传程序
- ASP通用函数源码集
- 增加一个隐藏帐号
- 脱壳技术简谈
- 改变神经连结三步骤
- 考研交流:幽默段子——唐僧劝悟空考研