CGPersia Forums
Release Blog CGPeers Register FAQ IRC Chat
Go Back   CGPersia Forums > CG Releases > Plugins - Releases > Plugins - UniCryDK
Reload this Page Unity Obfuscator - Decompiler
Plugins - UniCryDK Unity/CryEngine/UDK Plugin Releases - Sub Section

Reply
 
Thread Tools Search this Thread
Old 02-18-2011   #1
Original Poster
Join Date: Jan 2010
Posts: 64
Thanks (Given): 215
Thanks (Received): 128
Smile Unity Obfuscator - Decompiler

Hey Unity-Boys'n'Girls, here is something nice:

Extract code from Unity-Apps.

1. Save the page with the Unity-build into a folder. There will be a .txt-file, rename that to .unity3d and throw that into your browser to see if that works. if it does, it was the right .txt....

Get these two programs:
A
Link(s):
 
B
Link(s):
 
2. Open the .unity3d with program A and extract the .dll

3. Open the dll with program B and look a little around to get the source-code of the Unity-Build.

4. Rename .assets to .asset and then Asset/Import new Asset for textures, meshes, shaders...



*EASY!!*

Here is a little tutorial:
Link(s):
 
Have fun!
*PEACE


@mods/admins please push this thread where it should belong - didnt know where to put it

Last edited by srudlak; 02-18-2011 at 02:55 PM.
is Offline  
Reply With Quote
32 Thanks, 0 . - likudo, dugdiamond, emulates, Sun1551, klonerk, whitebox, pierrard, ZeroWaiT, corsinu, AbiPod, JimboJimbo, ankur30884, Baoulettes, cast3334, hysby15681, abuced16, MH3D12, omarpower, MadMac, gooms9, Deejaye_Jazzy_Death, xcalibar, Celso3d, phantom2, RezoTheRed, KalebDark, ThankMeIfYouCan, stefman67, argenex, ps3, Wildpepper, zddz thanked for this post
Old 03-14-2011   #2
adei
Join Date: Mar 2011
Posts: 25
Thanks (Given): 22
Thanks (Received): 5
anyone can confirm this?

Does it work?
is Offline  
Reply With Quote
2 Thanks, 0 . - hysby15681, stefman67 thanked for this post
Old 03-14-2011   #3
Fierce Waffle
Join Date: Dec 2010
Posts: 21
Thanks (Given): 1
Thanks (Received): 26
Link(s):
 
Of course it works. How bout u actually try it next time
is Offline  
Reply With Quote
1 Thanks, 0 . - stefman67 thanked for this post
Old 03-21-2011   #4
fredburns
Join Date: Aug 2010
Posts: 20
Thanks (Given): 17
Thanks (Received): 6
Thanks for this!

All we need now is a k/kg for reflector lol ;-)
is Offline  
Reply With Quote
1 Thanks, 0 . - stefman67 thanked for this post
Old 03-21-2011   #5
maxzz2000
Join Date: Mar 2011
Posts: 13
Thanks (Given): 43
Thanks (Received): 12
Instead of commercial Reflector you can use ILSpy.
Link(s):
 
ILSpy is the open-source .NET assembly browser and decompiler. In this way you can get access to source code of almost any unity game.
is Offline  
Reply With Quote
4 Thanks, 0 . - alenHusic, corsinu, stefman67, srudlak thanked for this post
Old 03-22-2011   #6
makelife
Join Date: Jan 2010
Posts: 6
Thanks (Given): 3
Thanks (Received): 1
who have the commercial Reflector
is Offline  
Reply With Quote
1 Thanks, 0 . - stefman67 thanked for this post
Old 03-23-2011   #7
mdcnet
Join Date: Nov 2010
Posts: 5
Thanks (Given): 7
Thanks (Received): 2
do you have crack for Unity Obfuscator ?
is Offline  
Reply With Quote
2 Thanks, 0 . - l3dt_pro, stefman67 thanked for this post
Old 03-23-2011   #8
adei
Join Date: Mar 2011
Posts: 25
Thanks (Given): 22
Thanks (Received): 5
Default Brilliant

Link(s):
 
