Hacking Articles Tips Tricks Videos Tutorials
468 subscribers
65.8K 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
Syntax
inlineExecute-Assembly --dotnetassembly /root/Desktop/Seatbelt.exe --assemblyargs AntiVirus AppLocker --amsi ">beacon> inlineExecute-Assembly --dotnetassembly /root/Desktop/Seatbelt.exe --assemblyargs AntiVirus AppLocker --amsi

Use Case
Execute .NET assembly with arguments and disable ETW
Syntax
inlineExecute-Assembly --dotnetassembly /root/Desktop/Seatbelt.exe --assemblyargs AntiVirus AppLocker --etw ">beacon> inlineExecute-Assembly --dotnetassembly /root/Desktop/Seatbelt.exe --assemblyargs AntiVirus AppLocker --etw

Use Case
Execute .NET assembly with arguments and redirect output via mailslots instead of the default named pipe
Syntax
inlineExecute-Assembly --dotnetassembly /root/Desktop/Seatbelt.exe --mailslot ">beacon> inlineExecute-Assembly --dotnetassembly /root/Desktop/Seatbelt.exe --mailslot

Use Case
Execute .NET assembly with arguments and change the default named pipe name set in the aggressor script
Syntax
inlineExecute-Assembly --dotnetassembly /root/Desktop/Seatbelt.exe --pipe forRealLegit ">beacon> inlineExecute-Assembly --dotnetassembly /root/Desktop/Seatbelt.exe --pipe forRealLegit

Use Case
Execute .NET assembly and change the default app domain set in the aggressor script
Syntax
inlineExecute-Assembly --dotnetassembly /root/Desktop/Seatbelt.exe --appdomain forRealLegit ">beacon> inlineExecute-Assembly --dotnetassembly /root/Desktop/Seatbelt.exe --appdomain forRealLegit

Use Case
Execute .NET assembly with Main() entry point instead of the default Main(string[] args)
Syntax
inlineExecute-Assembly --dotnetassembly /root/Desktop/simpleMain.exe --main ">beacon> inlineExecute-Assembly --dotnetassembly /root/Desktop/simpleMain.exe --main

Use Case
Go HAM
Syntax
inlineExecute-Assembly --dotnetassembly /root/Desktop/Seatbelt.exe --assemblyargs AntiVirus AppLocker --amsi --etw --appdomain forRealLegit --mailslot forRealLegit ">beacon> inlineExecute-Assembly --dotnetassembly /root/Desktop/Seatbelt.exe --assemblyargs AntiVirus AppLocker --amsi --etw --appdomain forRealLegit --mailslot forRealLegit

