Skip to content

Instantly share code, notes, and snippets.

View dcambria's full-sized avatar

Cambría dcambria

  • Bureau IT
  • São Paulo
View GitHub Profile
@ChgoChad
ChgoChad / commands.php
Last active January 5, 2024 22:18 — forked from escopecz/commands.php
Script to run Mautic (https://mautic.org) commands from a URL.
<?php
if (!isset($_GET['ILoveMautic'])) {
echo 'The secret phrase is wrong.';
die;
}
$link = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$allowedTasks = array(
'cache:clear',
# -*- coding: utf-8 -*-
import subprocess
'''
NET OWNER 0.1v
Only works with OS X
run with sudo
'''