Sunday, January 28, 2024

Koppeling - Adaptive DLL Hijacking / Dynamic Export Forwarding


This project is a demonstration of advanced DLL hijack techniques. It was released in conjunction with the "Adaptive DLL Hijacking" blog post. I recommend you start there to contextualize this code.

This project is comprised of the following elements:

  • Harness.exe: The "victim" application which is vulnerable to hijacking (static/dynamic)
  • Functions.dll: The "real" library which exposes valid functionality to the harness
  • Theif.dll: The "evil" library which is attempting to gain execution
  • NetClone.exe: A C# application which will clone exports from one DLL to another
  • PyClone.py: A python 3 script which mimics NetClone functionality

The VS solution itself supports 4 build configurations which map to 4 different methods of proxying functionality. This should provide a nice scalable way of demonstrating more techniques in the future.

  • Stc-Forward: Forwards export names during the build process using linker comments
  • Dyn-NetClone: Clones the export table from functions.dll onto theif.dll post-build using NetClone
  • Dyn-PyClone: Clones the export table from functions.dll onto theif.dll post-build using PyClone
  • Dyn-Rebuild: Rebuilds the export table and patches linked import tables post-load to dynamically prepare for function proxying

The goal of each technique is to successfully capture code execution while proxying functionality to the legitimate DLL. Each technique is tested to ensure static and dynamic sink situations are handled. This is by far not every primitive or technique variation. The post above goes into more detail.


Example

Prepare a hijack scenario with an obviously incorrect DLL

> copy C:\windows\system32\whoami.exe .\whoami.exe
1 file(s) copied.

> copy C:\windows\system32\kernel32.dll .\wkscli.dll
1 file(s) copied.

Executing in the current configuration should result in an error

> whoami.exe 

"Entry Point Not Found"

Convert kernel32 to proxy functionality for wkscli

> NetClone.exe --target C:\windows\system32\kernel32.dll --reference C:\windows\system32\wkscli.dll --output wkscli.dll
[+] Done.

> whoami.exe
COMPUTER\User



Related word


HOW TO HACK A FACEBOOK ACCOUNT? STEP BY STEP

Phishing is the way to obtain sensitive information such as usernames, passwords, and credit card details or any other confidential information, often for malicious reasons, by disguising as a trustworthy entity in an electronic communication. Phishing is typically carried out by several ways like email spoofing or instant messaging, and it often directs users to enter personal information at a fake website, the look and feel of which are almost identical to the legitimate one. In this tutorial, I will be showing how to hack a facebook account through phishing.

SO, HOW TO HACK A FACEBOOK ACCOUNT?

There are few techniques by which you can hack a facebook account but here the easiest way we'll discuss.

REQUIREMENTS

  1. Phisher Creator ( Fake page generator)
  2. Hosting ( To host a fake page). Either you can purchase one or also can use free hosting like 110mb.com. But in free hosting, the account will be suspended after a few logins.

STEPS TO FOLLOW

  1. Download phisher creator and run it.
  2. As you run it, you'll see a screen like the shown below. Here you can type the fields as I have done. 
  3. Once you hit the Create Phisher button, it'll create a fake facebook index page and fb_login.php file in the output folder.
  4. Now you need to upload these both files index.html and fb_login.php to the hosting account.
  5. After uploading the file, open the index.html file path. It will open up a page like same facebook page as you can see below.
  6. We're all done, now we just need to copy the URL of our fake page and distribute it to the victims, you just have to trick them with your social engineering that how you convenience them to open this URL to login facebook. Once someone tries to login through your fake facebook page URL, you'll get their account username and password in the log_file.txt in the same directory of hosting where you have uploaded index.php and fb_login.php.
Hope it'll work fine for you and you have learned how to hack a facebook account. If you find any question or query related to this, feel free to comment below or you can also follow another way that might work well for you to hack facebook account.
Related news

Saturday, January 27, 2024

How To Build A "Burner Device" For DEF CON In One Easy Step

TL;DR: Don't build a burner device. Probably this is not the risk you are looking for.

Introduction

Every year before DEF CON people starts to give advice to attendees to bring "burner devices" to DEF CON. Some people also start to create long lists on how to build burner devices, especially laptops. But the deeper we look into the topic, the more confusing it gets. Why are we doing this? Why are we recommending this? Are we focusing on the right things?

