DIG DEEPER TO FIND WATER & NOT WIDER -P.M.PATEL

Sunday, August 30, 2020

Blockchain Decentralized Application Hacking Course - A Journey Into Smart Contract Hacking And DApp Penetration Testing (Web 3.0)


Smart Contract Exploitation and Hacking Course Announcement


What Is this: 

For those who have been hitting me up on twitter and YouTube for more blockchain smart contract exploitation content this blog is for you. I have posted a video below explaining what this is and included a course outline of the content we are providing free for everyone. I was actually told recently that I am crazy for giving out this level of detailed content and training for free.. However, I believe in the original hacker ethic code from long ago, that information should be freely available for everyone!! In this frame of mind, the only pay for content will be if you wish to go the extra mile. For the person who wants to prove to themselves or others that they learned something via a certification package with detailed exam prep targets and guides, followed by a final exam CTF and reporting write-up. 

So I hope you enjoy this content. The content and walk through labs will be all free. This content will be posted regularly over the next few months 90% of it is already written and ready to go.

We will start off with the differences between Solidity and other languages and do a quick coding overview before we start hacking. This way everyone is on the same page when we start looking at coding examples of vulnerable targets or reviewing case study code. Then we will cover a wide range of typical issues that effect decentralized applications(DApps) and smart contracts on the Ethereum blockchain. How to spot them and exploit them with full walk-through style learning. Subjects we have already released (Re-Entrancy, Integer Attacks, Authorization) have been updated with new code, new examples, and case studies etc. Some of the learning content will be the same but with a lot of newly added content.  And in the case of Authorization completely re-written and expanded on. 

Basically this course was created to get the information out there in a clear concise way. Because when I started researching blockchain hacking all I found was a paragraph here and there on something that was overly technical or completely theoretical. I couldn't find any clear concise learning or examples. This drove me nuts trying to figure everything out, until I gave up and just coded my own vulnerabilities and hacked them. So hopefully this fills the knowledge gap to offer a clear and concise, Zero Fluff resource to those on the same path. 


CTF Exam: 

If you do enjoy this series over the next few months and want to challenge your skills and certify that you learned something we will be also offering pay for certification bundle that includes Decentralized Application (DApp) targets and detailed lab guides as preparation for a final exam against a more comprehensive CTF certification challenge target. More info on this as the months progress. 


Bug Bounty of Sorts: 

These labs are completed but we are working on a way to deliver the content which requires me to code up a course delivery software. So feel free to hack the course delivery software once its up, if you break in or bypass authorizations I will give you the full course for free provided you help me fix it. :P 


Pre- Requisites: 

This is more of a intermediate / advanced course with a white box code approach to bug hunting and a dynamic approach to application hacking and exploiting targets, with that said you will need the following pre-requisites: 

  • Ability to code in some language and understanding of coding concepts. 
  • Application hacking or development background with firm understanding of vulnerabilities


Contact Info:

As this is free, I only ask that you provide constructive feedback as we are creating other more advanced hacking courses on random subjects we are interested in. Most of which will be free.  And feedback helps us not do things which are not useful and integrate new ideas where they make sense.

Cheers and I hope this finds you well.

Twitter: 

Email: 

  • info@cclabs.io

WebPage:  


Intro Video: 



Course Outline / Release Order: 

Orange = = Whats included additionally for the full course

Blue = = What will be released free in blogs / videos 

(Mostly every Mondays) over the next few months


Building and Scoping Things

    Chapter 1: Cliff Notes on Blockchain

        Intro:

        What is a Blockchain and how is it secured

        Smart Contracts

        What is a Decentralized Application (DApp)?

        Diving into Blockchain Components:

        Distributed Vs Decentralized

        Provenance Use Case:

        Consensus and Mining:

            Hands on Lab - Blockchain Consensus walkthrough Lab

        Summary:

        References:


    Chapter 2: Threat Modeling and Scoping Engagements

        Architecture Considerations:

        Business Logic Locations and Technology Decisions

        Development Environments

        Threat Modeling

        Summary

        References:


    Chapter 3 – Solidity for Penetration Testers Part 1 (Hello World)

        About Solidity

            Hands on Lab - Remix interface overview

        Structure of a Smart Contract

            Hands on Lab – HelloWorld

        Summary

        References:


    Chapter 4 – Solidity for Penetration Testers Part 2

        Beyond Hello World

            Hands on Lab – Code HelloWorld bank

        Code Level Walk Through of HelloWorld Bank

        Checks Effects Interactions:

        Summary


