Help me with this!!!

TOXiC GatlingGun at gmail.com
Thu Feb 1 05:21:38 EST 2007


Hi all, I've this code:

    regex = re.compile(r"(?si)(\x8B\xF0\x85\xF6)(?P<contents>.*)
(\xC6\x44\x24)",re.IGNORECASE)
    file = open(fileName, "rb")
    for line in file:
          if (match):
              print line
    file.close()

It search a text inside that hex value.
It works perfecly on a txt file but if I open a binary file (.exe,.bin
ecc...) with the same value it wont work, why?
Please help!




More information about the Python-list mailing list