Skip to content

Instantly share code, notes, and snippets.

@lucasdinonolte
Created October 5, 2015 12:05
Show Gist options
  • Select an option

  • Save lucasdinonolte/2790c599ca0255de8241 to your computer and use it in GitHub Desktop.

Select an option

Save lucasdinonolte/2790c599ca0255de8241 to your computer and use it in GitHub Desktop.
PHP based Image Glitcher
<?php
header('Content-Type: image/jpeg');
$contents = file_get_contents($_GET['img']);
$mutations = $_GET['mutations'];
for($i = 0; $i < $mutations; $i++) {
$contents = substr_replace($contents, str_shuffle("asdw4t98wfh9p8w3th98w3tsetf9wgt98hgt98rzt98hwz"), rand(strlen($contents)/10, strlen($contents)), 0);
}
echo $contents;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment