This article introduces ASP. NET client and server information retrieval methods. For more information, see.
1. Special attributes in ASP. NET:Get Server computer name: Page. Server. ManchineNameGet User information: Page. UserObtain the client
According to Baidu, SQL injection is a query string that inserts SQL commands into a Web form to submit or input domain names or page requests, and finally deceives the server to execute malicious SQL commands. In fact, it is to submit carefully
Www.link0day.cnBy Lnk
The school was bored in class in the computer room and downloaded a system. It took several minutes to identify the vulnerability.
Vulnerability analysis without nonsense
Injection:
Conn. asp contains anti-injection.
Dim
From Forum: http://bbs.2cto.com/read.php? Tid = 86782Blog: http://hi.baidu.com/linkhackBut this day's stomach is desperate .. What is the article Management System of aspbar?Several vulnerabilities were discovered .. Let's talk about the analysis
1.1 display Chinese date -- year, month, and dayString strY = currentTime. ToString (f); // seconds not displayed1.2 use Chinese date to display _ year and monthString strYM = currentTime. ToString (y );1.3 retrieve Chinese Date display _
Asp function code:Copy codeThe Code is as follows:Function checkip (checkstring) 'uses regular expressions to determine whether the IP address is valid.Dim re1Set re1 = new RegExpRe1.pattern = "^ [0-9] {1, 3 }. [0-9] {1, 3 }. [0-9] {1, 3 }. [0-9] {1,
1. datetime numeric typeSystem. datetime currenttime = new system. datetime ();1.1 take the current year, month, day, hour, minute, secondCurrenttime = system. datetime. now;1.2 get current yearInt year = currenttime. Year;1.3 take the current
1. datetime numeric typeSystem. datetime currenttime = new system. datetime ();
1.1 take the current year, month, day, hour, minute, second
Currenttime = system. datetime. now;
1.2 get current year
Int year = currenttime. Year;
1.3 take the current
1. datetime numeric typeSystem. datetime currenttime = new system. datetime ();1.1 take the current year, month, day, hour, minute, secondCurrenttime = system. datetime. now;1.2 get current yearInt year = currenttime. Year;1.3 take the current
1. In ASP.NetPrivate attributes in: Get server computer name: page. server. manchinename
Get user information: page. User
Obtain the client computer name: page. Request. userhostname
Obtain the Client IP Address: page. Request. userhostaddress
2.
1. datetime numeric type
System. datetime currenttime = new system. datetime ();1.1 take the current year, month, day, hour, minute, second currenttime = system. datetime. now;1.2 take the current year int year = currenttime. Year;1.
Recently, I have summarized the commonly used functions and methods in C #. net, hoping to help you.
1. datetime numeric typeSystem. datetime currenttime = new system. datetime ();1.1 take the current year, month, day, hour, minute,
1. datetime numeric type system. datetime currenttime = new system. datetime (); 1.1 returns the current year, month, day, hour, minute, and second currenttime = system. datetime. now; 1.2 Current year int year = currenttime. year; 1.3 the
1. datetime numeric typeSystem. datetime currenttime = new system. datetime ();1.1 take the current year, month, day, hour, minute, secondCurrenttime = system. datetime. now;1.2 get current yearInt year = currenttime. Year;1.3 take the current
1. datetime numeric type system. datetime currenttime = new system. datetime (); 1.1 returns the current year, month, day, hour, minute, second currenttime = system. datetime. now; 1.2: the current year int year = currenttime. year; 1.3 the current
1. datetime numeric type
System. datetime currenttime = new system. datetime ();1.1 take the current year, month, day, hour, minute, second
Currenttime = system. datetime. now;1.2 get current year
Int year = currenttime. Year;1.3 take the current
WebService obtains the server hardware information and Client IP address, MAC address, and browser information, and the city in which the server resides -- Using System;Using System. Collections;Using System. ComponentModel;Using System.
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.