Hacking Articles Tips Tricks Videos Tutorials
471 subscribers
66K photos
15 videos
157 files
132K links
Exploit
Pentesting
Hacking
Red Team
Blue Team
Kali Linux
Bug Bounty
Black Hat
Cyber security etc

@Hacking_Video
@Hacking_attack
Download Telegram
My findings on Hack U.S Program

hello everyone myself charan (also know as falcon319) in bug bounty community and i am occasional bug bounty hunter and agriculture…Continue reading on Medium »
[Read more...](
https://falcon319.medium.com/my-findings-on-hack-u-s-program-43b692a5c057?source=rss------bugbounty-5)
Masky is a python library (https://www.kitploit.com/search/label/Python%20Library) providing an alternative way to remotely dump domain users' credentials thanks to an ADCS. A command line tool has been built on top of this library in order to easily gather PFX, NT hashes and TGT on a larger scope. This tool does not exploit any new vulnerability (https://www.kitploit.com/search/label/Vulnerability) and does not work by dumping the LSASS process memory. Indeed, it only takes advantage of legitimate Windows and Active Directory (https://www.kitploit.com/search/label/Active%20Directory) features (token impersonation, certificate authentication (https://www.kitploit.com/search/label/Authentication) via kerberos & NT hashes retrieval via PKINIT). A blog post (https://z4ksec.github.io/posts/masky-release-v0.0.3/) was published to detail the implemented technics and how Masky works. Masky source code is largely based on the amazing Certify (https://github.com/GhostPack/Certify) and Certipy (https://github.com/ly4k/Certipy) tools. I really thanks their authors for the researches regarding offensive exploitation technics against ADCS (see. Acknowledgments section (https://github.com/Z4kSec/Masky#acknowledgments)).
Installation Masky python3 library and its associated CLI can be simply installed via the public PyPi repository as following: pip install masky
The Masky agent executable is already included within the PyPi package. Moreover, if you need to modify the agent, the C# code can be recompiled via a Visual Studio project located in agent/Masky.sln. It would requires .NET Framework 4 to be built. Usage Masky has been designed as a Python library. Moreover, a command line interface was created on top of it to ease its usage during pentest or RedTeam activities. For both usages, you need first to retrieve the FQDN of a CA server and its CA name deployed via an ADCS. This information can be easily retrieved via the certipy find option or via the Microsoft built-in certutil.exe tool. Make sure that the default User template is enabled on the targeted CA. Warning: Masky deploys an executable on each target via a modification of the existing RasAuto service. Despite the automated roll-back of its intial ImagePath value, an unexpected error during Masky runtime could skip the cleanup phase. Therefore, do not forget to manually reset the original value in case of such unwanted stop. Command line The following demo shows a basic usage of Masky by targeting 4 remote systems. Its execution allows to collect NT hashes, CCACHE and PFX of 3 distincts domain users from the sec.lab testing domain.

___________________________
@hacking_Attack
@Hacking_Video