Skip to content

Instantly share code, notes, and snippets.

@MihailoJoksimovic
Created November 27, 2018 18:33
Show Gist options
  • Save MihailoJoksimovic/0e87d2861beef35befcb50592805fc43 to your computer and use it in GitHub Desktop.
Save MihailoJoksimovic/0e87d2861beef35befcb50592805fc43 to your computer and use it in GitHub Desktop.
<?php
// Run the script below and try doing anything in your MongoDB
$client = new \MongoDB\Client('mongodb://localhost');
$cmd = new \MongoDB\Driver\Command(['eval' => 'sleep(20000)']);
$client->getManager()->executeCommand('foobar', $cmd);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment