1234e35346456754652

security

May 10th, 2026 (edited)
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | Cybersecurity | 0 0
  1. @echo off
  2. setlocal enabledelayedexpansion
  3.  
  4. :: Admin check
  5. net session >nul 2>&1
  6. if %errorLevel% neq 0 (
  7. echo ERROR: Run as Administrator!
  8. pause
  9. exit
  10. )
  11.  
  12. :monitor
  13. set "alert="
  14. :: List of dangerous processes
  15. for %%p in (wscript.exe cscript.exe certutil.exe mshta.exe vssadmin.exe bitsadmin.exe) do (
  16. tasklist /nh /fi "imagename eq %%p" 2>nul | findstr /i "%%p" >nul && (
  17. echo [%time%] !!! CRITICAL THREAT DETECTED: %%p !!!
  18. taskkill /f /im %%p >nul 2>&1
  19. set "alert=1"
  20. )
  21. )
  22.  
  23. if defined alert (
  24. echo [%time%] EMERGENCY: Executing full network isolation...
  25.  
  26. :: All possible ipconfig reset commands
  27. ipconfig /flushdns
  28. ipconfig /release
  29. ipconfig /release6
  30. ipconfig /registerdns
  31.  
  32. echo [%time%] Network ISOLATED. System protected.
  33. echo Press any key to reconnect...
  34. pause >nul
  35.  
  36. echo [%time%] Reconnecting...
  37. ipconfig /renew >nul 2>&1
  38. ipconfig /renew6 >nul 2>&1
  39. )
  40.  
  41. :: Fast scan loop
  42. goto monitor
  43.  
Tags: security
Advertisement
Add Comment
Please, Sign In to add comment