Railsbin – The vulnerable pastebin service!

User:

Title: Lottery

Content:

<?php
define('SALT', microtime(true));
$input = [
	'Hyperwichtel' => '703,10',
	'gizmore' => '31337',
];
$output = array_map(function($dieZahl) {
	return md5($dieZahl . SALT);
}, $input);
asort($output);
foreach ($output as $winner => $hash) {
	die("Der Gewinner ist {$winner}");
}

Edit | Back