What is a "burner device" used for?

For starters, the whole "burner device" concept is totally misunderstood, even within the ITSEC community. A "burner device" is used for non-attribution. You know, for example, you are a spy and you don't want the country where you live to know that you are communicating with someone else. I believe this is not the situation for most attendees at DEF CON. More info about the meaning of "burner" https://twitter.com/Viss/status/877400669669306369

Burner phone means it has a throwaway SIM card with a throwaway phone, used for one specific operation only. You don't use the "burner device" to log in to your e-mail account or to VPN to your work or home.
But let's forget this word misuse issue for a moment, and focus on the real problem.

The bad advice

The Internet is full of articles focusing on the wrong things, especially when it comes to "burner devices". Like how to build a burner laptop, without explaining why you need it or how to use it.
The problem with this approach is that people end up "burning" (lame wordplay, sorry) significant resources for building a secure "burner device". But people are not educated about how they should use these devices.

The threats

I believe the followings are some real threats which are higher when you travel:
1. The laptop getting lost or stolen.
2. The laptop getting inspected/copied at the border.

These two risks have nothing to do with DEF CON, this is true for every travel.

Some other risks which are usually mentioned when it comes to "burner devices" and DEF CON:
3. Device getting owned via physical access while in a hotel room.
4. Network traffic Man-in-the-middle attacked. Your password displayed on a Wall of Sheep. Or having fun with Shellshock with DHCP. Information leak of NTLM hashes or similar.
5. Pwning the device via some nasty things like WiFi/TCP/Bluetooth/LTE/3G/GSM stack. These are unicorn attacks.

6. Pwning your device by pwning a service on your device. Like leaving your upload.php file in the root folder you use at CTFs and Nginx is set to autostart. The author of this article cannot comment on this incident whether it happened in real life or is just an imaginary example. 

How to mitigate these risks? 

Laptop getting stolen/lost/inspected at the border?
1. Bring a cheap, empty device with you. Or set up a fake OS/fake account to log in if you really need your day-to-day laptop. This dummy account should not decrypt the real files in the real account.

Device getting owned while in a hotel room with physical access

1. Don't bring any device with you.
2. If you bring any, make it tamper-resistant. How to do that depends on your enemy, but you can start by using nail glitter and Full Disk Encryption. Tools like Do Not Disturb help. It also helps if your OS supports suspending DMA devices before the user logs in.
3. If you can't make the device tamper-resistant, use a device that has a good defense against physical attackers, like iOS.
4. Probably you are not that important anyway that anyone will spend time and resources on you. If they do, probably you will only make your life miserable with all the hardening, but still, get pwned.

Network traffic Man-in-the-middle attacked

1. Don't bring any device with you.
2. Use services that are protected against MiTM. Like TLS.
3. Update your OS to the latest and greatest versions. Not everyone at DEF CON has a 0dayz worth of 100K USD, and even the ones who have won't waste it on you. 
4. Use fail-safe VPN. Unfortunately, not many people talk about this or have proper solutions for the most popular operating systems.
5. For specific attacks like Responder, disable LLMNR, NBT-NS, WPAD, and IPv6 and use a non-work account on the machine. If you don't have the privileges to do so on your machine, you probably should not bring this device with you. Or ask your local IT to disable these services and set up a new account for you.

Pwning the device via some nasty thing like WiFi/TCP/Bluetooth/LTE/3G/GSM stack

1. Don't bring any device with you.
2. If you bring any, do not use this device to log in to work, personal email, social media, etc.
3. Don't worry, these things don't happen very often. 

Pwning your device by pwning a service on your device

Just set up a firewall profile where all services are hidden from the outside. You rarely need any service accessible on your device at a hacker conference.

Conclusion

If you are still so afraid to go there, just don't go there. Watch the talks at home. But how is the hotel WiFi at a random place different from a hacker conference? Turns out, it is not much different, so you better spend time and resources on hardening your daily work devices for 365 days, instead of building a "burner device".

You probably need a "burner device" if you are a spy for a foreign government. Or you are the head of a criminal organization. Otherwise, you don't need a burner device. Maybe you need to bring a cheap replacement device.

Related word


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