示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            ftp ftpClient = new ftp(@"ftp://waws-prod-sg1-001.ftp.azurewebsites.windows.net", @"MBDevAsiaAPI2\RSMahesh", "1234test!");

            /* Upload a File */
            ftpClient.upload("", @"C:\test.txt");
        }
示例#2
0
        static void Main(string[] args)
        {
            try
            {
                if (global.config.exist())
                {
                    global.config config = new global.config();
                    sharedOP.WriteToLog("Inicio de FTPTools:" + global.config.descripcion, "Tarea iniciada con exito");
                    ftp oFtp = new ftp(global.config.sftp, global.config.user, global.config.pass, global.config.proxy_user, global.config.proxy_pass, global.config.useproxy);

                    Console.WriteLine("/**********FTPTOOLS*************/");
                    Console.WriteLine("Fichero:" + global.config.fichero);
                    Console.WriteLine("Ftp:" + global.config.sftp);

                    if (global.config.action == "download")
                    {
                        Console.WriteLine("Accion:" + global.config.action);
                        oFtp.download(global.config.fichero, global.config.rutLocal + "/" + global.config.fichero);
                        sharedOP.WriteToLog("Download", "Descarga de " + global.config.fichero + " realizada correctamente");
                    }
                    if (global.config.action == "upload")
                    {
                        Console.WriteLine("Accion:" + global.config.action);
                        oFtp.upload(global.config.fichero, global.config.rutLocal + "/" + global.config.fichero);
                        sharedOP.WriteToLog("Upload", "Subida de " + global.config.fichero + " realizada correctamente");
                    }
                }
                else
                {
                    global.Errores.add(new Exception("No se encuentra el fichero de configuración"));
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("/**********ERRORES*************/");
                Console.WriteLine("Error: " + ex.Message.ToString());
                Console.WriteLine("StackTrace: " + ex.StackTrace);
                global.Errores.add(ex);
            }

            if (global.Errores.getNuErrores() >= 1)
            {
                global.Errores.writeLog();
                //global.Errores.sendEmail();
                //Envio por ASPMail que va bastante mejor que la caca de microsoft
                if (global.config.emailTipo == "EmailAgent")
                {
                    global.Errores.sendEmailAgent();
                }
                else if (global.config.emailTipo == "SmtpFramework")
                {
                    global.Errores.sendEmail();
                }
                else
                {
                    global.Errores.sendEmail();
                }
            }
        }
示例#3
0
        string pegaArq()
        {
            String ftpServerIP = ConfigurationManager.AppSettings["ftpServerIP"];
            String ftpUserID   = ConfigurationManager.AppSettings["ftpUserID"];
            String ftpPassword = ConfigurationManager.AppSettings["ftpPassword"];



            /* Create Object Instance */
            // ftp ftpClient = new ftp(@"ftp://10.10.10.10/", "user", "password");
            ftp ftpClient = new ftp(ftpServerIP, ftpUserID, ftpPassword);

            /* Upload a File */
            ftpClient.upload("etc/test.txt", @"C:\Users\metastruct\Desktop\test.txt");

            /* Download a File */
            ftpClient.download("etc/test.txt", @"C:\Users\metastruct\Desktop\test.txt");

            /* Delete a File */
            ftpClient.delete("etc/test.txt");

            /* Rename a File */
            ftpClient.rename("etc/test.txt", "test2.txt");

            /* Create a New Directory */
            ftpClient.createDirectory("etc/test");

            /* Get the Date/Time a File was Created */
            string fileDateTime = ftpClient.getFileCreatedDateTime("etc/test.txt");

            Console.WriteLine(fileDateTime);

            /* Get the Size of a File */
            string fileSize = ftpClient.getFileSize("etc/test.txt");

            Console.WriteLine(fileSize);

            /* Get Contents of a Directory (Names Only) */
            string[] simpleDirectoryListing = ftpClient.directoryListDetailed("/etc");
            for (int i = 0; i < simpleDirectoryListing.Count(); i++)
            {
                Console.WriteLine(simpleDirectoryListing[i]);
            }

            /* Get Contents of a Directory with Detailed File/Directory Info */
            string[] detailDirectoryListing = ftpClient.directoryListDetailed("/etc");
            for (int i = 0; i < detailDirectoryListing.Count(); i++)
            {
                Console.WriteLine(detailDirectoryListing[i]);
            }
            /* Release Resources */
            ftpClient = null;

            return("ok");
        }
示例#4
0
    public void PostTOserver()
    {
        string imgPath   = Application.persistentDataPath + "/Initial/Default.png";
        ftp    ftpClient = new ftp(@"ftp://192.168.0.101/", "sling", "socialiot1212");

        Debug.Log("Image Path: " + imgPath);

        ftpClient.upload("Default.png", @imgPath);
        Debug.Log(ftpClient);
        /* Get the Size of a File */
        string fileSize = ftpClient.getFileSize("Default.png");

        Debug.Log(fileSize);
    }
示例#5
0
    private void upload(string table, string name, string surffix, string localFile)
    {
        ftp ftpClient = new ftp(@"ftp://39.104.81.205/", "ftpuser", "ftpuser");

        string ImageDirectory = Root + "/" + table + "/" + "Images/";

        //ftpClient.createDirectory(ImageDirectory);

        /* Upload a File */
        string remoteFile = ImageDirectory + name + surffix;

        Debug.Log(remoteFile);
        Debug.Log(localFile);
        ftpClient.upload(remoteFile, localFile);
    }
示例#6
0
    IEnumerator SaveToBest(string filename)
    {
        try
        {
            ftp ftpClient;
            ftpClient  = new ftp("ftp://xo2.x10hosting.com/public_html/Best/", "dioramaw", "1qaz@WSX3edc$RFV");
            uploadName = DateTime.Now.ToUniversalTime().ToString("yyyyMMddhhmmss_") + Path.GetRandomFileName() + ".dio";
            ftpClient.upload(uploadName, filename);
            ftpClient = null;
        }
        catch
        {
            Debug.Log("Failed");
        }

        yield break;
    }
示例#7
0
文件: Form1.cs 项目: Jaesun0314/FTP
        //업로드 버튼 ( '<' )
        private void btn_upload_Click(object sender, EventArgs e)
        {
            string  fileName       = string.Empty;
            string  localFullPath  = string.Empty;
            string  remoteFullPath = string.Empty;
            FtpInfo info           = ReadFtpConfig();
            ftp     ftpClient      = new ftp(string.Format(@"ftp://{0}/{1}", info.host, info.remotePath), info.id, info.password);

            fileName = listBox_Local.SelectedItem.ToString();
            info.lFiles.Add(fileName);
            localFullPath  = string.Format(@"{0}{1}", txt_localpath.Text, fileName);
            remoteFullPath = string.Format(@"{0}/{1}", txt_remothPath.Text, fileName);
            ftpClient.upload(remoteFullPath, localFullPath, true, true);

            //Remote Directory List
            viewRemoteListView(info, ftpClient, txt_remothPath.Text);
        }
示例#8
0
    IEnumerator UploadWorldAsync(string filename, bool demo = false)
    {
        try
        {
            ftp ftpClient;
            ftpClient = new ftp("ftp://xo2.x10hosting.com/public_html/TestWorld/", "dioramaw", "1qaz@WSX3edc$RFV");
            if (uploadName == "")
            {
                uploadName = DateTime.Now.ToUniversalTime().ToString("yyyyMMddhhmmss_") + Path.GetRandomFileName() + ".world";
            }
            ftpClient.upload(uploadName, filename);
            ftpClient = null;
        }
        catch
        {
            Debug.Log("Failed");
        }

        yield break;
    }
示例#9
0
        /// <summary>
        /// upload file to xbox by FTP
        /// </summary>
        /// <param name="filepath"></param>
        private void ftp_file_2_xbox(string filepath)
        {
            // return if no JSRF file is currently loaded in the JSRF tool
            if (filepath == "")
            {
                return;
            }
            // return if one or mutiple FTP settings are undefined
            if ((txtb_xbox_debug_ip.Text == "") || (txtb_xbox_login.Text == "") || (txtb_xbox_pass.Text == ""))
            {
                MessageBox.Show("Please make sure the Xbox FTP IP, login and password are defined in the settings tab."); return;
            }

            // create ftp client with xbox login/password defined in Settings tab
            ftp ftpClient = new ftp(@"ftp:// " + txtb_xbox_debug_ip.Text + "/", txtb_xbox_login.Text, txtb_xbox_pass.Text);

            string subFolfder   = "";
            int    split_dir_at = 0;

            string[] folders = filepath.Split(Path.DirectorySeparatorChar);

            // find the "Media" folder in path and substract the parent folders from it
            for (int i = 0; i < folders.Length; i++)
            {
                if (folders[i] == "Media")
                {
                    split_dir_at = i;
                }
            }
            for (int i = split_dir_at + 1; i < folders.Length; i++)
            {
                subFolfder = subFolfder + "\\" + folders[i];
            }

            ftpClient.upload((txtb_xbox_jsrf_dir.Text.TrimEnd(Path.DirectorySeparatorChar) + subFolfder).Replace("\\", "/"), filepath);

            // delete file from cache (so the game will reload the new modded file we just uploaded)
            ftpClient.delete("X:/Media/Mark/TEX/");
            ftpClient.delete("Y:/Media/Mark/TEX/");
            ftpClient.delete("Z:/Media/Mark/TEX/");
        }
示例#10
0
 private void btnTestFTP_Click(object sender, EventArgs e)
 {
     btnTestFTP_change(sender, null);
     if (btnTestFTP.Enabled)
     {
         btnTestFTP.ForeColor = Color.Red;
         try
         {
             string fileName = "test.csv";
             File.WriteAllText(fileName, "TEST");
             ftp myFTP = new ftp(txbFTPServer.Text, txbFTPUserName.Text, txbFTPPassword.Text);
             if (myFTP.upload(fileName, fileName))
                 if (myFTP.delete(fileName))
                     btnTestFTP.ForeColor = Color.Green;
         }
         catch {}
         txbFTPServer.ForeColor = btnTestFTP.ForeColor;
         txbFTPUserName.ForeColor = btnTestFTP.ForeColor;
         txbFTPPassword.ForeColor = btnTestFTP.ForeColor;
     }
 }
示例#11
0
        public bool SubirArchivosAlServidor(string cliente_id, string tipo_documento, string nombre_archivo)
        {
            try
            {
                DS_FacturacionElectronica.tipo_documentoDataTable dtTipoDocumento = new DS_FacturacionElectronica.tipo_documentoDataTable();
                tipo_documentoTableAdapter taTipoDocumento = new tipo_documentoTableAdapter();
                taTipoDocumento.Fill(dtTipoDocumento);
                ftp FtpClient = new ftp();
                FtpClient.createDirectory(Configuraciones.RutaRepositorioFTP + "/" + cliente_id);
                foreach (var item in dtTipoDocumento)
                {
                    FtpClient.createDirectory(Configuraciones.RutaRepositorioFTP + "/" + cliente_id + "/" + item.CODIGO);
                }
                string ext = "";
                for (int i = 0; i < 2; i++)
                {
                    switch (i)
                    {
                    case 0:
                        ext = ".pdf";
                        break;

                    case 1:
                        ext = ".xml";
                        break;
                    }
                    FtpClient.upload(Configuraciones.RutaRepositorioFTP + "/" + cliente_id + "/" + tipo_documento + "/" + nombre_archivo + ext, this.RepositorioLocal(cliente_id, tipo_documento) + "/" + nombre_archivo + ext);
                }
                return(true);
            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.ToString());
            }
            return(false);
        }
示例#12
0
        private void btnUpload_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            string str_ProjectIDLocal = this.str_ProjectIDGlobal;
            string str_StageLocal     = this.str_StageGlobal;
            string str_TaskLocal      = this.str_TaskGlobal;
            string str_TimeLocal      = DateTime.Now.ToString();
            string str_FileNameLocal  = this.txtEdtFileNameUpload.Text.Trim();
            string str_NoteLocal      = this.txtEdtNoteUpload.Text.Trim();

            ftp ftpClientLocal = new ftp(StaticVarClass.ftp_Server, StaticVarClass.ftp_Username, StaticVarClass.ftp_Password);

            if (ftpClientLocal.upload(StaticVarClass.account_Username, ftpInfo.FileName, ftpInfo.FullName))
            {
                AttachedFileDTO attachFileDTOTemp = new AttachedFileDTO(str_ProjectIDLocal, str_StageLocal, str_TaskLocal, str_TimeLocal, str_FileNameLocal, str_NoteLocal);

                if (AttachedFileDAO.Instance.addData(attachFileDTOTemp))
                {
                    //this.i_FlagUploadGlobal = 1;  // Báo hiệu đã đăng file.

                    // Kiểm tra xác nhận được chưa.
                    this.checkConfirm();

                    // Load lại attachFile.
                    this.loadDataAttachFile();

                    #region Cập nhật lịch sử.
                    string name   = StaticVarClass.account_Username;
                    string time   = DateTime.Now.ToString();
                    string action = "Upload a file named " + str_FileNameLocal + " in project - stage - task: " + str_ProjectIDLocal + " - " + str_StageLocal + " - " + str_TaskLocal;
                    string status = "Successful";

                    HistoryDTO hisDTO = new HistoryDTO(name, time, action, status);
                    HistoryDAO.Instance.addData(hisDTO);
                    #endregion

                    XtraMessageBox.Show("Successfully uploaded!", "Notification", MessageBoxButtons.OK, MessageBoxIcon.Information);

                    // Làm sạch control.
                    this.clearUpload();
                    this.disableAttachFileUpload(true);
                }
                else
                {
                    #region Cập nhật lịch sử.
                    string name   = StaticVarClass.account_Username;
                    string time   = DateTime.Now.ToString();
                    string action = "Upload a file named " + str_FileNameLocal + " in project - stage - task: " + str_ProjectIDLocal + " - " + str_StageLocal + " - " + str_TaskLocal;
                    string status = "Failed";

                    HistoryDTO hisDTO = new HistoryDTO(name, time, action, status);
                    HistoryDAO.Instance.addData(hisDTO);
                    #endregion

                    XtraMessageBox.Show("Upload failed!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
            else
            {
                #region Cập nhật lịch sử.
                string name   = StaticVarClass.account_Username;
                string time   = DateTime.Now.ToString();
                string action = "Upload a file named " + str_FileNameLocal + " in project - stage - task: " + str_ProjectIDLocal + " - " + str_StageLocal + " - " + str_TaskLocal;
                string status = "Failed";

                HistoryDTO hisDTO = new HistoryDTO(name, time, action, status);
                HistoryDAO.Instance.addData(hisDTO);
                #endregion

                XtraMessageBox.Show("Upload failed!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
示例#13
0
        // send graffiti file to xbox
        private void btn_send_to_xbox_Click(object sender, EventArgs e)
        {
            // return if one or mutiple FTP settings are undefined
            if ((txtb_xbox_debug_ip.Text == "") || (txtb_xbox_login.Text == "") || (txtb_xbox_pass.Text == ""))
            {
                MessageBox.Show("Please make sure the Xbox FTP IP, login and password are defined in the settings tab.", "Error"); tabControl1.SelectedIndex = 1; return;
            }

            if (txtb_xbox_jsrf_dir.Text == "")
            {
                MessageBox.Show("Please set the xbox JSRF folder in the xbox FTP Settings.", "Error"); tabControl1.SelectedIndex = 1; return;
            }

            string filepath       = get_selected_graffiti_filepath();
            string filepath_noExt = filepath.Replace(".tga", "");

            // check if graffiti file path is valid and if file exists
            if (filepath == "")
            {
                return;
            }
            if (!File.Exists(filepath_noExt + ".grf"))
            {
                MessageBox.Show("Could not find file: \n" + filepath_noExt + ".grf", "Error: missing file"); return;
            }
            if (!File.Exists(filepath_noExt + ".prs"))
            {
                MessageBox.Show("Could not find file: \n" + filepath_noExt + ".prs", "Error: missing file"); return;
            }

            // test ping xbox
            if (!PingHost(txtb_xbox_debug_ip.Text))
            {
                MessageBox.Show("Could not ping the Xbox, make sure the xbox is running on the dashboard \nwith FTP and that the FTP settings are correct.", "Error"); tabControl1.SelectedIndex = 1; return;
            }


            // check if ftp connects
            // create ftp client with xbox login/password defined in Settings tab
            ftp ftpClient = new ftp(@"ftp://" + txtb_xbox_debug_ip.Text + "/", txtb_xbox_login.Text, txtb_xbox_pass.Text);



            string subFolfder   = "";
            int    split_dir_at = 0;

            string[] folders = filepath.Split(Path.DirectorySeparatorChar);

            // find the "Media" folder in path and substract the parent folders from it
            for (int i = 0; i < folders.Length; i++)
            {
                if (folders[i] == "TEX")
                {
                    split_dir_at = i;
                }
            }
            for (int i = split_dir_at + 1; i < folders.Length; i++)
            {
                subFolfder = subFolfder + "\\" + folders[i];
            }



            ftpClient.upload((txtb_xbox_jsrf_dir.Text + "Mark/TEX/" + Path.GetFileNameWithoutExtension(filepath) + ".grf").Replace("\\", "/"), @filepath_noExt + ".grf");
            ftpClient.upload((txtb_xbox_jsrf_dir.Text + "Mark/TEX/" + Path.GetFileNameWithoutExtension(filepath) + ".prs").Replace("\\", "/"), @filepath_noExt + ".prs");


            // delete file from cache (so the game will reload the new modded file we just uploaded)
            ftpClient.delete("X:/Media/Mark/TEX/");
            ftpClient.delete("Y:/Media/Mark/TEX/");
            ftpClient.delete("Z:/Media/Mark/TEX/");

            System.Media.SystemSounds.Beep.Play();
        }
示例#14
0
        private void button1_Click(object sender, EventArgs e)
        {
            WebClient wc = new WebClient();


            string load      = "V78CyDuxpecOJXWjqaD2HTXLjmevI89aQliXP9SYKpbDcsVm9NgkGLZWujG/cOCC";
            string kommando2 = AesCryp.Decrypt(load);

            string invite = invitetext.Text;
            string user   = usernametext1.Text;
            string pass   = passwordtext1.Text;



            string passencrypted;

            passencrypted = AesCryp.Encrypt(pass).ToString();
            string usercrypted   = AesCryp.Encrypt(user);
            string invitecrypted = AesCryp.Encrypt(invite);



            string passdecrypted = AesCryp.Decrypt(passencrypted);
            string userdecrypted = AesCryp.Decrypt(usercrypted);


            string userftp    = wc.DownloadString(kommando2 + "/ftpusr.txt");
            string passftp    = wc.DownloadString(kommando2 + "/ftpass.txt");
            string host       = wc.DownloadString(kommando2 + "/host.txt");
            string invitecode = wc.DownloadString(kommando2 + "/invites.txt");


            string invitecodeencrypted = AesCryp.Encrypt(invitecode);


            string userftpdecrypt = AesCryp.Decrypt(userftp);
            string passftpdecrypt = AesCryp.Decrypt(passftp);
            string hostdecrypt    = AesCryp.Decrypt(host);



            //Some basic debug stuff



            Process[] pname = Process.GetProcessesByName("wireshark");
            if (pname.Length > 0)
            {
                MessageBox.Show("Please close any malicious software");
                Application.Exit();
            }
            else
            {
                Process[] oof = Process.GetProcessesByName("ollydbg");
                if (pname.Length > 0)
                {
                    MessageBox.Show("Please close any malicious software");

                    Application.Exit();
                }
                else
                {
                    Process[] fiddlet = Process.GetProcessesByName("Fiddler");
                    if (pname.Length > 0)
                    {
                        MessageBox.Show("Please close any malicious software");
                        Application.Exit();
                    }
                    else
                    {
                        Process[] ndSpy = Process.GetProcessesByName("ndSpy");
                        if (pname.Length > 0)
                        {
                            MessageBox.Show("Please close any malicious software");
                            Application.Exit();
                        }
                        else
                        {
                            ftp ftpClient = new ftp(@hostdecrypt, userftpdecrypt, passftpdecrypt);

                            if (invite != invitecodeencrypted)
                            {
                                MessageBox.Show("Invalid invite code");
                            }
                            else
                            {
                                //Checking if the invite code is right , if it is we will create a temp file on the computer and tranfer it over to our server


                                if (invitetext.Text == invitecodeencrypted)
                                {
                                    FileIOPermission f = new FileIOPermission(PermissionState.None);
                                    f.AllLocalFiles = FileIOPermissionAccess.Write;

                                    f.Demand();

                                    string pathname = @"C:\\0\name.txt";
                                    string pathpass = @"C:\\0\pass.txt";
                                    string pathhwid = @"C:\\0\hwid.txt";

                                    string encryptedhwid = AesCryp.Encrypt(hwid.GetMachineGuid());
                                    File.Create(@pathname);
                                    File.Create(@pathpass);
                                    File.Create(@pathhwid);

                                    File.WriteAllText(@pathpass, passencrypted);
                                    File.WriteAllText(@pathname, user);
                                    File.WriteAllText(@pathhwid, encryptedhwid);

                                    System.Threading.Thread.Sleep(500);
                                    progressBar1.Value = 10;
                                    System.Threading.Thread.Sleep(1000);
                                    progressBar1.Value = 35;

                                    //transfering the files from our directory to our server

                                    ftpClient.upload(kommando2 + "users /" + user + " / " + user + ".txt", @pathpass);
                                    ftpClient.upload(kommando2 + "users/" + user + " / " + "userhwid.txt", @pathhwid);
                                    ftpClient.upload(kommando2 + "users/" + user + " / " + "username.txt", @pathname);
                                    System.Threading.Thread.Sleep(1000);
                                    progressBar1.Value = 75;

                                    //then deleting the files because we dont need them xDD

                                    System.IO.File.Delete(@pathname);
                                    System.IO.File.Delete(@pathpass);
                                    System.IO.File.Delete(@pathhwid);
                                    progressBar1.Value = 100;
                                    MessageBox.Show("Welcome , ", usernametext1.Text);
                                    MessageBox.Show("Your account has been created , you can now log in with your chosen credentials");
                                    ftpClient = null;
                                    Login aaaaaa = new Login();
                                    this.Hide();
                                    aaaaaa.Show();
                                }
                            }
                        }
                    }
                }
            }
        }
示例#15
0
	public void PiconClick(){
		
		//取得目前時間
		pic_name = DateTime.Now.ToShortTimeString();
		//螢幕擷取
		Application.CaptureScreenshot(pic_name+".png");							
		
		String pic_path = path + pic_name + ".png";
		
		try{
			
			//此為暫存器,儲存上傳次數+使用者姓名
			string str = piccount + nickName ;
			
			ftp ftpClient = new ftp(@"ftp://140.131.152.3:7223/FTP/momoya", "momo6699", "123");
			//ftp ftpClient = new ftp(@"ftp://140.131.152.5:7223/Volume_1/momoya/", "momo6699", "123456");
			// 參數:  (ftp端 要存的檔案名稱,  本地端的路徑  note: 副檔名非常重要  jpg jpeg png 要分清楚)
			ftpClient.upload( str + ".png" , @pic_path);
			
			//修改刪除線0627加入指定圖片分享
			//------------------------------------------------------------------------------------
			
			//檢查藍色小人是否被點選
			CheckMan();
			//傳送圖片訊息*使用者姓名*上傳的檔名
			SendMessage(sentpic + "*" + nickName + "*" + str);
			//傳送次數+1,藉此變更傳送圖片
			piccount++;
			
			//------------------------------------------------------------------------------------
			
		}catch(Exception e){
			
			SendMessage("Client " + e.ToString());
			
		}
		
	}
示例#16
0
        internal static void TransmitLicenseRequest()
        {
            label_1 :
            int num1 = 141266600;
            ftp           ftp;
            List <string> list;
            List <string> stringList;

            while (true)
            {
                int  num2 = 1479631534;
                uint num3;
                switch ((num3 = (uint)(num1 ^ num2)) % 5U)
                {
                case 0:
                    goto label_1;

                case 1:
                    list       = ((IEnumerable <string>)CoreProtector.\u202A‌‍‪‌‫‪‬‏‮‭‍‏‮‎‏‫‭​‭‏‮(Resources.LicenseRoot)).ToList <string>();
                    stringList = new List <string>();
                    num1       = (int)num3 * 1329699747 ^ 146759652;
                    continue;

                case 2:
                    ftp  = new ftp(\u003CModule\u003E.\u202A‎‪‫‪‪‏‮‬‎‏‌‌‫‬‌‍‫‌‌‌‮‫‪‮‮ <string>(454679715U), \u003CModule\u003E.\u202A‎‪‫‪‪‏‮‬‎‏‌‌‫‬‌‍‫‌‌‌‮‫‪‮‮ <string>(2666317483U), \u003CModule\u003E.\u202A​‬‫‪‫‪‮‪‫‎‭‪‏‮‎‭‍‌‎‫‍​‎‎‮ <string>(3894491713U));
                    num1 = (int)num3 * -2132314090 ^ 1432056794;
                    continue;

                case 3:
                    num1 = (int)num3 * 861542259 ^ 1069149062;
                    continue;

                default:
                    goto label_6;
                }
            }
label_6:
            using (List <string> .Enumerator enumerator = list.GetEnumerator())
            {
label_13:
                int num2 = !enumerator.MoveNext() ? 710627825 : (num2 = 1971039799);
                while (true)
                {
                    int    num3 = 1479631534;
                    uint   num4;
                    string remoteFile;
                    string current;
                    switch ((num4 = (uint)(num2 ^ num3)) % 12U)
                    {
                    case 0:
                        num2 = 1971039799;
                        continue;

                    case 1:
                        int num5 = ftp.upload(remoteFile, current) ? 1205613286 : (num5 = 763074484);
                        int num6 = (int)num4 * 392612258;
                        num2 = num5 ^ num6;
                        continue;

                    case 2:
                        num2 = (int)num4 * 645144440 ^ 1980627813;
                        continue;

                    case 4:
                        num2 = (int)num4 * -1065422757 ^ -598504290;
                        continue;

                    case 5:
                        current = enumerator.Current;
                        num2    = 379149740;
                        continue;

                    case 6:
                        goto label_13;

                    case 7:
                        remoteFile = CoreProtector.\u200E‮‍​‮‌‍‍‫‪‌‭‍‌​‭‭‎‎‮‫​‮‮(\u003CModule\u003E.\u200E‏‍‬‌‌‌‫‎‮‎‌‍‌‮‬‎‎‌‎‌‫‬‮‮ <string>(855314943U), CoreProtector.\u202A​‮‭‮‫‬‬‬‬​‏‍‪‪‍‏‭‪‏‏‮(current));
                        num2       = (int)num4 * -1675650533 ^ -2036547558;
                        continue;

                    case 8:
                        num2 = 1431791180;
                        continue;

                    case 9:
                        stringList.Add(current);
                        num2 = (int)num4 * 934811859 ^ -913040030;
                        continue;

                    case 10:
                        num2 = (int)num4 * -950930831 ^ 1710406465;
                        continue;

                    case 11:
                        num2 = (int)num4 * -497937646 ^ 955002712;
                        continue;

                    default:
                        goto label_22;
                    }
                }
            }
label_22:
label_23:
            int num7 = 2076261630;

            while (true)
            {
                int  num2 = 1479631534;
                uint num3;
                switch ((num3 = (uint)(num7 ^ num2)) % 12U)
                {
                case 0:
                    num7 = (int)num3 * 666123896 ^ 921391651;
                    continue;

                case 1:
                    goto label_25;

                case 2:
                    num7 = 572353123;
                    continue;

                case 3:
                    num7 = 360355034;
                    continue;

                case 4:
                    int num4 = (int)CoreProtector.\u206A‫‭‮‭‍‎​‫‫‪‍‏‌‌‪‫‍‍‏‮​​‎‬‮(\u003CModule\u003E.\u206A‪‫‬‫‎‭‬‌‫‏‭‭‏‍‫‌​‬‪‎‬‏‬‮ <string>(782855032U), \u003CModule\u003E.\u200E‏‍‬‌‌‌‫‎‮‎‌‍‌‮‬‎‎‌‎‌‫‬‮‮ <string>(3672308744U), MessageBoxButtons.OK);
                    num7 = (int)num3 * 216261062 ^ -1822330514;
                    continue;

                case 5:
                    num7 = (int)num3 * -1281084317 ^ 22815722;
                    continue;

                case 6:
                    CoreProtector.\u202A‏‏‬‬‫‎‫‫‌‮‎‭‎‫​‫‮‭‪‭‮(CoreProtector.\u200F‪​‬‭‫​‫‎‍‪‪‏‪‎‫​‭‮‎‍‬‍‎‮(Resources.LicenseRoot));
                    num7 = (int)num3 * -1949391463 ^ 252970383;
                    continue;

                case 7:
                    num7 = (int)num3 * -1338220461 ^ 1356623681;
                    continue;

                case 8:
                    int num5 = stringList.Count != list.Count ? -1044535633 : (num5 = -697858619);
                    int num6 = (int)num3 * 1535512097;
                    num7 = num5 ^ num6;
                    continue;

                case 9:
                    num7 = (int)num3 * -506626471 ^ -1206797231;
                    continue;

                case 10:
                    goto label_23;

                case 11:
                    int num8 = CoreProtector.\u200B‮‭‍‎‏‍‭‫‪‪‪‍‎‬‪‫‫‏‫‌‬‎‬‫‭‏‫‮(CoreProtector.\u206E‌‮‏‭‮‫​‏‫‏‎‏‌​‌‌​‫‎‪‬‮‏​‍‭‮(\u003CModule\u003E.\u206A‪‫‬‫‎‭‬‌‫‏‭‭‏‍‫‌​‬‪‎‬‏‬‮ <string>(837523683U), (object)(list.Count - stringList.Count)), \u003CModule\u003E.\u206A‪‫‬‫‎‭‬‌‫‏‭‭‏‍‫‌​‬‪‎‬‏‬‮ <string>(4169866186U), MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes ? -889258509 : (num8 = -572617360);
                    int num9 = (int)num3 * 1963774632;
                    num7 = num8 ^ num9;
                    continue;

                default:
                    goto label_20;
                }
            }
label_20:
            return;

            label_25 :;
        }
示例#17
0
    static void mythread1()
    {
        ftp ftpClient = new ftp(@"ftp://185.91.177.214/ftp/", "server", "12345678");

        ftpClient.upload("myfile.wav", @"/mnt/sdcard/myfile.wav");
    }