Million-net Whois (the interface used to provide a legal interface to the WAN)
Copy the Code code as follows:
function Whois_hichina ($domain) {Preg_match ("|
(.+?)|is ", @file_get_contents (' http://whois.hichina.com/cgi-bin/whois?domain= ' $domain. '), $
Whois is simply a database that queries whether the domain name has been registered, as well as the details of the registered domain name (such as domain name owner, domain name registrar, domain name registration date, and expira
subordinates. China's national Registration Authority is the Internet Information Center (CNNIC).Whois (read "Who is", not an abbreviation) is a transport protocol used to query the IP of a domain name and the owner of such information. In short, WHOIS is a database (such as the domain owner,
"Original": before using php to query domain name whois information, a whois query tool was specially deployed on the plog.cn server to implement "plog.cn 1-6 Super-expecting to delete short domain names. PS: method of use http://plog.cn/whois/yourdomain.com
In order to im
nearly 1000 of ICANN's authorized registrars. The domain registrar will check whether the domain name is available and establish a WHOIS record according to the information provided by the registrant. The registrant may also register the domain name through the distributor's affiliate. The organizations/individual
Author: Guang mangoSource: evil baboons Information Security Team (www.eviloctal.com)Note: This article has been published in the non-secure guest manual.Since the announcement of whois technology, bypass attacks have become a very common attack method for hackers. In addition to configuring directory permissions, we can also block hackers when querying whois.Let's first analyze the principle of whois query
PHP code for domain name whois query (data source HiChina, Xinnet ). The code for copying the HiChina whois code is as follows: functionwhois_hichina ($ domain) {preg_match (| pre (. + ?) Pre | is, @ file_get_contents (whois HiChina whoi
Php function: Domain name whois query (query using interfaces of HiChina and Xinnet ). Function 1 :? Php HiChina whois (the interface used to provide valid interfaces for HiChina) functionwhois_hichina ($ domain) {preg_match (| pre (.?) Pre | is, @ file_get_contents (whois.
Use PHP to query the domain name status whois class. Copy the code as follows :? ClassSearchDomain {var $ domain; functionSetDomain ($ udomain) {$ this-domain $ udomain;} get whois and analyze the domain name status. OK is not reg
Function 1: lt ;? Php // HiChina whois (the interface used to provide valid interfaces for HiChina) functionwhois_hichina ($ domain) { nbsp; preg_match (| lt; pre gt; (.?) Lt;/pre gt; | is, @ file_get_contents (http: // whois function 1:
// HiChina whois (the interfaces used provide valid interfaces for HiChina)
function One:
Million-net Whois (the interface used to provide a legal interface to the WAN)
function Whois_hichina ($domain) {
Preg_match ("|
(. ?)|is ", @file_get_contents (http://whois.hichina.com/cgi-bin/whois?domain=. $domain.), $w
I. Classification of information collection
The methods of information collection can be grouped into two categories:
1. Active Collection: Active collection is to obtain relevant information, such as ICMP ping or TCP port scan, by directly initiating interaction with the target network being tested.
2. Passive collection: Passive collection is through Third-party services to obtain information on the target network, such as the use of Google search engine.
second, the
Million-net Whois (the interface used to provide a legal interface to the WAN)
Copy CodeThe code is as follows:
function Whois_hichina ($domain) {
Preg_match ("|
(.+?)|is ", @file_get_contents (' http://whois.hichina.com/cgi-bin/whois?domain= ' $domain. '), $
bytes. If it fails, it returns false.
PHP $file fopen ("Test.txt", "R"); while feof ($file)) { echofgets($file). "; } fclose ($file); ? >
The FGETSS () function reads a row from an open file and filters out HTML and PHP tags. As with Fgets (), the difference is that FGETSS attempts to remove any HTML and PHP markup from the text that is being read.
FGETSS (file,length,tags) can use the optional third parameter tags to specify which tags are not removed. If it fai
Query of most domain name suffixes and punycode domain names such as Chinese. The interface outputs plain Whois text data without any advertisement code! None? Php $ DomainNameoschina.net; defines the domain name variable value $ WhoisAPIwhois.263.twweixinindex. php? Domain.
Copy CodeThe code is as follows:
Class Searchdomain{var $domain = "";function SetDomain ($udomain){$this->domain = $udomain;}//Get whois and analyze domain name statusOK is not registeredNon-null value expiration timeNull value Unknown//function GetInfo (){/*$dinfo = Trim ($this->getwhois ());if ($dinfo = = "") retu
In operation and maintenance work, sometimes need to query some domain name registration information (domain name NS, registered users, registered mailbox, etc.), you can use the WHOIS command.The WHOIS command is used to find and display user-related information for a specified account (or
Use PHP to query the domain name status whois class
The code is as follows:
Class SearchDomain{Var $ domain = "";Function SetDomain ($ udomain){$ This-> domain = $ udomain;}//// Obtain whois and analyze the domain name status/
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.