Last Updated: October 01, 2016
·
491
· wapmorgan

RemoteServer

RemoteServer

  • #openSsh(ip, user, [password])
  • #openTelnet(ip, user, password)
  • __construct(Connection $conn)
  • getUptime()
  • getSoftware()
  • getActiveUsers()
  • isFileExists()
  • getFileContents()
  • getCpuLoad()
  • getFreeMemory()
  • getAvailableStorage()
  • getLoad()
  • isProcessRunning()
  • countOpenPorts()
  • countOpenConnections()
  • countProcesses()
  • hasRootAccess()
  • reboot()
  • powerOff()
  • executeCommand(command, bool delayExecution) : Command

Command

  • getInput() : WriteableStream
  • getOutput() : ReadableStream
  • getErrors() : ReadableStream
  • isFinished()
  • interrupt(signal)
  • executionTime
  • resultCode

WriteableStream

  • writeLine(line)
  • write(string)

ReadableStream

  • readLine()
  • countLines()
  • isEnd()

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside