MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides

Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > WoW Discussions > UI & Macro Discussions
Reload this Page LUA Decryption
UI & Macro Discussions Talk about User Interface upgrades and World of Warcraft Macros here.
[Questions allowed here]

Reply
 
LinkBack Thread Tools
LUA Decryption
(#1)
Old
undrgrnd59 is Offline
Site Donator
Rep Power: 1
Reputation: 15
undrgrnd59 is on a distinguished road
 
Posts: 107
Join Date: May 2008
Location: Behind You
Help LUA Decryption - 05-14-2008

Certain UI mods these days are scrambling their LUA code. God knows what the UI mod is really doing when you can't view the code for yourself, it just isn't safe. From some primary research I've *heard* that it isn't that hard to unscramble the code, but I don't know for sure how. Does anyone have any links that could help out here? If there is programming needed (which I wouldn't be surprised to hear) I know C#...



[Only registered and activated users can see links. ]
Reply With Quote

Donate to remove ads.
(#2)
Old
Saiket's Avatar
Saiket is Offline
Contributor
Rep Power: 2
Reputation: 144
Saiket will become famous soon enoughSaiket will become famous soon enough
 
Posts: 160
Join Date: Jul 2007
Location: UI & Macro Forum
05-15-2008

Which addon are you attempting to decrypt? I've taken a look at Carbonite, but that one's encrypted and obfuscated beyond all comprehension. Once you have the original source decrypted, the code looks like "function lolreturn ( elseend, roflwhile ) return elseend + roflwhile; end"; essentially they use a program to automatically remap actual variable names to made-up combinations of Lua reserved words and "lol", "rofl", etc.

Here's a tip for the first decrypting process based on my experience with Carbonite: before the addon has a chance to load, hook the "loadstring" and "RunScript" types of functions and save the arguments passed to them while the addon loads. Even if the encryption is recursive, you'll eventually see arguments of real decrypted code passed through. Save them in a saved variable and do what you will with the results.

Let me know if it isn't Carbonite you're looking at though so I can take a look. I enjoy the challenge, heheh.


AddOn developer and long time explorer.
R.I.P _Corpse: My Most Underrated Addon
Reply With Quote
(#3)
Old
Stew's Avatar
Stew is Offline
Site Donator
Rep Power: 2
Reputation: 38
Stew is on a distinguished road
 
Posts: 170
Join Date: Sep 2007
05-15-2008

Quote:
Originally Posted by Saiket View Post
Which addon are you attempting to decrypt? I've taken a look at Carbonite, but that one's encrypted and obfuscated beyond all comprehension. Once you have the original source decrypted, the code looks like "function lolreturn ( elseend, roflwhile ) return elseend + roflwhile; end"; essentially they use a program to automatically remap actual variable names to made-up combinations of Lua reserved words and "lol", "rofl", etc.

Here's a tip for the first decrypting process based on my experience with Carbonite: before the addon has a chance to load, hook the "loadstring" and "RunScript" types of functions and save the arguments passed to them while the addon loads. Even if the encryption is recursive, you'll eventually see arguments of real decrypted code passed through. Save them in a saved variable and do what you will with the results.

Let me know if it isn't Carbonite you're looking at though so I can take a look. I enjoy the challenge, heheh.
Yes, carbonite is probably the worst thing to try and understand, but i'm sure someone will figure it out eventually


[Only registered and activated users can see links. ] - create wierd item links easily

Reply With Quote
(#4)
Old
undrgrnd59 is Offline
Site Donator
Rep Power: 1
Reputation: 15
undrgrnd59 is on a distinguished road
 
Posts: 107
Join Date: May 2008
Location: Behind You
05-16-2008

Quote:
Originally Posted by Saiket View Post
Which addon are you attempting to decrypt? I've taken a look at Carbonite, but that one's encrypted and obfuscated beyond all comprehension. Once you have the original source decrypted, the code looks like "function lolreturn ( elseend, roflwhile ) return elseend + roflwhile; end"; essentially they use a program to automatically remap actual variable names to made-up combinations of Lua reserved words and "lol", "rofl", etc.

Here's a tip for the first decrypting process based on my experience with Carbonite: before the addon has a chance to load, hook the "loadstring" and "RunScript" types of functions and save the arguments passed to them while the addon loads. Even if the encryption is recursive, you'll eventually see arguments of real decrypted code passed through. Save them in a saved variable and do what you will with the results.
Well the addon in question is definitially Carbonite. To be completely blunt I paid for two months it thinking I'd get that version forever, but they make it expire after two months so that you have to keep on paying for it. In my mind I paid for the product at that time, I don't care about further updates, and I want to at least change it so that it won't expire.

Unfortunately I thought this would be a wee bit easier since its LUA (as opposed to something like C++), and I've never reverse-engineered before, so your post isn't exactly encouraging How does the WoW engine load that garbled trash anyway? I'de like to at least get to poke around the "lol" code and see if I could search for the part about 'Expired' and delete it hah. Of course I have no idea how hard it is to get to that point so if you think its too much just lemme know.



[Only registered and activated users can see links. ]
Reply With Quote
(#5)
Old
Saiket's Avatar
Saiket is Offline
Contributor
Rep Power: 2
Reputation: 144
Saiket will become famous soon enoughSaiket will become famous soon enough
 
Posts: 160
Join Date: Jul 2007
Location: UI & Macro Forum
05-16-2008

To be honest, it's probably more trouble than it's worth. I never did understand the first layer of encryption it used; I only found a way to let it decrypt itself for me. It takes a lot of effort even to get that far though, and I've been writing addons since the game went public.

Every once in a while I see someone post here about cracks for it, but they're really primitive and difficult to get working. Here's one example, but from the looks of the replies I'm not sure it works: [Only registered and activated users can see links. ]


AddOn developer and long time explorer.
R.I.P _Corpse: My Most Underrated Addon
Reply With Quote
(#6)
Old
undrgrnd59 is Offline
Site Donator
Rep Power: 1
Reputation: 15
undrgrnd59 is on a distinguished road
 
Posts: 107
Join Date: May 2008
Location: Behind You
05-17-2008

Woo, well thanks for that link. The UI code seemed to be broken with the download (when I clicked on the Carbonite button it popped up an error). Of course nobody else mentioned this problem so it was probably just me. Everything else *seemed* like it should work other than that though :P Either way it's progress thanks again.



[Only registered and activated users can see links. ]
Reply With Quote
Reply

Donate to remove ads.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On



Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346