Jump to content
oldcoyothe

URL uncover

Recommended Posts

Salut!

Stie cineva un script de Visual Basic 6 capabil sa converteasca "short URL" in adresa reala?

De exemplu:

http://adf.ly/S6kTw are adresa completa http://2023d176.linkbucks.com

Va multumesc!

Bucata din pagina in care se seteaza proprietatile adresei curente este urmatoarea:


<script type="text/javascript">
var at = 1;
var log_token = 'f08f44a043134f94f32d5ca6078d34a6';
var log_hash = '61a2ff42bf91ccc290728399a11e789e';
var waitmsg = 'seconds';
var zzz = 'http://adf.ly/skip.php';
var ysmm = 'Z=j=BQobdvHNRmwLOzit82vYM1jJA2yaMu2lQGxbNuzY';
var easyUrl = 'false';
var smk = 'Z2jEAG4NZzmQYG0ON3GAEjwNNhDNMWxNMkzJRzmMOmTR';
var uid = '263505';
if(easyUrl){
var eu = 'Z=j=BQobdvHNRmwLOzit82vYM1jJA2yaMu2lQGxbNuzY';
}else{
var eu = 'false';
}
var abb = '0';


var d = 61866
</script>

Dupa cum ai observat si tu, cele doua string-uri codate in base64 se decodeaza binary. Partea magica pe care adf.ly o executa sa decodeze url-ul se gaseste insa aici: http://cdn.adf.ly/static/js/view24.js

Fisierul este bineinteles frumos obfuscat, desi poti vedea ca se foloseste de un dictionar din care compune instructiunile, dupa care le evalueaza. Nu te speria, cea mai mare bucata din cod este de-obfuscatorul.

Ai aici o versiune frumos aranjata a codului: hastebin

Mai departe e drumul tau. Trebuie sa stai sa studiezi codul, sa pui breakpoint-uri peste breakponit-uri si sa te dai cu capul de perete singur. Daca vrei o incurajare, sa stii ca multa lume a facut asta, si algoritmul de la adf.ly nu e mai dificil decat cel de la JsLinux, care a fost deofuscated de un temerar ca tine (https://github.com/levskaya/jslinux-deobfuscated)

Bafta!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...