20190107 V1.0 正式版--- 修复PostgreSQL环境变量文件名称配置错误,导致无法正确加载环境变量配置。 新增优化代理功能,可在代理中心设置Socks5/HTTSP/HTTPS代理,可以固定单个代理,也可能从代理次中随机选择。
107 lines
3.7 KiB
C#
107 lines
3.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using tools;
|
|
|
|
namespace SuperSQLInjection
|
|
{
|
|
public partial class Seting : Form
|
|
{
|
|
public Seting(Main main)
|
|
{
|
|
InitializeComponent();
|
|
this.main = main;
|
|
}
|
|
|
|
private Main main = null;
|
|
|
|
private void chk_mysqlMuStr_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
main.config.isMuStr = this.chk_mysqlMuStr.Checked;
|
|
}
|
|
|
|
private void chk_openInfoLog_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
main.config.isOpenInfoLog = this.chk_openInfoLog.Checked;
|
|
}
|
|
|
|
private void chk_openHTTPLog_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
main.config.isOpenHTTPLog = this.chk_openHTTPLog.Checked;
|
|
}
|
|
|
|
private void chk_autoCheckUpdate_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
main.config.isAutoCheckUpdate = this.chk_autoCheckUpdate.Checked;
|
|
}
|
|
|
|
|
|
|
|
private void chk_isAutoSaveConfig_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
main.config.isSavaConfigWhenClose = this.chk_isAutoSaveConfig.Checked;
|
|
}
|
|
|
|
private void Seting_Shown(object sender, EventArgs e)
|
|
{
|
|
this.chk_openHTTPLog.Checked = main.config.isOpenHTTPLog;
|
|
this.chk_openInfoLog.Checked = main.config.isOpenInfoLog;
|
|
this.chk_mysqlMuStr.Checked = main.config.isMuStr;
|
|
this.chk_autoCheckUpdate.Checked = main.config.isAutoCheckUpdate;
|
|
this.chk_isAutoSaveConfig.Checked = main.config.isSavaConfigWhenClose;
|
|
this.cmb_maxClolumnsCount.Text = main.config.maxClolumns.ToString();
|
|
this.cmb_oneDomainMaxSpiderCount.Text = main.config.maxSpiderCount.ToString();
|
|
this.cmb_oneDomainMaxScanCount.Text = main.config.maxScanCount.ToString();
|
|
this.chk_redirectDoGet.Checked=main.config.redirectDoGet;
|
|
this.cmb_unionFill.Text = main.config.unionFill;
|
|
this.txt_proxy_host.Text = main.config.proxy_check_host;
|
|
this.txt_proxy_port.Text = main.config.proxy_check_port.ToString();
|
|
this.txt_proxy_keys.Text = main.config.proxy_check_Keys;
|
|
}
|
|
|
|
private void cob_maxClolumnsCount_SelectedValueChanged(object sender, EventArgs e)
|
|
{
|
|
main.config.maxClolumns = int.Parse(this.cmb_maxClolumnsCount.Text);
|
|
}
|
|
|
|
private void cob_oneDomainMaxSpiderCount_SelectedValueChanged(object sender, EventArgs e)
|
|
{
|
|
main.config.maxSpiderCount = int.Parse(this.cmb_oneDomainMaxSpiderCount.Text);
|
|
}
|
|
|
|
private void cob_oneDomainMaxScanCount_SelectedValueChanged(object sender, EventArgs e)
|
|
{
|
|
main.config.maxScanCount = int.Parse(this.cmb_oneDomainMaxScanCount.Text);
|
|
}
|
|
|
|
private void chk_redirectDoGet_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
main.config.redirectDoGet = this.chk_redirectDoGet.Checked;
|
|
}
|
|
|
|
private void cmb_unionFill_SelectedValueChanged(object sender, EventArgs e)
|
|
{
|
|
main.config.unionFill = this.cmb_unionFill.Text;
|
|
}
|
|
|
|
private void txt_proxy_host_TextChanged(object sender, EventArgs e)
|
|
{
|
|
main.config.proxy_check_host = this.txt_proxy_host.Text;
|
|
}
|
|
|
|
private void txt_proxy_port_TextChanged(object sender, EventArgs e)
|
|
{
|
|
main.config.proxy_check_port = Tools.convertToInt(this.txt_proxy_port.Text);
|
|
}
|
|
|
|
private void txt_proxy_keys_TextChanged(object sender, EventArgs e)
|
|
{
|
|
main.config.proxy_check_Keys = this.txt_proxy_keys.Text;
|
|
}
|
|
}
|
|
}
|