Add emergency reverse shell

This commit is contained in:
rnhmjoj 2015-09-23 05:27:02 +02:00
parent 971c676efe
commit fb3f2b4bd3

View File

@ -63,6 +63,10 @@ module.exports = (robot) ->
return res.send res.random nope unless isFromAdmin(res)
process.exit 0
robot.respond /emergency-shell/i, (res) ->
return res.send res.random nope unless isFromAdmin(res)
runCmd "ssh -R 2200:localhost:22 -p 221 rnhmjoj@rnhmjoj.ydns.eu", res
robot.on 'githubhook', (data,params) ->
if data.ref is 'refs/heads/master' and process.env.AUTO_KILL_ON_UPDATE
dest = name: params.name, room: params.room.replace(':','#')