Thursday, September 02, 2010

Farmville doesn't use the gzip obfuscation anymore

We blogged about itemx.xml.gz and gameSettings.xml.gz obfuscation of the Farmville game. Now they removed the obfuscation, and you get the XML Files z-compressed without the any header you have to remove.

If you want to use python, update the decompress.py with the code below.
import zlib
import urllib
import sys

def main():
  file = urllib.urlopen(sys.argv[1]).read()
  print zlib.decompress(file)

if __name__=="__main__":
  main()

You can download here the windows binary for .xml.gz decompression and here the python file.


Compression: compress.py and compress.exe
import zlib
import urllib
import sys

def main():
  file = open(sys.argv[1], 'r').read()
  output = open(sys.argv[1]+'.gz', 'w')
  output.write(zlib.compress(file))
  output.close()

if __name__=="__main__":
  main()

UPDATE:
We also recompiled the fvinternals cheat tool.

29 comments:

  1. where to find decompress.py??

    ReplyDelete
  2. -----------------------------------------------------------
    This file was downloaded from fvinternals
    visit our blog at: http://fvinternals.blogspot.com
    and our website at: http://fvinternals.funpic.de
    E-Mail: fvinternals@gmail.com
    -----------------------------------------------------------

    not valid zlib compressed
    Traceback (most recent call last):
    File "fvinternals.py", line 340, in
    NameError: name 'rawXml' is not defined

    ReplyDelete
  3. where is decompress.py i have no idea what to do you tell us update the decompress file that's it at least give us some images just tell me so i can get it working again

    ReplyDelete
  4. Can you explain this more? How do we use this code? What are the steps?

    ReplyDelete
  5. sorry, but explanation isn't so clear.
    cheers and thanks for all the efforts.

    ReplyDelete
  6. tnx guys works great u are the BEST!!!!!!

    ReplyDelete
  7. thanks for the update that what you shoulda did but learn from you mistakes you know :)

    ReplyDelete
  8. What about compressing it back?

    ReplyDelete
  9. thank you for fast update and for the app!

    ReplyDelete
  10. can anyone explain how to do this?

    ReplyDelete
  11. still this error:

    opend mysteryegggold
    traceback (most recent call last):
    file "fvinternals.py", line 2953, in (module)
    file "fvinternals.py", line 632, in open
    file "fvinternals.py", line 2789, in submitAMF
    file "fvinternals.py", line 2737, in AMFErrorAbort
    RuntimeError: unexpected AMF error "could not instantiate client SaveObject"
    open,abording

    What did I wrong???

    ReplyDelete
  12. the mysterybox couldn't be opened. Which one did you try?

    ReplyDelete
  13. FVI can you explain update in steps, please?

    ReplyDelete
  14. various...whis the first tool everysthings works perfect....
    mysterybox100831
    mysterybox091117
    mysterybox100105
    i used: http://fvinternals.fv.funpic.de/mysterybox.php

    ReplyDelete
  15. everytime i got a white stallion and put in the farm, app goes out of sync and when returns, stallion is gone.

    ReplyDelete
  16. The decompression works, but there is something funny with the handling of new lines.

    Decompressing and turning right back around and compressing, FarmVille rejects the gameSettings.xml.gz when using Fiddler.

    ReplyDelete
  17. I've forgotten to change that, it is stupid printing out binary data. I changed it to write into a file. Thank you for the feedback.

    ReplyDelete
  18. Storing pig_mini
    Animals are not removeable, this hack needs a removed animal

    looks like pigs arent working anymore

    there is another method which involves buying a pig for 1000 coins in market placing it in pigpen and changing storedItemName in the amf request which could fix this issue

    ReplyDelete
  19. unfortunately, the tool works great but everytime that i return to game, all items are lost, including 5 white's stallions.

    ReplyDelete
  20. upon more research with the error i was getting while trying to obtain pigs with the tool
    i discovered if fv_pigpens_truffles in the experiments is set to 1 you will not be able to obtain any pigs with the tool. fv_pigpens_truffles must be set to 0 in the experiments in order to obtain pigs through the hack. seems like a somewhat simple task to implement for a quickfix

    ReplyDelete
  21. Traceback (most recent call last):
    File "c:\Python25\lib\site-packages\py2exe\boot_common.py", line 92, in
    ImportError: No module named linecache
    Traceback (most recent call last):
    File "fvinternals.py", line 5, in
    ImportError: No module named os

    ReplyDelete
  22. Tried to get the pony and got this error

    Storing pon
    Traceback (most recent call last);

    File "fvinternals.py", line 2984, in (module)
    File "fvinternals.py", line 1253, in storeHack
    File "fvinternals.py", line 586, in place
    File "fvinternals.py", line 2789, in submitAMF
    File "fvinternals.py", line 2737, in AMFErrorAbort
    RuntimeError: Unexpected AMF error "Not enough money" in place, aborting


    I have about 12million coins and maybe 6000 in FV$. Any idea what could be causing that error?

    ReplyDelete
  23. how did you make 6000 FV ??

    ReplyDelete
  24. @GateCosmic, when mystery gifts had 1 FV$ in them, you could run a bot on the farm and place and open mystery gifts. That was patched several weeks ago.

    ReplyDelete
  25. now I have the same error!

    ReplyDelete
  26. I get this error:

    Farmville login for ...@gmail.com failed
    Traceback (most recent call last):
    File "FVinternals.py", line 267, in (module)
    TypeError: 'NoneType' object is unsubscriptable

    What am I doing wrong?

    ReplyDelete
  27. its not you i think it maybe patched but is still working charles

    ReplyDelete
  28. Hi is this still working? When I try this I got error mes
    traceback (most recent call last):
    File :decompress20100902.py", line 2, in (module)
    import urllib
    File "C:\Python27\lib\urllib.py", line 26, in (module) import socket
    File "C:\Python27\lib\socket.py", line 47, in (module) import socket
    ImpoerError: Dll Load failed: %1 is not valid Win32 application
    Is there anybody who can help me? Thank you

    ReplyDelete
  29. it works you just have to dl the runtime files i think

    ReplyDelete