Part 2: Hacking and Exploiting Things

    Chapter 5 - Glass Half Full or Glass Half Empty: Integer Attacks

        Underflows and Overflows

        Withdraw Function Vulnerable to an underflow

        Transfer Function Vulnerable to a Batch Overflow

        Batch Overflow Code Explanation:

            ERC20 Batch Overflow Case-Study

            Walkthrough of The Vulnerable Function

            Reviewing the Real Attack Transaction

            Hands on Lab - Exploiting Our Own ERC20 Batch Overflow

            Hands on Lab - Fixing the ERC20 Overflow

            Exam Prep - DApp Target + Detailed Lab Guide

            Hands on Lab -Safe Math Walk Through

        Integer Attacks Summary

        Integer Attacks References

          

    Chapter 6 - You Again: Leveraging Reentrancy Attacks

        Reentrancy Intro

        Checks Effects Interactions Pattern

        Simple Reentrancy Example Code

        Passing the Checks:

        Looping the Interaction:

        Updating the Effects:

        Attacking Code Example:

            Hands on Lab - Attacking a Simple Reentrancy

            Hands on Lab - Fixing the Checks Effects interaction Pattern

        Send vs Transfer Vs Call.Value

            Case Study – The Dao Hack

            Exam Prep - DApp Target + Detailed Lab Guide

        Reentrancy Summary

        Reentrancy References


    Chapter 7 Do You Have a Hall Pass: Access Control Attacks

        Understanding Smart Contract Authorization and Visibility

        Visibility:

        Simple Visibility Example:

        Implementing Authorization:

        Example Walk-through of No Authorization

        Thinking about Smart Contracts as unpublished API's for DApps

            Case of the Video Game Heist

        Enumerating functions in a contract

            Hands on Lab - Directly Calling Public Functions with Web3

            Hands on Lab - Example Fix with Simple Authorization

        Exit Scam Warning

            Hands on Lab - Example Fix-2 Using Modifiers for Simple Authentication

            Hands on Lab - Example Using Openzeppelin for Role Based Access Control

            Exam Prep - DApp Target + Detailed Lab Guide

        Authorization Summary:

        Authorization References


    Chapter 8 - Dude Where's My Data: Storage Vs Memory Attacks

       Intro - Not Written Yet – Up Next

       Code Example -  Not Written Yet – Up Next

       Case study? - Not Written Yet – Up Next

       Exploiting vulnerability -  Not Written Yet – Up Next

       Summary -  Not Written Yet – Up Next

       References -  Not Written Yet – Up Next


    Chapter 9 - Do I know you:  TxOrigin vs Message.sender Attacks

        What's the difference?

        Man In the Middle Via tx.origin

            Hands on Lab -  Simple tx.origin Example Walkthrough

            Hands on Lab -  Vulnerable TX.Origin Example Walkthrough

            Exam Prep - DApp Target + Detailed Lab Guide

        Action steps to familiarize yourself with the contract:

        Attack Options:

        Summary

        References


    Chapter 10 - Who Am I: Delegate Call Attacks

        How delegate calls work:

        Delegate Call vs Call

        Simple Delegate Call Example Code

        Simple Delegate Code Example Walkthrough

            Hands on Lab - Simple Delegate Example Walkthrough

        Variable Memory Issues with Delegate Calls

        DelegateCall Storage Simple Example Code

            Hands on Lab - DelegateCall Storage Walkthrough

            Exam Prep - DApp Target + Detailed Lab Guide

        Case Study - Parity Wallet Attack:

        Attack Transactions Explained

        Dangerous fallback function using delegatecall

        The Parity Wallet Code

        Delegate Chapter Summary

        Delegate References:


    Chapter 11 - Look into My Crystal Ball: Bad Randomness Issues

        Cryptographic Implementations and Predictable PRNGs

        Simple BlockHash Example

            Hands on Lab - BlockHash Vulnerability Walk and Talk

            Exam Prep - DApp Target + Detailed Lab Guide

        Preventing Randomness Issues

        Bad Randomness Summary

        Bad Randomness References


    Chapter 12 - Automated Static Application Security Testing

        Content - Not written - Up Next 

            Hands On Lab - Not written - Up Next 

        Summary Not written - Up Next 

        References - Not written - Up Next 


Chapter 13 - CTF Exam

        Final Exam and CTF Certification Exam Target 

        Final Exam Reporting


