惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
雷峰网
雷峰网
V
V2EX
博客园_首页
Engineering at Meta
Engineering at Meta
博客园 - 聂微东
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
H
Help Net Security
A
About on SuperTechFans
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Blog — PlanetScale
Blog — PlanetScale
W
WeLiveSecurity
云风的 BLOG
云风的 BLOG
D
Docker
Security Archives - TechRepublic
Security Archives - TechRepublic
Help Net Security
Help Net Security
N
News and Events Feed by Topic
Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
A
Arctic Wolf
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Google DeepMind News
Google DeepMind News
博客园 - 三生石上(FineUI控件)
aimingoo的专栏
aimingoo的专栏
Hacker News: Ask HN
Hacker News: Ask HN
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 司徒正美
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy International News Feed
T
Troy Hunt's Blog
T
Tenable Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Recorded Future
Recorded Future
F
Fortinet All Blogs
D
DataBreaches.Net
B
Blog
T
Threat Research - Cisco Blogs
MyScale Blog
MyScale Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
The GitHub Blog
The GitHub Blog
Security Latest
Security Latest
M
MIT News - Artificial intelligence

博客园 - 网际大鱼

大鱼认为好的牛股排名 让所有的实体店成为网店的体验店 QQ机器人小P隆重发布,QQ号:792892125 带强名的.net程序反向工程后汇编中的问题总结 谁是股市上的最大受益者 数据挖掘之web文本自动分类 利用搜索引擎技术抢注域名 推出网站大鱼搜索 网页生成缩略图程序在win2003下IE控件实例超过10个出现错误的问题 oracle 9i以上最有效率的if(exists)update else insert操作 爬虫如何抓取到Asp.Net中__doPostBack获取新页面的数据 goole CodeSearch 的分页bug 关键词与关键词之间的相关度计算 超强的ORC控件Asprise OCR补丁发布 QQ存在重大漏洞,用户可以群发小广告,传播病毒 用开源Carrot2的后缀树算法做Web文本聚类 隆重推出PowerDesinger 12.1.0.1913破解补丁 用OCR技术识别验证码---tesseract 用sniffer技术盗取电话银行密码
域名注册,抢注工具编写
网际大鱼 · 2006-11-24 · via 博客园 - 网际大鱼

首先我们准备一个词典,也就最好的域名列表,我找了最常见的英文单词列表。然后确定一个验证的网站,我选的是中国万网。
我们要做的就是从词典取出每一个词,用程序去万网测试,找到未被注册的域名列表,我选的是.com的和.cn的。运行,等待输出结果

ublic class DomainRegist {
    
    
static public String filepath = "/opt/TestHL/result.cvs";
    
static public String dicPath = "/opt/TestHL/dic.txt";
    
/**测试某个域名是否未被注册
     * 
@param keyword
     
*/

    
static public void testDomain(String keyword)
    
{
        String url 
= "http://panda.www.net.cn/cgi-bin/Check.cgi?domain=" +keyword + "&big5=n&com=yes&cn=yes";
        
try
        
{
        
byte[] pageHtml = HttpUtil.getPage(url);
        
//将页面转成string 
        if(pageHtml!=null)
        

            String strHtml;
            
try {
                strHtml 
= new String(pageHtml, "GBK");
                String[][] result 
= StringUtil.splitByReg(strHtml,"domain=(.*?)'>");
                
if(result != null )
                
{
                    
for(int i=0; i< result.length;i++)
                        
for(int j=0;j<result[i].length;j++)
                            CSVWriter(filepath,result[i][j]);
                }

                
            }
 catch (UnsupportedEncodingException e) 
                e.printStackTrace();
            }

        }

        }

        
catch(Exception e)
        
{
            e.printStackTrace();
        }

    }

    
/**把结果输出到文本
     * 
@param filePath
     * 
@param line
     
*/

    
public synchronized static void CSVWriter(String filePath, String line) {
        
        
try {
            BufferedWriter out 
= new BufferedWriter(new FileWriter(filePath, true));
            line 
= StringUtil.gbk2iso(line);
            out.write(line);
            out.newLine();
            out.close();
        }
 catch (IOException e) {
            e.printStackTrace();
        }

        }

    
/**
     * 
@param args
     
*/

    
public static void main(String[] args) 
        ArrayList
<String> dic = DataDir.getSpecifiedFileData(dicPath);
        
for(int i=0;i<dic.size();i++){
            testDomain(dic.get(i).trim());            
        }


    }


}