Brilliant. How can you ripp or download web player games?
is Offline  
Reply With Quote
2 Thanks, 0 . - corsinu, stefman67 thanked for this post
Old 03-23-2011   #9
magallanes
magallanes's Avatar
Join Date: Jul 2009
Posts: 587
Thanks (Given): 159
Thanks (Received): 216
Link(s):
 
is not the same but... ok, is the same.

Link(s):
 
__________________
To Err Is Human, to Arr Is Pirate

i found a version of Autocad that never crashes, it is called pen and paper.
is Offline  
Reply With Quote
2 Thanks, 0 . - dbsrb43, stefman67 thanked for this post
Old 03-24-2011   #10
maxzz2000
Join Date: Mar 2011
Posts: 13
Thanks (Given): 43
Thanks (Received): 12
Link(s):
 
I'm using Firebug add-on with Firefox to find .unity3d URL. Then you can save this file on your machine and do the rest
is Offline  
Reply With Quote
5 Thanks, 0 . - dbsrb43, Nearga, RezoTheRed, stefman67, adei thanked for this post
Old 03-25-2011   #11
adei
Join Date: Mar 2011
Posts: 25
Thanks (Given): 22
Thanks (Received): 5
Link(s):
 
you are a god; hack the planet

Sadly, Reflector seems to do a better job than ILSpy.
is Offline  
Reply With Quote
1 Thanks, 0 . - stefman67 thanked for this post
Old 03-27-2011   #12
Wildpepper
Join Date: Apr 2010
Posts: 8
Thanks (Given): 2
Thanks (Received): 23
Default dumping assets

hey there

since i'm quite lame in scripting, i just kinda know javascript, but i can't understand c#, so i can't properly decompile code (but i blame it on myself) and a tutorial woudl be greatly appreciated.

but the point is, assets, after renaming and importing, have a strange hierarchy and behavior: objects are parented to a material.
you can use them, but since you can't move items, or clean up stuff, you get a lot of compiler errors.
and textures are also flagged with incorrect format

does anyone managed to extract single items from dumped assets ?

if this thread is not dead, i'd gladly share my experience, and write some documentation about using this great trick (before this will be openly discovered, and we must forget free shaders and models

here's what i managed to find in dumped assets.

1) code (needs decompiling, one (ehrm I) can only see classes and functions, and should "assemble" again code parts
2) materials (correctly dumped, "main" scene material, is often named with asset file, and is a "folder" for other resources
3) shaders (are plainly shown among resources, can't be dragged out from asset, but you can copy/paste it's contents
4) textures (often flagged as invalid format, but correctly shown, and applies the bove trick)
4b) Normal maps (same as above, but appearing grayscale, and not great looking in player)
5) models (shown as mesh filter objects, actually working ?)
6) particles (can't find them)
7) audio (still not dumped a .unity3d file containing one)

hope you find this information useful, and have some feedback for me.
is Offline  
Reply With Quote
5 Thanks, 0 . - cgwhatsup, kaywoods, RezoTheRed, stefman67, maxzz2000 thanked for this post
Old 03-28-2011   #13
Wildpepper
Join Date: Apr 2010
Posts: 8
Thanks (Given): 2
Thanks (Received): 23
oh i forgot to mention, animations look like unusable.

still waiting feedback
is Offline  
Reply With Quote
1 Thanks, 0 . - stefman67 thanked for this post
Old 03-30-2011   #14
maxzz2000
Join Date: Mar 2011
Posts: 13
Thanks (Given): 43
Thanks (Received): 12
Link(s):
 
I was thinking to write a small utility to dump unity resource files, however at this point I need more info on file format. Any format knowledge to share will be welcome.
is Offline  
Reply With Quote
1 Thanks, 0 . - stefman67 thanked for this post
Old 03-31-2011   #15
yourrun
Join Date: Nov 2010
Posts: 5
Thanks (Given): 1
Thanks (Received): 5
so how do i get the assets of a webplayer game ?
do i have to use firebug ? can somebody explain it to me please ...

(im using mac)

Last edited by yourrun; 03-31-2011 at 07:07 PM.
is Offline  
Reply With Quote
1 Thanks, 0 . - stefman67 thanked for this post
Old 04-01-2011   #16
maxzz2000
Join Date: Mar 2011
Posts: 13
Thanks (Given): 43
Thanks (Received): 12
Link(s):
 