Appendices: 

    Appendix I – Pre-Requisite Suggestions:

        Programming Pre-Requisites:

        Web Application Hacking Pre-Requisites:

    Appendix II – Other Blockchain Learning Resources and Certifications

    Appendix III – Non-Exhaustive Scoping Questions

    Appendix IV – Non-Exhaustive List of things to check for



More info


  1. Pentest Tools For Ubuntu
  2. Hacker Tools For Ios
  3. Nsa Hacker Tools
  4. What Is Hacking Tools
  5. Black Hat Hacker Tools
  6. Bluetooth Hacking Tools Kali
  7. Kik Hack Tools
  8. Hack Tools For Windows
  9. Pentest Tools For Mac
  10. Pentest Box Tools Download
  11. What Are Hacking Tools
  12. What Is Hacking Tools
  13. Pentest Tools For Mac
  14. Hack And Tools
  15. Tools 4 Hack
  16. Wifi Hacker Tools For Windows
  17. Hacker Tools
  18. Top Pentest Tools
  19. Hack Tool Apk No Root
  20. Hack Tool Apk
  21. Hacker Tools Apk
  22. Pentest Reporting Tools
  23. Game Hacking
  24. Pentest Tools For Mac
  25. Hacker Tools Hardware
  26. Pentest Automation Tools
  27. Hacking Tools And Software
  28. Hacker
  29. Ethical Hacker Tools
  30. Hacking Tools For Mac
  31. Easy Hack Tools
  32. Hacking Tools 2019
  33. Hack Rom Tools
  34. Hacker Tools Apk Download
  35. Usb Pentest Tools
  36. Blackhat Hacker Tools
  37. How To Hack
  38. Beginner Hacker Tools
  39. Free Pentest Tools For Windows
  40. Hacking Tools For Windows
  41. Hacker Tools List
  42. Hacking Tools For Games
  43. Hacker Tools Linux
  44. Hacker Tools Software
  45. Hacking Tools For Pc
  46. Hacking Tools For Beginners
  47. Hacking Tools Pc
  48. Hack App
  49. Hacking Tools 2019
  50. Hacking Tools For Windows Free Download
  51. Hack Tools For Pc
  52. Hacking Tools Name
  53. Pentest Tools Linux
  54. Hacker Tools 2019
  55. Pentest Box Tools Download
  56. Pentest Tools
  57. New Hack Tools
  58. Pentest Box Tools Download
  59. Hacker Tools 2020
  60. Hack Tools Github
  61. Ethical Hacker Tools
  62. Pentest Tools Alternative
  63. New Hacker Tools
  64. Kik Hack Tools
  65. Blackhat Hacker Tools
  66. Pentest Tools Online
  67. Growth Hacker Tools
  68. Hacker Techniques Tools And Incident Handling
  69. Pentest Tools Port Scanner
  70. Bluetooth Hacking Tools Kali
  71. Hack Tools For Pc
  72. Hacker Tools For Mac
  73. Computer Hacker
  74. Hacking Tools Hardware
  75. Pentest Tools Website Vulnerability
  76. Hack Tools For Pc
  77. Pentest Tools Website Vulnerability
  78. Top Pentest Tools
  79. Underground Hacker Sites
  80. Beginner Hacker Tools
  81. Hack And Tools
  82. Hacker Tools Apk Download
  83. Pentest Tools Subdomain
  84. Hacker Tools Apk Download
  85. Hacker Tools Apk
  86. Hacking Tools Download
  87. Hacking Apps
  88. Hacker Security Tools
  89. Hacking Tools Free Download
  90. Hack Website Online Tool
  91. Growth Hacker Tools
  92. Hacking Tools Github
  93. Hack Tools For Games
  94. Nsa Hack Tools
  95. Tools For Hacker
  96. Hacker Tools Linux
  97. Physical Pentest Tools
  98. Hacking Tools Windows 10
  99. Hacking Tools For Mac
  100. Pentest Tools Tcp Port Scanner
  101. Hacking Tools Pc
  102. Pentest Tools Tcp Port Scanner
  103. Hacking Tools Pc
  104. Free Pentest Tools For Windows
  105. Pentest Tools Website
  106. Pentest Tools Windows
  107. Hack Tools Online
  108. Hacking Tools And Software
  109. Hack Tools Download
  110. Hacker Tools Apk
  111. Hacker Tools For Pc
  112. Hack Tools Mac
  113. Hacking Tools Github
  114. Hack Tools For Pc
  115. Best Hacking Tools 2020
  116. Pentest Tools Free
  117. Hacker Tools List
  118. Hacker Security Tools
  119. Hacking Tools 2019
  120. Pentest Tools Free
  121. How To Make Hacking Tools
  122. Pentest Tools Nmap
  123. Hacker Tools Github
  124. Hack Tools Download
  125. Hacker Tools Apk
  126. Tools For Hacker

