Questions tagged [binary-files]
The binary-files tag has no usage guidance.
157
questions
0
votes
1
answer
1k
views
Changing text in binary files
While looking inside a binary file in a text editor, I came across some readable text. I have executed the binary before, and know that the readable text is echoed on screen. Is it possible to remove ...
2
votes
1
answer
7k
views
Is it possible to decode 'octet stream' .bin file?
Tidal.com streams flac files, but it does not provide with file download, which is what I want. As you would expect from a big company such as Tidal, upon my inquiry, its support service in an utmost ...
0
votes
1
answer
1k
views
Concatenate four binary files using alternating pattern in Linux
I need to concatenate four binary, meaning non-text files. Lets say I have four files:
file1:
AAAA
file2:
BBBB
file3:
CCCC
file4:
DDDD
Now I want my resulting file to look like: ABCDABCDABCDABCD. ...
66
votes
4
answers
142k
views
What is the "blob:http://" prefix and where can I learn more about this?
I'm using safari, and unsure if this works in other browsers, but when I signed up for a storm path account, I see the following URL
blob:https://api.stormpath.com/1be95204-93d6-4GUID HERE
The blob: ...
0
votes
0
answers
821
views
What is the difference between .mbin and .bin?
I got a .mbin file this morning. As a newbie and just out of curiosity, is there any difference between .mbin and .bin?
If no, is that OK to swap .mbin with .bin in file name?
If yes, what are the ...
-1
votes
1
answer
324
views
How accurate is content sniffing in order to determine filetype?
I need to identify the mime-type of extensionless files(document fileformats such as PDF, doc, docx etc), and I am wondering how accurate known file-signatures are?
What I will do is to create a map ...
0
votes
3
answers
1k
views
Invert all bits in a file
I’m looking for a way to invert all bits in a file, preferably using Windows-integrated tools. How do I go about doing that?
In essence, a file with contents 1100101 would become 0011010.
1
vote
1
answer
2k
views
How to grep for line numbers in a binary file?
I'm on Centos 5 Linux and using GNU grep v2.5.1 and looking at a 36GB log file. It is huge and I need to find around a million lines starting from the occurrence of a string 6307459 in the log file ...
1
vote
1
answer
2k
views
How to install "elastix: a toolbox for rigid and nonrigid registration of images" in Mac OS X 10.10 (Yosemite)
I have downloaded Mac OS X 64 bit binaries for Elastix and tried to run ./elastix in Mac OS X 10.10 (Yosemite):
$ cd elastix_macosx64_v4.7
$ tree
.
├── CopyrightElastix.txt
├── bin
│ ├── elastix
│ ...
1
vote
2
answers
47
views
How to figure out which (potentially uninstalled) port provides a command in FreeBSD?
make search name=X and make search key=Y don't seem to find command names reliably, especially not if they aren't mentioned in the port's description. In Debian-based systems there's apt-file which ...
2
votes
1
answer
1k
views
Prompting for sudo password in a setuid root binary
I have a setuid root binary, with_sudo.bin, with the following source code:
/* with_sudo.c */
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
...
6
votes
2
answers
15k
views
is it possible to reverse xxd to get original file from binary file
i have been using xxd to create a hexa representation of a file(any file like .jpg, .docx, .zip etc), like this,..
$ xxd -p original_file.zip > hexa_format.txt
and to reverse
$ xxd -r -p ...
0
votes
1
answer
11k
views
How to open a file in binary format.(1's & 0's)
I want to open files in binary format. I want to see binary code, not hex. And want to edit in binary format and ability to save changes. What is the best application to do this or is there any easy ...
4
votes
1
answer
2k
views
Linux setcap and changes made to the executable
A program that I am developing uses raw sockets. For security reasons to run a program that uses raw sockets, the program has to be run under a user with effective ID 0 (root?) or have the capability: ...
1
vote
1
answer
1k
views
./install_bam.sh and i get an error stating "cannot execute binary file
I am trying to install a software through PuTTY. When I try to execute the chmod +x ./install_bam.sh command to obtain the permission to run the ./install_bam.sh and I get an error stating
cannot ...
6
votes
2
answers
5k
views
How do binary files run on different machines? [closed]
I always wondered about how executable binary files actually work. Compilation is always stated as
taking the source code and translating it to machine language
But what does that really mean?
...
0
votes
1
answer
344
views
running sac2xy returns sac2xy: cannot execute binary file on osx 10.9
I have a Python script for plotting data which uses sac2xy, but it gives an error when running sac2xy:
sh: sac2xy: command not found
the relevant part of code is :
os.system("sac ./tmp/sac.m")
os....
1
vote
3
answers
1k
views
Untar after uploading to linux from windows
I have created tar.gz from my linux server, and I downloaded the same to my linux system and I successfully doen untar with tar -xvf package.tar.gz.
And now my issue
I downloaded same package.tar....
3
votes
2
answers
3k
views
Encode binary file as text on Windows 2000+ using built-in tools
I have remote desktop access via Citrix to a remote server running Windows 2000. The server does not have any kind of internet access. The only way of getting data across is copying text through the ...
23
votes
2
answers
187k
views
How to solve: -bash: : cannot execute binary file
I have a file named b1 that contains assembly language. I am trying to execute the file on OSX using
$ ./b1
I get the following error:
-bash: ./b1: cannot execute binary file
I've looked at ...
2
votes
1
answer
10k
views
Concatenate binary files in windows (Without command line)
I'm trying to prepare a process for copying the video files off of a recorded DVD (we made the recording, and it's not encrypted). The method of copying the VTS_*.VOB file works when the recording is ...
4
votes
4
answers
14k
views
Why does zipping a zipped file not reduce its size?
Based on the idea that a zipped file is a new binary file, why can't I reduce a Zip's size by zipping it again and again – up to a very small resulting file?
3
votes
1
answer
23k
views
Extract the contents of ELF and write to binary file
I have been trying to extract the contents of a firmware and putting it to a binary file, but with no success.
I see the right hex contents, but am not sure how to laid them in bits into a file.
...
1
vote
2
answers
4k
views
How can I replace icons of an application's executable?
I have an application whose executable contains some default icon. Now, I know I can use a shortcut with whatever icon I want, but what I'm looking to do is change the icon without the executable ...
2
votes
0
answers
672
views
How can I prepend a byte to the beginning of a binary file in windows? [closed]
I have a binary file and I want to add a specific byte to the beginning of this file. How can I do it?
0
votes
4
answers
25k
views
How do you obtain 'raw binary dump' of a file?
I came through it in a question - What in the world is a .el8 file?. I am curious how @slhck determined that the file in question was pointing to the software - eLecta
2
votes
1
answer
1k
views
Can you write binary opcodes directly in a text file, and then will they be directly fetched by CPU like that?
I can not fivd any sources explaining how tp write direct opcodes for ISA to work on CPU. Not Assembly, opcodes directly or "machine code".
0
votes
4
answers
522
views
Why would a compiled and linked high-level language execute slower than Assembly/machine code? [closed]
Say I compile and link C in to a flat binary or some executable output format to run on a bare machine. If I optimized and fed the direct binary to the CPU upon boot up, why would the resulted format ...
-1
votes
1
answer
2k
views
How to download a zip/rar(content) in ASCII by a ftp
I am trying to download a file from a ftp server, the file is Zip/rar and I am using filezilla.
I download the file in Acssi but the problem comes when I unzip the file and the files are in binary. ...
3
votes
3
answers
795
views
Binary file search on Windows 8?
I'm in a weird situation. I need to find a file based on its contents, not the name because the name is not unique...
For example, I have a file named "cat.jpg". It is a picture of a cat. I happen to ...
0
votes
1
answer
487
views
Cinerella linux video editor binaries? Can't compile
I can't compile Cinerella 4.4.
Last messages I get from the compiler are below.
1) How can fix the compilation? Seems like some GCC or lib incompatibility. I use Ubuntu 12.10.
2) Can I get Cinerella ...
0
votes
0
answers
48
views
Execute permissions set but still getting 'No such file or directory'
I'm trying to run a binary file from bash but I get the above error when I try ./launcher from the directory it's located. Execute permissions and owner are all in order so what's the issue?
0
votes
1
answer
263
views
Software for tagging arbitrary files [closed]
I'd like a program that allows me to tag and organize arbitrary binary files, without having to modify them or move them around. Also, the files could be stored on a local HDD or on a DVD or any other ...
6
votes
1
answer
7k
views
What is a 8086 relocatable?
I'm running some Fortran software (LBLRTM) and a shell-script that prepares input generates a number of files with names TAPE3, TAPE4, etc. For debugging purposes, I used file to identify the file ...
0
votes
1
answer
4k
views
Is there any ways to extend the search (find-in-files) capability of WinRAR?
WinRAR is good at searching for a string in text files(java, xml, txt etc.) within an archive and it supports multiple archive formats. (rar, 7zip, winzip etc)
Is there some way to extend this ...
3
votes
1
answer
6k
views
How to search for a binary sequence on Windows?
I want to search for a binary file and all I know is that it contains a certain sequence of bytes. What tool can help me find it?
0
votes
1
answer
1k
views
Installing 64-bit Java on Ubuntu Server
I am trying to install 64-bit java on my Ubuntu server so I can host a Minecraft server. I have downloaded the package from java.com, extracted the file (it has no extension, for me it's just called ...
4
votes
3
answers
2k
views
Viewing binary files in terminal mangles display - any option other than closing window?
I don't always accidentally more a binary file, but when I do, I manage to output weird characters that (apparently) change the character set used by the terminal and make it difficult to read or ...
11
votes
3
answers
8k
views
Why can't we understand the content of a binary file after compiled?
As far I know, every program consists of a pack of processor instructions with some specific data variables(float, int, char...) to work on the processor registers.
So, the first thing that I ...
2
votes
1
answer
1k
views
Getting position of track and sector in 'dd'-created floppy image
I got some floppy images (original DOS 6.22 und FreeDOS 1.44 MB boot disks) created using the *nix ddcommand that work fine when used in a virtual environment.
Now I want to understand the structure ...
2
votes
1
answer
232
views
making a runnable file from a binary file
I have downloaded some programs from PortableLinuxApps.com such as Xnoise, and Chromium, and have them saved on a USB with the intention of their being part of a Swiss-Army-USB holiday gift for my ...
501
votes
30
answers
454k
views
How to check if a binary is 32 or 64 bit on Windows?
Is there an easy way to check if a binary is 32 or 64 bit on Windows? I need to check before I move the program to a 32bit machine and experience a spectacular failure.
0
votes
2
answers
161
views
Building distributable binaries in Unix
My intention is to generate distributable binaries - I am doing a ./configure - make - make install in my build machine, and I archived the content of the install directory (the one I gave a prefix to ...
4
votes
1
answer
5k
views
permission for the `www-data` user to execute a binary file
How can I give permission for the www-data user of Ubuntu machine to execute a command installed in /usr/local/bin ?
1
vote
2
answers
918
views
Why does Mercurial think my source files are binary?
I've been working on a programming project in Notepad, so far. Today, I opened my source files in an IDE to debug one thing, and the IDE converted saved my files as binary (or so Mercurial reports, ...
0
votes
1
answer
207
views
VMWare ESX storage more likely to cause file corruption than installing directly on hard disk?
On a ESX+Windows server, I help administrate, there is an accounting program using binary file storage, rather than a SQL-db with well-tested ACID properties. The binary files often have data ...
1
vote
1
answer
7k
views
Merge 3 ISO file segments into 1 complete ISO file
I need to merge 3 ISO files from Dell website and they state the following:
Download all ISO file segments into an
empty subdirectory on your local hard
drive. After you have downloaded all
...
1
vote
1
answer
3k
views
Saving a binary file with HyperTerminal
I have an embedded platform that is connected to my Windows PC via the serial connection. The embedded application sends 532 bytes through the connection. Using HyperTerminal, I am able to see the ...
1
vote
2
answers
2k
views
How to efficiently update a copy of a large binary file
I have a large file (~20 GB, VirtualBox VM of Windows XP) that I would like to clone to a second computer and then keep synchronized, 1-way, from the primary computer.
Is there a generic way of ...
0
votes
1
answer
1k
views
How to version large binary files?
I run Windows XP inside a virtual machine for some tasks. I attempted to use git to version the image for virtual box; however, it is about 6GB after all the service packs. I only have 6GB of ram ...