The Dumb Binary For Mac
According to the ars Technica, the Mac malware expert wrote down the “dumb” components of the bug: “the infection method is dumb the massive size of the binary is dumb the persistence mechanism is lame (and thus also dumb) the capabilities are rather limited (and thus rather dumb). Create an ascii hexdump from binary or text files, to take a look into format details like line endings, with sfk hexdump for Windows, Mac OS X, Linux and Raspberry Pi. - download the free Swiss File Knife Base from Sourceforge. - open the Windows CMD command line, Mac OS X Terminal or Linux shell. Some of these bdist ``sub-commands' actually generate several similar formats; for instance, the bdist_dumb command generates all the ``dumb' archive formats (tar, ztar, gztar, and zip), and bdist_rpm generates both binary and source RPMs.
Binary For Mac

The Dumb Binary For Machine
If you work with the command line you've most likely used hexdump or od to dump binary files, but what do you do if you have a hex dump of something and you want to create the binary version of the data? Assuming your needs aren't too complex, the answer may be xxd. You can use xxd to dump binary files just like hexdump and od, but you can also use it to do the reverse: turn a hex dump back into binary. If you run xxd with just a file name it dumps the data in a fairly standard hex dump format: # xxd bdata 0000000: 0001 0203 0405. Now if you pipe the output back to xxd with the -r option and redirect that to a new file, you can convert the hex dump back to binary: # xxd bdata xxd -r >bdata2 # cmp bdata bdata2 # xxd bdata2 0000000: 0001 0203 0405. Note that when doing reverse conversions with xxd, the data needs to look like a hex dump: there needs to be an offset and the data needs to be formatted correctly.
So, for example, this works: # echo 01: 01 02 03 04 xxd -r >output but this does not because the data is not formatted correctly: # echo 01: 1 2 3 4 xxd -r >output As a more concrete example, I recently had a need to create a file containing a MAC Address. First thing I needed was a way to create a binary file with the MAC Address so that I could use objcopy to convert it to an S-Record file. A bit of pondering produced no good ideas. Linux and its brethren have a lot of command line utilities for manipulating text but not many for manipulating binary data.
Of course, I could have written a C program to create the binary file or to create the S-Record file itself, but that seemed a bit much considering I was only talking about 6 bytes of data. After a fair bit of searching the net I came across xxd. In xxd is part of the vim-base package. I'm not sure if that's where it is in all distros, since it doesn't seem to have any relationship to vim. The script takes a MAC Address and outputs S-Record data: # sh macid.sh 00:11:22:33:44:55 S737382D322E746D703B S122334455F7 S9030000FC Optionally, you can specify an address for re-basing the S-Record file and an output file name: # sh macid.sh --address 0xffff0000 --output ma 00:11:22:33:44:55 # cat ma S733302D322E746D7047 S30BFFFF334455F7 S705FFFF0000FC See the entire script is. 
Search for 'excel for mac. Distributing Python Modules Previous: Up: Next: 6 Creating Built Distributions A ``built distribution' is what you're probably used to thinking of either as a ``binary package' or an ``installer' (depending on your background). It's not necessarily binary, though, because it might contain only Python source code and/or byte-code; and we don't call it a package, because that word is already spoken for in Python. (And ``installer' is a term specific to the Windows world. ** do Mac people use it?
**) A built distribution is how you make life as easy as possible for installers of your module distribution: for users of RPM-based Linux systems, it's a binary RPM; for Windows users, it's an executable installer; for Debian-based Linux users, it's a Debian package; and so forth. Obviously, no one person will be able to create built distributions for every platform under the sun, so the Distutils are designed to enable module developers to concentrate on their specialty--writing code and creating source distributions--while an intermediary species of packager springs up to turn source distributions into built distributions for as many platforms as there are packagers. Of course, the module developer could be his own packager; or the packager could be a volunteer ``out there' somewhere who has access to a platform which the original developer does not; or it could be software periodically grabbing new source distributions and turning them into built distributions for as many platforms as the software has access to. Regardless of the nature of the beast, a packager uses the setup script and the bdist command family to generate built distributions. As a simple example, if I run the following command in the Distutils source tree: python setup.py bdist then the Distutils builds my module distribution (the Distutils itself in this case), does a ``fake' installation (also in the build directory), and creates the default type of built distribution for my platform. The default format for built distributions is a ``dumb' tar file on Unix, and an simple executable installer on Windows.