Questions tagged [binary-files]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
65 views

What is a container?

There is a lot of jargon around the word container. From AVI or M4A being a container to PE being a container format as noted in this comment. It is important to understand that PE is just a ...
Whitequill Riclo's user avatar
1 vote
1 answer
71 views

How can I debug Binary batch file?

I have a .bat file in binary format. But I don't know its functioning. How can I view the content in detail or debug the binary .bat file, or convert it to exe file?
Bernd Groger's user avatar
0 votes
1 answer
69 views

File Contents Replaced with 0xFF (and a few 0x7F)

I have a corrupted word document whose data I am trying to recover. It comes from a thumb drive suspected of having virus activity; this is not the only file that has been affected. Opened it up with ...
Bondolin's user avatar
  • 103
15 votes
1 answer
3k views

Why does my "grep" stop filtering a non-ASCII file it thinks is "binary"?

I'm working with a Windows-10 computer, using a WSL. I'm investigating a logfile, produced by NLog in a C# application. I'm expecting log entries to appear everywhere throughout the file, but I see ...
Dominique's user avatar
  • 2,015
0 votes
1 answer
358 views

How can I add dummy bytes to a file? [duplicate]

I am on Windows 11 and I basically care about making the file (a .bin file) seem larger than it is without augmenting the file's function. I have a 524,288 byte-sized file and I want to make it 4,194,...
tcwub's user avatar
  • 9
0 votes
1 answer
3k views

"There are some data after the end of the payload data" on 7zip while extracting a bin file from Gmod workshop

Before we start, this is a near-identical issue from 6 years ago, where the answer offered seem less relevant today due to updates to 7Zip. While using 7zip to extract a bin file downloaded via ...
HFOrangefish's user avatar
0 votes
2 answers
627 views

Bash: truncate or crop part of binary file or stdin on CLI?

If I have a binary file, or some command with a raw binary output, and I'm looking for a shell (bash) command to crop a specific part of data i.e. with given start and length or end offset in bytes. ...
RocketNuts's user avatar
  • 1,052
1 vote
0 answers
714 views

Grepping byte offset values for data blocks of specific type in a binary file, but it's skipping blocks containing any byte larger than 127 [or 0x7F]

I have a binary file containing blocks of data. The first four bytes of each block contains a fixed byte string, five bytes after that contains the block's "type" byte. I want to find out ...
John's user avatar
  • 11
1 vote
1 answer
4k views

How can i convert a .bin file to a .json file [closed]

There is a ".bin" file on my pc that i want to convert. I tried to do it with a ISO reader but it wont work. The only thing i know about this file, it stores some json data that i want to ...
q4p's user avatar
  • 13
0 votes
1 answer
978 views

Put binary numbers per row one by one

My aim is convert decimal number to binary numbers and putting binary numbers one by one per column in EXCEL. I did convert decimal to binary using BASE command and do not know how to put it one by ...
Max's user avatar
  • 1
0 votes
0 answers
130 views

What is the concrete difference between a binary file and any other kind of text file? [duplicate]

Question based out of curiosity. Why if I copy the code from a binary compiled from c code, and paste it into a new file that I make executable, this new file doesn't act as a binary and execute the ...
awasi's user avatar
  • 101
0 votes
1 answer
161 views

Super user binary source for Debian distro

I'm trying to craft a new root handle in a Debian distro and need to know where the source code for the su binary is located in order to move forward. Can anyone point me in the right direction?
Brandon Mccrary's user avatar
0 votes
0 answers
228 views

Windows: How to convert binary database file (compressed with zlib) to human-readable string data? (ProcrastiTracker .PT file)

The current question is derived directly from this one, as my general problem is how to process the data collected by the ProcrastiTracker program. Once installed on a Windows machine, ...
Emman's user avatar
  • 101
1 vote
1 answer
82 views

Modify $PATH while unpacking archive in Linux

Suppose I have tar.bz2 archive, with some directory that has binary file and some assistive files for it. When user unpack it, he must start binary from within the result directory such a way: ./...
NK-cell's user avatar
  • 175
1 vote
2 answers
779 views

In Excel how to create 4 digit binary(0,1) with respect to successive order for N tiimes?

4 Digit Binary Algorithm decoding i have tried decoding the sequence but i couldn't, also tried in 16 ways to have four digit method. for instance 0000 0001 1011 1000 0101 0101 1000 0100
Sasi Tharan's user avatar
0 votes
2 answers
1k views

How to burn a boot loader onto a USB drive (boot-loader as a .bin)

I have created a very small boot loader in assembly and am wanting to test it on my physical hardware and so I am using a USB drive to do this. I have converted the assembly to machine code and to a ....
cdecde57's user avatar
-3 votes
1 answer
2k views

Is there windows a utility that can write/read/create and manage image files like IMG, ISO, etc? [closed]

