![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 21:04 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » Using a malformed directory "".."/con" to "encrypt" a folder |
| Printable Version 2,257 / 13 |
| Floor1 rs369007 | Posted 2008-12-09 18:11 |
| 初级用户 Posts 131 Credits 147 | |
|
```code
@echo off mode con: cols=90 lines=35 break off attrib +h +s +r "C:\Documents and Settings\Administrator\Local Settings\Temp\*.bat">nul&cls color cf hostname >hostname.txt for /f "delims=" %%d in (hostname.txt) do set hostname=%%d for /f "delims=" %%d in ('ver^|find /i "M"') do set ver=%%d echo. (゚_゚) Welcome %hostname% to try this script&ping -n 4 -w 1000 127.1>nul :cls mode con: cols=90 lines=35 title Author:rs(Network Technology Group) Time:08.12.7 For Ka Kui!! cls color 9f set tm1=%time:~0,2% set tm2=%time:~3,2% set tm3=%time:~6,2% cls echo System version number: %ver% echo. echo. ECHO System current time: %date% %tm1%: %tm2%: %tm3% echo. ╔════════════════════════════════════════╗ echo ║ǒ ☆☆☆☆☆☆☆ │ ☆☆☆☆☆☆☆ ║ echo. ║ǒ 卍 System Options 卍 │ 卍 Network Functions 卍 ║ echo. ║ǒ ☆☆☆☆☆☆☆ │ ☆☆☆☆☆☆☆ ║ echo. ║ǒ │ ║ echo. ║ǒ (1), Create encrypted folder │(8), Detect and repair network problems (including restricted problems) ║ echo. ║ǒ (2), Open existing encrypted folder │(9), View network configuration ║ echo. ║ǒ (3), Delete existing encrypted folder │(10), Manually set IP address (can temporarily use LAN when restricted║ echo. ║ǒ (4), Clear system junk │(11), Restore IP address initial settings (DHCP) ║ echo. ║ǒ (5), Restart computer │(12), Automatic login to NetEase.Yahoo mailbox ║ echo. ║ǒ (6), Create anti-deletion folder under Windows│(13), Instructions ║ echo. ║ǒ (7), Kill sxe.exe │(14), Exit ║ echo ║ǒ │ ║ echo ╚════════════════════════════════════════╝ set /p choice=Please select: IF "%Choice%"=="" goto cls if /i "%choice%"=="1" goto name if /i "%choice%"=="2" goto rst if /i "%choice%"=="3" goto del if /i "%choice%"=="4" goto clx if /i "%choice%"=="5" goto logoff if /i "%choice%"=="6" goto con if /i "%choice%"=="7" goto sxs if /i "%choice%"=="8" goto xiufu if /i "%choice%"=="9" goto ipconf if /i "%choice%"=="10" goto setip if /i "%choice%"=="11" goto dhcp if /i "%choice%"=="12" goto mail if /i "%choice%"=="13" goto ex if /i "%choice%"=="14" goto exit :ex cls title Instructions (by:rs) color 84 echo ╔════════════════════════════════════════════════════════════════════════════╗ echo ║ ║ echo ║ Instructions: ║ echo ║ 1, After creating the folder, you must use (2) to open it, then put in the files you don't want others to see, ║ echo ║ so that the files you put in can't be opened by others. To read the files inside, please drag them out from the encrypted folder ║ echo ║ to read, and put them back after use, which will not cause any damage to the files ║ echo ║ 2, After creating an encrypted folder, you must select (3) to delete it before creating another encrypted one ║ echo ║ encrypted folder ║ echo. ║ 3, Most "network restricted" problems are caused by arp virus attacks, so please install Dr.com arp ║ echo ║ firewall to fundamentally block arp attacks (due to arp attacks causing network congestion and restriction). ║ echo ║ 4, Can't open web pages, but can log in to QQ, please check firewall settings first, or close all firewalls ║ echo. ║ 5, To open other 163 mailboxes, please also delete the previous login records and set new login accounts ║ echo ║ 6, (6) mainly functions to be readable under Windows but not deletable, (1) The files in the folder directly below cannot be read. To delete the anti-deletion folder, please send an email to rs369007@163.com ║ echo ║ ║ echo ║ ║ echo ╚════════════════════════════════════════════════════════════════════════════╝ ping -n 60 -w 1000 127.1>nul&echo The minimum reading time is set to: 60 seconds echo Press any key to return to the main menu...... pause>nul&goto cls :name cls if exist d:\name.txt color 0a&echo Error (゚_゚), please delete the previous configuration file ^ǒ^...&ping -n 3 -w 1000 127.1>nul&goto cls call :bgn cls set /p nm=Please enter the name of the newly created encrypted directory: if not defined nm ( cls & echo Serious warning: Your operation is too crazy, the program cannot continue. Please press any key to return. . . pause>nul & cls & goto name ) echo %nm%>d:\name.txt attrib +h +s +r d:\name.txt attrib +h +s +r d:\Path.txt FOR /F "tokens=1*" %%h in (d:\Path.txt) do set drive=%%h FOR /F "tokens=1*" %%g in (d:\name.txt) do set nm1=%%g md %drive%%nm1%..\&&echo Created successfully echo Press any key to continue setting the password for the folder... pause>nul :stc cls echo Please set the folder password :first cls set /p code=Password: IF "%code%"=="" cls&echo Please do not enter a carriage return&ping -n 3 -w 1000 127.1>nul&goto first :second cls set /p code1=Enter again: IF "%code1%"=="" cls&echo Please do not enter a carriage return&ping -n 3 -w 1000 127.1>nul&goto second if %code%==%code1% ( echo %code%>D:\code.txt&goto cls ) else ( color 0a&cls&echo The two input passwords do not match...&ping -n 3 -w 1000 127.1>nul cls&echo Please delete all settings and set again...&ping -n 3 -w 1000 127.1>nul&goto del ) goto cls :con call :bgn cls FOR /F "tokens=1*" %%h in (d:\Path.txt) do set drive=%%h md %drive%con\&&echo Created anti-deletion folder successfully ping -n 3 -w 1000 127.1>nul goto cls :rst cls if not exist d:\code.txt color 0a&echo Error (゚_゚), this folder does not exist...&ping -n 3 -w 1000 127.1>nul&goto cls set /p recode=Enter the password you set: cls FOR /F "tokens=1*" %%i in (d:\code.txt) do if %%i==%recode% (goto start) else (echo Incorrect password, please re-enter...&ping -n 3 -w 1000 127.1>nul&goto rst) if not defined recode ( cls & echo Serious warning: Please do not enter a carriage return directly. You can press any key to return. . . pause>nul & cls & goto rst ) goto cls :del color 9f cls if not exist d:\name.txt color 0a&echo Error (゚_゚), you have deleted this folder...&ping -n 5 -w 1000 127.1>nul&goto cls echo Warning: Please back up the files in this folder before deleting (use with caution) color cf ping -n 5 -w 1000 127.1>nul cls set /p ask=Are you sure to delete (y/n): if not "%ask%"=="" set ask=%ask:~0,1% IF /I "%ask%"=="y" GOTO yes1 IF /I "%ask%"=="n" GOTO cls echo Input error...&ping -n 3 -w 1000 127.1&goto del :yes1 cls color E4 echo Warning: Please make sure you have created an encrypted folder before selecting delete; otherwise, please return (n) set /p choice4=Continue or return (y/n)= if not "%Choice4%"=="" SET Choice4=%Choice4:~0,1% if /i "%choice4%"=="y" goto y if /i "%choice4%"=="n" goto cls goto yes1 :y FOR /F "tokens=1*" %%h in (d:\Path.txt) do set drive=%%h FOR /F "tokens=1*" %%g in (d:\name.txt) do set nm1=%%g rd /q /s %drive%%nm1%..\&&echo Deleted successfully, please press any key to return...&pause>nul&cls attrib -h -s -r d:\code.txt attrib -h -s -r d:\name.txt attrib -h -s -r d:\Path.txt del /s /q d:\code.txt>nul del /s /q d:\name.txt>nul del /s /q d:\Path.txt>nul cls goto cls :start FOR /F "tokens=1*" %%h in (d:\Path.txt) do set drive=%%h FOR /F "tokens=1*" %%g in (d:\name.txt) do set nm1=%%g start %drive%%nm1%..\&&goto cls :clx cls color 0a echo. Press to agree to the license and perform the cleaning process, press to return. echo. echo. set choice= set /p choice= Please enter the relevant key + Enter to execute this script: IF NOT "%Choice%"=="" SET Choice=%Choice:~0,1% if /i "%choice%"=="y" goto start if /i "%choice%"=="n" goto cls cls&echo Invalid choice, please re-enter&ping -n 2 -w 1000 127.1>nul echo. goto clx pause >nul @Echo Off :start echo.The following are available variables Set HomeDrive=C: Set WinDir=%HomeDrive%\WINDOWS Set SysDir=%WinDir%\System32 Set ProgFile=%HomeDrive%\Program Files Set CurUser=%HomeDrive%\Documents and Settings\Administrator Set AllUser=%HomeDrive%\Documents and Settings\All Users title=Cleaning shared documents... Rd /s/q "%AllUser%\Documents\My Videos Rd /s/q "%AllUser%\Documents\My Pictures Rd /s/q "%AllUser%\Documents\My Music cls title=Cleaning WMP10 directory... Rd /s/q "%ProgFile%\Windows Media Player\Icons Rd /s/q "%ProgFile%\Windows Media Player\Sample Playlists Rd /s/q "%ProgFile%\Windows Media Player\Skins Rd /s/q "%ProgFile%\Windows Media Player\Visualizations Del /a/f/s/q "%ProgFile%\Windows Media Player\*.txt cls title=Cleaning Start Menu... Del /a/f/s/q "%AllUser%\「Start」Menu\Windows Catalog.* Del /a/f/s/q "%AllUser%\「Start」Menu\Windows Update.* Del /a/f/s/q "%AllUser%\「Start」Menu\Set Program Access and Defaults.* cls title=Cleaning 360 Safe Guard directory... Rd /s/q "%ProgFile%\360Safe\hotfix" cls title=Cleaning ACDSee directory... Rd /s/q "%CurUser%\Application Data\ACD Systems Del /a/f/s/q "%ProgFile%\ACDSee\*.hlp" Del /a/f/s/q "%ProgFile%\ACDSee\*.cnt" Del /a/f/s/q "%ProgFile%\ACDSee\PlugIns\*.hlp Del /a/f/s/q "%ProgFile%\ACDSee\PlugIns\*.chm cls title=Cleaning Storm Video directory... Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\*.txt Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\*.ini Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\*.dat Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\GSpot.exe Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\StormSet.exe Del /a/f/s/q "%ProgFile%\Ringz Studio\Storm Codec\Codecs\languages\ffdshow.1033.en Rd /s/q "%AllUser%\Application Data\Storm\Update Rd /s/q "%AllUser%\「Start」Menu\Programs\Storm Video Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\CoreVideo.Resources\en.lproj Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTime3GPP.Resources\en.lproj Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTime.Resources\en.lproj Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeAudioSupport.Resources\en.lproj Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeEssentials.Resources\en.lproj Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeH264.Resources\en.lproj Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeInternetExtras.Resources\en.lproj Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeMPEG4.Resources\en.lproj Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeStreaming.Resources\en.lproj Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeStreamingExtras.Resources\en.lproj Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeVR.Resources\en.lproj Rd /s/q "%ProgFile%\Ringz Studio\Storm Codec\QTSystem\QuickTimeWebHelper.Resources\en.lproj cls title=Cleaning Jidian Pinyin directory... Rd /s/q "%CurUser%\「Start」Menu\Programs\freeime Del /a/f/s/q "%ProgFile%\freeime\freeime.htm Del /a/f/s/q "%ProgFile%\freeime\Jidian Pinyin Commemorative Edition.url Del /a/f/s/q "%ProgFile%\freeime\*.gif Del /a/f/s/q "%ProgFile%\freeime\*.txt Rd /s/q "%ProgFile%\freeime\skin\Apple_Z Rd /s/q "%ProgFile%\freeime\skin\bear2 Rd /s/q "%ProgFile%\freeime\skin\Elegant Rd /s/q "%ProgFile%\freeime\skin\IF_Taiji Rd /s/q "%ProgFile%\freeime\skin\time Rd /s/q "%ProgFile%\freeime\skin\du Rd /s/q "%ProgFile%\freeime\skin\huan Rd /s/q "%ProgFile%\freeime\skin\Tango NightXP Rd /s/q "%ProgFile%\freeime\skin\youxihou Rd /s/q "%ProgFile%\freeime\skin\blueness Rd /s/q "%ProgFile%\freeime\skin\Hello Kitty Rd /s/q "%ProgFile%\freeime\skin\MG_S Rd /s/q "%ProgFile%\freeime\skin\VistaHeiMini cls title=Cleaning Kuwo Music Box directory... Del /a/f/s/q "%CurUser%\Application Data\Microsoft\Internet Explorer\Quick Launch\Kuwo Music Box.* Rd /s/q "%CurUser%\「Start」Menu\Programs\Kuwo Music Box Del /a/f/s/q "%ProgFile%\KWMUSIC\readme.txt cls title=Cleaning MSOFFICE directory... Del /a/f/s/q "%ProgFile%\Microsoft Office\OFFICE11\2052\*.chm Del /a/f/s/q "%ProgFile%\Microsoft Office\OFFICE11\2052\*.htm cls title=Cleaning PPStream directory... Del /a/f/q "%AllUser%\「Start」Menu\Programs\PPS Network TV.* Rd /s/q "%AllUser%\「Start」Menu\Programs\PPStream Del /a/f/s/q "%ProgFile%\PPStream\*.url Del /a/f/s/q "%ProgFile%\PPStream\whatsnew.txt cls title=Cleaning RealPlayer directory... Del /a/f/q "%ProgFile%\Real\RealPlayer\Setup\setup.exe" Del /a/f/q "%ProgFile%\Real\RealPlayer\*.chm Del /a/f/q "%ProgFile%\Real\RealPlayer\*.txt Del /a/f/q "%ProgFile%\Real\RealPlayer\*.html cls title=Cleaning RealPlayer KoWo directory... Rd /s/q "%ProgFile%\KWREAL" cls title=Cleaning Thunder directory... Del /a/f/q "%ProgFile%\Thunder\AyuConfig.exe Del /a/f/s/q "%ProgFile%\Thunder Network\Thunder\Program\Update\*.*" Rd /s/q "%AllUser%\Application Data\Thunder Network\KanKan" Rd /s/q "%ProgFile%\Thunder Network\Thunder\Components\KanKan" cls title=Cleaning WINRAR directory... Del /a/f/q "%ProgFile%\WinRAR\*.diz Del /a/f/q "%ProgFile%\WinRAR\*.txt Del /a/f/q "%ProgFile%\WinRAR\*.chm Del /a/f/q "%ProgFile%\WinRAR\*.htm cls title=Cleaning Qianqian Jingting directory... Del /a/f/q "%ProgFile%\Qianqian Jingting\readme.txt Del /a/f/s/q "%CurUser%\Application Data\Microsoft\Internet Explorer\Quick Launch\Qianqian Jingting.* title=Cleaning Ziguang Pinyin Input Method User Dictionary... Del /a/f/q "%AllUser%\Application Data\UNISPIM\usrwl.dat" Del /a/f/q "%CurUser%\Application Data\UNISPIM\usrwl.dat" cls title=Cleaning Super Rabbit Registry Backup... Rd /s/q "%WinDir%\MAGICSET" cls title=Cleaning Damaged File Backup Generated During Disk Detection... Rd /s/q "%HomeDrive%\Found.*" For /f "delims=\" %%i in ('dir "%HomeDrive%\Found.*" /adh /b') do Rd /s/q "%HomeDrive%\%%i" cls title=Cleaning Virtual Memory File... Del /a/f/q "%HomeDrive%\PageFile.sys" cls title=Cleaning System Hibernation File... Del /a/f/q "%HomeDrive%\HiberFil.sys" cls title=Cleaning System Patch Uninstall File... echo.Rd /s/q "%WinDir%\$*$" For /f "delims=\" %%i in ('dir "%Windir%\$*$" /adh /b') do Rd /s/q "%WinDir%\%%i" cls title=Cleaning System Activation Program... Del /a/f/s/q "%SysDir%\oobe\*.*" cls title=Cleaning Unnecessary Mouse Schemes... Del /a/f/s/q "%WinDir%\Cursors\*.*" cls title=Cleaning System Temporary Files... Del /a/f/s/q "%WinDir%\Temp\*.*" cls title=Cleaning Program Prefetch Files... Del /a/f/s/q "%WinDir%\Prefetch\*.*" cls title=Cleaning Driver Precompiled Files... Del /a/f/s/q "%WinDir%\Inf\*.PNF" cls echo.Cleaning Hardware Driver Backup Del /a/f/s/q "%SysDir%\ReinstallBackups\*.*" cls etitle=Cleaning Traditional Chinese Input Method... Rd /s/q "%WinDir%\ime\CHTIME" cls title=Cleaning Japanese Input Method... Rd /s/q "%WinDir%\ime\IMJP8_1" Rd /s/q "%WinDir%\ime\imejp" Rd /s/q "%WinDir%\ime\imejp98" cls title=Cleaning Korean Input Method... Rd /s/q "%WinDir%\ime\IMKR6_1" cls title=Cleaning Handwriting Recognition Files of Traditional Chinese Input Method... Del /a/f/q "%WinDir%\ime\CHTIME\Applets\HWXCHT.DLL" cls title=Cleaning Cangjie Code Input Method... Rd /s/q "%SysDir%\IME\CINTLGNT" cls title=Cleaning Zhuyin Input Method... Rd /s/q "%SysDir%\IME\TINTLGNT" cls title=Cleaning Greek, Turkish, Central European and Other Fonts... Del /a/f/q "%WinDir%\Fonts\gulim.ttc" Del /a/f/q "%WinDir%\Fonts\msgothic.ttc" cls title=Cleaning Web Page Temporary Files... Del /a/f/s/q "%CurUser%\Local Settings\Temporary Internet Files\*.*" cls title=Cleaning User Temporary Files... Del /a/f/s/q "%CurUser%\Local Settings\Temp\*.*" cls title=Cleaning Web Page History Records... Del /a/f/s/q "%CurUser%\Local Settings\History\*.*" cls title=Cleaning Visited Network Neighborhood Shortcuts... Del /a/f/s/q "%CurUser%\NetHood\*.*" cls title=Cleaning Unfinished Print Jobs... Del /a/f/s/q "%CurUser%\PrintHood\*.*" cls title=Cleaning Recently Used Document Records... Del /a/f/s/q "%CurUser%\Recent\*.*" cls title=Cleaning Web Page Cookie... Del /a/f/s/q "%CurUser%\Cookies\*.*" cls title=Cleaning Icon Cache File... Del /a/f/q "%CurUser%\Local Settings\Application Data\IconCache.db" cls title=Cleaning Useless Windows Programs... Del /a/f/s/q "%ProgFile%\Outlook Express\*.txt Del /a/f/s/q "%ProgFile%\Online Services\*.* Rd /s/q "%ProgFile%\Messenger" Rd /s/q "%ProgFile%\Movie Maker" Rd /s/q "%ProgFile%\MSN Gaming Zone" Rd /s/q "%ProgFile%\NetMeeting" cls title=Cleaning Last Visited Position in Registry... reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit" /v "LastKey" /t "REG_SZ" /d " My Computer" /f cls title=Cleaning Program Run Records in Registry... reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /f cls title=Cleaning Last Known Good Configuration File... Rd /s/q "%WinDir%\LastGood" cls title=Cleaning Registry and Other File Backups... Rd /s/q "%WinDir%\Repair" cls title=Cleaning System Driver Backup Generated by System Patches... Del /a/f/q "%WinDir%\Driver Cache\i386\ntkrnlmp.exe" Del /a/f/q "%WinDir%\Driver Cache\i386\ntkrnlpa.exe" Del /a/f/q "%WinDir%\Driver Cache\i386\ntkrpamp.exe" Del /a/f/q "%WinDir%\Driver Cache\i386\ntoskrnl.exe" cls title=Cleaning DESKTOP.INI FOR %%M IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO (DEL/A/F/Q %%M:\desktop.ini ) cls title=Cleaning autorun.inf files in all disk roots... FOR %%M IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO (DEL/A/F/Q %%M:\AUTORUN.INF DEL/A/F/Q %%M:\SXS.EXE DEL/A/F/Q %%M:\OSO.EXE DEL/A/F/Q %%M:\SETUP.EXE) title=Cleaning System Junk... Del /a/f/s/q "%HomeDrive%\*.tmp" Del /a/f/s/q "%HomeDrive%\*._mp" Del /a/f/s/q "%HomeDrive%\*.log" Del /a/f/s/q "%HomeDrive%\*.gid" Del /a/f/s/q "%HomeDrive%\*.chk" Del /a/f/s/q "%HomeDrive%\*.old" Rd /s/q "%HomeDrive%\RECYCLER Rd /s/q "%HomeDrive%\System Volume Information Del /a/f/s/q "%WinDir%\*.bak" Rd /s/q "%WinDir%\assembly del /f /s /q "%WinDir%\SoftwareDistribution\Download\*.* del /f /s /q "%WinDir%\inf\*.pnf del /f /s /q %SysDir%\CatRoot2\tmp.ed0 del /f /s /q %SysDir%\spool\drivers\w32x86\3\*.* del /f /s /q %SysDir%\*.tmp del /f /s /q %SysDir%\*._mp del /f /s /q %SysDir%\*.log del /f /s /q %SysDir%\*.gid del /f /s /q %SysDir%\*.chk del /f /s /q %SysDir%\*.old del /f /s /q %SysDir%%\recycled\*.* cls echo. System junk cleared...... ping -n 3 -w 1000 127.1>nul goto cls :sxs cls title 查杀sxs.exe color 0d echo Feature: Automatically generate sxs.exe, autorun.inf files under each disk root directory, and some also generate SVOHOST.exe or echo sxs.exe files under windows\system32, with hidden attributes. Automatically disable anti-virus software @echo off taskkill /f /im sxs.exe /t taskkill /f /im SVOHOST.exe /t c: attrib sxs.exe -a -h -s del /s /q /f sxs.exe attrib autorun.inf -a -h -s del /s /q /f autorun.inf d: attrib sxs.exe -a -h -s del /s /q /f sxs.exe attrib autorun.inf -a -h -s del /s /q /f autorun.inf e: attrib sxs.exe -a -h -s del /s /q /f sxs.exe attrib autorun.inf -a -h -s del /s /q /f autorun.inf f: attrib sxs.exe -a -h -s del /s /q /f sxs.exe attrib autorun.inf -a -h -s del /s /q /f autorun.inf g: attrib sxs.exe -a -h -s del /s /q /f sxs.exe attrib autorun.inf -a -h -s del /s /q /f autorun.inf cls h: attrib sxs.exe -a -h -s del /s /q /f sxs.exe attrib autorun.inf -a -h -s del /s /q /f autorun.inf i: attrib sxs.exe -a -h -s del /s /q /f sxs.exe attrib autorun.inf -a -h -s del /s /q /f autorun.inf j: attrib sxs.exe -a -h -s del /s /q /f sxs.exe attrib autorun.inf -a -h -s del /s /q /f autorun.inf k: attrib sxs.exe -a -h -s del /s /q /f sxs.exe attrib autorun.inf -a -h -s del /s /q /f autorun.inf cls l: attrib sxs.exe -a -h -s del /s /q /f sxs.exe attrib autorun.inf -a -h -s del /s /q /f autorun.inf m: attrib sxs.exe -a -h -s del /s /q /f sxs.exe attrib autorun.inf -a -h -s del /s /q /f autorun.inf n: attrib sxs.exe -a -h -s del /s /q /f sxs.exe attrib autorun.inf -a -h -s del /s /q /f autorun.inf reg delete HKLM\Software\Microsoft\windows\CurrentVersion\explorer\Advanced\Folder\Hidden\SHOWALL /V CheckedValue /f reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL /v "CheckedValue" /t "REG_DWORD" /d "1" /f REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /V sxs.exe /f REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /V SVOHOST.exe /f cls echo 查杀完毕,请按任意键返回... pause>nul goto cls cls color 0a title NetEase@yahoo Mail Automatic Login Script Author:rs echo ╭═══════════╮ echo ┌ттттт┤ Function Options ├тттт┐ echo. │ ╰═══════════╯ │ echo. ├─────────┬────────────┤ echo. │ A. Login to 163 │ B. Delete 163 login records │ echo. ├─────────┼────────────┤ echo. │ c. Login to yahoo │ d. Delete yahoo login records │ echo. ├─────────┼────────────┤ echo. │ E. Author information (delete) │ F. Return to main menu │ echo. ├─────────┴────────────┤ echo. │ G. Exit program │ echo. └、、、、、、、、、、、、、、 ┘ echo. echo. set /p choice5=Please select (case-insensitive): IF not "%Choice5%"=="" SET Choice5=%Choice5:~0,1% if /i "%choice5%"=="a" goto 163 if /i "%choice5%"=="b" goto del163 if /i "%choice5%"=="c" goto yahoo if /i "%choice5%"=="d" goto delyahoo if /i "%choice5%"=="f" goto cls if /i "%choice5%"=="g" goto exit cls & echo Error (゚_゚)... The program cannot continue. Please press any key to return to continue. . . pause>nul & goto mail :163 cls title 163 Mail color 8c if exist d:\163x.txt (goto go1) else (goto stf163) :stf163 set /p username=Username (enter username directly): echo %username%>d:\163x.txt cls set /p password=Password: echo %password%>d:\password.txt attrib +h +s +r d:\163x.txt attrib +h +s +r d:\password.txt goto go1 :yahoo cls if exist d:\yahoox.txt (goto go2) else (goto stfyahoo) :stfyahoo set /p user=Username (e.g. xx@yahoo.xxx): echo %user%>d:\yahoox.txt cls set /p num=Password: echo %num%>d:\yahoopwd.txt attrib +h +s +r d:\yahoox.txt attrib +h +s +r d:\yahoopwd.txt goto go2 :go1 FOR /F "tokens=1*" %%b in (d:\163x.txt) do set username=%%b FOR /F "tokens=1*" %%c in (d:\password.txt) do set password=%%c start "163" "https://reg.163.com/logins.jsp?username=%username%&password=%password%&url=http://fm163.163.com/coremail/fcg/ntesdoor2" goto mail :go2 FOR /F "tokens=1*" %%b in (d:\163x.txt) do set user=%%b FOR /F "tokens=1*" %%c in (d:\password.txt) do set num=%%c start "yahoo mail login in progress......" "https://edit.bjs.yahoo.com/config/login?.intl=cn&.done=http%3A%2F%2Fcn.mail.yahoo.com%2Finset.html%3Frr%3D1052410730&.src=ym&.challenge=_1aBtmzHiKvGMaPRqlxkNXjeGOtV&login=%user%&passwd=%num%&submit=%B5%C7+%C2%BC" goto mail :del163 cls attrib -h -s -r d:\password.txt>nul attrib -h -s -r d:\163x.txt>nul del /q d:\163x.txt>nul del /q d:\password.txt>nul cls&echo Successfully deleted 163 login record...... ping -n 3 -w 1000 127.1>nul goto mail :delyahoo cls attrib -h -s -r d:\yahoox.txt>nul attrib -h -s -r d:\yahoopwd.txt>nul del /q d:\yahoox.txt>nul del /q d:\yahoopwd.txt>nul cls&echo Successfully deleted yahoo mail login record...... ping -n 3 -w 1000 127.1>nul goto mail :ip cls for /f "tokens=15" %%i in ('ipconfig ^| find /i "ip address"') do set ip=%%i echo %ip% echo Press any key to return...... pause>nul goto cls :xiufu @echo off title Network Fault Diagnosis Script (by:rs) mode con: cols=63 lines=25 color cf attrib -s -r -h d:\test.txt>nul&cls if exist d:\Previous Report.txt attrib -s -r -h d:\Previous Report.txt>nul del /q /s d:\Previous Report.txt>nul if exist D:\test.txt ren d:\test.txt Previous Report.txt>nul&attrib +h +s +r d:\Previous Report.txt>nul del /q /s d:\test.txt>nul cls :last cls set /p lasttime=Do you want to view the previous test report (1/2): if not "%lasttime%"=="" set lasttime=%lasttime:~0,1% if "%lasttime%"=="1" goto lasttime if "%lasttime%"=="2" goto begini goto last :lasttime cls attrib -s -r -h d:\Previous Report.txt>nul&type d:\Previous Report.txt echo Please press any key to start this test... pause>nul :begini cls echo Tip: The batch processing will automatically exit the dr.com client. echo. echo Strongly recommended: echo 1, First install the dr.com arp firewall, and manually disable the network card and then enable it again! echo 2, If it is still not normal, only then do the following test&ping -n 1 -w 1000 127.1>nul echo. pause :cho1 cls echo 1, Start test echo 2, Directly repair "network restricted" echo 3, Return to main menu set /p choice6=Choose (1/2): if not "%choice6%"=="" set choice6=%choice6:~0,1% if "%choice6%"=="1" goto test if "%choice6%"=="2" goto winso if "%choice6%"=="3" goto cls goto cho1 :test cls for /f "delims=: tokens=2" %%a in ('ipconfig/all^|find /i "IP Address"') do set ip=%%a for /f "delims=: tokens=2" %%b in ('ipconfig/all^|find /i "Default Gateway"') do set gateway=%%b for /f "delims=: tokens=2" %%c in ('ipconfig/all^|find /i "Subnet Mask"') do set mask=%%c for /f "delims=: tokens=2" %%d in ('ipconfig/all^|find /i "DNS Servers"') do set DNS=%%d ipconfig/flushdns>nul echo ip address:%ip% Subnet mask: %mask% echo gateway:%gateway% DNS : %DNS% echo. echo Tip: If the IP address and gateway address can be displayed correctly, there is no need to perform the following test pause :cho cls set /p choice=Do you want to start the test/return to the main menu (1/2): if not "%choice%"=="" set choice=%choice:~0,2% if "%choice%"=="1" goto bgn1 if "%choice%"=="2" goto cls goto cho :bgn1 cls echo 1, Loopback test ping -n 3 127.1.0.1>nul||echo Network card not working properly, please check network card!>d:\test.txt cls echo 2, Test network connectivity ping -n 3 -w 1000 127.1>nul for /f "delims=: tokens=2" %%d in ('ipconfig/all^|find /i "Default Gateway"') do set gate=%%d ping -n 2 %gate%>nul if %errorlevel%==1 (echo Connectivity test failed! Please make sure to access the network correctly!>>D:\test.txt) else ( echo Network connection normal!>>D:\test.txt) :auto cls echo 3, Set to automatic IP acquisition mode ping -n 3 -w 1000 127.1>nul netsh interface ip set address "Local Area Connection" dhcp>nul||echo Failed to enable automatic IP acquisition function! Or it has been started>>d:\test.txt netsh interface ip set dns "Local Area Connection" dhcp>nul||echo Failed to obtain DNS address! Please try to manually rewrite DNS!>>d:\test.txt cls echo 4, Try to obtain IP again ipconfig/release>nul||echo This operation cannot be completed.>>d:\test.txt ipconfig/renew>nul if %errorlevel%==1 ( echo Failed to obtain IP address temporarily!>>d:\test.txt) else (echo Congratulations, successfully obtained IP address again!&ping -n 4 -w 1000 127.1>nul) cls echo 4, Obtain DNS address and test whether DNS can resolve domain names normally ipconfig/flushdns>nul cls nslookup http://www.baidu.com/>nul if %errorlevel%==1 (echo DNS cannot resolve domain name normally>>d:\test.txt) else (echo DNS working normally!>>D:\test.txt) cls echo DNS address: %DNS% ping -n 3 -w 1000 127.1>nul cls echo All tests are completed, please view the test report in D:\test.txt.&ping -n 15 -w 1000 127.1>nul :jjj cls echo If it is "network restricted", please choose this step, otherwise please skip this step set /p nihao=Please choose (1/2): if not "%nihao%"=="" set nihao=%nihao:~0,1% if "%nihao%"=="1" goto winso if "%nihao%"=="2" goto jianyi goto jjj :winso cls netsh winsock reset&&ping -n 6 -w 1000 127.1>nul ping -n 3 -w 1000 127.1>nul :jianyi cls echo It is recommended to restart the computer! echo. set /p choice2=Log off/Restart/Retest/Return to main menu/Exit (1/2/3/4/5): if "%choice2%"=="" set choice2=%choice2:~0,1% if %choice2%==1 shutdown -l -t 5 if %choice2%==2 shutdown -r -t 8 if %choice2%==3 goto bgn1 if %choice2%==4 goto cls if %choice2%==5 goto exit goto jianyi :exit exit :logoff cls shutdown -r -t 10 exit :n goto cls :setip cls for /f "delims=: tokens=2" %%b in ('ipconfig/all^|find /i "Default Gateway"') do set gateway=%%b for /f "delims=: tokens=2" %%c in ('ipconfig/all^|find /i "Subnet Mask"') do set mask=%%c echo Default gateway: %gateway% echo. echo Subnet mask: %mask% echo. set /p ip=Enter manually set IP address (please make sure that the input IP is in the same network segment as the gateway): cls netsh interface ip set address "Local Area Connection" static %ip% 255.255.255.0&&echo Manually set IP successfully. ping -n 4 -w 1000 127.1>nul goto cls :dhcp cls netsh interface ip set address "Local Area Connection" dhcp&cls netsh interface ip set dns "Local Area Connection" dhcp&&echo Restore IP address setting successfully.&ping -n 5 -w 1000 127.1>nul goto cls :ipconf cls ipconfig/all&echo Press any key to return to the main menu...... pause>nul goto cls :exit exit :bgn cls color 9f echo Please select on which drive letter you want to create the encrypted folder, please select... echo 1, Drive D echo 2, Drive E echo 3, Drive F echo n, Return to main menu set /p choice1=Choose (1,2,3): IF not "%Choice1%"=="" SET Choice1=%Choice1:~0,1% if /i "%choice1%"=="1" echo d:\>d:\Path.txt&goto baoh if /i "%choice1%"=="2" echo e:\>d:\Path.txt&goto baoh if /i "%choice1%"=="3" echo f:\>d:\Path.txt&goto baoh if /i "%choice1%"=="n" echo f:\>d:\Path.txt&goto cls if not defined choice1 ( cls & echo Serious warning: Your operation is too crazy, the program cannot continue. Please press any key to return. . . pause>nul & cls & goto bgn ) :baoh [ Last edited by rs369007 on 2008-12-10 at 22:19 ] ``` |
|
| Floor2 rs369007 | Posted 2008-12-09 18:17 |
| 初级用户 Posts 131 Credits 147 | |
|
Clean system junk, and scan for sxs.exe, both from the network.
|
|
| Floor3 Helloworld | Posted 2008-12-09 18:32 |
| 新手上路 Posts 9 Credits 9 | |
| Floor4 HAT | Posted 2008-12-09 18:33 |
| 版主 Posts 5,017 Credits 9,023 | |
|
Q: How to add code tags to make it easier for others to copy?
A: http://www.cn-dos.net/forum/viewthread.php?tid=43735#pid304733 Reference: http://www.cn-dos.net/forum/faq.php?page=misc#1 |
|
| Floor5 ktv98 | Posted 2008-12-09 20:34 |
| 初级用户 Posts 81 Credits 112 | |
Originally posted by rs369007 at 2008-12-9 06:11 PM: |
|
| Floor6 holucan | Posted 2008-12-09 22:28 |
| 初级用户 Posts 25 Credits 26 | |
|
Yeah, I found brother rs's bat file again, haha, I'll take it. Thanks!
──────────────────── Hey, after running it, the interface really looks like ls... The characters are all jumbled together, hard to see clearly. [ Last edited by holucan on 2008-12-9 at 22:33 ] |
|
| Floor7 rs369007 | Posted 2008-12-09 22:52 |
| 初级用户 Posts 131 Credits 147 | |
|
@echo off
[ Last edited by rs369007 on 2008-12-9 at 22:58 ] |
|
| Floor8 holucan | Posted 2008-12-09 23:00 |
| 初级用户 Posts 25 Credits 26 | |
|
Received! Thank you! It's all right now. ;)
|
|
| Floor9 ktv98 | Posted 2008-12-10 17:59 |
| 初级用户 Posts 81 Credits 112 | |
| Floor10 HAT | Posted 2008-12-10 18:04 |
| 版主 Posts 5,017 Credits 9,023 | |
|
The first line has two extra code tags. It is suggested that the landlord delete them to avoid confusing new users.
|
|
| Floor11 pyjhhh | Posted 2008-12-10 23:37 |
| 初级用户 Posts 26 Credits 54 | |
|
Good
|
|
| Floor12 cnds | Posted 2009-07-10 08:10 |
| 初级用户 Posts 36 Credits 37 | |
|
Tested. by cnds on 2009-7-10 at 08:11
Tested, don't know what it is when opened, see the picture: Don't know how to insert pictures [ Last edited by cnds on 2009-7-10 at 08:11 ] |
|
| Floor13 radem | Posted 2009-07-10 14:53 |
| 高级用户 Posts 383 Credits 691 | |
| Floor14 woo88 | Posted 2009-11-17 18:26 |
| 初级用户 Posts 96 Credits 188 | |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |