diff options
| author | 2019-10-18 15:18:26 +0100 | |
|---|---|---|
| committer | 2019-10-18 15:18:46 +0100 | |
| commit | 40a84060547602275e307801cfb383a015158eee (patch) | |
| tree | 420aa9b7ef115ff1c7db03ce88c8055f7644d417 /modules | |
| parent | major security fix: adding api keys should be admin-only (diff) | |
| signature | ||
put a permission restriction on !tcpup - it could be abused for port scanning
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/isup.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/isup.py b/modules/isup.py index edf22b8b..761853b9 100644 --- a/modules/isup.py +++ b/modules/isup.py @@ -32,6 +32,7 @@ class Module(ModuleManager.BaseModule): @utils.kwarg("min_args", 1) @utils.kwarg("help", "Check if a given hostname:port is up or not") @utils.kwarg("usage", "<hostname>[:port]") + @utils.kwarg("permission", "tcpup") def tcpup(self, event): hostname, _, port = event["args_split"][0].partition(":") port = utils.parse.try_int(port or "80") |
