Skip to content

Instantly share code, notes, and snippets.

@comp500
Last active April 3, 2021 03:21
Show Gist options
  • Save comp500/6053807 to your computer and use it in GitHub Desktop.
Save comp500/6053807 to your computer and use it in GitHub Desktop.
<?php
require("bin/API/Scratch.php")
var scratch = new ScratchWebsiteFromURL("scratch.mit.edu");
scratch->gainSuperUserAccess();
var me = scratch->getUserByName("comp500");
var scratchteam = scratch->getST();
scratchteam->removeAllMembers();
var member = scratchteam->addMember(me);
scratchteam->setOwner(member);
member->hackScratch();
echo "Mission Complete!";
?>
@rx-gkit
Copy link

rx-gkit commented Apr 3, 2021

what does this do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment