ADF.LYKILLER [source] && [program] codeado en [JAVA]

Iniciado por Hu3c0, Octubre 25, 2015, 06:24:00 PM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Octubre 25, 2015, 06:24:00 PM Ultima modificación: Octubre 25, 2015, 06:26:18 PM por Hu3c0
Hola a todo el foro en esta  oportunidad tengo el gusto de compartir con todos ustedes mi interpretación del código que compartió Fudmario
de You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login bypass.
Aquí aporto el source por si alguno quiere estudiarlo
Código: java


package adf_lydecode;

import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;

import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
*
* @author Design<[email protected]>
*/
public class Adf_lyDecode {

    public static void main(String[] args) throws IOException {
        String cleanResponse;
        StringBuilder sb = new StringBuilder();
        StringBuilder sb1 = new StringBuilder();
        Scanner sc = new Scanner(System.in);
        System.out.println("Give adf.ly url....");
        String url=sc.next();
       URL url1 = new URL(url);
       BufferedReader in = new BufferedReader(new InputStreamReader(url1.openStream()));
       String inputLine;
       StringBuffer response = new StringBuffer();

      while ((inputLine = in.readLine()) != null) {
      response.append(inputLine + "\n");
}

in.close();

      Pattern p = Pattern.compile("var ysmm = \'(.+?)\';");
        Matcher m = p.matcher(response.toString()); 


while( m.find() )
{   cleanResponse=m.group(1);
    System.out.println(cleanResponse+" Tiene "+cleanResponse.length());
   
    for (int i=0;i < cleanResponse.length();i+=2){
    sb.append(cleanResponse.substring(i,i+1));}
    System.out.println(sb.toString());
   
    for(int b=cleanResponse.length()-1;b>=0;b-=2){
    sb1.append(cleanResponse.charAt(b));}
    System.out.println(sb1.toString());
    System.out.println(sb.toString().concat(sb1.toString()));
    String bytesEncoded=sb.toString().concat(sb1.toString());
    byte[] valueDecoded= Base64.decode(bytesEncoded );
    System.out.println(new String (valueDecoded).substring(2));
   
  } 
   
     
       
    }
   
}


Aquí os pongo como me ha quedado compilado



Y Aquí por si alguien lo quiere desacargar ya compilado y totalmente funcional.

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Espero que os guste en cuanto termine mis estudios os terminaré un programa que he tenido que dejar a medio terminar @Saludos
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login