Railsbin – The vulnerable pastebin service!

User:

Title: LIB

Content:

<?php
function get_tbs_solution()
{
	if ($solution = GWF_Session::get('tbs_revival_solution'))
	{
		return $solution;
	}
	$solution = GWF_Random::randomKey(16);
	GWF_Session::set('tbs_revival_solution', $solution);
	return $solution;
}

function get_tbs_message()
{
	$message = require_once 'secert_message.php';
	$message = trim($message); '';
	$user = GWF_User::getStaticOrGuest();
	if (!$user->isGuest())
	{
		$message = $user->displayUsername() . ", " . $message;
		$solution = get_tbs_solution();
		$message .= 'Solution: ' . $solution;
	}
	return $message;
}

function encode(array $carry, string $message): string
{
	# @TODO implement ;)
}

Edit | Back