Hacking Freemium Games - The Evolution Of PC Game Cheating

This post is going to be a rather strange post compared to previous ones. But bear with me, in the middle of the post you will see why this post fits the IT security topic.

I'm also terribly sorry for not posting recently, but I was busy with my SPSE and SLAE certification. Both are recommended for Python and Assembly noobs like me. But back to this post.

A little bit of history

Cheating in games started as help for game testers. By using invincibility or infinite ammo testers were able to test the game quicker, which meant less money spent on testing. I personally use cheat codes in games, depending on my mood. Sometimes it feels good to slash all the opponents while I'm invincible, sometimes it is more fun to play the game without cheats. One can argue whether cheating in games is OK or not, but I believe it depends, there is no black or white. But one thing is for sure, it is part of the gaming industry. There is huge demand for cheats. There were even cheat books printed on paper...


The different types of cheats (on PC)

There are different types of cheats in PC gaming. Following is a noncomplete list of these cheats:

Cheat codes

The good old IDDQD type of cheats. These are left in the game by the developers intentionally. Nothing interesting here.

Edit memory

This is my favorite. I will talk about this at the end of the post. Whenever a user launches a new program, the program's whole memory is accessible (read/write) to every other program launched by the user. And since the memory stores the current game state (health, ammo, armor, etc.), these values can be changed easily. In the good old times, there were POKE commands to do this cheats, and the memory address to write into was published by people who found where the game stores the most critical states about the game.

Code injection

This is like patching the game code. For example, one can change the "DEC (pointer to your current health)" instruction with NOP (do nothing), thus becoming invincible. In multi-player cheats, there is the aimbot to help you aim at enemies, wallhack to see through the wall, increase hitbox of the enemy for smoother hit, or in MMORPGs, one can write macros to collect items while the player is not online. I would say the so-called "trainers" more or less fit into this category and the previous one.

Saved game editor

The first time a kid meets a hex-editor (just like the co-author of this blog did with SIM City when he was 10 years old - David). It can teach a lot about file structures, the hexadecimal numeral system, etc. Fun times. 

Hacking game server

Not very common, but even more fun. Warning: endless trolling possibilities in multi-player games ahead :) How to hack a game server? Well, I think this might deserve another full blog post ...

Network traffic hacking

One last necessary type of cheating is to modify network traffic between the client and the game server. AFAIK SSL is not universal in gaming, so stunnel is not needed for this hack, but ettercap can help in changing the communication.

Why cheating becomes more critical (and challenging)?

Now in the age of in-app-payments, the game creators are no longer thinking about cheats as funny things but something to be destroyed to the ground. Because cheating decreases its revenue. Or not. At least they think it does. To quote Wikipedia here, "cheating in such games is nonetheless a legal grey area because there are no laws against modifying software which is already owned, as detailed in the Digital Millennium Copyright Act." 

A lot of online games include anti-cheating components like PunkBuster, nProtect GameGuard, or Valve Anti-Cheat. This whole cheating/anti-cheating industry is the same as the virus/anti-virus industry. A cat and mouse game.

Freemium games

If you have not played with "freemium" games, you should watch South Park season 18, episode 6. - "Freemium Isn't Free." If you did play with freemium games, you definitely have to watch it :) There are many problems with freemium games. It is free to install, free to play. The first 3-4 hours might be fun to play. But after that, it turns out it is impossible to advance in the game without paying money for it. And by spending cash, I mean spending a LOT! Let's have a look at today's example, an arcade racing video game.


For 99.99 USD, you can get 3 000 000 credit. For almost double the price of a new PC game, you can get these credits. In this particular game, I estimate one have to play ~6-24 hours constantly to get this amount of credit. But by playing ~6 hours, I mean 6 hours without progress in the game! Kind of boring. And what do you get from 3 000 000 credit? You can buy one of the most expensive cars, but can't tune them fully. You have to play more (without progress) or buy more. But guess what, there are more cars you can't buy by only playing the game. Those are only available via in-app-purchase.


