Monday, January 29, 2024

RECONNAISSANCE IN ETHICAL HACKING

What is reconnaissance in ethical hacking?
This is the primary phase of hacking where the hacker tries to collect as much information as possible about the target.It includes identifying the target ip address range,network,domain,mail server records etc.

They are of two types-
Active Reconnaissance 
Passive Reconnaissance 

1-Active Reconnaissance-It the process from which we directly interact with the computer system to gain information. This information can be relevant and accurate but there is a risk of getting detected if you are planning active reconnaissance without permission.if you are detected then the administration will take the severe action action against you it may be jail!

Passive Reconnaissance-In this process you will not be directly connected to a computer system.This process is used to gather essential information without ever interacting with the target system.
Related word

Sunday, January 28, 2024

Ettercap: Man In The Middle (MITM)


"Ettercap is a suite for man in the middle attacks on LAN. It features sniffing of live connections, content filtering on the fly and many other interesting tricks. It supports active and passive dissection of many protocols (even ciphered ones) and includes many feature for network and host analysis." read more...


Website: http://ettercap.sourceforge.net

More info


  1. Hacking Tools Kit
  2. Pentest Tools Alternative
  3. Hacking Tools For Windows Free Download
  4. Hacker Tools List
  5. Hacker Tools Online
  6. How To Install Pentest Tools In Ubuntu
  7. Hacker
  8. Pentest Tools Website Vulnerability
  9. Hacking Tools Windows 10
  10. Pentest Tools Nmap
  11. Hacking Tools Mac
  12. Best Pentesting Tools 2018
  13. Pentest Tools Review
  14. Hacking Tools For Windows
  15. Hack Tools Github
  16. Nsa Hack Tools Download
  17. World No 1 Hacker Software
  18. Hacking Tools For Mac
  19. Hacking Tools Software
  20. Hacking Tools Hardware
  21. Pentest Tools Port Scanner
  22. Hack Tool Apk No Root
  23. Hacking Tools And Software
  24. Hack Tools For Ubuntu
  25. Hacking Tools For Beginners
  26. Best Hacking Tools 2020
  27. Pentest Tools Alternative
  28. New Hack Tools
  29. Hack Tools
  30. How To Install Pentest Tools In Ubuntu
  31. Hacker Tools List
  32. Hacking Tools Name
  33. Hacking Apps
  34. Hacker Tools Apk Download
  35. Pentest Tools Nmap
  36. What Are Hacking Tools
  37. Hacker Security Tools
  38. Hacker Tools Free
  39. Hacker Search Tools
  40. Game Hacking
  41. Hackrf Tools
  42. Hacking Tools Pc
  43. Hacker Hardware Tools
  44. Pentest Tools Framework
  45. Hack Tools Pc
  46. Hacking Tools Online
  47. Bluetooth Hacking Tools Kali
  48. What Are Hacking Tools
  49. Best Pentesting Tools 2018
  50. Usb Pentest Tools
  51. Pentest Recon Tools
  52. Android Hack Tools Github
  53. Pentest Tools Find Subdomains
  54. Usb Pentest Tools
  55. Computer Hacker
  56. Hack Rom Tools
  57. Hack Tools For Windows
  58. Hacks And Tools
  59. Hacking Tools Hardware
  60. Top Pentest Tools
  61. Tools Used For Hacking
  62. Hacker Tool Kit
  63. Hacking Tools 2019
  64. Hacking App
  65. Hack Tools For Mac
  66. Pentest Tools Online
  67. Hacks And Tools
  68. Hack Tools For Games
  69. How To Install Pentest Tools In Ubuntu
  70. Tools Used For Hacking
  71. Physical Pentest Tools
  72. Pentest Tools Open Source
  73. Pentest Tools Free
  74. Hack Tool Apk No Root
  75. Pentest Tools Free
  76. Pentest Tools
  77. Hacking Tools 2019
  78. Pentest Tools Website Vulnerability
  79. Hacking Tools Windows
  80. Hacker Tools For Pc
  81. Hacking Tools For Windows 7
  82. Hacking Tools Windows
  83. Hacker Tools Software
  84. Usb Pentest Tools
  85. Physical Pentest Tools
  86. Pentest Tools Find Subdomains
  87. Hacking Tools Usb
  88. Hacking Tools Free Download
  89. Github Hacking Tools
  90. Game Hacking
  91. Hacker Tools Free
  92. Hacker Tools Software
  93. Pentest Recon Tools
  94. Hacking Tools For Kali Linux
  95. Hacker Security Tools
  96. Hack Tools 2019
  97. Hacking Tools For Beginners
  98. Hack Tool Apk
  99. Hackers Toolbox
  100. Termux Hacking Tools 2019
  101. Hacker Tools Apk Download
  102. Pentest Tools Apk
  103. Pentest Tools For Windows
  104. Hacking Tools For Games
  105. Game Hacking
  106. Hacking Tools For Windows
  107. Hacking Tools Windows
  108. Tools For Hacker
  109. Hacking Tools Name
  110. Hack Tools
  111. Blackhat Hacker Tools
  112. Hacker Tools For Mac
  113. Pentest Tools Apk
  114. Hack Tools 2019
  115. Hacker Tools List
  116. Hacker Tools For Mac
  117. Hacker Tools 2020
  118. Hacks And Tools
  119. Bluetooth Hacking Tools Kali
  120. Hacking Tools 2019
  121. Pentest Tools Bluekeep
  122. Hackers Toolbox
  123. Nsa Hack Tools Download
  124. Blackhat Hacker Tools
  125. Hacking Tools And Software
  126. Nsa Hacker Tools
  127. Hacking App
  128. Tools For Hacker
  129. Hacking Apps
  130. Hacking Tools For Pc
  131. Hacking Tools Kit

