r3nhat / GRAT2
- среда, 9 сентября 2020 г. в 00:24:36
C#
We developed GRAT2 Command & Control (C2) project for learning purpose.
(c).-.(c) (c).-.(c) (c).-.(c) (c).-.(c) (c).-.(c)
/ ._. \ / ._. \ / ._. \ / ._. \ / ._. \
\( Y )/__ __\( Y )/__ __\( Y )/__ __\( Y )/__ __\( Y )/
(_.-/'-'\-._)(_.-/'-'\-._)(_.-/'-'\-._)(_.-/'-'\-._)(_.-/'-'\-._)
|| G || || R || || A || || T || || 2 ||
_.' `-' '._ _.' `-' '._ _.' `-' '._ _.' `-' '._ _.' `-' '._
(.-./`-'\.-.)(.-./`-`\.-.)(.-./`-'\.-.)(.-./`-'\.-.)(.-./`-'\.-.)
`-' `-' `-' `-' `-' `-' `-' `-' `-' `-'
v1.0 beta!
GRAT2 is a Command and Control (C2) tool written in python3 and the client in .NET 4.0. The main idea came from Georgios Koumettou who initiated the project.
We are aware that there are numerous C2 tools out there but, we developed this tool due to curiosity of how C2 and other evasion techniques work. That's all! ;-)
Evasion Techniques:
Communication:
Modules:
Process Injection Techniques:
Refer to GRAT2_Shellcodes in order to generate position-independent shellcode using Donut.
TODO:
c2 - Your GRAT2 Server IP Address (Required).
sandboxEvasion - If enabled (1), GRAT2 will be executed only on a domain join computer otherwise, GRAT2 will be terminated. If disabled (0), GRAT2 will be executed only on a non domain join computer otherwise, will be terminated (Default: Disabled).
patchEtw - If enabled (1), Event Tracing for Windows will be patched (Default: Enabled).
patchAmsi - if enabled (1), Antimalware Scan Interface will be patched (Default: Enabled).
sleep - Set sleep time (Default: 3 seconds).
UserAgent - Set UserAgent (Default: "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; yie11; rv:11.0) like Gecko").
initialUrl - Initial GRAT2 HTTP GET request (Default: jquery.js).
sendResults - GRAT2 HTTP POST results request (Default: login.aspx).
NOTE if you change either initialUrl or sendResults string, you have to update the string under GRAT2_Server/handlers.py on line 42 and 78 respectively.
Also, acknowledgment for each author and the reference link is highlighted in the source code.
This project can only be used for authorized testing or educational purposes. Using this software against target systems without prior permission is illegal, and any damages from misuse of this software will not be the responsibility of the author.