First, save .unity3d file on local machine, use Unity Obfuscator to extract content, then Reflector or ILSpy to access the source code. To access resources, rename *.assets file into *.asset, and pick "Import Asset..." from Unity Editor.
is Offline  
Reply With Quote
2 Thanks, 0 . - stefman67, yourrun thanked for this post
Old 04-01-2011   #17
yourrun
Join Date: Nov 2010
Posts: 5
Thanks (Given): 1
Thanks (Received): 5
i cant get the Obfuscator working on my mac, so could somebody upload the assets of this:
http://dl.dropbox.com/u/20454603/Rai...WebPlayer.html ?
is Offline  
Reply With Quote
1 Thanks, 0 . - stefman67 thanked for this post
Old 04-01-2011   #18
LongHairCook
Join Date: Mar 2011
Posts: 30
Thanks (Given): 19
Thanks (Received): 15
Link(s):
 
You can also use FlashGot for Firefox to do it and you don't have to look for the url
is Offline  
Reply With Quote
3 Thanks, 0 . - nataki, ThankMeIfYouCan, stefman67 thanked for this post
Old 04-02-2011   #19
SnowboardDude
Join Date: Apr 2011
Posts: 8
Thanks (Given): 4
Thanks (Received): 7
Would be great if we could see if Unity is embedding our license/machine id/etc into the the code. Wondering if they can tell we are using a cracked Unity.

Not sure what to look for though when I browse all the dll's in Reflector.
is Offline  
Reply With Quote
2 Thanks, 0 . - Gunga, stefman67 thanked for this post
Old 04-03-2011   #20
qw_zzz
Join Date: May 2010
Posts: 89
Thanks (Given): 15
Thanks (Received): 32
how to disassemble UnityScript (JS) if .net reflector read it as C#?
is Online  
Reply With Quote
2 Thanks, 0 . - mujee, stefman67 thanked for this post
Old 04-03-2011   #21
lwaver
lwaver's Avatar
Join Date: Dec 2009
Posts: 23
Thanks (Given): 2
Thanks (Received): 2
Maybe with this :
Link(s):
 
i don't have time to try...
is Offline  
Reply With Quote
1 Thanks, 0 . - stefman67 thanked for this post
Old 04-05-2011   #22
Urah
Join Date: Mar 2011
Posts: 8
Thanks (Given): 1
Thanks (Received): 4
sorry I was wrong

Last edited by Urah; 04-05-2011 at 01:19 AM.
is Offline  
Reply With Quote
1 Thanks, 0 . - stefman67 thanked for this post
Old 04-05-2011   #23
maxzz2000
Join Date: Mar 2011
Posts: 13
Thanks (Given): 43
Thanks (Received): 12
Link(s):
 
Reflector does not read C# (or Javascript). Reflector is looking at IL code and compose C#, Javascript, VB, F#, MC++, or Delphi out of it.

Last edited by maxzz2000; 04-06-2011 at 09:42 AM.
is Offline  
Reply With Quote
Old 04-06-2011   #24
qw_zzz
Join Date: May 2010
Posts: 89
Thanks (Given): 15
Thanks (Received): 32
Link(s):
 
ok... so i go along with it as per normal?

does a game decompile be used just c#? cuz there are some app i did was a mixture of unityscript & C#
is Online  
Reply With Quote
Old 04-06-2011   #25
adei
Join Date: Mar 2011
Posts: 25
Thanks (Given): 22
Thanks (Received): 5
Link(s):
 
wrong with what ?
is Offline  
Reply With Quote
Old 04-13-2011   #26
qw_zzz
Join Date: May 2010
Posts: 89
Thanks (Given): 15
Thanks (Received): 32
how do u extract the .asset files? although unity can see them, but i wanna to edit the textures & models but they are still in the asset files
is Online  
Reply With Quote
Old 04-23-2011   #27
Mcx
Join Date: Mar 2011
Posts: 46
Thanks (Given): 5
Thanks (Received): 36
Link(s):
 

i would like to know this too
is Offline  
Reply With Quote
Old 04-27-2011   #28
muthuraja
Join Date: Apr 2011
Posts: 10
Thanks (Given): 0
Thanks (Received): 6
Link(s):
 
