Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run lazagne all : Compilation error #750

Open
fastchain opened this issue Mar 13, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@fastchain
Copy link

commented Mar 13, 2019

Hello, thank you for a great tool!

I've installed pupy by the manual (docker image), successfully generated payload and execute on test VM (virtualbox win7), but when I run lazagne module I receive the following output :

[*] Session 1 opened (vm@W7) (('172.19.0.1', 8443) <- 172.19.0.1:51040)
>> run lazagne all
2019-03-13 08:49:14,971| Compilation error: expected an indented block line:            for mod in self.lsass_task.get_load_modules():
[!] Load pypykatz.commons.kerberosticket failed: Exception: No module named minikerberos.asn1_structs
[!] Error loading package pypykatz.commons.kerberosticket (pypykatz/commons/kerberosticket.pyo pkg=False) : No module named minikerberos.asn1_structs Traceback (most recent call last):
ImportError: No module named minikerberos.asn1_structs
[!] Load pypykatz.lsadecryptor.packages.kerberos.decryptor failed: Exception: No module named minikerberos.asn1_structs
[!] Error loading package pypykatz.lsadecryptor.packages.kerberos.decryptor (pypykatz/lsadecryptor/packages/kerberos/decryptor.pyo pkg=False) : No module named minikerberos.asn1_structs Traceback (most recent call last):
ImportError: No module named minikerberos.asn1_structs

########## User: vm ##########
------------------- Outlook -------------------


...[it's ok here]

]
------------------- Google chrome -------------------


URL                                   Login  Password  
-------------------------------------------------------
...[it's ok here]

Where should I start to debug? What could go wrong? Thank you!

@AlessandroZ

This comment has been minimized.

Copy link
Collaborator

commented Mar 13, 2019

Hi @fastchain,

Lazagne uses a modified version of pypykatz to work. The original Pypykatz needs some modules to work such as minikerberos that lazagne does not need. So in the modified version, some try/catch have been added during the import process (e.g. here).
These messages are printed but the minikerberos module is not used, so it's not really an error. Pupy prints all error/debug messages that's why you see it, but lazagne run well.

@fastchain

This comment has been minimized.

Copy link
Author

commented Mar 13, 2019

Got it thank you!
I've just tried to run mimikatz from the shell and got this

>> run mimikatz
[-] You are in a x86 process right now. You have to be in a x64 process for running Mimikatz.
[-] Otherwise, the following Mimikatz error will occur after 'sekurlsa::logonPasswords':
[-] 'ERROR kuhl_m_sekurlsa_acquireLSA ; mimikatz x86 cannot access x64 process'
[-] Mimikatz has not been executed on the target

Is it possible to define somehow which version (x64/x86) to use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.