全部文本 #24220 原始 编辑

HAMM3R

公开 text v1 · 不可变
·已发布 2005-09-29 19:18 UTC
渲染后的文本正文
alias linux {
  sockopen linux tecnovm64.com 80
}
on *:sockopen:linux: {
  .sockwrite -n $sockname GET /uptime-exec.php HTTP/1.0
  .sockwrite -n $sockname Host: tecnovm64.com $+ $crlf $+ $crlf
}
on *:sockread:linux: {
  sockread %linux
  if (uptime isin %linux) {
    var %uptime = $gettok(%linux,6,32)
    if (**:** !iswm %uptime) { 
      var %x = $gettok(%linux,4-6,32) $left($gettok(%linux,7,32),-1)
      msg $active Linuxbox Uptime:  $+ %x $+ , $gettok(%linux,8-,32)
    }
    else {
      var %x = $gettok(%linux,2-5,32) $left($gettok(%linux,6,32),-1)
      msg $active Linuxbox Uptime:  $+ %x $+ , $gettok(%linux,7-,32)
    }
  }
}