egz Posted November 25, 2006 Share Posted November 25, 2006 Hi, I need some help to find out what the "iamahacker" sting at bottom, was at the start, before rot13 and such[CODE]<?PHP $z = $_POST['pw']; $x = str_rot13($z); $y = preg_split(\"//\", $x, -1, PREG_SPLIT_NO_EMPTY); $y = implode(\".\", $y); $a = explode(\".\", $y); $a = array_reverse($a); $a = implode(\"\", $a); if(isset($_POST['submit']) && $a == \"iamahacker\") { header(\"location: ?page=level23&pw=$z\"); } ?>[/CODE] Quote Link to comment https://forums.phpfreaks.com/topic/28383-help-to-reverse/ Share on other sites More sharing options...
Ninjakreborn Posted November 25, 2006 Share Posted November 25, 2006 what are you talking about? I couldn't understand the post. Quote Link to comment https://forums.phpfreaks.com/topic/28383-help-to-reverse/#findComment-129852 Share on other sites More sharing options...
egz Posted November 25, 2006 Author Share Posted November 25, 2006 I am a noob at php :P , the "iamahacker", what would that end up as, if you sendt it throught the script in reverse order ..? Quote Link to comment https://forums.phpfreaks.com/topic/28383-help-to-reverse/#findComment-129855 Share on other sites More sharing options...
Ninjakreborn Posted November 25, 2006 Share Posted November 25, 2006 pass that by me one more time Quote Link to comment https://forums.phpfreaks.com/topic/28383-help-to-reverse/#findComment-129857 Share on other sites More sharing options...
egz Posted November 25, 2006 Author Share Posted November 25, 2006 ookay, since i suck at explaining..what does the script do ? Quote Link to comment https://forums.phpfreaks.com/topic/28383-help-to-reverse/#findComment-129858 Share on other sites More sharing options...
Nicklas Posted November 25, 2006 Share Posted November 25, 2006 I dont know what you are talking about either. If you wanna "decode" a str_rot13() string, just use the function on the string again.ex:[CODE]<?php$string = "iamahacker";echo "<p>$string</p>"; // Original string...$string = str_rot13($string); // ROT13 encode the stringecho "<p>$string</p>";$string = str_rot13($string); // ROT13 "decode" the stringecho "<p>$string</p>";?>[/CODE] Quote Link to comment https://forums.phpfreaks.com/topic/28383-help-to-reverse/#findComment-129860 Share on other sites More sharing options...
egz Posted November 25, 2006 Author Share Posted November 25, 2006 What word will become "iamahacker" when its runned through the script ? Quote Link to comment https://forums.phpfreaks.com/topic/28383-help-to-reverse/#findComment-129862 Share on other sites More sharing options...
Nicklas Posted November 25, 2006 Share Posted November 25, 2006 try the script I posted and you´ll see... Quote Link to comment https://forums.phpfreaks.com/topic/28383-help-to-reverse/#findComment-129864 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.