Using SQL Injection for 2 minutes

Source: Internet
Author: User

When talking about the light, the snow, and the knives, it can be said that they are all well-known and well-known. These are the works of Xiao Rongge. Every time I mention my brother Rong, my admiration is like a flood of rivers and rivers ~~~~ (Coming again !) The new SQL injection tool has been released by Mr. Rong, who worships us. This time, the black friends who like to use SQL injection to intrude into the website are blessed. Xiao Rongge's tool is strong! I used it to deal with our local information port. From the search for injection vulnerabilities to the success of injection attacks, through accurate timing, it took only 3 minutes and 40 seconds, strong! Believe it? Let's take a look at my intrusion process.

1. Download Rongge's toolkit
This SQL injection attack toolkit of Xiaorong brother is available at Rongge's website.
The downloaded toolkit contains two applets: "wed.exe" and "wis.exe". "wis.exe" is used to scan a site for the SQL injection vulnerability; "wed.exe" is used to crack the SQL Injection username and password. The use of the two tools is very simple. By combining these tools, you can complete the entire process from finding injection points to injecting attacks.

2. Search for SQL injection points
The format used by "wis.exe" is as follows: "wis.exe web site". Here we take the local information port detection as an example: First open the Command Prompt window, enter the following command: "wis.exe http://www.as. ***. CN /".

TIPS: when you enter the URL, the previous "http: //"; and the last "/" are indispensable. Otherwise, a prompt will be displayed, indicating that the website cannot be scanned.

After entering the information, press enter to start scanning. The scan results quickly show that there are many SQL Injection Vulnerabilities in this website. We can pick one of them for testing and select "/z/sort. asp? Classid = 1.

Open your browser and enter "http://www.as. ***. CN/z/sort. asp?" in the address bar? Classid = 1 ", opened the website page. Run SQL injection to crack the administrator account!

Iii. SQL Injection cracking Administrator Account
Now in the Command window, run the "wed.exe" program in the downloaded toolkit in the format of "wed.exe web site" and enter the following command: "wed.exe http://www.as. ***. CN/Hangzhou Z/sort. asp? Classid = 1 ". Press enter to view the command running status.

TIPS: do not add the "/" at the end of the URL input this time, but the "http: //" header is still necessary.

The program automatically opens several files in the Toolkit, "C: \ wed \ tablename. DIC ",
"C: \ wed \ userfield. dic "and" C: \ wed \ passfield. dic ", these files are dictionary files used to crack the Word Table Name, user name, and user password in the user database. Of course, we can also use other tools to generate dictionary files. But do you still need to use the "hacker Dictionary" provided by Mr. Rong?
You can also see "SQL Injection Detected. "string, indicating that the program will also perform a test on the website that needs to be injected and cracked to check whether the SQL injection vulnerability exists. After successful, the user name will be guessed.
Wait! Haha, I quickly got the database table name "admin", and then got the user table name and wordlength, which are "username" and "6". Then I detected the password table name and wordlength, password and 8 ". It seems that the user's password is still quite long. It will take a lot of time to crack this user's password manually!

When thinking about how difficult it will be to manually inject, the "wed.exe" program has started cracking the user name and password. Soon, I got the user name and password-"admina", "pBK & 7 * 8r "! Oh, it's so easy! Less than a minute

4. Search for hidden logon management pages
Return to the software download page and click a software download link. Why? How can I download it as needed! Unlike the previously charged websites, you need to enter the user name and password to download them. It seems that this is a free download site. I guess the attack object is wrong, but now it's all there, let's see if there is anything available?
The Administrator account is obtained. Now, we only need to find the Administrator Logon Management Portal. I searched the webpage and didn't see any administrator's portal link. It seems that I still have to let my brother work!
Show the "wis.exe" program again. In addition to scanning all SQL injection points on the website, this program can also find the hidden Administrator Logon page. In the command window, enter
"Wis.exe http://www.as. ***. CN/wis.exe Z/sort. asp? Classid = 1 // ". Note that a hidden parameter "/a" is entered here ".

How can the scan fail? It turns out that this is a scanning injection point. Of course, it cannot be successful. The administrator login page may only be hidden in a path of the entire website. Enter "wis.exe http://www.as. ***. cn // a" to scan the entire website. Note the format of the URL in the scan statement. The program starts scanning the logon page of the website. During the scanning process, the hidden logon page is displayed in red on the screen. Soon the search is complete, and the list is displayed in the Command window at the end. The list contains multiple logon page URLs starting with "/Zhuz/", including "/Zhuz/Gl/manage. ASP ","/logs Z/Gl/login. ASP ","/logs Z/Gl/admin1.asp ", etc. Select "/Zhuz/Gl/admin1.asp". All these are Administrator Logon pages.
Enter the URL "http://www.as. ***. CN/rjz/Gl/admin1.asp" in the browser, and the administrator login page is hidden. Enter the user name and password to go to the background management system. What should I do? Of course, it cannot be damaged. I can see a place to add announcements. Well, leave a small notice to the Administrator here!

Let's take a look at my last modified homepage. The name of the glacier sword was left in the information port, but nothing was damaged! My Webpage Administrator and I are also friends. He will forgive me for this little joke !?

 

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/wufeng4552/archive/2008/12/05/3450005.aspx

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.