Nicolás Brailovsky


A modern blog

Just WTF

author Posted by: nico on date Jun 8th, 2010 | filed Filed under: WTF

Who the hell can create a monster like this one?

  1. CREATE PROC shutdown10
  2. AS
  3. EXEC xp_cmdshell ‘net send /domain:SQL_USERS ”SQL Server
  4. shutting down in 10 minutes. No more connections
  5. allowed.’, no_output
  6. EXEC xp_cmdshell ‘net pause sqlserver’
  7. WAITFOR DELAY ’00:05:00′
  8. EXEC xp_cmdshell ‘net send /domain: SQL_USERS ”SQL Server
  9. shutting down in 5 minutes.’, no_output
  10. WAITFOR DELAY ’00:04:00′
  11. EXEC xp_cmdshell ‘net send /domain:SQL_USERS ”SQL Server
  12. shutting down in 1 minute. Log off now.’, no_output
  13. WAITFOR DELAY ’00:01:00′
  14. EXEC xp_cmdshell ‘net stop sqlserver’, no_output


     Add A Comment

trackback Trackback URI | rsscomment Comments RSS