Above link is not work for me. Pls post any other link for Unity3d Obfuscator setup.
is Offline  
Reply With Quote
Old 05-16-2011   #29
bacarlitos
bacarlitos's Avatar
Join Date: Aug 2010
Posts: 562
Thanks (Given): 1301
Thanks (Received): 986
Guess a keygen for Unity Obfuscator will be very usefull
To bad that this case can be only aplied to Unity's Web player and not the full .exe files.
Has someone here has the keygen or a license number?
Thanks in advance
is Offline  
Reply With Quote
1 Thanks, 0 . - l3dt_pro thanked for this post
Old 07-27-2011   #30
TBR427
Join Date: Feb 2011
Posts: 3
Thanks (Given): 0
Thanks (Received): 1
Link(s):
 
second this
is Offline  
Reply With Quote
Old 07-27-2011   #31
Lite'Er'Up
Lite'Er'Up's Avatar
Join Date: Dec 2010
Posts: 197
Thanks (Given): 115
Thanks (Received): 159
Stefman67: Use the thank's button when a post has been genuinely helpful or something similar, dont spam use it
is Offline  
Reply With Quote
1 Thanks, 0 . - abuced16 thanked for this post
Old 07-28-2011   #32
deadfire55
Join Date: Jun 2011
Posts: 9
Thanks (Given): 0
Thanks (Received): 3
hey thanks for the instructions i've got it decomplied but where is this .assets folder that everyone is talking about? I've opened up all the + in ILSpy but no assets folder
is Offline  
Reply With Quote
Old 11-04-2011   #33
growlley
Join Date: Nov 2009
Posts: 675
Thanks (Given): 64
Thanks (Received): 360
can any one tell mewhat you do with maindata? ie either how to import it into unity or decompile /disasssmble /unpack it


thanks

Last edited by growlley; 11-08-2011 at 07:35 PM. Reason: needs a new keyboard
is Offline  
Reply With Quote
Old 11-08-2011   #34
austen
Join Date: Apr 2011
Posts: 3
Thanks (Given): 2
Thanks (Received): 0
Link(s):
 
Same here, anyone know if this is possible?
is Offline  
Reply With Quote
Old 02-05-2012   #35
blackbirdi
Join Date: Aug 2010
Posts: 227
Thanks (Given): 68
Thanks (Received): 56
one question guys can i rip with it C# scripts ??? coz all i get is geometry and shaders nothing more
is Offline  
Reply With Quote
Old 02-05-2012   #36
johan
Join Date: Jul 2009
Posts: 1,321
Thanks (Given): 33
Thanks (Received): 206
Link(s):
 
You should get assembly DLL that you need to decompile.
__________________
RAINBOW
is Offline  
Reply With Quote
1 Thanks, 0 . - blackbirdi thanked for this post
Old 02-06-2012   #37
t3sta
Join Date: Nov 2010
Posts: 7
Thanks (Given): 1
Thanks (Received): 7
If you can't get those meshes/textures out from the combined assets file... use "3D Ripper DX"... it works on Unity games, it works on commercial AAA titles too!

@blackbirdi.. Use ILSpy (see previous posts in this thread) on "Assembly-CSharp.dll" and you will get the C# code you want.
is Offline  
Reply With Quote
1 Thanks, 0 . - blackbirdi thanked for this post
Old 02-06-2012   #38
blackbirdi
Join Date: Aug 2010
Posts: 227
Thanks (Given): 68
Thanks (Received): 56
thank you guys ^^
is Offline  
Reply With Quote
Old 03-12-2012   #39
nonameboy
Join Date: Feb 2010
Posts: 52
Thanks (Given): 12
Thanks (Received): 15
can someone please explain the usage of net reflactor on howto disasemble dlls? thanks
is Offline  
Reply With Quote
Old 03-16-2012   #40
Unamine
Join Date: Dec 2010
Posts: 14
Thanks (Given): 9
Thanks (Received): 3
Sorry for revive the topic and my bad english.

How to extract a unity scene with extension .unity for open in Unity 3D Game Engine of .unity3d files??

Have a some solution?
is Offline  
Reply With Quote
Old 04-09-2012   #41
userosaurus
userosaurus's Avatar
Join Date: Mar 2012
Posts: 455
Thanks (Given): 335
Thanks (Received): 320
ok guys i know this topic is kind of dead now but..
what if red-gate returns crap code and ilspy returns better but with errors... is there any other decompiler you recommend ?
thanks

