bugku--normal QR code (binary conversion)

Source: Internet
Author: User

Title Address: Http://ctf.bugku.com/files/5e480ecb178711e82bc847a208e15b32/misc80.zip

On a two-dimensional code picture, with some online tools to identify is garbled, with QQ identification is

Using the 16 binary editor to open the discovery at the end of a very abrupt piece of data, not a BMP bitmap content, presumably flag is in it

Observing this data found that only 0-7, No 8 and 9, it is easy to think of is 8 binary data, you can convert it to 10 binary, and then to the ASCII character. Here I dropped a pit, a start to see this number total length of 126, 2 multiples, plus the previous conversion 16 into the inertial thinking, let me think here is also 221 pairs of conversion, the conversion out of nature is not correct, a heap of garbled, and later found two bits of 8 binary data Max 077 (the number before plus 0 means 8 binary), Converting to 10 binary 63 also means that the characters on the ASCII code table are not finished, and 126 is also a multiple of 3, so three a group to convert, the following script:

F=open ("1.txt",'r') res=' for  in range:    s=eval ('0'+f.read (3))    Res + =chr (int (s))print  res   raw_input ()

bugku--normal QR code (binary conversion)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.