示例#1
0
 public frm_main()
 {
     InitializeComponent();
     // We try and delete the log file...
     try
     {
         File.Delete(Directory.GetCurrentDirectory() + "\\main.log");
     }
     catch { }
     this.log_main = new log_file(Directory.GetCurrentDirectory() + "\\main.log", true);
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Initialising SYSTRAY Form");
     this.b_abshow = false;
     this.b_qsshow = false;
     this.b_nfshow = false;
     this.b_cfshow = false;
     this.b_lfshow = false;
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Initialising Quick Search Form");
     the_qus = new frm_quicksearch(this);
     the_qus.Hide();
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Initialising Notify Form");
     the_not = new frm_notify(this);
     the_not.Hide();
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Reading Configuration");
     GetTheConfig();
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Starting HTTP Server Thread");
     StartTheServer();
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Initialising Result Form");
     the_src = new frm_advresbrs(this);
     the_src.Hide();
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Initialising Log Viewer Form");
     the_log = new frm_logview(this);
     the_log.Hide();
     this.ShowInTaskbar = false;
     all_results        = new global::com.sensepost.SPUD.com.sensepost.web.obj.StructuredResult();
     this.sz_query      = "";
     this.sz_not_label  = "";
     this.del_frm_show  = new Del_Form_Show(this.Dtg_Frm_Shw);
     this.del_frm_xany  = new Del_Form_XanY(this.Dtg_Frm_XnY);
     this.del_frm_focs  = new Del_Form_Focs(this.Dtg_Frm_Foc);
     this.mit_cfg.PerformClick();
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Initialising Keyboard Hooks");
     Program.kh.KeyIntercepted += new KeyboardHook.KeyboardHookEventHandler(kh_KeyIntercepted);
 }
示例#2
0
 public frm_main()
 {
     InitializeComponent();
     // We try and delete the log file...
     try
     {
         File.Delete(Directory.GetCurrentDirectory() + "\\main.log");
     }
     catch { }
     this.log_main = new log_file(Directory.GetCurrentDirectory() + "\\main.log", true);
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Initialising SYSTRAY Form");
     this.b_abshow = false;
     this.b_qsshow = false;
     this.b_nfshow = false;
     this.b_cfshow = false;
     this.b_lfshow = false;
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Initialising Quick Search Form");
     the_qus = new frm_quicksearch(this);
     the_qus.Hide();
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Initialising Notify Form");
     the_not = new frm_notify(this);
     the_not.Hide();
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Reading Configuration");
     GetTheConfig();
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Starting HTTP Server Thread");
     StartTheServer();
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Initialising Result Form");
     the_src = new frm_advresbrs(this);
     the_src.Hide();
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Initialising Log Viewer Form");
     the_log = new frm_logview(this);
     the_log.Hide();
     this.ShowInTaskbar = false;
     all_results = new global::com.sensepost.SPUD.com.sensepost.web.obj.StructuredResult();
     this.sz_query = "";
     this.sz_not_label = "";
     this.del_frm_show = new Del_Form_Show(this.Dtg_Frm_Shw);
     this.del_frm_xany = new Del_Form_XanY(this.Dtg_Frm_XnY);
     this.del_frm_focs = new Del_Form_Focs(this.Dtg_Frm_Foc);
     this.mit_cfg.PerformClick();
     this.log_main.LogEvent("APP-MAIN", "DEBUG", "Initialising Keyboard Hooks");
     Program.kh.KeyIntercepted += new KeyboardHook.KeyboardHookEventHandler(kh_KeyIntercepted);
 }