DaddyMeme Posted May 11, 2017 Share Posted May 11, 2017 (edited) Doing a project. Know nothing about PHP. I was sent this code, can anyone tell me what it says/means? $word = $_GET['w']; $hex =''; for ($i=0; $i<strlen($word); $i++){ $nw = ord($word[$i]); $hexCode = dechex($nw); $hex .= '0'.$hexCode; } for ($i=0;$i<strlen($hex);$i++){ $hexar =strval($hex); $hexar = str_split($hexar, 1); } for ($i=0;$i<strlen($hex);$i++){ $s = implode("s4",$hexar); $f = "b02lasakso2io89asnfa"; $a = str_rot13("abcdefghijklmnopqrstuvwxyz1234567890"). strtoupper(str_rot13("abcdefghijklmnopqrstuvwxyz1234567890")); $s = substr_replace ($s, $f , $i,$i); } return $s; } Edited May 11, 2017 by cyberRobot topic title changed (was Help?) Quote Link to comment https://forums.phpfreaks.com/topic/303912-what-does-this-code-saymean/ Share on other sites More sharing options...
benanamen Posted May 11, 2017 Share Posted May 11, 2017 It looks to be a sorry excuse for "encryption". Why would someone send you code that you dont know what it is and know nothing about Php? Quote Link to comment https://forums.phpfreaks.com/topic/303912-what-does-this-code-saymean/#findComment-1546429 Share on other sites More sharing options...
Jacques1 Posted May 11, 2017 Share Posted May 11, 2017 (edited) It's actually just gibberish. The author clearly doesn't understand PHP either. Whatever they've tried to do, they didn't even manage to implement a simple loop. Next time, choose a meaningful title. “Help” tells us exactly nothing, because everybody here wants help. Edited May 11, 2017 by Jacques1 Quote Link to comment https://forums.phpfreaks.com/topic/303912-what-does-this-code-saymean/#findComment-1546430 Share on other sites More sharing options...
requinix Posted May 11, 2017 Share Posted May 11, 2017 I'm inclined to think it's malicious - I wouldn't trust the rest of the code you received, the person who gave it to you, or even the community you were in. It's so horribly written that I'm not sure it hasn't underflowed into clever obfuscation. It is functional, strictly speaking, but clearly depends on some other code which hasn't been posted. Quote Link to comment https://forums.phpfreaks.com/topic/303912-what-does-this-code-saymean/#findComment-1546431 Share on other sites More sharing options...
DaddyMeme Posted May 11, 2017 Author Share Posted May 11, 2017 thanks Quote Link to comment https://forums.phpfreaks.com/topic/303912-what-does-this-code-saymean/#findComment-1546455 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.