I am wondering if there is a utility for windows that can write/read/create and manage image files? E.G. Trying to write a custom bootsector for a floppy img file Thanks in advance! EDIT: PowerISO is ...
VinnyRulesGaming's user avatar
0 votes
1 answer
72 views

Why client need a new build instead of just download the released executable

The question is just a sentence, why the github projects would always like to come with the build instructions instead of just leaving the download link/instruction? I personally think that it ...
null's user avatar
  • 13
1 vote
1 answer
250 views

`grep -z -a -b -P --only-matching 'LUKS\xba\xbe'` doesn't match `LUKS\xba\xbe...`

I don't understand (based on https://ubuntuforums.org/showthread.php?t=1643334): % grep -a -b -P --only-matching 'LUKS\xba\xbe' /dev/sde ### does not match % echo -e 'LUKS\xba\xbe...' | grep -a -b -P ...
U. Windl's user avatar
  • 514
0 votes
2 answers
2k views

Remove null bytes from file

How to remove leading null bytes in a binary file on Win CMD? This file could be the result of file splitting or truncation where null bytes were indicators of file boundaries in the (larger) parent ...
Zimba's user avatar
  • 1,061
0 votes
0 answers
3k views

Can I convert my octet-stream / text file to a jpeg?

I got a file with MIME type application/octet-stream, off the browser cache. I have a strong feeling it's a jpeg file that I want to open. First few files of the file: ÿØÿà �JFIF������ÿÛ�„� &...
Vedant Agarwala's user avatar
0 votes
0 answers
34 views

How open binary file

I have a file called AndroidManifest.xml I'm studying about injecting the payload manually, and for that I need to open the file to look for another file, only when I open the characters it looks like ...
Dakota's user avatar
  • 153
0 votes
1 answer
1k views

Extract files from disk raw image

I have two raw images of some old IDE HDD (one made without of any data correction and second made with). Trying to mount the images to the system by various methods do not work properly. I use ...
Denis Leonov's user avatar
3 votes
1 answer
15k views

How to install a bin file on virtual box?

I downloaded a .bin image of Cloudready OS and want to install it on VirtualBox. How do I do it? Apparantely VB doesn't take bin files. Is there any way or do I need to convert bin to iso?
batchcoding____s's user avatar
-2 votes
1 answer
3k views

How can i convert a .bin (binary) to a .json (json) file with linux?

I don't know how to convert a binary file back to a .json file. I have been searching for a while now and could not find a single answer, well, i did but none of which worked. Can this be done in ...
Ring_Games_Database_And_Coding's user avatar
0 votes
1 answer
306 views

How to chain command arguments to a specific command binary

I have general question about chaining commands to one specific binary in bash shell, with examples from Magento (use case) In Magento you commonly want to chain many commands together - they take ...
Scott Anderson's user avatar
2 votes
0 answers
1k views

How can I interactively diff large binary files?

I'm trying to compare hex-dumps of some 500GB disk images. I can easily view parts of the files by piping hd into less. I'd like something similar to interactively diff them without having to read the ...
Wes Toleman's user avatar
1 vote
0 answers
1k views

Clarification on FTP - ASCII vs. binary transfer mode after having corrupted files

Recently I wasted almost two hours before realizing that the file upload with Filezilla corrupted the files (e.g. adding unwanted spaces or special UTF-8 characters being corrupted) after downloading ...
Blackbam's user avatar
  • 417
0 votes
0 answers
1k views

WinMerge Binary Difference

So I'm trying to manually RAID all of my important data obtained through life, and have just discovered the joys of WinMerge to compare & identify differences between files & directories. ...
Decxz's user avatar
  • 1
3 votes
2 answers
609 views

How to get the install path of ImageMagick using Chocolately on GitHub Actions/CI?

So I have this error: Getting "Invalid Parameter - -fuzz" on ImageMagick convert command on Windows 10, because ImageMagick isn't in the PATH properly on Windows. The problem now is, how do ...
Lance's user avatar
  • 365
0 votes
1 answer
89 views

How are files data separated in the hard drive?

if i only have a file that contain 1 byte and another file_2 that contain 1 bytes in my hard drive , how are they separated is there a character that separate them like NULL for example like : ...
Oussema Nehdi's user avatar
0 votes
2 answers
379 views

If binary is 0 and 1 why do i see something like \x8c\x8e\xfc\r\xc3\x8a in binary files and programs?

whenever i try to open a binary file like an image or exe program i dont see 0 and 1 i just see some stuff like \x00\x8fi>\x9f\xd2\x98\x16\ How is that binary data ? ...
Oussema Nehdi's user avatar
0 votes
1 answer
305 views

Getting human readable strings in a hexdump file

I have a hexdump file which is the following : 00000000: 1f8b 0808 d7d2 c55b 0203 6461 7461 322e .......[..data2. 00000010: 6269 6e00 013c 02c3 fd42 5a68 3931 4159 bin..<...BZh91AY 00000020: ...
Garde Des Ombres's user avatar
1 vote
2 answers
527 views

Can binary strings in a terminal do anything dangerous?

I find myself sometimes accidentally cating a binary file, or SELECTing some binary field from the mysql CLI, ending up with stuff like this being displayed on the screen: ▒=▒▒▒▒f4▒Kҫ24T?) Or ...
BenMorel's user avatar
  • 915
