Ejemplo n.º 1
0
 private void btn_UpdateWebShell_Click(object sender, EventArgs e)
 {
     this.TargetID    = this.txt_TargetID.Text.Trim();
     this.TargetLevel = this.cbb_TargetLevel.Text.Trim();
     this.IsOnline    = this.cbb_IsOnline.Text.Trim();
     this.Permission  = this.cbb_Permission.Text.Trim();
     this.PR          = this.cbb_PRvalue.Text.Trim();
     this.ShellPath   = this.txt_ShellPath.Text.Trim();
     this.ShellPass   = this.txt_ShellPass.Text.Trim();
     this.ShellCoding = this.cbb_ShellCoding.Text.Trim();
     this.XssCookie   = this.txt_XssCookie.Text.Trim();
     this.IP          = this.txt_SeverIP.Text.Trim();
     this.Area        = this.cbb_Area.Text.Trim();
     this.OS          = this.cbb_TargetOS.Text.Trim();
     this.ScritpType  = this.cbb_ScritpType.Text.Trim();
     this.SQLType     = this.cbb_SQLType.Text.Trim();
     this.RemoteRat   = this.txt_RemoteRat.Text.Trim();
     this.BackDoor    = this.txt_BackDoor.Text.Trim();
     this.AddTime     = DateTime.Now.Date.ToShortDateString();
     if (this.AddTime.Contains("/"))
     {
         this.AddTime = this.AddTime.Replace("/", "-");
     }
     string[] modelArray = new string[] {
         this.TargetID, this.TargetLevel, this.IsOnline, this.Permission, this.PR, this.ShellPath, this.ShellPass, this.ShellCoding, this.XssCookie, this.IP, this.Area, this.OS, this.ScritpType, this.SQLType, this.RemoteRat, this.BackDoor,
         this.AddTime
     };
     if (BLLk8shell.UpdateRecord(modelArray, int.Parse(this.SqlID)))
     {
         this.paf.K8loadWebShellData();
         this.K8msgbox("修改成功!");
         base.Close();
     }
 }
Ejemplo n.º 2
0
 private void btn_AddWebShell_Click(object sender, EventArgs e)
 {
     this.TargetID    = this.txt_TargetID.Text.Trim();
     this.TargetLevel = this.cbb_TargetLevel.Text.Trim();
     this.IsOnline    = this.cbb_IsOnline.Text.Trim();
     this.Permission  = this.cbb_Permission.Text.Trim();
     this.PR          = this.cbb_PRvalue.Text.Trim();
     this.ShellPath   = this.txt_ShellPath.Text.Trim();
     this.ShellPass   = this.txt_ShellPass.Text.Trim();
     this.ShellCoding = this.cbb_ShellCoding.Text.Trim();
     this.XssCookie   = this.txt_XssCookie.Text.Trim();
     this.IP          = this.txt_SeverIP.Text.Trim();
     this.Area        = this.cbb_Area.Text.Trim();
     this.OS          = this.cbb_TargetOS.Text.Trim();
     this.ScritpType  = this.cbb_ScritpType.Text.Trim();
     this.SQLType     = this.cbb_SQLType.Text.Trim();
     this.RemoteRat   = this.txt_RemoteRat.Text.Trim();
     this.BackDoor    = this.txt_BackDoor.Text.Trim();
     this.AddTime     = DateTime.Now.Date.ToShortDateString();
     if (this.AddTime.Contains("/"))
     {
         this.AddTime = this.AddTime.Replace("/", "-");
     }
     if (this.TargetID == "")
     {
         this.TargetID = "只是玩玩";
     }
     string[] modelArray = new string[] {
         this.TargetID, this.TargetLevel, this.IsOnline, this.Permission, this.PR, this.ShellPath, this.ShellPass, this.ShellCoding, this.XssCookie, this.IP, this.Area, this.OS, this.ScritpType, this.SQLType, this.RemoteRat, this.BackDoor,
         this.AddTime
     };
     string[] strArray3 = new string[] { this.ShellPath };
     if (BLLk8shell.ExistsRecord(strArray3))
     {
         this.K8msgbox("已存在项目WebShell!\r\n\r\n项目ID:" + BLLk8shell.ExistsRecordGetTargetID(strArray3));
     }
     else if (BLLk8shell.InsertRecord(modelArray))
     {
         this.paf.K8loadWebShellData();
         this.K8msgbox("添加成功!");
         base.Close();
     }
 }