Even though the player has 58 765 533 credits, it is not possible to buy this car. Only available through real money.


So, what are your possibilities? You are either Richie Rich, and can afford the money to buy these. Or you can be insane, and try to play the game without in-app-purchase. Or give up the game and try another freemium ... Or, you can try to hack the game!

Hack all the freemium games!

Although I was not playing this racing game from day one, I was able to witness the evolution of the cheats against this game. The cheats which worked in one day was not working one month later. The game is continuously updated to defeat the newly published cheats.

Noob start

So, I want to hack this game, what is the first thing a noob like me does? Bing it! Google it! 
From the first page result, let's check this tool:


While trying to download that, I just have to give my email address to spammers, or my mobile number will be subscribed to premium rate text messages. What fun.


Another "cheat" program will install malware/adware on your computer. Never ever try these programs. They are fake 99% of the time and after installing those you will have another problem, not just how to hack freemium games.

Beginners start - Cheat engine

When I first heard about hacking games in memory, I visualized hours of OllyDBG/ImmunityDBG/(insert your favorite Windows debugger here). It turned out, there are some specialized tools to help you with cheating the game. No assembly knowledge required. My favourite tool is CheatEngine. I highly recommend to download it and spend 10 minutes to get past the built-in tutorial levels to get a feeling about this tool. It's super duper awesome.



When I first tried to hack this game myself, I scanned the memory for my actual credit and tried to change that, no luck. Keep reading, you will see what happened.

The second cheat I tried with cheat engine was something like this: 
  1. Start the game, play the first level, and check how many credits is paid for winning the race. Pro tip: use dual display for full-screen game cheating.
  2. Restart the same level, attach Cheat Engine to the game's process
  3. Scan the memory for the same value at the beginning of the race
  4. Scan the memory for the same value at the end of the game. The intersect of the first and second scan includes the real value where the credit is stored for winning the race.
  5. Change the values (both the real one and some false positives) to something big
  6. Watch the game to crash
  7. Be amazed at the money you received
Nowadays, most of the cheats on YouTube does not work. Except for these kind of cheats. I don't want to recreate that tutorial, so you should watch it first then come back.



Are you back? Great. Do you have any idea what have you just seen? No? Well, in this case, don't try this at home. Copy-pasting assembly code from random internet posts and running on your computer is always a bad idea. It is precisely as risky as downloading free programs from random internet sites.

Although I have not seen people trolling others with this cheat engine type of shellcode, I think the time will come when these will be turned into something terrible. These shellcodes might work, or might harm your computer. The good news is, we can have a look at the code and analyze it. 

When you open CheatEngine and try to define a new custom type, you are greeted with a skeleton assembly code. I don't want to detail what all the skeleton code does, let's just focus on the difference between the skeleton code and the code used in the video. This is the "decrypt function":

xor eax, 0baadf00d
rol eax, 0e

What does it mean? The actual credit is encrypted in memory. If you want to scan it in memory, you won't be able to find it. But! The encryption is rotating the value to the right (ROR) with 0xE (14 in decimal), and after that, it is XOR-ed with 0xbaadf00d. Decrypting it is the inverse of the functions in reverse order (in this particular case, the order does not matter, but that's not the point). The inverse function of XOR is XOR, and the inverse function of ROR (rotate right) is ROL (rotate left). Now that we analyzed the assembly code, we can be sure that it is safe to execute. Just follow the video and see your coins falling from the sky. For free. In a freemium game. Have fun!

Encrypt memory - applications at financial institutions

Another exciting thing is that I don't recall any thick client applications in the financial industry encrypting the values in memory. And I agree, there are more significant problems with thick client applications than not encrypting the essential values in memory. But still, some thick client applications are regularly updated, maintained. Maybe it is a good idea to encrypt the values in memory. It will make attackers' life harder. Not impossible, but harder. Perhaps the developers of these applications should learn from the gaming industry (or from malware developers for that matter) because it is a shame that an arcade racing game or an FPS is protected better than an application responsible for transacting millions of dollars. Just think about the RAM scraping malware stealing millions of credit card data ...

Moral of the story

Cheating is part of the gaming history, and the freemium games are trying to take away the cheats from the gamers because they want money. Thanks to CheatEngine and some clever hacks, these programs can be still beaten. And guess what, there is CheatEngine for Android - although it did not work for me on the latest Android. And sometimes, hacking all kinds of applications can be more comfortable with CheatEngine, compared to traditional debuggers.

