Questions tagged [binary-files]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 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 : ...
0
votes
1answer
50 views

Differences between /init and /sbin/init

In Linux boot order, the kernel will execute /sbin/init, however, I can see another file /init existing in the file system on my linux (CentOS 8 WSL2, Ubuntu 20 WSL2). They are different binaries: $...
0
votes
2answers
61 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 ? ...
0
votes
1answer
32 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: ...
0
votes
0answers
19 views

openssl/asn1_locl.h' file not found

I am trying to compile SSL to generate the static libraries for macOS, iOS, and tvOS. I am using this script, found on the web and slightly adapted for the new versions. #!/bin/bash # This script ...
0
votes
2answers
51 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 ...
1
vote
2answers
1k 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 ...
1
vote
2answers
42 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.
0
votes
0answers
33 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?
1
vote
1answer
91 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 ...
2
votes
2answers
80 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. ...
1
vote
0answers
33 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 ...
1
vote
0answers
191 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/...
1
vote
1answer
57 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 ...
1
vote
1answer
133 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.
2
votes
1answer
274 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 ...
1
vote
1answer
110 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 ...
2
votes
3answers
299 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 ...
1
vote
0answers
25 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 ...
1
vote
1answer
768 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 ...
4
votes
1answer
145 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-...
1
vote
0answers
35 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 ...
2
votes
1answer
413 views

How to run an executable text-file directly?

I downloaded Apache Netbeans 11.0 (incubating) on Linux Mint 19.1. Since it does not have an installer, i had to use it straight from binaries that came with the bin.zip. Everything worked as they ...
1
vote
1answer
145 views

how to build midnight commander on windows (8.1) [closed]

https://midnight-commander.org/wiki Looking for layman's step by step guide to building the program on windows. I don't understand the process and have a hard time following the generic explanations ...
1
vote
0answers
299 views

how to compile ffmpeg ARM64 executable binary with android_camera enabled

I am having some trouble because, most of the post I read for compiling ffmpeg for android actually are only generating the shared library (.so) files which can then be linked into an android project ...
4
votes
1answer
12k views

How I can extract Binary file from EXE file?

I have a BIOS file .EXE and I want to extract the bainary file from it to flash it to a BIOS chip directly with USB EEPROM programmer. What I have tried: Extracting the EXE file with 7ZIP or WINZIP ...
2
votes
1answer
877 views

FFmpeg: convert an image's raw binary data to audio format (for databending purposes)

This article describes how one can mess with an image by converting its raw binary representation to audio PCM and applying audio effects to it, before converting back. The method it recommends is to ...
2
votes
3answers
2k views

Possible solutions for “-bash: ./bolt: cannot execute binary file”?

users, I hope some of you have an idea on how I can fix the following issue. What I am trying to do: I am trying to install/use a software called BOLT-LMM from a *.tar.gz file downloaded here as ...
1
vote
1answer
74 views

How to deinterlace GRAY video and convert it to .avi?

I have binary data stream from analogue camera that contains even and odd frames. Right now I convert it to .avi with this, ffmpeg -f rawvideo -pix_fmt gray -s:v 700x220 -i data.bin -c:v rawvideo -...
2
votes
3answers
960 views

Edit a binary file inside a Windows Self Extracting CAB archive?

I have an old "Win32 Cabinet Self-Extractor" file (*.exe extension) that I would like to make a small alteration to. I do not know where the original file came from or who made it but it is possible ...
12
votes
4answers
6k views

convert text file of bits to binary file

I have a file instructions.txt with the contents: 00000000000000000000000000010011 00000010110100010010000010000011 00000000011100110000001010110011 00000000011100110000010000110011 ...
1
vote
1answer
90 views

How can I make an old file easily readable?

I have this old .dat file (mid 90s), apparently encoded in ANSI, 4000 lines, consisting mostly of controls like NUL, SOH, ETX, STX... that I'd like to read. I tried to convert it to UTF-8 with ...
3
votes
1answer
366 views

Read contents of a .bin created by Win32 Disk Imager?

I saved an image of a USB stick using Win32 Disk Imager, which produced only a .bin file of the same size as the drive. Is it possible to read this .bin file as if it were a drive? I have access to ...
1
vote
1answer
119 views

