示例#1
0
 public informationsForm(Webshell selectedWs)
 {
     this.selectedWebShell = selectedWs;
     InitializeComponent();
     this.Text = "Server Information - " + selectedWs.getUrl();
     refreshListViewInfos(selectedWebShell);
 }
 public fileInformationsForm(Webshell currentWs, string selectedFilePath)
 {
     this.path = selectedFilePath;
     this.ws   = currentWs;
     InitializeComponent();
     this.Text = "File Information - " + selectedFilePath;
     refreshListViewInfos(this.ws, this.path);
 }
        public void refreshListViewInfos(Webshell pWs, string pPath)
        {
            IDictionary <string, string> inf = ws.fileInformation(pPath);

            foreach (KeyValuePair <string, string> oneInformation in inf)
            {
                lvInformations.Items.Add(new ListViewItem(new string[] { oneInformation.Key, oneInformation.Value }));
            }
        }
示例#4
0
        public void refreshListViewInfos(Webshell ws)
        {
            IDictionary <string, string> inf = ws.queryInformation(ws.getUrl(), ws.getParam());

            foreach (KeyValuePair <string, string> oneInformation in inf)
            {
                lvInformations.Items.Add(new ListViewItem(new string[] { oneInformation.Key, oneInformation.Value }));
            }
        }
示例#5
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     if (isNotDuplicate(tbURL.Text))
     {
         if (isValid(tbURL.Text, tbParam.Text))
         {
             Webshell newWS = new Webshell(tbURL.Text, tbParam.Text);
             webshells.Add(newWS);
             parentfrm.refreshListViewInfos();
             this.Close();
         }
     }
     else
     {
         MessageBox.Show("this webshell is already registered");
     }
 }
示例#6
0
 public phpForm(Webshell selected)
 {
     this.selectedWebShell = selected;
     InitializeComponent();
     this.Text = "Php Exec - " + selected.getUrl();
 }
示例#7
0
 public fileManagerForm(Webshell selected)
 {
     this.selectedWebShell = selected;
     InitializeComponent();
     this.Text = "File Manager - " + selected.getUrl();
 }
示例#8
0
 public shellForm(Webshell selected)
 {
     this.selectedWebShell = selected;
     InitializeComponent();
     this.Text = "Shell - " + selected.getUrl();
 }
示例#9
0
 public screenshotForm(Webshell selected)
 {
     this.selectedWebShell = selected;
     InitializeComponent();
     this.Text = "Screenviewer - " + selected.getUrl();
 }