Also, always check the code before executing it! And when you find something cool, publish it, so everyone could enjoy the games!


Related word

  1. Pentest Tools Free
  2. Hacker Techniques Tools And Incident Handling
  3. Pentest Tools For Windows
  4. Hacker Security Tools
  5. Best Pentesting Tools 2018
  6. Pentest Tools Tcp Port Scanner
  7. New Hacker Tools
  8. Hacking Tools For Beginners
  9. Hack Tool Apk No Root
  10. Pentest Tools Review
  11. Hacker Security Tools
  12. Pentest Tools Open Source
  13. Wifi Hacker Tools For Windows
  14. Pentest Tools Find Subdomains
  15. Computer Hacker
  16. Pentest Reporting Tools
  17. Pentest Tools Windows
  18. Hacking Apps
  19. Hacking Tools Usb
  20. Hacking Tools For Windows
  21. Hacker Tools For Pc
  22. Hacking Tools For Windows 7
  23. Hack Tool Apk
  24. Hacking Apps
  25. Pentest Recon Tools
  26. Hack Rom Tools
  27. Hackers Toolbox
  28. Hacking Tools For Windows
  29. Game Hacking
  30. Pentest Tools For Mac
  31. Hacker Tool Kit
  32. Hacking Tools Name
  33. Pentest Tools Website
  34. Hacking Tools Free Download
  35. Hack Tools Download
  36. Wifi Hacker Tools For Windows
  37. Pentest Box Tools Download
  38. Hacker Tools List
  39. Hacking Tools For Kali Linux
  40. Pentest Tools Bluekeep
  41. Tools 4 Hack
  42. Hack Tools For Pc
  43. Blackhat Hacker Tools
  44. Hack Tool Apk No Root
  45. Top Pentest Tools
  46. Hacking Tools For Kali Linux
  47. Hacking Tools Github
  48. Hack Tools For Pc
  49. Hacker Tools For Ios
  50. Pentest Tools For Windows
  51. Beginner Hacker Tools
  52. World No 1 Hacker Software
  53. Hacking Tools For Games
  54. Pentest Recon Tools
  55. Pentest Tools Android
  56. Hacker Tools Mac
  57. Hack Tools 2019
  58. Pentest Tools Kali Linux
  59. Kik Hack Tools
  60. Hack Tool Apk
  61. Best Pentesting Tools 2018
  62. Hack Tools For Windows
  63. Pentest Tools Bluekeep
  64. Pentest Tools For Ubuntu
  65. Hacking Tools
  66. Pentest Tools Find Subdomains
  67. Hacker Tools Free
  68. Best Pentesting Tools 2018
  69. Pentest Tools Download
  70. Hacking App
  71. Hacking Tools Usb
  72. Pentest Tools For Ubuntu
  73. Hacking Tools Hardware
  74. Hacker Tools Mac
  75. Hacking Tools For Games
  76. Hacker Tools Software
  77. Hacking Tools For Windows 7
  78. Hacking Tools 2020
  79. Pentest Tools For Windows
  80. Pentest Tools Find Subdomains
  81. Install Pentest Tools Ubuntu
  82. Pentest Tools Find Subdomains
  83. Hacking Tools For Windows 7
  84. Pentest Reporting Tools
  85. Hack Tools
  86. Pentest Tools Website Vulnerability
  87. Hacking Tools Mac
  88. Hack Tools For Ubuntu
  89. Pentest Tools Bluekeep
  90. Pentest Tools Url Fuzzer
  91. Hacker Tools Hardware
  92. Kik Hack Tools
  93. Hacking Tools Name
  94. Pentest Tools For Ubuntu
  95. Nsa Hack Tools
  96. Hacking Tools Name
  97. Hack Tool Apk No Root
  98. Hack Apps
  99. Hacking Tools Usb
  100. Pentest Tools Alternative
  101. Hackrf Tools

Saturday, August 29, 2020

SharpHose - Asynchronous Password Spraying Tool In C# For Windows Environments


SharpHose is a C# password spraying tool designed to be fast, safe, and usable over Cobalt Strike's execute-assembly. It provides a flexible way to interact with Active Directory using domain-joined and non-joined contexts, while also being able to target specific domains and domain controllers. SharpHose takes into consideration the domain password policy, including fine grained password policies, in an attempt to avoid account lockouts. Fine grained password policies are enumerated for the users and groups that that the policy applies to. If the policy applied also to groups, the group users are captured. All enabled domain users are then classified according to their password policies, in order of precedence, and marked as safe or unsafe. The remaining users are filtered against an optional user-supplied exclude list.
Besides just spraying, red team operators can view all of the password policies for a domain, all the users affected by the policy, or just view the enabled domain users. Output can be sent directly to the console or to a user-supplied output folder.
Follow me on Twitter for some more tool releases soon! @ustayready