Caveats
While I have tried to make this as stable as possible, there are no guarantees things will never crash and beacons won’t die. We don’t have the added luxury of fork and run where if something goes wrong our beacon lives. This is the tradeoff with BOFs. With that said, I can’t stress how important it is that you test your assemblies beforehand to make sure they will work properly with the tool. Since the BOF is executed in process and takes over the beacon while running, this should be taken into account before being used for long running assemblies. If you choose to run something that will take a long time to get back results, your beacon will not be active to run more commands till the results come back and your assembly finishes running. This also doesn’t adhere to sleep set. For example, if your sleep is set at 10 minutes and you run the BOF, you will get results back as soon as the BOF finishes executing. Unless modification is done to tools that load PE’s in memory (e.g., SafetyKatz), these will most likely kill your beacon. Many of these tools work fine with execute assembly because they are able to send their console output from the sacrificial process before exiting. When they exit via our in process BOF, they kill our process, which kills our beacon. These can be modified to work but I would advise running these types of assemblies via execute assembly since other non-OPSEC friendly things could be loaded into your process that don’t get removed. If your assembly uses Environment.Exit this will need to be removed as it will kill the process and beacon. Named pipes and mail slots need to be unique. If you don’t receive data back and your beacon is still alive, the issue is most likely you need to select a different named pipe or mail slot name.
Detection
Some detection and mitigation strategies that could be used: Uses PAGE_EXECUTE_READWRITE when performing AMSI and ETW memory patching. This was done on purpose and should be a red flag as very few programs have memory ranges with the memory protection (https://www.kitploit.com/search/label/Protection) of PAGE_EXECUTE_READWRITE. Default name of named pipe created is totesLegit. This was done on purpose and signature detections could be used to flag this. Default name of mailslot created is totesLegit. This was done on purpose and signature detections could be used to flag this. Default name of AppDomain loaded is totesLegit. This was done on purpose and signature detections could be used to flag this. Good tips on detecting malicious use of .NET (by @bohops (https://twitter.com/bohops)) here (https://bohops.com/2021/03/16/investigating-net-clr-usage-log-tampering-techniques-for-edr-evasion/), (by F-Secure) here (https://blog.f-secure.com/detecting-malicious-use-of-net-part-1/), and here (https://blog.f-secure.com/detecting-malicious-use-of-net-part-2/) Looking for .NET CLR loading into suspicious processes, such as unmanaged processes which should never have the CLR loaded. Event Tracing here (https://docs.microsoft.com/en-us/windows/win32/etw/about-event-tracing) Looking for other known Cobalt Strike Beacon IOC's or C2 egress/communication IOC's.

Download InlineExecute-Assembly (https://github.com/anthemtotheego/InlineExecute-Assembly)
Hacking on Medium
Cybersecurity Preparing for Non-IT Experts


Who needs cybersecurity training?

Continue reading on Medium »
Hacking on Medium
Access more than 10k premium API keys | python exploit


What is the Wayback Machine?

Continue reading on Medium »
Hacking on Medium
By Pass Two-Factor-Authentication


Bypass 2fa authentication with brute force attack

Continue reading on Medium »
Hacking Articles Tips Tricks Videos Tutorials
Photo
KitPloit - PenTest Tools!
InlineExecute-Assembly - A PoC Beacon Object File (BOF) That Allows Security Professionals To Perform In Process .NET Assembly Execution


https://1.bp.blogspot.com/-CwR1NpKuyd4/YUObnj1bvzI/AAAAAAAAuvo/jTm7kjPutFA9rMwYWJtmittz4F4lid6LgCNcBGAsYHQ/w640-h418/InlineExecute.png
InlineExecute-Assembly is a proof of concept Beacon Object File (BOF) that allows security professionals to perform in process .NET assembly execution as an alternative to Cobalt Strikes traditional fork and run execute-assembly module. InlineExecute-Assembly will execute any assembly with the entry point of Main(string[] args)or Main(). This should allow you to run most released tooling without any prior modification needed.

The BOF will automatically determine which Common Language Runtime (CLR) is needed to be loaded into the process for your assembly (v2.0.50727 or v4.0.30319) prior to execution and in most cases, should exist gracefully if any issues arise. The BOF also supports several flags which allow the operator to dictate several behaviors prior to .NET execution which include, disabling AMSI via in memory patching, disabling and restoring ETW via in memory patching, customization of the CLR App Domain name to be created, whether to create and direct console output of your assembly to a named pipe or mailslot, and allows the operator to switch the default entry point of Main(string[] args) to Main(). More details on usage, use cases, and possible detections can be found below and https://sec urityintelligence.com/posts/net-execution-inlineexecute-assembly/.

Lastly the advantage of executing our .NET assemblies in the same process as our beacon implant is that we avoid the default behavior of Cobalt Strike's execute-assembly module which creates a new process to then load/inject the CLR/.NET assembly. However, other opsec considerations still exist, for example, does the process we are executing within normally load the CLR or does the .NET assembly we are executing have any known signatures? Therefore, the disadvantage is that if something does get detected and killed, for example by AMSI, your beacon is also killed.
Subject References

This tool wouldn't exist without being able to piggyback off some really great research, tools, and code already published by members of the security community. So thank you. Lastly, if you feel anyone has been left out below, please let me know and I will be sure to get them added.

* HostingCLR - here - CLR/Executing assembly logic
* Dotnet-Loader-Shellcode - (by @modexpblog) - here - All around great research including on COM Interfaces for executing .NET in C -> Real MVP[...]
Hacking Articles Tips Tricks Videos Tutorials
Photo
hacking: security in practice
I Noticed My School District Has SSL Decryption, Could it Decrypt a VPN?

My school district and all of the wifi at my school has a very strict website blocker (which, for some reason, even blocks google.com so I can't use Google Docs), so I use a VPN to bypass it. Though I don't really know how much the details matter, I'm using PrivateVPN, in 'Stealth Mode', which I think just means it uses port 443 (Normally the VPN is blocked unless I use stealth mode, but it might just block all connections to port 1194). One time, though, when I had the VPN off (I forgot to turn it on), I noticed on the blocked page that one of the links was ssldecrypt2.myschool.district. I'm now more glad I'm using a VPN, for privacy reasons as well, but I'm wondering, since there's already ssl decryption, could that same decryption also decrypt a VPN? And would it matter if it's on port 443? Sorry if this has a simple answer, I might just be missing something big. TIA!

submitted by /u/fun840
[link] [comments]
hacking: security in practice
Looking for advice.

Hello, I recently purchased a storage unit at an auction (the kind you see on storage wars) and was curious if anyone had an idea on how I could get into the various electronics I found. (I have everything but Linux based computers out of it)

submitted by /u/Thatonensoutherner
[link] [comments]
Hacking on Medium
ROOTME WALKTHROUGH — TRYHACKME.COM — CTF FOR BEGINNERS


Hi there, welcome to my write-up as I go through the RootMe room on TryHackMe.

Continue reading on Medium »
1*8rdvQweTNoa-wyrTnVhXwA.gif
55.7 KB
Hacking on Medium
Brooklyn Nine Nine-TryHackMe-Writeup.


Writeup de la maquina Brooklyn en try hack me.

Continue reading on Medium »