Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [JavaScript][PHP]Odkodowanie ciągu znaków
--Marcel--
post
Post #1





Goście







  1. <script type="text/javascript">document.write("\x3c\x6f\x62\x6a\x65\x63\x74\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x32\x38\x2
    2\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x34\x31\x39\x22\x3e\x3c\x70\x61\x72\x61\x6d
    \x20\x6e\x61\x6d\x65\x3d\x22\x6d\x6f\x76\x69\x65\x22\x20\x76\x71\x6c\x75\x65\x3d\
    x22\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x73\x74\x61\x74\x69\x63\x2e\x6d\x65\x
    67\x61\x76\x69\x64\x65\x6f\x2e\x63\x6f\x6d\x2f\x6d\x76\x5f\x70\x6c\x61\x79\x65\x7
    2\x2e\x73\x77\x66\x3f\x76\x3d\x57\x39\x46\x48\x43\x4f\x4e\x37\x26\x69\x6d\x61\x67
    \x65\x3d\x68\x74\x74\x70\x3a\x2f\x2f\x61\x6c\x74\x73\x74\x61\x74\x69\x63\x2e\x65\
    x2d\x6b\x69\x6e\x6f\x2e\x74\x76\x2f\x73\x74\x61\x74\x69\x63\x2f\x69\x6d\x67\x2f\x
    70\x6c\x61\x79\x65\x72\x5f\x62\x67\x2e\x70\x6e\x67\x22\x3e\x3c\x2f\x70\x61\x72\x6
    1\x6d\x3e\x3c\x70\x61\x72\x61\x6d\x20\x6e\x61\x6d\x65\x3d\x22\x61\x6c\x6c\x6f\x77
    \x46\x75\x6c\x6c\x53\x63\x72\x65\x65\x6e\x22\x20\x76\x61\x6c\x75\x65\x3d\x22\x74\
    x72\x75\x65\x22\x3e\x3c\x2f\x70\x61\x72\x61\x6d\x3e\x3c\x65\x6d\x62\x65\x64\x20\x
    73\x72\x63\x3d\x22\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x73\x74\x61\x74\x69\x6
    3\x2e\x6d\x65\x67\x61\x76\x69\x64\x65\x6f\x2e\x63\x6f\x6d\x2f\x6d\x76\x5f\x70\x6c
    \x61\x79\x65\x72\x2e\x73\x77\x66\x3f\x76\x3d\x57\x39\x46\x48\x43\x4f\x4e\x37\x26\
    x69\x6d\x61\x67\x65\x3d\x68\x74\x74\x70\x3a\x2f\x2f\x61\x6c\x74\x73\x74\x61\x74\x
    39\x63\x2e\x65\x2d\x6b\x69\x6e\x6f\x2e\x74\x76\x2f\x73\x74\x61\x74\x69\x63\x2f\x6
    9\x6d\x67\x2f\x70\x6c\x61\x79\x65\x72\x5f\x62\x67\x2e\x70\x6e\x67\x22\x20\x74\x79
    \x70\x65\x3d\x22\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x78\x2d\x73\x68\
    x6f\x63\x6b\x77\x61\x76\x65\x2d\x66\x6c\x61\x73\x68\x22\x20\x61\x6c\x6c\x6f\x77\x
    66\x75\x6c\x6c\x73\x63\x72\x65\x65\x6e\x3d\x22\x74\x72\x75\x65\x22\x20\x77\x69\x6
    4\x74\x68\x3d\x22\x36\x32\x38\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x34\x31\x39
    \x22\x3e\x3c\x2f\x65\x6d\x62\x65\x64\x3e\x3c\x2f\x6f\x62\x6a\x65\x63\x74\x3e");</script>



Myślałem, że to base64_encode, ale chyna nie.
W takim razie co to za kod i jak to rozkodować ?
Jeli teoretycznie się nie da (pomijając jakieś tęczowe tablice itp) to jak przeglądark to dekoduje ?
Go to the top of the page
+Quote Post
ayeo
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 1 202
Pomógł: 117
Dołączył: 13.04.2007
Skąd: 127.0.0.1

Ostrzeżenie: (0%)
-----


Powinno pomóc http://farhadi.ir/downloads/hex.js
Go to the top of the page
+Quote Post
zegarek84
post
Post #3





Grupa: Zarejestrowani
Postów: 1 332
Pomógł: 294
Dołączył: 12.10.2008
Skąd: Olkusz

Ostrzeżenie: (0%)
-----


Cytat(-Marcel- @ 13.05.2011, 03:24:53 ) *
Myślałem, że to base64_encode, ale chyna nie.
W takim razie co to za kod i jak to rozkodować ?

najprościej jest zastąpić funkcję document.write przez zwykły alert (wyświetli alert z rozkodowanym ciągiem) lub w innych przypadkach przez console.log (wyświetli rozkodowany tekst w konsoli - ale coś wywaliło mi tym razem błąd w firebugu)

rozkodowana treść to kod html:
  1. <object width="628" height="419"><param name="movie" vqlue="http://wwwstatic.megavideo.com/mv_player.swf?v=W9FHCON7&image=http://altstatic.e-kino.tv/static/img/player_bg.png"></param><param name="allowFullScreen" value="true"></param><embed src="http://wwwstatic.megavideo.com/mv_player.swf?v=W9FHCON7&image=http://altstat9c.e-kino.tv/static/img/player_bg.png" type="application/x-shockwave-flash" allowfullscreen="true" width="628" height="419"></embed></object>

Go to the top of the page
+Quote Post
--Marcel--
post
Post #4





Goście







Wielkie dzięki.
Właśnie o to chodziło!
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 25.08.2025 - 01:58