Nozzles
Nozzles are built-in methods of spraying. While currently only supporting one Nozzle (LDAP), it's written in a way that makes it easily extendable.

LDAP
Active Directory spraying nozzle using the LDAP protocol
  • Asynchronous spraying for faster, but not too fast, results
  • Domain joined and non-joined spraying
  • Tight integration w/ domain password policies and fine grained password policies
  • Smart lockout prevention (lockoutThreshold n-1 just to be safe)
  • Optionally spray to specific domains and domain controllers
  • View password policies and the affected users

Coming soon!
  • MSOL
  • OWA/EWS
  • Lync

Compilation
  • Built using Visual Studio 2019 Community Edition
  • .NET Framework 4.5

Usage Examples
Cobalt Strike Users
Be sure to use the --auto to avoid the interactive prompts in SharpHose. Also, prepare your arguments locally so you can read the description before running. If you don't pass any arguments over execute-assembly, then SharpHose throws a "Missing Argument Exception" and Cobalt Strike won't return any output. You will know this is happening when you see [-] Invoke_3 on EntryPoint failed. This will be fixed eventually.
Domain Joined Spray w/o Interaction SharpHose.exe --action SPRAY_USERS --spraypassword Spring2020! --output c:\temp\ --auto
Domain Joined Spray w/ Exclusions SharpHose.exe --action SPRAY_USERS --spraypassword Spring2020! --output c:\temp\ --exclude c:\temp\exclusion_list.txt
Non-Domain Joined Spray SharpHose.exe --action SPRAY_USERS --spraypassword Spring2020! --domain lab.local --username demo --password DemoThePlanet --output c:\temp\
Domain Joined Show Policies Active Directory stores durations in negative large integer values which need to lapse after the last lockoutThreshold is exceeded. In future versions these will be formatted cleaner. SharpHose.exe --action GET_POLICIES --output c:\temp\
Domain Joined Show Policy Users SharpHose.exe --action GET_POLICY_USERS --policy lab --output c:\temp\
Domain Joined Show All Users SharpHose.exe --action GET_ENABLED_USERS --output c:\temp\
Domain Joined Spray Using Cobalt Strike execute-assembly /path/to/SharpHose.exe --action SPRAY_USERS --spraypassword Spring2020! --output c:\temp\ --auto

Shout-Outs




via KitPloit

