<template>
  <div class="python_scan_main">
    <div class="python_scan_main_form">
      <el-form ref="form" :model="scan_form" label-width="140px" label-position="top" style="width: 100vw"
               :inline="true">
        <el-form-item label="url地址">
          <el-input v-model="scan_form.url" style="width: 400px"></el-input>
        </el-form-item>
        <el-form-item label="cookie">
          <el-input v-model="scan_form.cookie" style="width: 500px"></el-input>
        </el-form-item>
        <el-form-item label="获取当前数据库名">
          <el-switch
              v-model="scan_form.getCurrentDb"
              active-color="#13ce66"
              inactive-color="#ff4949">
          </el-switch>
        </el-form-item>
        <el-form-item label="获取当前用户">
          <el-switch
              v-model="scan_form.getCurrentUser"
              active-color="#13ce66"
              inactive-color="#ff4949">
          </el-switch>
        </el-form-item>
        <el-form-item label="获取数据库列表">
          <el-switch
              v-model="scan_form.getDbs"
              active-color="#13ce66"
              inactive-color="#ff4949">
          </el-switch>
        </el-form-item>
        <el-form-item label="获取当前数据表">
          <el-switch
              v-model="scan_form.getTables"
              active-color="#13ce66"
              inactive-color="#ff4949">
          </el-switch>
        </el-form-item>
        <el-form-item label="获取当前数据表列">
          <el-switch
              v-model="scan_form.getColumns"
              active-color="#13ce66"
              inactive-color="#ff4949">
          </el-switch>
        </el-form-item>
      </el-form>
      <el-button type="success" round @click="submit_sqlmap" style="width: 150px;margin-bottom: 20px">提交sql注入
      </el-button>
    </div>
    <el-input
        type="textarea"
        :autosize="{ minRows: 2, maxRows: 100}"
        placeholder="请先提交sql注入"
        v-model="info_show">
    </el-input>
  </div>
</template>

<script src="./sqlmap.js"></script>

<style src="./sqlmap.css" scoped></style>