Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    toddddd's Avatar
    Join Date
    Sep 2016
    Gender
    male
    Posts
    720
    Reputation
    46
    Thanks
    6,363

    ResExtractor - Quickly update your xml resources

    This was a quick project i made today, it started as an attempt to find out if i could decompile swf files with C#. I managed to find a library called SwfDotNet and it got my hopes up, but after looking through the library source (and seeing it hasnt been updated in years) i found out it wasnt designed for swf's over version 9 (rotmg is version 15). I wasnt able to find any other libraries online that could do what i wanted, so i decided to just cut my losses and make a resource extractor using SwfDotNet library.

    This program has a few differences from the previously released PZUpdater by pixelzerg. PZUpdater relies 100% on RABCDasm and runs the client through both rabcdasm's "abcextractor" and "rabcdasm". I was able to add some quick modifications to the SwfDotNet library that allowed me to extract the Objects.xml and Tiles.xml in less then 5 seconds without relying on rabcdasm. But to extract the packets.xml i do have to reply on just the rabcdasm.exe program (since SwfDotNet is outdated). The results are, as far as i can tell, slightly faster when extracting all resources, and much much much faster when only extracting the objects and tiles resources.



    To use the program:
    1st - Either drag and drop the client swf onto ResExtractor OR open ResExtractor and type in the full path to the client swf
    2nd - The program will ask if you want to extract all the resources or just the objects and tiles. Press "1" or "2", then hit Enter.
    3rd - wait for the program to finish. It will close automatically when it is done and you should see the xml resources in the same directory as ResExtractor.


    Note: you do not need to have rabcdasm on your computer to use this program. If you choose option 1 to extract all resources, the program will check if the rabcdasm program exists in the same directory and if it doesnt it will create it from a resource in its memory.


    Scans:
    https://virusscan.jotti.org/en-US/fi...job/nadn6p0uhf
    https://www.virustotal.com/en/file/a...is/1484327254/


    If there are any errors let me know and ill see what i can do to fix it, but im not planning to spend any more time on this project unless absolutely necessary. If you want to play with the source at all then you can download the source.zip and see how it was made. I didnt include the source of the SwfDotNet library that i edited (just the dll) because the project folder was 40mb+ for some reason.

    source.zip Scans:
    https://virusscan.jotti.org/en-US/fi...job/v6r7w7dyef
    https://www.virustotal.com/en/file/1...is/1483763056/

    Ive created an updated version of this due to an issue i found. It looks like the GroundTypes (tiles.xml) are now spread out across multiple files just like the objects.xml. Back when i created this, there was only 1 GroundTypes file in the client, so it would just grab the first one it found and call tiles.xml good. But ive been noticing that the last few clients ive extracted from that there were missing tile types in the tiles.xml.

    The new version extracts the GroundTypes (tiles.xml) just like it does for the objects.xml. I tested it out and found my tiles.xml file was ~1000 line larger.


    So run this the same way as always, nothing new about anything else. The only change is it now grabs all of the GroundTypes it finds.


    Scans:
    https://www.virustotal.com/en/file/f...is/1492633022/
    https://virusscan.jotti.org/en-US/fi...job/nns4s5pjuk


    @059 @Ahlwong can you add this to the first post and remove the older downloads so only this attachment can be downloaded? Thanks!
    <b>Downloadable Files</b> Downloadable Files
    Last edited by Ahlwong; 04-19-2017 at 05:41 PM.

  2. The Following 53 Users Say Thank You to toddddd For This Useful Post:

    -eXtremeX- (05-19-2017),Alde. (02-14-2017),Ariakan (11-22-2017),Autorefresh (01-09-2017),B3CLAWED (07-18-2017),belloguu (03-16-2017),bluuman (01-07-2017),chance11 (03-16-2017),citydrifter (05-10-2018),CrazyJani (04-17-2017),Dalvik (03-08-2017),Diotic (03-12-2017),DonJuan13 (01-30-2017),esseks53 (08-05-2017),Extain (04-23-2017),falaf123 (01-08-2017),fishbob (03-20-2017),gainb (04-18-2017),hackenberry (06-01-2017),HDHUE (04-30-2017),jackowacko101 (09-06-2017),jean33600 (05-11-2018),jjoseph196 (11-16-2017),Klaus Wiebel (08-07-2017),Kraer (01-26-2018),lundtopi (12-07-2017),makslao (04-20-2017),MikeTheProphet (09-06-2017),MPAzoh (03-16-2017),MultiPlayerGameHugging (04-01-2018),Mythicedge (09-06-2017),New (01-07-2017),nobnana (02-13-2017),NoSoul (10-30-2017),oawjdihahbf (07-17-2017),pharoh (01-09-2018),Plant1ife (09-06-2017),Rikidou (08-30-2017),roca420 (01-14-2018),RotmgToolBlubber (02-27-2019),RTAERtgaergrgergerg (07-05-2017),SafariJ (09-06-2017),SammytheBEAST (05-18-2017),Shazza97 (09-06-2017),Syntes512 (03-17-2017),The 7th Hokage (01-07-2017),thegreatestappeal (03-11-2017),wecopaul (02-17-2017),werderman11 (03-16-2017),yoyoyoyosup (08-03-2017),Zenrag (11-22-2017),Zetaclypse (03-16-2017),~V~ (01-07-2017)

  3. #2
    Ahl's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    /modcp
    Posts
    16,599
    Reputation
    3219
    Thanks
    5,383
    My Mood
    Angelic
    Looks good

    Approved
    News Force Head Editor from 09/14/2018 - 03/02/2020
    Publicist from 11/23/2017 - 06/07/2019
    Global Moderator since 09/24/2017
    Minion+ from 04/16/2017 - 09/24/2017
    Market Place Minion from 04/16/2017 - 09/24/2017
    Minecraft Minion from 02/23/2017 - 09/24/2017
    Realm of the Mad God Minion from 11/06/2016 - 09/24/2017

    Middleman from 09/14/2016 - 09/24/2017
    News Force Editor from 08/23/2016 - 09/14/2018
    News Force (Section of the Week) from 03/21/2016 - 07/17/2017
    News Force (User News) from 10/18/2015 - 09/14/2018

    Donator since 03/16/2015
    Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
    Member since 12/23/2012


    Rep Power: 82

  4. The Following 2 Users Say Thank You to Ahl For This Useful Post:

    falaf123 (01-08-2017),toddddd (01-07-2017)

  5. #3
    toddddd's Avatar
    Join Date
    Sep 2016
    Gender
    male
    Posts
    720
    Reputation
    46
    Thanks
    6,363
    With the new client released i was quick to try out this program again. But upon running the client through the code it encountered an error.... For some reason, one of the object xml's is:
    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    
    <Objects>
    
    
    </Objects>
    Because of my half-assed way of creating the full Objects.xml file, this xml above threw everything off. Its also because i wasnt doing any checks to make sure everything was valid. Oh well. Either way, it was just a quick 1-2 line fix i threw in the code so it wouldnt crash if it encountered shit like this again.

    Scans:
    https://virusscan.jotti.org/en-US/fi...job/nadn6p0uhf
    https://www.virustotal.com/en/file/a...is/1484327254/

  6. #4
    Ahl's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    /modcp
    Posts
    16,599
    Reputation
    3219
    Thanks
    5,383
    My Mood
    Angelic
    Approved and replaced moved attachment to first post
    News Force Head Editor from 09/14/2018 - 03/02/2020
    Publicist from 11/23/2017 - 06/07/2019
    Global Moderator since 09/24/2017
    Minion+ from 04/16/2017 - 09/24/2017
    Market Place Minion from 04/16/2017 - 09/24/2017
    Minecraft Minion from 02/23/2017 - 09/24/2017
    Realm of the Mad God Minion from 11/06/2016 - 09/24/2017

    Middleman from 09/14/2016 - 09/24/2017
    News Force Editor from 08/23/2016 - 09/14/2018
    News Force (Section of the Week) from 03/21/2016 - 07/17/2017
    News Force (User News) from 10/18/2015 - 09/14/2018

    Donator since 03/16/2015
    Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
    Member since 12/23/2012


    Rep Power: 82

  7. The Following User Says Thank You to Ahl For This Useful Post:

    toddddd (01-13-2017)

  8. #5
    nobnana's Avatar
    Join Date
    Feb 2017
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    My Mood
    Cheerful
    how to install?

    - - - Updated - - -

    I think I got problem. http: //pasteboard . co /y2aTsGHNe .png[/IMG]

  9. #6
    toddddd's Avatar
    Join Date
    Sep 2016
    Gender
    male
    Posts
    720
    Reputation
    46
    Thanks
    6,363
    Quote Originally Posted by nobnana View Post
    how to install?

    - - - Updated - - -

    I think I got problem. http: //pasteboard . co /y2aTsGHNe .png[/IMG]
    How are you running it? What operating system are you on? Depending on where you extracted the file to, you might have to run it as administrator. But if you just extract it to somewhere like "Downloads" it should be able to run without admin rights. All i can tell from the image you provided is that rabcdasm failed to run because the .abc file wasnt found. I used this on the most recent client build and it didnt have any issues for me, so any additional info would be helpful in figuring out why it didnt work for you.

  10. #7
    nomadd's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    and this is how you update hacked clients now??

  11. #8
    toddddd's Avatar
    Join Date
    Sep 2016
    Gender
    male
    Posts
    720
    Reputation
    46
    Thanks
    6,363
    Quote Originally Posted by zacothino View Post
    @[MPGH]Ahlwong : @Ahlwong please check the new nilly's reborn
    why are you posting this on this thread? wtf.


    Quote Originally Posted by nomadd View Post
    and this is how you update hacked clients now??
    no.

  12. #9
    MrFloopyDisk's Avatar
    Join Date
    Mar 2017
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Asleep
    Nice work! Helps a lot

  13. #10
    The richest man is not the one who has the most but the one who needs the least.
    MPGH Member
    Alde.'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    1,706
    Reputation
    166
    Thanks
    3,627
    My Mood
    Sleepy
    Now make it automatically download the swf
    Alde is Alde is

  14. The Following User Says Thank You to Alde. For This Useful Post:

    BurgerLoverMx (04-04-2017)

  15. #11
    bobbyota4's Avatar
    Join Date
    Feb 2015
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    What does updating the xml resources do? when and why should I do it?

  16. #12
    BurgerLoverMx's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Location
    Québec
    Posts
    411
    Reputation
    23
    Thanks
    843
    My Mood
    Relaxed
    Quote Originally Posted by bobbyota4 View Post
    What does updating the xml resources do? when and why should I do it?
    It can be used for updating KRelay

  17. #13
    Ahl's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    /modcp
    Posts
    16,599
    Reputation
    3219
    Thanks
    5,383
    My Mood
    Angelic
    Approved and replaced attachment
    News Force Head Editor from 09/14/2018 - 03/02/2020
    Publicist from 11/23/2017 - 06/07/2019
    Global Moderator since 09/24/2017
    Minion+ from 04/16/2017 - 09/24/2017
    Market Place Minion from 04/16/2017 - 09/24/2017
    Minecraft Minion from 02/23/2017 - 09/24/2017
    Realm of the Mad God Minion from 11/06/2016 - 09/24/2017

    Middleman from 09/14/2016 - 09/24/2017
    News Force Editor from 08/23/2016 - 09/14/2018
    News Force (Section of the Week) from 03/21/2016 - 07/17/2017
    News Force (User News) from 10/18/2015 - 09/14/2018

    Donator since 03/16/2015
    Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
    Member since 12/23/2012


    Rep Power: 82

  18. The Following User Says Thank You to Ahl For This Useful Post:

    toddddd (04-19-2017)

  19. #14
    The richest man is not the one who has the most but the one who needs the least.
    MPGH Member
    Alde.'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    1,706
    Reputation
    166
    Thanks
    3,627
    My Mood
    Sleepy
    This needs to be stickied
    Alde is Alde is

  20. #15
    kentlivar's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    273
    My Mood
    Bored
    Might have a use for this in the future.

Page 1 of 2 12 LastLast

Similar Threads

  1. [Release] Quick Update [Tapper v1.3]
    By CheatCreatorzz in forum CrossFire Spammers, Injectors and Multi Tools
    Replies: 13
    Last Post: 07-27-2012, 11:34 AM
  2. [Release] KrypToNiTe's Public Hook v2.1! (Quick Update)
    By jdslashv2 in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 37
    Last Post: 06-03-2011, 10:47 AM
  3. [Release] Cross-Fire Browser V1.2 Quick Update
    By markO1O8 in forum CrossFire Spammers, Injectors and Multi Tools
    Replies: 27
    Last Post: 04-13-2011, 07:57 AM
  4. [UPDATE] Update your multitool today!
    By mnpeep in forum Visual Basic Programming
    Replies: 8
    Last Post: 12-01-2009, 09:54 AM
  5. Replies: 0
    Last Post: 10-14-2007, 09:45 PM