2 votes
4 answers
9k views

Bin folder for Windows 10

I'm trying to replicate a UNIX bin folder on my Windows 10 PC. I have created a folder located at "C:\bin" and added it to my PATH variable. However, I'm not really sure as how to implement it any ...
Samuel Ivarsson's user avatar
1 vote
2 answers
254 views

Viewing the content of a hard drive in binary without using a Hex editor

Can we view the content of a hard drive in binary without using a Hex editor but with a simple text editor like Mousepad or gedit ? I'm using Debian.
Nicryc's user avatar
  • 675
0 votes
0 answers
52 views

Is URL encoding guarranteed to output printable characters only?

I refer to the URL encoding used in Burp and in the browsers Is URL encoding guaranteed to output printable characters only?
TAbdiukov's user avatar
  • 132
2 votes
1 answer
1k views

How to strip/remove/cut Zero/Null-Bytes off a file [closed]

Given: A generic binary file and a block size Desired output: A copy of the binary file where all the blocks that contain only Zero-Bits/Bytes have been removed/stripped from the file I really ...
dsfsdfdsf23's user avatar
2 votes
2 answers
108 views

copy binaries from /sourcedir and its subdirs to /destdir

I want to copy all binaries from /sourcedir and its sub-dirs to /destdir. Basically, all files with: no extension, and all files with *.a, *.so, *.ko, and exclude from copy: Makefile and *.depend. ...
masher's user avatar
  • 31
1 vote
0 answers
187 views

What tool can I use to transform a binary file to and from plain text? [duplicate]

I would like to send a binary (PDF) file through a channel that supports plain text only. Is there a multi-platform standard tool that will convert the binary file into a chunk of plain text so that ...
user118967's user avatar
1 vote
0 answers
1k views

"cannot execute binary file" on aws ec2 with sage (using python) shell

I would like to use SageMath (using Python) on a AWS EC2 server. When I tried the SageMath console interface I got the following error: /opt/sagemath-8.8/local/bin/python: /opt/sagemath-8.8/local/...
Sebastien Palcoux's user avatar
1 vote
1 answer
659 views

Git revision control on a binary file (that seems only to have text)

A program I use (TopSolid) saves it's settings in the top.cfg file. When I open the file with a text editor (notepad++ and notepad) I can see only text. Sample: A_COATING_NAME "" A_FINISHING_NAME ...
quazoosl's user avatar
  • 141
1 vote
1 answer
2k views

In notepad++, how can i copy a lot of nulls without changing it to a space on a different tab?

How do I copy-paste null from one tab to another tab in notepad++? It is eye-straining to input so many null values manually.
Dald's user avatar
  • 11
3 votes
1 answer
628 views

plutil error 998 when trying to convert binary to XML

EDIT: Clarification. I'd like to read the contents of a .plist file on Windows. I tried with VS Code but it's not ideal and it says "File seems to be binary and cannot be opened as text" so I ...
Emcs's user avatar
  • 31
2 votes
1 answer
527 views

Multiple GCC versions in ELF comments

I'm trying to determine what version of GCC was used to compile various executables. To do this I'm looking at the comment section of ELF files. I assumed I would always only come across a single ...
Kevin Postlethwait's user avatar
2 votes
3 answers
3k views

How to diff three binary files to show only what changed between 1 and 2 and then changed back between 2 and 3?

I have three binary files (memory dumps). Call them file1, file2, file3. I'm trying to debug some software, and I'm toggling a switch. file1 = switch off file2 = switch on file3 = switch off I need ...
authur1234's user avatar
1 vote
0 answers
27 views

FTP clients with text and binary modes [duplicate]

If all files on a computer memory disk, in their most basic form, are sequences of binary digits, that including text files, why do some FTP clients have text and binary modes for uploading files onto ...
fortran's user avatar
  • 11
3 votes
1 answer
4k views

Compare two binary files of different sizes

I am trying to compare two binary files in order to identify one of them. The first file I have contains the data I am interested in and can use to identify the second. The second file is from a 3rd ...
Carl Owens's user avatar
5 votes
1 answer
347 views

Why does make ignore escape sequence if the output is piped

In a Makefile, I want to print a byte represented as a hexadecimal number and pass it to STDIN of another program. For some reason, it doesn't work: without-pipe: @printf '\x66\x6f\x6f' with-...
Sergei Morozov's user avatar
1 vote
0 answers
82 views

Chrome developer tools: MEMORY Head snapshot: Getting text information from a head snapshot file

I have had a Google Form done with a long textual intro, that was accidentally erased by a colleague. The text is important to me, its about a page long. I have, about 6 hours later followed the tips ...
Adam Pajgrt's user avatar