Wargame 5

Questions? Stuck? post here....
Post Reply
User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Wargame 5

Post by Gogeta70 »

You got it folks. Wargame 5 is here. Technically, it's been finished for 4 days now, just forgot to post here heh. Anyway...

A friend of yours works for SOL Internet solutions. About 3 weeks ago, she was appointed a new boss, but they don't get along. Now, her boss is refusing her her pay check, so she's asked you to hack the her bosses account for her, and have her paycheck paid out.

To help you along, she grabbed a file that looked important from browsing her computer. Maybe it will help.

Code: Select all

<?PHP

function g7crypt($string, $offst)
{

$disp = "nd";
$cton = str_split("abcdefghijklmnopqrstuvwxyz0123456789");
$convntoc = NULL;
$string = strip_tags($string);
$string = stripslashes($string);
$string2 = $string;
$z = "d";
$y = "p";
$x = "s";
$w = "i";
$l = $z;
$z = $y;
$y = $w;
$w = $x;
${$disp} = "$l$y$w$z";

for($a = 0; $a < count($cton); $a++)
{
$string2 = str_replace($cton[$a], "", $string2);
}

if(!empty($string2))
{
die("Invalid Characters: $string2");
}

$split = str_split($string);
$conv = array();
if($offst === FALSE)
{
$disp = rand(5,30);
} else {
$disp = $offst;
}
for($a = 0; $a < count($split); $a++)
{
$key = array_search($split[$a], $cton);

$key = $key+${$nd};
if($key > 35)
  $key = $key-35;
$convntoc .= $cton[$key];

}

return $split[0].$convntoc;

}

?>

In this challenge you will be required to break an encryption, made by me. You may not brute force the website NO MATTER WHAT. For the solution, you will be given a code, AND you must give one of 2 things:

1. If you created a program or script to reverse the encryption, send it to us
2. If you hand-reversed the encryption, give a detailed description on how you did it.

When you finish the challenge, PM an administrator.

http://g70net.com/wargames/5

Edit: Forgot to give you guys some info to complete the challenge, lol.

Your friend's account is:

User: scamel
Pass: dpepr

The bosses user is: jsmoker
¯\_(ツ)_/¯ It works on my machine...

Post Reply