RAT Loader
Download and start your executable file in the background.
- Change the URL in line 8 of the
code.cpp
file (line 1 of powershell.ps1
)
Compiling the code.cpp
Using cl.exe
- To compile the C++ code in Windows, you can use the command line tool cl.exe, which is part of the Microsoft Visual C++ Build Tools.
cl /EHsc /O2 /Fe:run.exe code.cpp
- The
/EHsc
option enables C++ exceptions handling,
/O2
optimizes the code for maximum performance,
- and
/Fe:run.exe
specifies the output file name.
code.cpp
is the C++ source file.
Using clang
- To compile C++ code with Clang in Windows, you can use the clang++.exe command line tool.
clang++ -o run.exe code.cpp
The -o
option specifies the output file name, in this case run.exe. Replace code.cpp
with the actual name of your C++ source file.
Using make
- To build the code, open a command prompt, navigate to the directory where the Makefile and source file are located, and run the following command:
- This will compile the code and create the run.exe file. To clean up the build artifacts, you can run the following command:
- This will delete the run.exe file.