Add emergency reverse shell
This commit is contained in:
parent
971c676efe
commit
fb3f2b4bd3
@ -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(':','#')
|
||||
|
Loading…
Reference in New Issue
Block a user