mirror of
https://github.com/login-securite/DonPAPI
synced 2025-01-29 02:02:49 +00:00
Merge pull request #49 from zblurx/MFA
Packaging DonPAPI and minor fixes
This commit is contained in:
commit
4ac529f667
@ -2,7 +2,7 @@
|
||||
"workspace":"default",
|
||||
"db_path":"donpapi.db",
|
||||
"db_name":"donpapi.db",
|
||||
"css":"res\\css\\style.css",
|
||||
"css":"res\\style.css",
|
||||
"mychartjs":"res\\css\\Chart.js",
|
||||
"logo_login": "res\\Logo_LOGIN.PNG",
|
||||
"logo_link": "res\\link.png",
|
@ -1,7 +1,7 @@
|
||||
import logging
|
||||
import binascii,os,json,datetime,shutil,base64
|
||||
from datetime import date,datetime,timedelta
|
||||
from lib.toolbox import bcolors
|
||||
from donpapi.lib.toolbox import bcolors
|
||||
|
||||
|
||||
class reporting:
|
||||
@ -82,7 +82,7 @@ class reporting:
|
||||
<title>DonPapi - Result for %s</title>
|
||||
</head>
|
||||
<body onload="toggleAll()">
|
||||
\n""" % ('res/style.css', "[client_name]")
|
||||
\n""" % (mycss, "[client_name]")
|
||||
self.add_to_resultpage(data)
|
||||
|
||||
|
||||
@ -345,11 +345,12 @@ class reporting:
|
||||
<Th><a class="firstletter">T</a><a>arget</A></Th>
|
||||
<Th><a class="firstletter">T</a><a>ype</A></Th>
|
||||
<Th><a class="firstletter">P</a><a>illaged_from_computerid</A></Th>
|
||||
<Th><a class="firstletter">P</a><a>illaged_from_userid</A></Th></TR>\n"""
|
||||
<Th><a class="firstletter">P</a><a>illaged_from_userid</A></Th>
|
||||
<Th><a class="firstletter">B</a><a>ypass MFA</A></Th></TR>\n"""
|
||||
|
||||
# <a href="#" id="toggle" onClick="toggle_it('tr1');toggle_it('tr2')">
|
||||
current_type = 'cookies'
|
||||
data += f"""<TR id=cookies><TD colspan="7" class="toggle_menu" onClick="toggle_it('cookies')"><A>Cookies ({len(results)})</A></TD></TR>"""
|
||||
data += f"""<TR id=cookies><TD colspan="8" class="toggle_menu" onClick="toggle_it('cookies')"><A>Cookies ({len(results)})</A></TD></TR>"""
|
||||
previous_target = ''
|
||||
previous_userid = ''
|
||||
previous_computerid = ''
|
||||
@ -416,7 +417,7 @@ class reporting:
|
||||
|
||||
### On supprime les cookies expirés
|
||||
for info in [name,value]:
|
||||
data += f"""<TD {special_style} onClick="CopyToClipboard('{temp_cookie}')"><A title="{info}" > {str(info)[:48]} </A></TD>"""
|
||||
data += f"""<TD {special_style} ><A title="{info}"> {str(info)[:48]}</TD>"""
|
||||
for info in [expires_utc]: #Formule a change si on intègre des cookies venant d'autre chose que chrome
|
||||
try:
|
||||
if type == "browser-chrome" :
|
||||
@ -446,6 +447,8 @@ class reporting:
|
||||
|
||||
for info in [type, computer_info, pillaged_from_userid]:
|
||||
data += f"""<TD {special_style} ><A title="{info}"> {str(info)[:48]} </A></TD>"""
|
||||
|
||||
data += f"""<TD {special_style} ><button onclick="CopyToClipboard('{temp_cookie}')">Copy</button></TD>"""
|
||||
data += """</TR>\n"""
|
||||
|
||||
|
@ -23,11 +23,10 @@ from __future__ import print_function
|
||||
import sys
|
||||
import logging
|
||||
import argparse,os,re,json,sqlite3
|
||||
from impacket import version
|
||||
from myseatbelt import MySeatBelt
|
||||
from donpapi.myseatbelt import MySeatBelt
|
||||
import concurrent.futures
|
||||
from lib.toolbox import split_targets,bcolors
|
||||
from database import database, reporting
|
||||
from donpapi.lib.toolbox import split_targets,bcolors
|
||||
from donpapi.database import database, reporting
|
||||
from datetime import date
|
||||
|
||||
|
||||
@ -38,8 +37,8 @@ assets={}
|
||||
def main():
|
||||
global assets
|
||||
# Init the example's logger theme
|
||||
#logger.init()
|
||||
print(version.BANNER)
|
||||
# logger.init()
|
||||
# print(version.BANNER)
|
||||
parser = argparse.ArgumentParser(add_help = True, description = "SeatBelt implementation.")
|
||||
|
||||
parser.add_argument('target', nargs='?', action='store', help='[[domain/]username[:password]@]<targetName or address>',default='')
|
||||
@ -176,7 +175,7 @@ def main():
|
||||
if len(targets) > 0 :
|
||||
try:
|
||||
with concurrent.futures.ThreadPoolExecutor(max_workers=int(options.t)) as executor:
|
||||
executor.map(seatbelt_thread, [(target, options, logging) for target in targets])
|
||||
executor.map(seatbelt_thread, [(target, options, logging.getLogger()) for target in targets])
|
||||
except Exception as e:
|
||||
if logging.getLogger().level == logging.DEBUG:
|
||||
import traceback
|
||||
@ -264,7 +263,7 @@ def seatbelt_thread(datas):
|
||||
def export_results_seatbelt(output_dir=''):
|
||||
global assets
|
||||
users={}
|
||||
logging.info(f"[+]Gathered infos from {len(assets)} targets")
|
||||
logging.info(f"[+] Gathered infos from {len(assets)} targets")
|
||||
f = open(os.path.join(output_dir, f'SeatBelt_secrets_all.log'), 'wb')
|
||||
for machine_ip in assets:
|
||||
for user in assets[machine_ip]:
|
@ -12,10 +12,10 @@ import traceback
|
||||
from .eater import DataStruct
|
||||
from . import crypto
|
||||
|
||||
from lazagne.config.write_output import print_debug
|
||||
from lazagne.config.crypto.pyaes.aes import AESModeOfOperationCBC
|
||||
from lazagne.config.crypto.pyDes import CBC
|
||||
from lazagne.config.winstructure import char_to_int
|
||||
from donpapi.lazagne.config.write_output import print_debug
|
||||
from donpapi.lazagne.config.crypto.pyaes.aes import AESModeOfOperationCBC
|
||||
from donpapi.lazagne.config.crypto.pyDes import CBC
|
||||
from donpapi.lazagne.config.winstructure import char_to_int
|
||||
|
||||
AES_BLOCK_SIZE = 16
|
||||
|
@ -23,10 +23,10 @@ import hmac
|
||||
import struct
|
||||
import sys
|
||||
|
||||
from lazagne.config.crypto.rc4 import RC4
|
||||
from lazagne.config.crypto.pyaes.aes import AESModeOfOperationCBC, AESModeOfOperationECB
|
||||
from lazagne.config.crypto.pyDes import triple_des, des, ECB, CBC
|
||||
from lazagne.config.winstructure import char_to_int, chr_or_byte
|
||||
from donpapi.lazagne.config.crypto.rc4 import RC4
|
||||
from donpapi.lazagne.config.crypto.pyaes.aes import AESModeOfOperationCBC, AESModeOfOperationECB
|
||||
from donpapi.lazagne.config.crypto.pyDes import triple_des, des, ECB, CBC
|
||||
from donpapi.lazagne.config.winstructure import char_to_int, chr_or_byte
|
||||
|
||||
|
||||
try:
|
@ -18,7 +18,7 @@ import hashlib
|
||||
import struct
|
||||
import os
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
|
||||
|
||||
class MasterKey(DataStruct):
|
@ -12,8 +12,8 @@ import struct
|
||||
|
||||
from .blob import DPAPIBlob
|
||||
from .eater import DataStruct, Eater
|
||||
from lazagne.config.crypto.pyaes.aes import AESModeOfOperationCBC
|
||||
from lazagne.config.winstructure import char_to_int
|
||||
from donpapi.lazagne.config.crypto.pyaes.aes import AESModeOfOperationCBC
|
||||
from donpapi.lazagne.config.winstructure import char_to_int
|
||||
|
||||
import os
|
||||
|
@ -4,8 +4,8 @@
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
from lazagne.config.write_output import print_debug
|
||||
from lazagne.config.winstructure import *
|
||||
from donpapi.lazagne.config.write_output import print_debug
|
||||
from donpapi.lazagne.config.winstructure import *
|
||||
|
||||
import os
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Thanks to g2jun for his RC4-Python project
|
||||
# Code from https://github.com/g2jun/RC4-Python
|
||||
|
||||
from lazagne.config.winstructure import char_to_int, chr_or_byte
|
||||
from donpapi.lazagne.config.winstructure import char_to_int, chr_or_byte
|
||||
|
||||
|
||||
class RC4(object):
|
@ -3,13 +3,13 @@
|
||||
import codecs
|
||||
import os
|
||||
|
||||
from lazagne.config.DPAPI.masterkey import MasterKeyPool
|
||||
from lazagne.config.DPAPI.credfile import CredFile
|
||||
from lazagne.config.DPAPI.vault import Vault
|
||||
from lazagne.config.DPAPI.blob import DPAPIBlob
|
||||
from lazagne.config.write_output import print_debug
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.softwares.windows.lsa_secrets import LSASecrets
|
||||
from donpapi.lazagne.config.DPAPI.masterkey import MasterKeyPool
|
||||
from donpapi.lazagne.config.DPAPI.credfile import CredFile
|
||||
from donpapi.lazagne.config.DPAPI.vault import Vault
|
||||
from donpapi.lazagne.config.DPAPI.blob import DPAPIBlob
|
||||
from donpapi.lazagne.config.write_output import print_debug
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.softwares.windows.lsa_secrets import LSASecrets
|
||||
|
||||
|
||||
def are_masterkeys_retrieved():
|
@ -5,8 +5,8 @@ import os
|
||||
import subprocess
|
||||
import re
|
||||
|
||||
from lazagne.config.write_output import print_debug
|
||||
from lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.write_output import print_debug
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
|
||||
try:
|
||||
import _subprocess as sub
|
172
donpapi/lazagne/config/manage_modules.py
Normal file
172
donpapi/lazagne/config/manage_modules.py
Normal file
@ -0,0 +1,172 @@
|
||||
# Browsers
|
||||
from donpapi.lazagne.softwares.browsers.chromium_based import chromium_browsers
|
||||
from donpapi.lazagne.softwares.browsers.ie import IE
|
||||
from donpapi.lazagne.softwares.browsers.mozilla import firefox_browsers
|
||||
from donpapi.lazagne.softwares.browsers.ucbrowser import UCBrowser
|
||||
# Chats
|
||||
from donpapi.lazagne.softwares.chats.pidgin import Pidgin
|
||||
from donpapi.lazagne.softwares.chats.psi import PSI
|
||||
from donpapi.lazagne.softwares.chats.skype import Skype
|
||||
# Databases
|
||||
from donpapi.lazagne.softwares.databases.dbvis import Dbvisualizer
|
||||
from donpapi.lazagne.softwares.databases.postgresql import PostgreSQL
|
||||
from donpapi.lazagne.softwares.databases.robomongo import Robomongo
|
||||
from donpapi.lazagne.softwares.databases.sqldeveloper import SQLDeveloper
|
||||
from donpapi.lazagne.softwares.databases.squirrel import Squirrel
|
||||
# Games
|
||||
from donpapi.lazagne.softwares.games.galconfusion import GalconFusion
|
||||
from donpapi.lazagne.softwares.games.kalypsomedia import KalypsoMedia
|
||||
from donpapi.lazagne.softwares.games.roguestale import RoguesTale
|
||||
from donpapi.lazagne.softwares.games.turba import Turba
|
||||
# Git
|
||||
from donpapi.lazagne.softwares.git.gitforwindows import GitForWindows
|
||||
# Mails
|
||||
from donpapi.lazagne.softwares.mails.outlook import Outlook
|
||||
from donpapi.lazagne.softwares.mails.thunderbird import Thunderbird
|
||||
# Maven
|
||||
from donpapi.lazagne.softwares.maven.mavenrepositories import MavenRepositories
|
||||
# Memory
|
||||
from donpapi.lazagne.softwares.memory.keepass import Keepass
|
||||
from donpapi.lazagne.softwares.memory.memorydump import MemoryDump
|
||||
# Multimedia
|
||||
from donpapi.lazagne.softwares.multimedia.eyecon import EyeCON
|
||||
# Php
|
||||
from donpapi.lazagne.softwares.php.composer import Composer
|
||||
# Svn
|
||||
from donpapi.lazagne.softwares.svn.tortoise import Tortoise
|
||||
# Sysadmin
|
||||
from donpapi.lazagne.softwares.sysadmin.apachedirectorystudio import ApacheDirectoryStudio
|
||||
from donpapi.lazagne.softwares.sysadmin.coreftp import CoreFTP
|
||||
from donpapi.lazagne.softwares.sysadmin.cyberduck import Cyberduck
|
||||
from donpapi.lazagne.softwares.sysadmin.filezilla import Filezilla
|
||||
from donpapi.lazagne.softwares.sysadmin.filezillaserver import FilezillaServer
|
||||
from donpapi.lazagne.softwares.sysadmin.ftpnavigator import FtpNavigator
|
||||
from donpapi.lazagne.softwares.sysadmin.opensshforwindows import OpenSSHForWindows
|
||||
from donpapi.lazagne.softwares.sysadmin.openvpn import OpenVPN
|
||||
from donpapi.lazagne.softwares.sysadmin.iiscentralcertp import IISCentralCertP
|
||||
from donpapi.lazagne.softwares.sysadmin.keepassconfig import KeePassConfig
|
||||
from donpapi.lazagne.softwares.sysadmin.iisapppool import IISAppPool
|
||||
from donpapi.lazagne.softwares.sysadmin.puttycm import Puttycm
|
||||
from donpapi.lazagne.softwares.sysadmin.rdpmanager import RDPManager
|
||||
from donpapi.lazagne.softwares.sysadmin.unattended import Unattended
|
||||
from donpapi.lazagne.softwares.sysadmin.vnc import Vnc
|
||||
from donpapi.lazagne.softwares.sysadmin.winscp import WinSCP
|
||||
from donpapi.lazagne.softwares.sysadmin.wsl import Wsl
|
||||
# Wifi
|
||||
from donpapi.lazagne.softwares.wifi.wifi import Wifi
|
||||
# Windows
|
||||
from donpapi.lazagne.softwares.windows.autologon import Autologon
|
||||
from donpapi.lazagne.softwares.windows.cachedump import Cachedump
|
||||
from donpapi.lazagne.softwares.windows.credman import Credman
|
||||
from donpapi.lazagne.softwares.windows.credfiles import CredFiles
|
||||
from donpapi.lazagne.softwares.windows.hashdump import Hashdump
|
||||
from donpapi.lazagne.softwares.windows.ppypykatz import Pypykatz
|
||||
from donpapi.lazagne.softwares.windows.lsa_secrets import LSASecrets
|
||||
from donpapi.lazagne.softwares.windows.vault import Vault
|
||||
from donpapi.lazagne.softwares.windows.vaultfiles import VaultFiles
|
||||
from donpapi.lazagne.softwares.windows.windows import WindowsPassword
|
||||
|
||||
|
||||
def get_categories():
|
||||
category = {
|
||||
'browsers': {'help': 'Web browsers supported'},
|
||||
'chats': {'help': 'Chat clients supported'},
|
||||
'databases': {'help': 'SQL/NoSQL clients supported'},
|
||||
'games': {'help': 'Games etc.'},
|
||||
'git': {'help': 'GIT clients supported'},
|
||||
'mails': {'help': 'Email clients supported'},
|
||||
'maven': {'help': 'Maven java build tool'},
|
||||
'memory': {'help': 'Retrieve passwords from memory'},
|
||||
'multimedia': {'help': 'Multimedia applications, etc'},
|
||||
'php': {'help': 'PHP build tool'},
|
||||
'svn': {'help': 'SVN clients supported'},
|
||||
'sysadmin': {'help': 'SCP/SSH/FTP/FTPS clients supported'},
|
||||
'windows': {'help': 'Windows credentials (credential manager, etc.)'},
|
||||
'wifi': {'help': 'Wifi'},
|
||||
}
|
||||
return category
|
||||
|
||||
|
||||
def get_modules():
|
||||
module_names = [
|
||||
|
||||
# Browser
|
||||
IE(),
|
||||
UCBrowser(),
|
||||
|
||||
# Chats
|
||||
Pidgin(),
|
||||
Skype(),
|
||||
PSI(),
|
||||
|
||||
# Databases
|
||||
Dbvisualizer(),
|
||||
Squirrel(),
|
||||
SQLDeveloper(),
|
||||
Robomongo(),
|
||||
PostgreSQL(),
|
||||
|
||||
# games
|
||||
KalypsoMedia(),
|
||||
GalconFusion(),
|
||||
RoguesTale(),
|
||||
Turba(),
|
||||
|
||||
# Git
|
||||
GitForWindows(),
|
||||
|
||||
# Mails
|
||||
Outlook(),
|
||||
Thunderbird(),
|
||||
|
||||
# Maven
|
||||
MavenRepositories(),
|
||||
|
||||
# Memory
|
||||
MemoryDump(), # retrieve browsers and keepass passwords
|
||||
Keepass(), # should be launched after memory dump
|
||||
|
||||
# Multimedia
|
||||
EyeCON(),
|
||||
|
||||
# Php
|
||||
Composer(),
|
||||
|
||||
# SVN
|
||||
Tortoise(),
|
||||
|
||||
# Sysadmin
|
||||
ApacheDirectoryStudio(),
|
||||
CoreFTP(),
|
||||
Cyberduck(),
|
||||
Filezilla(),
|
||||
FilezillaServer(),
|
||||
FtpNavigator(),
|
||||
KeePassConfig(),
|
||||
Puttycm(),
|
||||
OpenSSHForWindows(),
|
||||
OpenVPN(),
|
||||
IISCentralCertP(),
|
||||
IISAppPool(),
|
||||
RDPManager(),
|
||||
Unattended(),
|
||||
WinSCP(),
|
||||
Vnc(),
|
||||
Wsl(),
|
||||
|
||||
# Wifi
|
||||
Wifi(),
|
||||
|
||||
# Windows
|
||||
Autologon(),
|
||||
Pypykatz(),
|
||||
Cachedump(),
|
||||
Credman(),
|
||||
Hashdump(),
|
||||
LSASecrets(),
|
||||
CredFiles(),
|
||||
Vault(),
|
||||
VaultFiles(),
|
||||
WindowsPassword(),
|
||||
]
|
||||
return module_names + chromium_browsers + firefox_browsers
|
@ -14,7 +14,7 @@ ex: ('-s', action='store_true', dest='skype', help='skype')
|
||||
- options['help'] = 'skype'
|
||||
"""
|
||||
|
||||
from lazagne.config.write_output import print_debug
|
||||
from donpapi.lazagne.config.write_output import print_debug
|
||||
|
||||
|
||||
class ModuleInfo(object):
|
@ -5,13 +5,13 @@ import logging
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
from lazagne.config.change_privileges import list_sids, rev2self, impersonate_sid_long_handle
|
||||
from lazagne.config.users import get_user_list_on_filesystem, set_env_variables, get_username_winapi
|
||||
from lazagne.config.dpapi_structure import SystemDpapi, are_masterkeys_retrieved
|
||||
from lazagne.config.execute_cmd import save_hives, delete_hives
|
||||
from lazagne.config.write_output import print_debug, StandardOutput
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.manage_modules import get_categories, get_modules
|
||||
from donpapi.lazagne.config.change_privileges import list_sids, rev2self, impersonate_sid_long_handle
|
||||
from donpapi.lazagne.config.users import get_user_list_on_filesystem, set_env_variables, get_username_winapi
|
||||
from donpapi.lazagne.config.dpapi_structure import SystemDpapi, are_masterkeys_retrieved
|
||||
from donpapi.lazagne.config.execute_cmd import save_hives, delete_hives
|
||||
from donpapi.lazagne.config.write_output import print_debug, StandardOutput
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.manage_modules import get_categories, get_modules
|
||||
|
||||
# Useful for the Pupy project
|
||||
# workaround to this error: RuntimeError: maximum recursion depth exceeded while calling a Python object
|
@ -4,8 +4,8 @@ import os
|
||||
import ctypes
|
||||
import sys
|
||||
|
||||
#from lazagne.config.winstructure import get_os_version
|
||||
from lazagne.config.constant import constant
|
||||
#from DonPAPI.lazagne.config.winstructure import get_os_version
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
|
||||
|
||||
def get_user_list_on_filesystem(impersonated_user=[]):
|
@ -618,7 +618,7 @@ def Win32CryptUnprotectData(cipherText, entropy=False, is_current_user=True, use
|
||||
if not decrypted:
|
||||
can_decrypt = True
|
||||
if not (user_dpapi and user_dpapi.unlocked):
|
||||
from lazagne.config.dpapi_structure import are_masterkeys_retrieved
|
||||
from donpapi.lazagne.config.dpapi_structure import are_masterkeys_retrieved
|
||||
can_decrypt = are_masterkeys_retrieved()
|
||||
|
||||
if can_decrypt:
|
@ -11,8 +11,8 @@ import traceback
|
||||
from time import gmtime, strftime
|
||||
from platform import uname
|
||||
|
||||
from lazagne.config.users import get_username_winapi
|
||||
from lazagne.config.winstructure import string_to_unicode, char_to_int, chr_or_byte, python_version
|
||||
from donpapi.lazagne.config.users import get_username_winapi
|
||||
from donpapi.lazagne.config.winstructure import string_to_unicode, char_to_int, chr_or_byte, python_version
|
||||
from .constant import constant
|
||||
|
||||
# --------------------------- Standard output functions ---------------------------
|
@ -11,10 +11,10 @@ import traceback
|
||||
|
||||
from Crypto.Cipher import AES
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.winstructure import Win32CryptUnprotectData
|
||||
from lazagne.softwares.windows.credman import Credman
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.winstructure import Win32CryptUnprotectData
|
||||
from donpapi.lazagne.softwares.windows.credman import Credman
|
||||
|
||||
|
||||
class ChromiumBased(ModuleInfo):
|
@ -3,8 +3,8 @@ import subprocess
|
||||
import traceback
|
||||
|
||||
import lazagne.config.winstructure as win
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
|
||||
try:
|
||||
import _subprocess as sub
|
@ -11,15 +11,15 @@ import sys
|
||||
import traceback
|
||||
import os
|
||||
|
||||
#from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.crypto.pyDes import triple_des, CBC
|
||||
from lazagne.config.crypto.pyaes import AESModeOfOperationCBC
|
||||
from lazagne.config.dico import get_dic
|
||||
from lazagne.config.constant import constant
|
||||
#from DonPAPI.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.crypto.pyDes import triple_des, CBC
|
||||
from donpapi.lazagne.config.crypto.pyaes import AESModeOfOperationCBC
|
||||
from donpapi.lazagne.config.dico import get_dic
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from pyasn1.codec.der import decoder
|
||||
from binascii import unhexlify
|
||||
from base64 import b64decode
|
||||
#from lazagne.config.winstructure import char_to_int, convert_to_byte
|
||||
#from DonPAPI.lazagne.config.winstructure import char_to_int, convert_to_byte
|
||||
from hashlib import sha1, pbkdf2_hmac
|
||||
import logging
|
||||
|
@ -1,9 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import os
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.softwares.browsers.chromium_based import ChromiumBased
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.softwares.browsers.chromium_based import ChromiumBased
|
||||
|
||||
|
||||
class UCBrowser(ChromiumBased):
|
@ -2,8 +2,8 @@
|
||||
import os
|
||||
from xml.etree.cElementTree import ElementTree
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
|
||||
|
||||
class Pidgin(ModuleInfo):
|
@ -4,9 +4,9 @@ from xml.etree.cElementTree import ElementTree
|
||||
from glob import glob
|
||||
from itertools import cycle
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.winstructure import char_to_int
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.winstructure import char_to_int
|
||||
|
||||
|
||||
class PSI(ModuleInfo):
|
@ -6,10 +6,10 @@ import struct
|
||||
from xml.etree.cElementTree import ElementTree
|
||||
|
||||
import lazagne.config.winstructure as win
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.crypto.pyaes.aes import AESModeOfOperationCBC
|
||||
from lazagne.config.dico import get_dic
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.crypto.pyaes.aes import AESModeOfOperationCBC
|
||||
from donpapi.lazagne.config.dico import get_dic
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
|
||||
try:
|
||||
import _winreg as winreg
|
||||
@ -46,7 +46,7 @@ class Skype(ModuleInfo):
|
||||
self.debug(str(e))
|
||||
return False
|
||||
|
||||
# get hash from lazagne.configuration file
|
||||
# get hash from DonPAPI.lazagne.configuration file
|
||||
def get_hash_credential(self, xml_file):
|
||||
tree = ElementTree(file=xml_file)
|
||||
encrypted_hash = tree.find('Lib/Account/Credentials3')
|
@ -7,9 +7,9 @@ import os
|
||||
import re
|
||||
from xml.etree.cElementTree import ElementTree
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.crypto.pyDes import des, CBC
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.crypto.pyDes import des, CBC
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
|
||||
|
||||
class Dbvisualizer(ModuleInfo):
|
@ -2,8 +2,8 @@
|
||||
|
||||
import os
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
|
||||
|
||||
class PostgreSQL(ModuleInfo):
|
@ -2,8 +2,8 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
|
||||
|
||||
class Robomongo(ModuleInfo):
|
@ -7,9 +7,9 @@ import os
|
||||
import re
|
||||
from xml.etree.cElementTree import ElementTree
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.crypto.pyDes import des, CBC
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.crypto.pyDes import des, CBC
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
|
||||
|
||||
class SQLDeveloper(ModuleInfo):
|
@ -2,8 +2,8 @@
|
||||
import os
|
||||
from xml.etree.cElementTree import ElementTree
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
|
||||
|
||||
class Squirrel(ModuleInfo):
|
@ -8,8 +8,8 @@ except ImportError:
|
||||
import winreg
|
||||
|
||||
import lazagne.config.winstructure as win
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.winstructure import string_to_unicode
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.winstructure import string_to_unicode
|
||||
|
||||
|
||||
class GalconFusion(ModuleInfo):
|
@ -2,9 +2,9 @@
|
||||
import base64
|
||||
import os
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.winstructure import char_to_int, chr_or_byte
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.winstructure import char_to_int, chr_or_byte
|
||||
|
||||
try:
|
||||
from ConfigParser import ConfigParser # Python 2.7
|
@ -3,8 +3,8 @@ import os
|
||||
import re
|
||||
from xml.etree.cElementTree import ElementTree
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
|
||||
|
||||
class RoguesTale(ModuleInfo):
|
@ -8,8 +8,8 @@ except ImportError:
|
||||
import winreg
|
||||
|
||||
import lazagne.config.winstructure as win
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.winstructure import string_to_unicode
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.winstructure import string_to_unicode
|
||||
|
||||
|
||||
class Turba(ModuleInfo):
|
@ -6,9 +6,9 @@ try:
|
||||
except ImportError:
|
||||
from urllib.parse import urlparse, unquote
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.winstructure import string_to_unicode
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.winstructure import string_to_unicode
|
||||
|
||||
|
||||
class GitForWindows(ModuleInfo):
|
@ -5,8 +5,8 @@ except ImportError:
|
||||
import winreg
|
||||
|
||||
import lazagne.config.winstructure as win
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
|
||||
|
||||
class Outlook(ModuleInfo):
|
@ -1,5 +1,5 @@
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.softwares.browsers.mozilla import Mozilla
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.softwares.browsers.mozilla import Mozilla
|
||||
|
||||
|
||||
class Thunderbird(Mozilla):
|
@ -2,8 +2,8 @@
|
||||
import os
|
||||
from xml.etree import ElementTree
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
|
||||
|
||||
class MavenRepositories(ModuleInfo):
|
@ -8,8 +8,8 @@
|
||||
import traceback
|
||||
|
||||
from . import libkeepass
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
|
||||
|
||||
class Keepass(ModuleInfo):
|
@ -4,9 +4,9 @@ import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.execute_cmd import powershell_execute
|
||||
from lazagne.config.write_output import print_debug
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.execute_cmd import powershell_execute
|
||||
from donpapi.lazagne.config.write_output import print_debug
|
||||
|
||||
|
||||
class KeeThief():
|
@ -2,8 +2,8 @@
|
||||
import hashlib
|
||||
import struct
|
||||
|
||||
from lazagne.config.crypto.pyaes.aes import AESModeOfOperationECB, AESModeOfOperationCBC
|
||||
from lazagne.config.winstructure import char_to_int
|
||||
from donpapi.lazagne.config.crypto.pyaes.aes import AESModeOfOperationECB, AESModeOfOperationCBC
|
||||
from donpapi.lazagne.config.winstructure import char_to_int
|
||||
|
||||
AES_BLOCK_SIZE = 16
|
||||
|
@ -164,7 +164,7 @@
|
||||
|
||||
from array import array
|
||||
from struct import Struct
|
||||
from lazagne.config.winstructure import char_to_int
|
||||
from donpapi.lazagne.config.winstructure import char_to_int
|
||||
|
||||
little_u64 = Struct("<Q") # little-endian 64-bit unsigned.
|
||||
# Unpacks to a tuple of one element!
|
@ -9,10 +9,10 @@ The regex have been taken from the mimikittenz https://github.com/putterpanda/mi
|
||||
"""
|
||||
|
||||
from .keethief import KeeThief
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.winstructure import get_full_path_from_pid
|
||||
from lazagne.config.lib.memorpy import *
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.winstructure import get_full_path_from_pid
|
||||
from donpapi.lazagne.config.lib.memorpy import *
|
||||
|
||||
|
||||
# Memorpy has been removed because it takes to much time to execute - could return one day
|
@ -6,8 +6,8 @@ try:
|
||||
except ImportError:
|
||||
import winreg
|
||||
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.winstructure import *
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.winstructure import *
|
||||
|
||||
|
||||
class EyeCON(ModuleInfo):
|
@ -1,8 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import json
|
||||
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
|
||||
import os
|
||||
|
@ -1,9 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import base64
|
||||
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.winstructure import Win32CryptUnprotectData
|
||||
from lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.winstructure import Win32CryptUnprotectData
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
|
||||
import os
|
||||
|
@ -1,8 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from xml.etree.ElementTree import parse
|
||||
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.constant import *
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import *
|
||||
|
||||
import os
|
||||
|
@ -5,9 +5,9 @@ try:
|
||||
except ImportError:
|
||||
import winreg
|
||||
|
||||
from lazagne.config.crypto.pyaes.aes import AESModeOfOperationECB
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.winstructure import OpenKey, HKEY_CURRENT_USER
|
||||
from donpapi.lazagne.config.crypto.pyaes.aes import AESModeOfOperationECB
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.winstructure import OpenKey, HKEY_CURRENT_USER
|
||||
|
||||
|
||||
class CoreFTP(ModuleInfo):
|
@ -3,10 +3,10 @@ import base64
|
||||
|
||||
from xml.etree.cElementTree import ElementTree
|
||||
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.winstructure import Win32CryptUnprotectData
|
||||
from lazagne.config.constant import constant
|
||||
from lazagne.config.winstructure import string_to_unicode
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.winstructure import Win32CryptUnprotectData
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.winstructure import string_to_unicode
|
||||
|
||||
import os
|
||||
|
@ -3,8 +3,8 @@ import base64
|
||||
|
||||
from xml.etree.cElementTree import ElementTree
|
||||
|
||||
from lazagne.config.module_info import ModuleInfo
|
||||
from lazagne.config.constant import constant
|
||||
from donpapi.lazagne.config.module_info import ModuleInfo
|
||||
from donpapi.lazagne.config.constant import constant
|
||||
|
||||
import os
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user