Why binary files like this snippet of a PNG has all this whitespace in it

Here is a snippet of the first part of a PNG file viewed just by opening it up in Sublime Text and viewing the hex code directly. 8950 4e47 0d0a 1a0a 0000 000d 4948 4452 0000 02e7 0000 0155 0806 0000 ...
1
vote
2answers
380 views

Compare binary files with different meta data

In Windows, I wish to compare old binary files with newly built ones in order to determine which files has been updated. However, when I build the files I give them new meta data details (like version ...
1
vote
1answer
254 views

Merge multiple CLI EXEs into a single EXE?

I currently use three command-line Windows applications to backup, zip, and upload files: HoboCopy.exe, 7za.exe, and ncftpput.exe. I was wondering if there were a way to somehow merge/combine those ...
1
vote
2answers
190 views

Binary file in the dock as application

I have installed qutebrowser in /usr/local/bin/qutebrowser and would like to add it to my dock. What's the right process for adding a binary to the dock, as if it was an application?
1
vote
1answer
561 views

Why is this binary file seemingly non-executable?

I would like to execute this binary file: /usr/bin/snx (CheckPoint Security VPN client) When I execute snx or sudo snx from anywnere, the responses are: bash: /usr/bin/snx: No such file or directory ...
1
vote
1answer
561 views

MacOS cannot execute binary file after uninstall zsh

After I open the terminal this text will appear: Last login: Mon Mar 26 17:51:02 on ttys001 -bash: /usr/local/bin/dirname: cannot execute binary file -bash: /usr/local/bin/dirname: cannot execute ...
1
vote
1answer
61 views

Why is my C++ program opening in text editor after compilation?

I've just compiled a C++ program - which is not a console program, but instead, graphical and using gtkmm. After building with g++, I can launch it by typing ./program from the terminal. However, if ...
2
votes
1answer
3k views

Unable to copy windows registry key to another PC

I want to copy the registry key in the picture below to another PC but I've tried everything and I couldn't. How could I do this?
0
votes
2answers
160 views

A text is converting to ASCII or BINARY first?

When we type something in a text file or suppose that I'm sending an email to my friend with an attachment inside the email. In both cases of text file and email. What is happening first? Is that text/...
1
vote
2answers
327 views

Why a binary format specification is needed for executable files?

I understand an operating system like Linux or Windows is written in C/C++ and compiled to a given architecture (for example AMD64) to produce a machine code that is suitable for that architecture. ...
2
votes
2answers
5k views

How are numbers greater than 255 denoted in binary?

The binary value for 255 is 11111111, with all of the memory locations used up. How can greater numbers, for example, 481 be denoted? Will they be written singularly, like (considering the above ...
2
votes
0answers
59 views

Git - Limit number of revisions in advance?

I searched for the exact same term I titled this question with, but all I found were questions regarding the cleanup of git repositories which contain to many revisions of too many or especially too ...
1
vote
0answers
183 views

How do I remove opcodes using hexcurse?

I am trying to do some Hex editing using hexcurse on Linux. The following is the link to the binary file I am editing. How do I remove all of the text that isn't highlighted in white? The image of ...
10
votes
2answers
7k views

Write n bytes from a file into another in Bash

Hello how can I write n bytes from one file into a new file starting from the k position using Bash? For example if n=60, k=1 and file size=100 then: the 2nd file would consist of from the 1st byte ...
1
vote
1answer
99 views

Can a file divide anything smaller then 8bits?

Short Question: What is the smallest unit savable to a file? What is the smallest divisible unit of a file? Long Question: I've been looking through the internet, trying to find out if I can access ...
2
votes
1answer
299 views

What happens when assembly code is translated into Object code?

I am interested in System Software development. I have been analyzing the working of a compiler for a few days. An Assembly code generated by a Compiler(say) clc has an opcode f8 and I am sure that ...
1
vote
1answer
560 views

How to view sections & addresses of .bin and .hex files in Linux?

I have started reversing a binary. I dumped the contents as hex using xxd into a file I made with extension .hex, then used objdump to disassemble that .hex file into assembly code, and put this into ...