DaddyMeme Posted May 11, 2017 Share Posted May 11, 2017 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; } Link to comment 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? Link to comment Share on other sites More sharing options...
Jacques1 Posted May 11, 2017 Share Posted May 11, 2017 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. Link to comment 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. Link to comment Share on other sites More sharing options...
DaddyMeme Posted May 11, 2017 Author Share Posted May 11, 2017 thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.