Skip to content

Instantly share code, notes, and snippets.

@Zoddo
Zoddo / simplehttp.service
Last active June 27, 2020 18:10 — forked from funzoneq/simplehttp.service
A systemd file for a python SimpleHTTPServer with some hardening
# Based of https://gist.github.com/funzoneq/737cd5316e525c388d51877fb7f542de
[Unit]
Description=Job that runs the python SimpleHTTPServer daemon
Documentation=man:SimpleHTTPServer(1)
After=network.target
[Service]
Type=simple
AmbientCapabilities=CAP_NET_BIND_SERVICE
--- /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js 2020-06-30 13:36:05.000000000 +0200
+++ /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js-new 2020-07-12 12:43:34.704855306 +0200
@@ -450,6 +450,9 @@
},
checked_command: function(orig_cmd) {
+ orig_cmd();
+ return; // Neutralize the API request
+
Proxmox.Utils.API2Request(