Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PHP] ReverseMe #2
07-07-2013, 10:46 PM, (This post was last modified: 15-07-2013, 05:25 PM by pers0nant.)
Post: #1
[PHP] ReverseMe #2
ReverseMe challenge kembali untuk sekon time Troll 2

rules still cam dulu. buat decrypt function pastu anto kat aku. tp memandangkan TBDian banyak yang berdaya saing ;d simplest code akan dideclare as winner.

encrypt function :

PHP Code:
function encrypt($s) {

    
$a range(chr(65), chr(90)); 
    
$b range(chr(97), chr(122)); 
    
$c array_merge($a$brange(09));
    
$d ''$e '';
    
    for(
$f 0$f strlen($s); $f++) {
    
        if(
ctype_alpha($s[$f])) $s[$f] = (97 <= ord($s[$f]) ? $b[(ord($s[$f]) - 58) % 26] : $a[(ord($s[$f]) - 26) % 26]);
    
    }
    
    for(
$g 0$g strlen($s); $g++) {
    
        
$h array_search($s[$g], $c);
    
        for(
$i ='';$h 1;) {
        
            
$j floor($h 2); $i = ($h $j 2).$i$h $j;
            
        }
    
        
$d .= str_pad(($h 2).$i6"0"STR_PAD_LEFT);
    
    }
    
    foreach(
str_split($d8) as $j) {
    
        
$k strrev($j);
        
        for(
$l ''$m 0$m strlen($k); $m++) {
        
            
$l += $k[$m] * pow(2$m);
        
        }
    
        
$e .= chr($l);
    
    }
    
    
$n "$b[20]$b[17]$b[11]$b[4]$b[13]$b[2]$b[14]$b[3]$b[4]";
    
    return 
$n($e);




encrypted string:

Code:
%12%B8%ABy%FA%D9%AC%FA%F2%CA%B6%B6


code ni banyak junk je. if u know what i mean ;b kalau korang tau aper korang buat. celen ni easy jer


@fatah
PHP Code:
function decrypt($s){

    
$c array_merge(range('A','Z'), range('a','z'), range(09));

    
$e $d "";

    foreach(
str_split(urldecode($s)) as $i$d .= str_pad(decbin(ord($i)), 8'0'STR_PAD_LEFT);

    foreach(
str_split($d6) as $i$e .= $c[bindec($i)];

    return 
str_rot13($e);
    


@shahril
PHP Code:
function decrypt($a){

    
$z '';
    
$y '';
    
$x '';
    
$c array_combine(range('39''51'),range('a''m')) + 
         
array_combine(range('26''38'), range('n''z')) + 
         
array_combine(range('13''25'), range('A''M')) + 
         
array_combine(range('0''12'), range('N''Z')) + 
         
array_combine(range('52''61'), range(09));
    
    foreach (
str_split(urldecode($a)) as $b) {
    
        
$y strval(base_convert(ord($b), 102));
        
        if(
strlen($y) > || strlen($y) != 8$y str_pad($y8'0'STR_PAD_LEFT);
        
        
$z .= $y;
        
    }
    
    foreach(
str_split($z6) as $g) {
    
        foreach(
$c as $h => $k) {
        
            if(
$h == bindec($g)) $x .= $k;
            
        }
        
    }
    
    return 
$x;
    


@syahmiazhar
PHP Code:
function decrypt($enc){

    
$a1 range(chr(78), chr(90)); 
    
$a2 range(chr(65), chr(77));
    
$b1 range(chr(110), chr(122)); 
    
$b2 range(chr(97), chr(109));
    
$c array_merge($a1$a2$b1$b2range(09));
    
$e ''
    
$u '';
    
    
$dec urldecode($enc);
    
    
// ERROR: Must recalculate last bit
    
    
for($i 0$i strlen($dec); $i++) $e .= str_pad(decbin(ord($dec[$i])), 8'0'STR_PAD_LEFT);
    
    foreach(
str_split($e6) as $j$u .= $c[bindec($j)];
    
    return 
$u;
    


NOTE :

celen ni sebenarnya aku nak tgk berapa org tau algorithm disebalik simplified php command. ex: str_rot13 & base64_decode/encode. so kudos to fatah sebab berjaya pecahkan misteri str_rot13 and anto code paling simple boss

btw, ni decrypt function aku ;d

PHP Code:
function decrypt($str) {

    return 
str_rot13(base64_encode(urldecode($str)));


Reply
11-07-2013, 11:23 AM,
Post: #2
RE: [PHP] ReverseMe #2
xdak org nak join ka? bummer OK

Sent from my GT-S7500 using Tapatalk 4 Beta
Reply
11-07-2013, 12:57 PM, (This post was last modified: 11-07-2013, 01:26 PM by fatah.)
Post: #3
RE: [PHP] ReverseMe #2
baru check tengok ada bump. ana cuba.
̿ ̿ ̿̿'̿̿\̵͇̿̿\=(•̪●)=/̵͇̿̿/'̿̿ ̿ ̿ ̿ - انا کڤيتݢولوڠ
http://fatah.afraid.org/
[Image: 763440762.png]
Reply
11-07-2013, 01:07 PM, (This post was last modified: 11-07-2013, 01:12 PM by pers0nant.)
Post: #4
RE: [PHP] ReverseMe #2
secret pliss Rage 2
Reply
11-07-2013, 02:59 PM, (This post was last modified: 11-07-2013, 03:49 PM by fatah.)
Post: #5
RE: [PHP] ReverseMe #2
agak susah kalau reverse encrypt direct, Sad

[Image: GkO0A9J.png]
̿ ̿ ̿̿'̿̿\̵͇̿̿\=(•̪●)=/̵͇̿̿/'̿̿ ̿ ̿ ̿ - انا کڤيتݢولوڠ
http://fatah.afraid.org/
[Image: 763440762.png]
Reply
11-07-2013, 04:40 PM,
Post: #6
RE: [PHP] ReverseMe #2
fatah dah solve. siapa boleh wat lg pendek ;d
Reply
11-07-2013, 05:56 PM,
Post: #7
RE: [PHP] ReverseMe #2
[Image: mu7CkTS.png]
Reply
11-07-2013, 06:03 PM,
Post: #8
RE: [PHP] ReverseMe #2
wait ha... baru nak join...
Reply
11-07-2013, 08:18 PM, (This post was last modified: 11-07-2013, 08:22 PM by pers0nant.)
Post: #9
RE: [PHP] ReverseMe #2
(11-07-2013, 06:03 PM)syahmiazhar Wrote: wait ha... baru nak join...

ok. aku tunggu jawapan ;d

(11-07-2013, 05:56 PM)shahril Wrote: [Image: mu7CkTS.png]

code bajet gempak output binary Fuck That Shit
Reply
11-07-2013, 08:59 PM, (This post was last modified: 11-07-2013, 09:03 PM by shahril.)
Post: #10
RE: [PHP] ReverseMe #2
(11-07-2013, 08:18 PM)pers0nant Wrote: code bajet gempak output binary Fuck That Shit

Fuck That Shit baru nmpak lawa sikit
Reply
12-07-2013, 09:34 PM,
Post: #11
RE: [PHP] ReverseMe #2
(11-07-2013, 08:59 PM)shahril Wrote: Fuck That Shit baru nmpak lawa sikit

lawa tp panjang Fuck That Shit
Reply
12-07-2013, 09:36 PM, (This post was last modified: 12-07-2013, 09:37 PM by shahril.)
Post: #12
RE: [PHP] ReverseMe #2
(12-07-2013, 09:34 PM)pers0nant Wrote:
(11-07-2013, 08:59 PM)shahril Wrote: Fuck That Shit baru nmpak lawa sikit

lawa tp panjang Fuck That Shit

ceh ;d aku x dpt terima lagi kenyataan solution pendek camtu je, fаk ROFL
Reply
12-07-2013, 09:38 PM,
Post: #13
RE: [PHP] ReverseMe #2
jangan mencarut bulan pose. sila terima kenyataan pliss ;d
Reply
12-07-2013, 11:13 PM,
Post: #14
RE: [PHP] ReverseMe #2
Settle, boleh tahan susah... huhu
Reply
12-07-2013, 11:14 PM,
Post: #15
RE: [PHP] ReverseMe #2
(12-07-2013, 11:13 PM)syahmiazhar Wrote: Settle, boleh tahan susah... huhu

anto decrypt function pliss
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [PHP] ReverseMe #3 pers0nant 20 1,402 17-01-2014, 03:57 AM
Last Post: pers0nant
  [PHP] ReverseMe pers0nant 46 2,954 04-07-2013, 11:02 AM
Last Post: fatah

Forum Jump: