IT ninja turtles get domain name users, it Ninja Turtles Domain Name
<% @ Page contentType = "text/html; charset = GBK" %>
<HTML>
<HEAD>
<TITLE> obtain the computer name </TITLE>
</HEAD>
<BODY>
<%
String auth = request. getHeader ("Authorization ");
String username = null;
String remoteHost = null;
String domain = null;
If (auth = null)
{
Response. setStatus (response. SC _UNAUTHORIZED );
Response. setHeader ("WWW-Authenticate", "NTLM ");
Response. flushBuffer ();
Return;
}
If (auth. startsWith ("NTLM "))
{
Byte [] msg = new sun. misc. BASE64Decoder (). decodeBuffer (auth. substring (5 ));
Int off = 0, length, offset;
If (msg [8] = 1)
{
Byte z = 0;
Byte [] msg1 = {(byte) 'n', (byte) 'T', (byte) 'l', (byte) 'M', (byte) 'S ', (byte)'s', (byte) 'P', z, (byte) 2, z, (byte) 40, z, (byte) 1, (byte) 130, z, (byte) 2, (byte) 2, (byte) 2, z, z };
Response. setHeader ("WWW-Authenticate", "NTLM" + new sun. misc. BASE64Encoder (). encodeBuffer (msg1 ));
Response. sendError (response. SC _UNAUTHORIZED );
Return;
}
Else if (msg [8] = 3)
{
Off = 30;
Length = msg [off + 17] * 256 + msg [off + 16];
Offset = msg [off + 19] * 256 + msg [off + 18];
RemoteHost = new String (msg, offset, length );
Length = msg [off + 1] * 256 + msg [off];
Offset = msg [off + 3] * 256 + msg [off + 2];
Domain = new String (msg, offset, length );
Length = msg [off + 9] * 256 + msg [off + 8];
Offset = msg [off + 11] * 256 + msg [off + 10];
Username = new String (msg, offset, length );
}
}
%>
Alert ("<% = username %> ");
Alert ("<% = remoteHost %> ");
Alert ("<% = domain %> ");
</Script>
</BODY>
</HTML>
Is it the domain name of that country?
It: Italy, jm: Jamaica, Jamaica jo: Jordan, Jordan jp Zaire, zw: Zimbabwe, Zimbabwe is from Finland
I just took over the IT Department. IT is useful to handle Chinese domain names. What is the problem?
I personally think it is useless. You can try it by yourself when you enter the Chinese text and English Punctuation and the English letter www in the address bar. Is it inconvenient?
The experience of users is becoming more and more important. If the website is difficult to access, users may not want to come back.
Many domain name registrars are actively promoting this service for profit and task purposes. After so many years of launch of Chinese domain names, which company is using Chinese domain names for marketing or image websites?
Some people also think that the current website mainly relies on search engines and does not need to enter its own domain name. Once accessed, the website can also be searched for in the search folder. The Chinese name is not very obvious. The domain name may contain Chinese characters, which is also conducive to SEO promotion.
You can think about it by yourself. My opinions are for reference only. I personally do not suggest using them.