Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
php reverse challenge lvl easy
23-07-2013, 02:32 PM, (This post was last modified: 25-07-2013, 02:19 AM by firdaushatta.)
Post: #1
php reverse challenge lvl easy
Assalamualaikum rakan2 tbd, arini rase nak mesra2 pulak ngan korang so aku try wat simple2 je php function. korang try wat function untuk reverse function.

ni code die :

Code:
echo algo2($a);
    
    function algo2($v){
        $b = array();
        for($i = 0;$i < strlen($v); $i++){
            $b[] = ord($v[$i]);
        }
        
        $c = array();
        $d = array();
        
        for($i = 0;$i < sizeof($b); $i++){
            $temp = "";
            $str = (string) $b[$i];
            for($j = 0;$j < strlen($str);$j++ ){
                $d[] = algo1((int) $str[$j]);
            }
            $c[] = implode(',',$d);
            unset($d);
        }
        return base64_encode(str_rot13(implode('.',$c)));
    }
    
    function algo1($v){
        if(is_int($v)){
            switch($v){
                case 0:
                    return 0;
                break;
                case 1:
                    return 1;
                break;
                case 2:
                    return 2;
                break;
                default:
                    $tempa = 1;
                    $tempb = 2;
                    for($i = 2; $i < $v; $i++){
                        $tem = $tempb;
                        $tempb = $tempa + $tempb;
                        $tempa = $tem;
                    }
                break;
            }
            return $tempb;
        }
        return false;
    }

ni yg korang kene cari plaintext die.^^

Code:
MSwxLDU1LjgsMS41LDEzLjEsMSwxMy41NSwzNC4xLDAsMC41LDEzLjEsMCw1NS4xLDIsMS4zLDIuMSwxLDEzLjEsMCw1LjEsMCwxLjMsMi41NSwzNC4xLDAsMS4xLDEsOC4xLDEsMTMuMywyLjgsMzQuNSwx

jawapan boleh pm kat ak je k... =)

/* solver */

1. wcypierre
2. pers0nant
buah cempedak di luar pagar,
ambil galah tolong jolokkan,
saya budak baru belajar,
kalau salah tolong tunjukkan...
Reply
23-07-2013, 08:09 PM,
Post: #2
RE: php reverse challenge lvl easy
sorry eh nk bertanya, kau dh try buat function reverse sendiri dan work ke ? ;d
tenks
Reply
23-07-2013, 08:33 PM,
Post: #3
RE: php reverse challenge lvl easy
jap. kalau ko campur semua ascii code dlm satu variable tanpa delimeter. acaner nak bezakan? ke kena trial and error Rage 2



Sent from my GT-S7500 using Tapatalk 4 Beta
Reply
23-07-2013, 09:04 PM,
Post: #4
RE: php reverse challenge lvl easy
aku pun tengah fikir....... function i* tu troll ke OK
Reply
23-07-2013, 09:30 PM,
Post: #5
RE: php reverse challenge lvl easy
(23-07-2013, 08:33 PM)pers0nant Wrote: jap. kalau ko campur semua ascii code dlm satu variable tanpa delimeter. acaner nak bezakan? ke kena trial and error Rage 2

bila convert dari base 10 ke base 25, dia akan buang titik "." tuh ;d jadi susah nk dpt bezakan.. or mustahil nk decrypt..
Reply
23-07-2013, 11:30 PM,
Post: #6
RE: php reverse challenge lvl easy
sori geng lambat rep.. thanks pada yg da cube n ak nampak ad jugak yg x kene..ak da modify sikit function tu...kali nie ak da wat skali function decode Kih3 ...
buah cempedak di luar pagar,
ambil galah tolong jolokkan,
saya budak baru belajar,
kalau salah tolong tunjukkan...
Reply
24-07-2013, 01:48 AM,
Post: #7
RE: php reverse challenge lvl easy
check pm, harap harap betul OK
Reply
24-07-2013, 04:14 AM,
Post: #8
RE: php reverse challenge lvl easy
da ad sorg solver ;b
buah cempedak di luar pagar,
ambil galah tolong jolokkan,
saya budak baru belajar,
kalau salah tolong tunjukkan...
Reply
24-07-2013, 10:16 PM,
Post: #9
RE: php reverse challenge lvl easy
fibonacci sequence. nice~ ;d
Reply
24-07-2013, 10:54 PM, (This post was last modified: 25-07-2013, 12:15 AM by wcypierre.)
Post: #10
RE: php reverse challenge lvl easy
(24-07-2013, 10:16 PM)pers0nant Wrote: fibonacci sequence. nice~ ;d
aah. ;b

aku rasa yg ni kalo guna python/c/c++ lebih cepat sebab lebih precise
Reply
25-07-2013, 02:18 AM,
Post: #11
RE: php reverse challenge lvl easy
haah fibonacci...tp ak modify sikit sbb sequence asal macam x sesuai nak buat encryption...so no pertama ngan kedua ak set 1 ngan 2...so seterusnya bermula dari situ...huhu
buah cempedak di luar pagar,
ambil galah tolong jolokkan,
saya budak baru belajar,
kalau salah tolong tunjukkan...
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Challenge - Paan 0b0x3d 7 836 11-12-2013, 02:42 AM
Last Post: JohnWhite
  TBD Challenge #1, Menang RM100 suhz 99 15,014 14-11-2013, 01:43 AM
Last Post: RFC792
  Programming Challenge 1 - Membina Segi Tiga s3m00t 49 8,161 29-10-2013, 09:22 PM
Last Post: Cybercrookz
  [TBD Challenge] Data Forensic v0.0.0.0.0xXXXX1029939392 RFC792 24 2,630 06-07-2013, 07:12 PM
Last Post: RFC792
  Steganography Challenge suhz 35 2,763 04-07-2013, 01:18 PM
Last Post: Codeshift3r
  [TBD Challenge] Log Analysis Challenge #1 ak47suk1 15 1,489 01-07-2013, 11:00 PM
Last Post: shahril
  [PHP] Challenge Reverse This Function ! shahril 12 1,271 26-06-2013, 12:58 PM
Last Post: akif
  Firefly Challenge UnKn0wN 24 2,919 28-10-2012, 09:33 PM
Last Post: shadowmacx
  Wargames2012 Challenge Ahlspiess 26 4,753 21-07-2012, 06:19 PM
Last Post: kryp70
  Pijat challenge #1 pijat 5 1,252 20-06-2012, 11:05 PM
Last Post: kryp70

Forum Jump: