我怎样才能测试我的asp,net网站容易受到SQL注入攻击。我需要创建一些测试用例 [英] How can I test my asp,net website is vulnerable to SQL Injection. I need to create some test cases

查看:109
本文介绍了我怎样才能测试我的asp,net网站容易受到SQL注入攻击。我需要创建一些测试用例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何测试我的asp,net网站容易受到SQL注入攻击。我需要创建一些测试用例。

How can I test my asp,net website is vulnerable to SQL Injection. I need to create some test cases.

推荐答案

您是否了解如何针对SQL注入进行编码?你总是希望总是使用参数,这样可以防止SQL注入。



只要确保运行SQL语句的所有代码都使用参数,sql存储过程最好,但如果不是,至少使用参数。
Do you understand how to code against SQL injection? You'll want to always use parameters and that should keep you safe from SQL injection.

Just make sure all your code that is running SQL statement is using parameters, sql stored procedures preferably, but if not, at least using parameters.


这篇关于我怎样才能测试我的asp,net网站容易受到SQL注入攻击。我需要创建一些测试用例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