Theharvester: Email Harvesting Throughout Year




You might have harvested many things upto now but what we are going to harvest today is something bad :)



Requirements:

  1. A Linux box (I'm using Kali Linux)
  2. theharvester program (already available in Kali Linux)
So what does theharvester harvest? Well it harvests email addresses. theharvester is an Information gathering tool. If you want a list of emails to spam you can get that easily from theharvester tool and go on Spamming (I'm joking its illegal). It's a security tool that helps you in pentesting an organization (as always it can be used for evil as well). You can gather emails from an organization and look for potential victims to attack or use brute-force techniques to get their passwords or Social Engineer them into doing something that will let you compromise some or all systems in the organization. Uhh there are so many things that you can do when you have access to someone's email address.

OK stop talking and start doing.


Fire up a terminal in your kali box and type this command:


theharvester -d hotmail.com -l 50 -b google


In a small amount of time you'll see your terminal flooded with 200 hotmail.com email address. What does this command mean?


theharvester is the tool name that we are using

-d <domain_name> specifies the domain (or website) who's email addresses we're looking for, in our case it was hotmail.com
-l <number> specifies the number of results that we want in the output, I limited it to 50
-b <source> specifies the source on which to look for email addresses, I specified google as the source

Besides google we can specify any of the follow as source:

google, googleCSE, bing, bingapi, pgp, linkedin, google-profiles, people123, jigsaw, twitter, googleplus, all
Here the last entry all means look in every available source.

Let's say you wanted to look in every available source they you should specify the following command:


theharvester -d hotmail.com -b all




-f is another great flag which can be utilized to save the output in case we want to SPAM them later (just kidding) or for other reasons (I'm thinking positive). -f flag saves the result in html or xml format. Let's do just that:


theharvester -d gmail.com -l 50 -b google -f emailaddresses.html


here -f flag is followed by the location where we want to store the file and the name of file, in our case we stored it in our pwd (present working directory) with the name emailaddresses.html.




Above picture shows an html output generated by harvester.


That's it for this tutorial hope to see you next time!
Related links

  1. Hacker Search Tools
  2. Pentest Recon Tools
  3. Hacker Tools For Pc
  4. Hacking Tools For Kali Linux
  5. Blackhat Hacker Tools
  6. Hack Tool Apk No Root
  7. Hack Tools Download
  8. Hack Rom Tools
  9. Hacker Security Tools
  10. Hacking Tools 2020
  11. New Hack Tools
  12. Top Pentest Tools
  13. Hacking Tools Hardware
  14. Pentest Tools Website
  15. What Is Hacking Tools
  16. Hacking Tools 2019
  17. Pentest Tools Apk
  18. Pentest Tools Apk
  19. Hack Tools For Windows
  20. Tools Used For Hacking
  21. Hacker Tools Mac
  22. Pentest Tools Linux
  23. Hacking Tools Software
  24. Install Pentest Tools Ubuntu
  25. Pentest Tools Alternative
  26. Hacker Tools Hardware
  27. Hacker Tools Online
  28. Hacker Tools Github
  29. Tools For Hacker
  30. Ethical Hacker Tools
  31. Pentest Box Tools Download
  32. Hacking Tools For Windows Free Download
  33. Computer Hacker
  34. Hacking Tools And Software
  35. Hack Tools For Pc
  36. Hacker Security Tools
  37. Hacking Tools Free Download
  38. Pentest Tools Port Scanner
  39. Hacker Tools List
  40. Pentest Tools Tcp Port Scanner
  41. Top Pentest Tools
  42. Hacker Tools For Mac
  43. Free Pentest Tools For Windows
  44. Hacker Tools For Mac
  45. Hack Tools Mac
  46. Hacker Tools Linux
  47. Hacker Hardware Tools
  48. Hack Tools Download
  49. Hacking Tools Pc
  50. Hacking App
  51. Blackhat Hacker Tools
  52. Pentest Tools Nmap
  53. Hack Tools Github
  54. Hacker Tools Linux
  55. Hacker Tools Hardware
  56. Hacks And Tools
  57. Hacker Tools 2020
  58. Hack Tool Apk No Root
  59. Top Pentest Tools
  60. Hacker Tools For Ios
  61. World No 1 Hacker Software
  62. Install Pentest Tools Ubuntu
  63. Hack Tools For Mac
  64. Hack Apps
  65. Hacking Tools Windows 10
  66. Hack Tools For Pc
  67. Hack And Tools
  68. Hacking Tools For Windows
  69. What Is Hacking Tools
  70. What Are Hacking Tools
  71. Nsa Hack Tools Download
  72. Pentest Tools Online
  73. Pentest Tools Open Source
  74. Hacker Tools 2019
  75. Hacker Tools Hardware
  76. Hacking Tools For Kali Linux
  77. Hack Tools For Ubuntu
  78. Hacker Tools 2020
  79. Growth Hacker Tools
  80. How To Hack
  81. Hacker Tools For Windows
  82. What Are Hacking Tools
  83. Hacking Tools Free Download
  84. Hacking Tools Hardware
  85. Pentest Tools Bluekeep
  86. Physical Pentest Tools
  87. How To Make Hacking Tools
  88. Nsa Hack Tools
  89. Hack App
  90. Hacking Tools And Software
  91. Hack Tools Github
  92. Pentest Tools Framework

Saturday, January 27, 2024

Thousand Ways To Backdoor A Windows Domain (Forest)

When the Kerberos elevation of privilege (CVE-2014-6324 / MS14-068) vulnerability has been made public, the remediation paragraph of the following blog post made some waves:
http://blogs.technet.com/b/srd/archive/2014/11/18/additional-information-about-cve-2014-6324.aspx

"The only way a domain compromise can be remediated with a high level of certainty is a complete rebuild of the domain."

Personally, I agree with this, but .... But whether this is the real solution, I'm not sure. And the same applies to compromised computers. When it has been identified that malware was able to run on the computer (e.g. scheduled scan found the malware), there is no easy way to determine with 100% certainty that there is no rootkit on the computer. Thus rebuilding the computer might be a good thing to consider. For paranoids, use new hardware ;)

But rebuilding a single workstation and rebuilding a whole domain is not on the same complexity level. Rebuilding a domain can take weeks or months (or years, which will never happen, as the business will close before that).

There are countless documented methods to backdoor a computer, but I have never seen a post where someone collects all the methods to backdoor a domain. In the following, I will refer to domain admin, but in reality, I mean Domain Admins, Enterprise Admins, and Schema Admins.


Ways to backdoor a domain

So here you go, an incomplete list to backdoor a domain:

  • Create a new domain admin user. Easy to do, easy to detect, easy to remediate
  • Dump password hashes. The attacker can either crack those or just pass-the-hash. Since KB2871997, pass-the-hash might be trickier (https://technet.microsoft.com/library/security/2871997), but not impossible. Easy to do, hard to detect, hard to remediate - just think about service user passwords. And during remediation, consider all passwords compromised, even strong ones.
  • Logon scripts - modify the logon scripts and add something malicious in it. Almost anything detailed in this post can be added :D
  • Use an already available account, and add domain admin privileges to that. Reset its password. Mess with current group memberships - e.g. http://www.exploit-db.com/papers/17167/
  • Backdoor any workstation where domain admins login. While remediating workstations, don't forget to clean the roaming profile. The type of backdoor can use different forms: malware, local admin, password (hidden admin with 500 RID), sticky keys, etc.
  • Backdoor any domain controller server. For advanced attacks, see Skeleton keys 
  • Backdoor files on network shares which are commonly used by domain admins by adding malware to commonly used executables - Backdoor factory
  • Change ownership/permissions on AD partitions - if you have particular details on how to do this specifically, please comment
  • Create a new domain user. Hide admin privileges with SID history. Easy to do, hard to detect, easy to remediate - check Mimikatz experimental for addsid
  • Golden tickets - easy to do, hard to detect, medium remediation
  • Silver tickets - easy to do, hard to detect, medium/hard remediation
  • Backdoor workstations/servers via group policy
    • HKEY_LOCAL_MACHINE\ Software\ Microsoft\ Windows\ CurrentVersion\ RunOnce,
    • scheduled tasks (run task 2 years later),
    • sticky-keys with debug
  • Backdoor patch management tool, see slides here
[Update 2017.01.10]


Other tricks

The following list does not fit in the previous "instant admin" tips, but still, it can make the attackers life easier if their primary foothold has been disabled:

  • Backdoor recent backups - and when the backdoor is needed, destroy the files, so the files will be restored from the backdoored backup
  • Backdoor the Exchange server - get a copy of emails
  • Backdoor workstation/server golden image
  • Change permission of logon scripts to allow modification later
  • Place malicious symlinks to file shares, collect hashes via SMB auth tries on specified IP address, grab password hashes later
  • Backdoor remote admin management e.g. HP iLO - e.g. create new user or steal current password
  • Backdoor files e.g. on shares to use in SMB relay
  • Backdoor source code of in-house-developed software
  • Use any type of sniffed or reused passwords in new attacks, e.g. network admin, firewall admin, VPN admin, AV admin, etc.
  • Change the content of the proxy pac file (change browser configuration if necessary), including special exception(s) for a chosen domain(s)  to use proxy on malicious IP. Redirect the traffic, enforce authentication, grab password hashes, ???, profit.
  • Create high privileged users in applications running with high privileges, e.g. MSSQL, Tomcat, and own the machine, impersonate users, grab their credentials, etc. The typical pentest path made easy.
  • Remove patches from servers, change patch policy not to install those patches.
  • Steal Windows root/intermediate CA keys
  • Weaken AD security by changing group policy (e.g. re-enabling LM-hashes)
Update [2015-09-27]: I found this great presentation from Jakob Heidelberg. It mentions (at least) the following techniques, it is worth to check these:
  • Microsoft Local Administrator Password Solution
  • Enroll virtual smart card certificates for domain admins

Forensics

If you have been chosen to remediate a network where attackers gained domain admin privileges, well, you have a lot of things to look for :)

I can recommend two tools which can help you during your investigation:

Lessons learned

But guess what, not all of these problems are solved by rebuilding the AD. One has to rebuild all the computers from scratch as well. Which seems quite impossible. When someone is creating a new AD, it is impossible not to migrate some configuration/data/files from the old domain. And whenever this happens, there is a risk that the new AD will be backdoored as well.

Ok, we are doomed, but what can we do? I recommend proper log analysis, analyze trends, and detect strange patterns in your network. Better spend money on these, than on the domain rebuild. And when you find something, do a proper incident response. And good luck!

Ps: Thanks to Andrew, EQ, and Tileo for adding new ideas to this post.

Check out the host backdooring post as well! :)

Related news


  1. Pentest Tools Framework
  2. How To Make Hacking Tools
  3. Top Pentest Tools
  4. Best Hacking Tools 2019
  5. Best Hacking Tools 2020
  6. Hacking Tools For Beginners
  7. New Hacker Tools
  8. Hacking Tools 2019
  9. Pentest Tools Nmap
  10. Hacker
  11. Hack Apps
  12. Hacking Tools For Windows
  13. How To Make Hacking Tools
  14. Hacking Tools Kit
  15. Hackers Toolbox
  16. Pentest Tools Find Subdomains
  17. Hacking Tools Windows 10
  18. Blackhat Hacker Tools
  19. Hacking Tools Pc
  20. Tools For Hacker
  21. Wifi Hacker Tools For Windows
  22. Hacking Tools 2020
  23. Hacker Tools Online
  24. Pentest Tools Windows
  25. Pentest Tools Github
  26. Hack Tools For Pc
  27. Hacking Tools Download
  28. Pentest Tools Linux
  29. Hack Tools For Pc
  30. Hacker Search Tools
  31. Pentest Tools Linux
  32. Hacker Tools For Mac
  33. Free Pentest Tools For Windows
  34. Pentest Tools Website
  35. Pentest Tools Framework
  36. Pentest Tools Github
  37. Hacker Tools Free
  38. Hack Website Online Tool
  39. Hack Tools
  40. Hack Tools For Mac
  41. Hack Tools
  42. Tools Used For Hacking
  43. Hacker Tools
  44. Beginner Hacker Tools
  45. Pentest Tools Nmap
  46. Hack Tools Online
  47. Pentest Reporting Tools
  48. Hacker Tools Linux
  49. Hacking Tools
  50. Hacker Tools For Ios
  51. Hacking Tools Kit
  52. Hacking Tools Pc
  53. Hacking Apps
  54. Nsa Hacker Tools
  55. Blackhat Hacker Tools
  56. Pentest Tools Subdomain
  57. Pentest Tools Apk
  58. Pentest Tools Framework
  59. Hacker Tools Mac
  60. Pentest Tools Url Fuzzer
  61. Pentest Tools Apk
  62. Hack And Tools
  63. Usb Pentest Tools
  64. Pentest Tools List
  65. Pentest Tools Download
  66. Pentest Automation Tools
  67. Pentest Tools List
  68. Hacking Tools
  69. Hacking Tools Free Download
  70. Usb Pentest Tools
  71. Hacking Tools 2020
  72. Hacker Tools Apk
  73. Hack Tools For Mac
  74. Pentest Tools Kali Linux
  75. Underground Hacker Sites
  76. Hack Website Online Tool
  77. Hack Website Online Tool
  78. Github Hacking Tools
  79. Pentest Tools Kali Linux
  80. Pentest Tools Download
  81. Termux Hacking Tools 2019
  82. Hak5 Tools
  83. Hacker Tools
  84. Nsa Hack Tools Download
  85. Hack Tools Mac
  86. Pentest Tools Bluekeep
  87. Pentest Tools Apk
  88. Hackers Toolbox
  89. Pentest Tools Url Fuzzer
  90. Pentest Tools Apk
  91. Hacker Tools Windows
  92. Hacker Tools
  93. Hacker Tools For Ios
  94. Pentest Tools For Ubuntu
  95. Hack Tools
  96. Hacker Tool Kit
  97. Hacker Tools Software
  98. Free Pentest Tools For Windows
  99. Hack Tools For Mac
  100. Hacker Tools
  101. Github Hacking Tools
  102. What Is Hacking Tools
  103. Hack Website Online Tool
  104. Pentest Tools Github
  105. Tools Used For Hacking
  106. Hacking Tools Hardware
  107. Ethical Hacker Tools
  108. Pentest Tools Apk
  109. Pentest Tools For Windows
  110. Hacker Hardware Tools
  111. Pentest Tools Find Subdomains
  112. New Hack Tools
  113. Hacker Security Tools
  114. Best Hacking Tools 2020
  115. Pentest Tools
  116. Pentest Tools
  117. Hacker Hardware Tools
  118. Pentest Tools
  119. Hackrf Tools
  120. Hacking Tools For Windows 7
  121. Hacking Tools 2020
  122. Underground Hacker Sites
  123. Hacker
  124. Hacker Tool Kit
  125. Hack And Tools
  126. Hack Tools For Mac
  127. Hacker Tools For Ios
  128. Bluetooth Hacking Tools Kali
  129. Pentest Tools
  130. Nsa Hack Tools Download
  131. Hacking Tools For Beginners
  132. What Are Hacking Tools
  133. Pentest Tools Website
  134. Hack Tools For Windows
  135. Pentest Tools Online
  136. Hacking Tools Windows 10
  137. Pentest Recon Tools
  138. Hack Tools Github
  139. Nsa Hack Tools
  140. Pentest Tools Website
  141. Computer Hacker
  142. Hacking Tools Free Download
  143. Growth Hacker Tools
  144. Hacker Tools Github
  145. Pentest Tools For Ubuntu