More articles


  1. Pentest Tools For Ubuntu
  2. Pentest Tools Find Subdomains
  3. Hacking Tools Free Download
  4. Hack Apps
  5. Hacking Tools Hardware
  6. Hacking Tools Download
  7. Hack Rom Tools
  8. Best Hacking Tools 2019
  9. Hacker Tools 2020
  10. Pentest Tools For Windows
  11. Hacking App
  12. Pentest Box Tools Download
  13. Hack Rom Tools
  14. Hacker Tools
  15. Pentest Tools Bluekeep
  16. Physical Pentest Tools
  17. Hacker Tools Hardware
  18. Pentest Tools Github
  19. Hack Tools Mac
  20. Hacking Apps
  21. New Hack Tools
  22. Computer Hacker
  23. Hacker Tools List
  24. Easy Hack Tools
  25. Hacking Apps
  26. Pentest Tools Alternative
  27. Underground Hacker Sites
  28. What Are Hacking Tools
  29. Pentest Tools For Ubuntu
  30. Pentest Tools Linux
  31. Hacker Tools Software
  32. Wifi Hacker Tools For Windows
  33. Hack Tools Online
  34. Computer Hacker
  35. Hacker Tools Software
  36. Hacking Tools Windows
  37. What Are Hacking Tools
  38. Install Pentest Tools Ubuntu
  39. Hacking Tools Software
  40. Pentest Tools Github
  41. Hacking Tools Hardware
  42. Best Hacking Tools 2020
  43. Blackhat Hacker Tools
  44. Pentest Tools Linux
  45. Hack Tools For Pc
  46. Best Hacking Tools 2019
  47. Nsa Hack Tools Download
  48. Best Hacking Tools 2019
  49. Tools Used For Hacking
  50. Hacking Tools Hardware
  51. Hack Website Online Tool
  52. Hacking Tools Download
  53. Pentest Tools Apk
  54. Hacking Tools For Beginners
  55. Pentest Tools Website
  56. Easy Hack Tools
  57. Hacking Tools For Windows Free Download
  58. Hacker Hardware Tools
  59. Best Pentesting Tools 2018
  60. What Are Hacking Tools
  61. Hacking App
  62. Pentest Tools Free
  63. Kik Hack Tools
  64. Hacker Tools
  65. Hacking Tools For Beginners
  66. Hacking Tools And Software
  67. Hacker Tools Mac
  68. Tools Used For Hacking
  69. Pentest Tools Kali Linux
  70. Nsa Hack Tools
  71. Hacker Tools 2019
  72. Hacking Tools For Windows
  73. Hacker Tools Free
  74. Pentest Tools Bluekeep
  75. Hacking Tools 2019
  76. Hacker Tools Free Download
  77. Ethical Hacker Tools
  78. Hacking Tools Download
  79. Pentest Tools For Mac
  80. Pentest Tools Open Source
  81. Best Hacking Tools 2020
  82. Hacker Tools Free Download
  83. Hack Tools 2019
  84. Hacker Tools 2019
  85. Hacker Tools Hardware
  86. How To Hack
  87. Pentest Box Tools Download
  88. Best Hacking Tools 2019
  89. Nsa Hacker Tools
  90. Nsa Hacker Tools
  91. Hackrf Tools
  92. Pentest Tools Tcp Port Scanner
  93. Hacking Tools For Windows Free Download
  94. Hacking Tools Github
  95. Pentest Tools Website
  96. Pentest Box Tools Download
  97. Hacking Tools Windows 10
  98. Beginner Hacker Tools
  99. New Hacker Tools
  100. Hack Tools Github
  101. Best Hacking Tools 2020
  102. Hacker Tools For Pc
  103. Hacking Tools For Kali Linux
  104. Pentest Tools Download
  105. Hacker Tools Free
  106. Hacker Tools List
  107. Pentest Tools
  108. Hak5 Tools
  109. Hacker Tools Linux
  110. Pentest Tools For Ubuntu
  111. Hacker Tools Mac
  112. Pentest Tools Apk
  113. Hacker Tools 2020
  114. Hacking Tools And Software
  115. Hacker Tools Linux
  116. Hacker Security Tools
  117. Hacker Tools 2020
  118. Hacker Tools 2019
  119. Hack Tools Github
  120. Pentest Tools Kali Linux
  121. Hack Tools For Pc
  122. Hacking Tools Usb
  123. Hacking Tools For Mac
  124. Hack Tools For Ubuntu
  125. Hacking Tools 2020
  126. Pentest Tools Free
  127. Hacking Tools Github
  128. Hacking Tools Software
  129. Hackers Toolbox
  130. Hacker Tools Free Download
  131. Hacker Tools Mac
  132. Pentest Tools Website Vulnerability
  133. Hacker Tools Windows
  134. Blackhat Hacker Tools
  135. Pentest Tools Website
  136. Wifi Hacker Tools For Windows
  137. Hacking App
  138. Blackhat Hacker Tools
  139. Hacking Tools Download
  140. Pentest Box Tools Download
  141. Wifi Hacker Tools For Windows
  142. Hacker Tools
  143. Hack Apps
  144. Pentest Tools Subdomain
  145. Pentest Tools Alternative
  146. Hacker Techniques Tools And Incident Handling
  147. Tools For Hacker
  148. Hack Tools For Windows
  149. Pentest Tools Online
  150. Hacker Tools For Pc
  151. Hack Tools Mac
  152. Hacking Tools Hardware
  153. Hacking Tools Windows
  154. Hacking Tools Hardware
  155. Hacker Tool Kit
  156. Github Hacking Tools
  157. Hacking Tools For Games
  158. Hack Tools For Windows
  159. Hack Tools For Games
  160. Hacker Tools Apk
  161. Tools Used For Hacking
  162. Hacker Security Tools
  163. Physical Pentest Tools
  164. Hacker Tools List
  165. Hack Apps
  166. Hacking Tools Software
  167. Hacker Hardware Tools
  168. Beginner Hacker Tools
  169. Blackhat Hacker Tools
  170. Pentest Tools Website Vulnerability
  171. Hacker Tools Free
  172. Best Hacking Tools 2019
  173. Tools Used For Hacking