Sunday, January 24, 2016

Deobfuscate/Decode Lua's loadstring/string.dump


View sample script here:
http://ideone.com/9SUlMR

2 comments:

  1. :gsub('.+', (function(a) _rcPkdZuxFWJf = a; end)); retour(fonction(c,...)local h;local r;local f;local o;local s;local a;local e=24915;local t=0;local n={};tandis que t<611 do t =t+1;tandis que t<0x1e6 et e%0x838<0x41c do t=t+1 e=(e+919)%18703 local d=t+e if(e%0x3f76)>=0x1fbb then e=(e *0x147)%0xb627 tant que t<0x268 et e%0x1874<0xc3a do t=t+1 e=(e-687)%15749 local d=t+e if(e%0x4788)<0x23c4 then e=(e- 0x275)%0x4440 local e=78647 sinon n[e]alors n[e]=0x1 s=" W6hwJSwttc-tSZJJYJZhsSffjJ6tZJa -1 faire si t>=4 alors si 5t then d=c[a[s]];goto ReKVbgpx; end l=a[j];::ReKVbgpx::else d=c[a[s]];end end else if 2>t then if t>-4 then if 1~=t then a=e;goto FxvozgPx ; end j=f;::FxvozgPx::else a=e;end else if t>2 then c=n;else s=h;end end end t=t+1 end break;end;else if(n[e [f]]<=n[e[s]])alors t=e[h];sinon t=t+1;fin;fin fin sinon si 16>c alors si 15~=c alors local e=e[ f]n[e]=n[e]()else if not n[e[f]]then t=t+1;else t=e[h];end;end else if 17<=c then if c ~=15 alors pour t=14,58 faire si c~=17 alors d[e[h]]=n[e[f]];break;end;local e=e[f]local f,t=u (n[e](n[e+1]))o=t+e-1 local t=0;pour e=e,o faire t=t+1;n[e]=f[t];end ;break;end;else local e=e[f]local f,t=u(n[e](n[e+1]))o=t+e-1 local t=0;pour e=e, o faire t=t+1;n[e]=f[t];fin ;t)si t alors local e=(n/2^(e-1))%2^((t-1)-(e-1)+1);retourne ee%1;sinon local e=2^( e-1);return(n%(e+e)>=e)and 1 ou 0;end;end;end;else renvoie e(1),e(4,h,f,n,e), e(5,h,f,n)end;end end else if 6>t then if 3t then do return h[n]end;else si 7=e)et 1 ou 0;end;end;end;else retourne e(1),e(4,h, f,n,e),e(5,h,f,n)end;end end else if 6>t then if 3t then do return h[n]end;else si 7=e)et 1 ou 0;end;end;end;else retourne e(1),e(4,h, f,n,e),e(5,h,f,n)end;end end else if 6>t then if 3t then do return h[n]end;else si 7t then if 3t then do return h[n]end;else si 7<t alors retourne n(t,nil,n);end sinon

    ReplyDelete