Hacking Articles Tips Tricks Videos Tutorials
Kali Linux Tutorials InlineExecute-Assembly : A PoC Beacon Object File (BOF) That Allows Security Professionals To Perform In Process .NET Assembly Execution InlineExecute-Assembly is a proof of concept Beacon Object File (BOF) that allows security professionals…
e
Execute .NET assembly with arguments
Syntax
beacon> inlineExecute-Assembly –dotnetassembly /root/Desktop/Seatbelt.exe –assemblyargs AntiVirus AppLocker
Use Case
Execute .NET assembly with arguments and disable AMSI
Syntax
beacon> inlineExecute-Assembly –dotnetassembly /root/Desktop/Seatbelt.exe –assemblyargs AntiVirus AppLocker –amsi
Use Case
Execute .NET assembly with arguments and disable ETW
Syntax
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
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
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
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
beacon> inlineExecute-Assembly –dotnetassembly /root/Desktop/simpleMain.exe –main
Use Case
Go HAM Syntax
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 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 AppDoma[...]
___________________________
@hacking_Attack
@Hacking_Video
Execute .NET assembly with arguments
Syntax
beacon> inlineExecute-Assembly –dotnetassembly /root/Desktop/Seatbelt.exe –assemblyargs AntiVirus AppLocker
Use Case
Execute .NET assembly with arguments and disable AMSI
Syntax
beacon> inlineExecute-Assembly –dotnetassembly /root/Desktop/Seatbelt.exe –assemblyargs AntiVirus AppLocker –amsi
Use Case
Execute .NET assembly with arguments and disable ETW
Syntax
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
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
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
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
beacon> inlineExecute-Assembly –dotnetassembly /root/Desktop/simpleMain.exe –main
Use Case
Go HAM Syntax
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 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 AppDoma[...]
___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
e Execute .NET assembly with arguments Syntax beacon> inlineExecute-Assembly –dotnetassembly /root/Desktop/Seatbelt.exe –assemblyargs AntiVirus AppLocker Use Case Execute .NET assembly with arguments and disable AMSI Syntax beacon> inlineExecute-Assembly…
in 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) here, (by F-Secure) here, and here
* Looking for .NET CLR loading into suspicious processes, such as unmanaged processes which should never have the CLR loaded.
* Event Tracing here
* Looking for other known Cobalt Strike Beacon IOC’s or C2 egress/communication IOC’s. Download
___________________________
@hacking_Attack
@Hacking_Video
* Good tips on detecting malicious use of .NET (by @bohops) here, (by F-Secure) here, and here
* Looking for .NET CLR loading into suspicious processes, such as unmanaged processes which should never have the CLR loaded.
* Event Tracing here
* Looking for other known Cobalt Strike Beacon IOC’s or C2 egress/communication IOC’s. Download
___________________________
@hacking_Attack
@Hacking_Video
hacking: security in practice
Attempted hack of unknown email address
Last night I had notifications of login attempts to my email from various places around the world. It was clearly a hacking attempt.
However, the strange thing is that I only use this address for iCloud, Amazon, and PayPal. None of which I believe to have had a leak, and confirmed this morning on Have I Been Pwned.
Fortunately, I use 2FA and change my PW frequently, so they failed to get in. However, I am perplexed at the source of the attack.
Unless it was targeted by someone who knows me (somewhat unlikely), how did they get this email address?
submitted by /u/ozzurfer
[link] [comments]
___________________________
@hacking_Attack
@Hacking_Video
Attempted hack of unknown email address
Last night I had notifications of login attempts to my email from various places around the world. It was clearly a hacking attempt.
However, the strange thing is that I only use this address for iCloud, Amazon, and PayPal. None of which I believe to have had a leak, and confirmed this morning on Have I Been Pwned.
Fortunately, I use 2FA and change my PW frequently, so they failed to get in. However, I am perplexed at the source of the attack.
Unless it was targeted by someone who knows me (somewhat unlikely), how did they get this email address?
submitted by /u/ozzurfer
[link] [comments]
___________________________
@hacking_Attack
@Hacking_Video
reddit
Attempted hack of unknown email address
Last night I had notifications of login attempts to my email from various places around the world. It was clearly a hacking attempt. However,...
hacking: security in practice
TryHackMe - Opinion
Hi All,
Just looking to get some opinions on TryHackMe, is its premium subscription worth the price, is it useful for the beginner/pro alike? Or is best to stay away?
Any opinions would be helpful.
Thanks.
submitted by /u/komorebi-iberomok
[link] [comments]
___________________________
@hacking_Attack
@Hacking_Video
TryHackMe - Opinion
Hi All,
Just looking to get some opinions on TryHackMe, is its premium subscription worth the price, is it useful for the beginner/pro alike? Or is best to stay away?
Any opinions would be helpful.
Thanks.
submitted by /u/komorebi-iberomok
[link] [comments]
___________________________
@hacking_Attack
@Hacking_Video
reddit
TryHackMe - Opinion
Hi All, Just looking to get some opinions on TryHackMe, is its premium subscription worth the price, is it useful for the beginner/pro alike? Or...
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Hack This Site: Realistic Web Mission — Level 1
https://cdn-images-1.medium.com/max/2048/1*dlf9Y0oQNP01-hPnpibkUw.png
Today we are looking at the Hack This Site Realistic Web Mission level 1. This mission requires the hacker to modify the source of the web…
Continue reading on Geek Culture »
___________________________
@hacking_Attack
@Hacking_Video
Hack This Site: Realistic Web Mission — Level 1
https://cdn-images-1.medium.com/max/2048/1*dlf9Y0oQNP01-hPnpibkUw.png
Today we are looking at the Hack This Site Realistic Web Mission level 1. This mission requires the hacker to modify the source of the web…
Continue reading on Geek Culture »
___________________________
@hacking_Attack
@Hacking_Video
Medium
Hack This Site: Realistic Web Mission — Level 1
Today we are looking at the Hack This Site Realistic Web Mission level 1. This mission requires the hacker to modify the source of the web…
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Top Most Chrome Extensions Used For Hacking
https://cdn-images-1.medium.com/max/877/0*iU5n73YIR1Q77woQ.jpg
Mostly hackers can use the extensions for the purpose to locate the broken links and inform the client and these extensions are also helps…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Top Most Chrome Extensions Used For Hacking
https://cdn-images-1.medium.com/max/877/0*iU5n73YIR1Q77woQ.jpg
Mostly hackers can use the extensions for the purpose to locate the broken links and inform the client and these extensions are also helps…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
Top Most Chrome Extensions Used For Hacking
Mostly hackers can use the extensions for the purpose to locate the broken links and inform the client and these extensions are also helps…
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
How to get started Hacking Wordpress Plugins
https://cdn-images-1.medium.com/max/1539/1*BFF04AAXh6aVj-0UGrfLgg.png
Hi. In this writeup, i will teach you everything that i learnt and a methodology on how to get started hacking wordpress plugins. Keep in…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
How to get started Hacking Wordpress Plugins
https://cdn-images-1.medium.com/max/1539/1*BFF04AAXh6aVj-0UGrfLgg.png
Hi. In this writeup, i will teach you everything that i learnt and a methodology on how to get started hacking wordpress plugins. Keep in…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
How to get started Hacking Wordpress Plugins to earn your first cve
Hi. In this writeup, i will teach you everything that i learnt and a methodology on how to get started hacking wordpress plugins. Keep in…
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Last Minute Revision for Cyber Security Interview !!!
https://cdn-images-1.medium.com/max/848/1*dHtmuH9K66vBgA5mJYNsgQ.png
Hello Magnificent Readers ,
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Last Minute Revision for Cyber Security Interview !!!
https://cdn-images-1.medium.com/max/848/1*dHtmuH9K66vBgA5mJYNsgQ.png
Hello Magnificent Readers ,
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
Last Minute Revision for Cyber Security Interview !!!
Hello Magnificent Readers ,
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
My biggest dream — Ethical Hacking
https://cdn-images-1.medium.com/max/600/1*BWUYZxfc1md0LkEwfOob0w.jpeg
When technologies started to come in our house I was a kid. These technologies include mobile, laptop and computer. The main focus was to…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
My biggest dream — Ethical Hacking
https://cdn-images-1.medium.com/max/600/1*BWUYZxfc1md0LkEwfOob0w.jpeg
When technologies started to come in our house I was a kid. These technologies include mobile, laptop and computer. The main focus was to…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
My biggest dream — Ethical Hacking
When technologies started to come in our house I was a kid. These technologies include mobile, laptop and computer. The main focus was to…
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Tracing the WannaCry 2.0 Monero Transactions
https://cdn-images-1.medium.com/max/600/1*78_fZacQ11O05-kmCB-YFw.png
Contributors: Nicolas A. Bax, PhD and an unnamed contributor.
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Tracing the WannaCry 2.0 Monero Transactions
https://cdn-images-1.medium.com/max/600/1*78_fZacQ11O05-kmCB-YFw.png
Contributors: Nicolas A. Bax, PhD and an unnamed contributor.
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
Tracing the WannaCry 2.0 Monero Transactions
Contributors: Nicolas A. Bax, PhD and an unnamed contributor.
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
cybercrime- biggest problem of internet
https://cdn-images-1.medium.com/max/600/0*l1afjeYQmrru6i5y.jpg
IN THE WORLD OF ADVANCED TECHNOLOGY THERE WHERE MANY CRIME DONE WITH THE HELP OF TECHNOLOGY CALLED CYBERCRIME
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
cybercrime- biggest problem of internet
https://cdn-images-1.medium.com/max/600/0*l1afjeYQmrru6i5y.jpg
IN THE WORLD OF ADVANCED TECHNOLOGY THERE WHERE MANY CRIME DONE WITH THE HELP OF TECHNOLOGY CALLED CYBERCRIME
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
cybercrime- biggest problem of internet
IN THE WORLD OF ADVANCED TECHNOLOGY THERE WHERE MANY CRIME DONE WITH THE HELP OF TECHNOLOGY CALLED CYBERCRIME
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
HackTheBox — Seal Writeup
https://cdn-images-1.medium.com/max/600/0*mejfaYUBxQmGhnHZ.png
So this is my write-up on one of the HackTheBox machines called Seal. Let’s go!
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
HackTheBox — Seal Writeup
https://cdn-images-1.medium.com/max/600/0*mejfaYUBxQmGhnHZ.png
So this is my write-up on one of the HackTheBox machines called Seal. Let’s go!
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
HackTheBox — Seal Writeup
So this is my write-up on one of the HackTheBox machines called Seal. Let’s go!