---------- Post added at 01:36 AM ---------- Previous post was at 01:26 AM ----------

anybody willing to help me decompile a scene ?

Last edited by userosaurus; 04-09-2012 at 01:35 AM.
is Offline  
Reply With Quote
Old 04-09-2012   #42
userosaurus
userosaurus's Avatar
Join Date: Mar 2012
Posts: 455
Thanks (Given): 335
Thanks (Received): 320
Thanks valera3132 tested monodevelop as you proposed with the link but it seems that the best one so far is ILSpy..it spits out the least compiler generated artifacts... the thing is that what i am trying to decompile is mostly code no assets...
so again any help is greatlly appreciated.
is Offline  
Reply With Quote
Old 04-09-2012   #43
omarpower
Join Date: Dec 2009
Posts: 21
Thanks (Given): 7
Thanks (Received): 7
Link(s):
 
Very Very Very Thank you Man

Good Work Hacker Scripts

is Offline  
Reply With Quote
Old 04-09-2012   #44
ramon22
Join Date: Jan 2011
Posts: 15
Thanks (Given): 23
Thanks (Received): 24
how about dotPeek instead of refractor
Link(s):
 
is Offline  
Reply With Quote
3 Thanks, 0 . - ABADD0N, Logan0, userosaurus thanked for this post
Old 04-10-2012   #45
Whyroph
Whyroph's Avatar
Join Date: Sep 2010
Posts: 322
Thanks (Given): 17
Thanks (Received): 755
ok one question over i reneme it .asset and i import it how i can separate it into much more folders etch...
is Offline  
Reply With Quote
Old 04-10-2012   #46
userosaurus
userosaurus's Avatar
Join Date: Mar 2012
Posts: 455
Thanks (Given): 335
Thanks (Received): 320
thanks ramon22 dotPeek is a great tool i was not aware of and the combination of ILSpy with it can output some useable code, but patients is a must !
they tend to fail at the same lines of code only now you can get to choose which one you think is the one closer to reality
is Offline  
Reply With Quote
Old 04-10-2012   #47
spectrum66
Join Date: Apr 2012
Posts: 13
Thanks (Given): 1
Thanks (Received): 10
Hi,

i'm using addon firebug to see all the codes of url
<object id="UnityObject" height="450" width="800" codebase="http://webplayer.unity3d.com/download_webplayer-2.x/UnityWebPlayer.cab#version=2,0,0,0" classid="clsid:444785F1-DE89-4295-863A-D46C3A781394"><param value="race.unity3d" name="src">

<embed id="UnityEmbed" height="450" width="800" pluginspage="http://www.unity3d.com/unity-web-player-2.x" type="application/vnd.unity" src="race.unity3d" tabindex="0">


Link(s):
 
[/code]

i found the file
Link(s):
 
but now how do you manage to download it ,
Thanks in advance

Last edited by spectrum66; 04-10-2012 at 06:01 PM.
is Offline  
Reply With Quote
Old 04-10-2012   #48
userosaurus
userosaurus's Avatar
Join Date: Mar 2012
Posts: 455
Thanks (Given): 335
Thanks (Received): 320
just save the
Link(s):
 
is Offline  
Reply With Quote
1 Thanks, 0 . - Logan0 thanked for this post
Old 04-10-2012   #49
omarpower
Join Date: Dec 2009
Posts: 21
Thanks (Given): 7
Thanks (Received): 7
part one :
Save as WebPlayer.unity3d to FolderName

part two :
Convert webplayer.unity3d to Files DLL Scripts and Assest & textures & models

by Protect Unity3D projects

and
by !!!!!!!!!!!!!! scruity Code !!!!!!!!!! Secruity Assets !!!!!!!!!!!!!

and more ......................
is Offline  
Reply With Quote
1 Thanks, 0 . - Logan0 thanked for this post
Old 04-10-2012   #50
spectrum66
Join Date: Apr 2012
Posts: 13
Thanks (Given): 1
Thanks (Received): 10
Thanks a lot userosaurus,
i have just open my first game, rename assets to asset and i got few things :
car body and the 3 tracks, it has done.
Do you manage to obtain one parts of script or today it's no ?
is Offline  
Reply With Quote
1 Thanks, 0 . - drift501 thanked for this post