[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[系统相关] 绿坝-花季护航批处理绿色版(无需重启即装即用即删)



工业和信息化部下发《关于计算机预装绿色上网过滤软件的通知》,要求200971日之后,在我国销售的所有个人电脑出厂时预装一款名为“绿坝·花季护航”的绿色上网过滤软件。此次绿色上网过滤软件采购采用的是竞争性谈判,使用中央财政资金购买,成交价为4170万元一年使用权及相关服务采购。

关于绿坝的是非、功能、效果、及敏感话题我们一概不讨论。
关于绿坝-花季护航软件技术分析看如下链接
http://www.douban.com/group/topic/6900726/

本来是挑战绿坝-花季护航清理代码的,没想到赢政天下如此之快在6月12日已经完成此代码,现在就挑战将其绿化吧。

因为软件的特殊性不提供打包下载,请先安装后运行代码!!
LuBa安装.bat
  1. @echo off
  2. ver|find "98" >nul
  3. if errorlevel 0 if not errorlevel 1 exit
  4. md LuBaExec 2>nul
  5. if not exist .\LuBaExec\xstring.s2g (echo/因为软件的特殊性不提供打包下载,请先安装后运行代码!&pause&exit)
  6. if not exist LuBaList.txt (
  7.    cd.>LuBaList.txt
  8.    for /f "tokens=1,2 delims==," %%i in ('type .\LuBaExec\xstring.s2g') do (
  9.        if /i "%%i"=="File" (
  10.           SetLocal EnableDelayedExpansion
  11.           set "var=%%j"
  12.           set "var=!var:%%WinDir%%=%WinDir%!"
  13.           set "var=!var:%%WinSysDir%%=%WinDir%\System32!"
  14.           >>LuBaList.txt echo/!var!
  15.           EndLocal)
  16.    )
  17. )
  18. md %windir%\snap 2>nul
  19. md %windir%\scrsnap 2>nul
  20. md %windir%\HNCLIB 2>nul
  21. md %windir%\images 2>nul
  22. md %windir%\drivrs 2>nul
  23. md %windir%\log 2>nul
  24. md %windir%\system32\images 2>nul
  25. md %windir%\system32\sysdir 2>nul&<nul set /p =^>
  26. for /f "delims=" %%i in (LuBaList.txt) do (
  27.     if exist ".\LuBaExec\%%~nxi" (xcopy /a/r/h/y ".\LuBaExec\%%~nxi" "%%~dpi" >nul 2>nul&<nul set /p =^>)
  28. )
  29. cls
  30. goldlock.exe -i&<nul set /p =^>
  31. regsvr32.exe /s %windir%\MPSvcPS.dll&<nul set /p =^>
  32. MPSvcC.exe -installjh
  33. ver|find /i " 6.">nul&&(regedit /s .\LuBaExec\winvista.reg&&<nul set /p =^>)
  34. ver|find /i " 5.2">nul&&(regedit /s .\LuBaExec\winxpSpi.reg&&<nul set /p =^>)
  35. ver|find /i " 5.1">nul&&(regedit /s .\LuBaExec\winxpSpi.reg&&<nul set /p =^>)
  36. ver|find /i " 5.0">nul&&(regedit /s .\LuBaExec\win2kspi.reg&&<nul set /p =^>)
  37. hnceng.exe -install
  38. regsvr32.exe /s %windir%\hncengps.dll&<nul set /p =^>
  39. net start MsPowerSvc >nul 2>nul&<nul set /p =^>
  40. net start 280D4C48-4FA2-4274-ACEC-1582EFA5DA7D >nul 2>nul&<nul set /p =^>
  41. netsh firewall add allowedprogram %windir%\system32\xnet2.exe 绿坝花季护航  enable >nul 2>nul&<nul set /p =^>
  42. netsh firewall add allowedprogram %windir%\system32\XDaemon.exe  绿坝花季护航服务  enable >nul 2>nul&<nul set /p =^>
  43. call start "" Xdaemon.exe&<nul set /p =^>
  44. call start "" Msg %UserName% /Time:5 "          绿坝-花季护航已安装..."
复制代码
LuBa卸载.bat
  1. @echo off
  2. ver|find "98" >nul
  3. if errorlevel 0 if not errorlevel 1 exit
  4. md LuBaExec 2>nul
  5. if not exist %WinDir%\xstring.s2g (echo/因为软件的特殊性不提供打包下载,请先安装后运行代码!&pause&exit)
  6. if not exist LuBaList.txt (
  7.    cd.>LuBaList.txt
  8.    for /f "tokens=1,2 delims==," %%i in ('type %WinDir%\xstring.s2g') do (
  9.        if /i "%%i"=="File" (
  10.           SetLocal EnableDelayedExpansion
  11.           set "var=%%j"
  12.           set "var=!var:%%WinDir%%=%WinDir%!"
  13.           set "var=!var:%%WinSysDir%%=%WinDir%\System32!"
  14.           >>LuBaList.txt echo/!var!
  15.           EndLocal)
  16.    )
  17. )
  18. <nul set /p =^>
  19. if exist %windir%\MPSvcC.exe MPSvcC.exe -removejh
  20. <nul set /p =^>
  21. if exist %windir%\hnceng.exe hnceng.exe -remove
  22. taskkill /im XNet2.exe /f >nul 2>nul&<nul set /p =^>
  23. taskkill /im XDaemon.exe /f >nul 2>nul&<nul set /p =^>
  24. taskkill /im gn.exe /f >nul 2>nul&<nul set /p =^>
  25. regsvr32.exe /u /s %windir%\hncengps.dll&<nul set /p =^>
  26. regsvr32.exe /u /s %windir%\MPSvcPS.dll&<nul set /p =^>
  27. reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Xnet2" /f >nul 2>nul&<nul set /p =^>
  28. cls
  29. for /f "delims=" %%i in (LuBaList.txt) do (
  30.     if not exist ".\LuBaExec\%%~nxi" (if exist "%%i" xcopy /a/r/h/y "%%i" .\LuBaExec >nul)
  31.     if exist "%%i" del /a/f/q "%%i" >nul 2>nul&<nul set /p =^>
  32. )
  33. rd /q/s %windir%\snap 2>nul
  34. rd /q/s %windir%\scrsnap 2>nul
  35. rd /q/s %windir%\HNCLIB 2>nul
  36. rd /q/s %windir%\images 2>nul
  37. rd /q/s %windir%\drivrs 2>nul
  38. rd /q/s %windir%\log 2>nul
  39. rd %windir%\system32\images 2>nul
  40. rd %windir%\system32\sysdir 2>nul&<nul set /p =^>
  41. netsh firewall delete allowedprogram %windir%\system32\xnet2.exe >nul 2>nul&<nul set /p =^>
  42. netsh firewall delete allowedprogram %windir%\system32\XDaemon.exe >nul 2>nul&<nul set /p =^>
  43. call start "" Msg %UserName% /Time:5 "         绿坝-花季护航已卸载. . ."
复制代码

TOP

1

评分人数

    • fastslz: 代码来自赢政,测试有效PB + 5
(*^_^*)

TOP

代码测试有效(比我想象中更不堪一击)
结论:如此“绿坝”并不“霸”

TOP

残废绿坝其实很简单(自带移除参数能移除注册表项)
  1. MPSvcC.exe -removejh
  2. hnceng.exe -remove
复制代码


安装后关闭端口(降低隐私风险)
  1. netsh firewall delete allowedprogram %windir%\system32\xnet2.exe
  2. netsh firewall delete allowedprogram %windir%\system32\XDaemon.exe
复制代码

TOP

返回列表