Questions tagged [binary]

The tag has no usage guidance.

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

No binary after python3-pygments

I need pygmentize for my Latex document. Since minted seems to work only with the python3 version, I want to install python3-pygments. (I'm using Ubuntu 16.04.7 LTS) Now that seems to work at first, ...
0
votes
1answer
49 views

stdout equivalent in pure binary?

Heyo all! I know this sounds like a super ambiguous question, but I think it's relevant. First, let me define some terms. Binary In this question, meaning the literal 1s and 0s that the computer ...
0
votes
1answer
25 views

compile linux into a binary to run a VM

I know there is a project that allows one to compile linux kernel into a (linux executable) binary that can be run from the linux host to create a guest VM.... I always forget the name of the project. ...
0
votes
1answer
63 views

convert encoding of id3 tags of mp3 file

My mp3 file has id3 tags which can be displayed in a terminal on my debian buster linux for example by using the program id3tool or id3. If my shell (xfce4-terminal) has a set default character ...
0
votes
1answer
39 views

Executable binaries labelled as shared library files

After compiling software from source code, I can usually launch the compiled binary by double-clicking on it. Recently however, most of my compiled binaries are not responding to double-click, even if ...
0
votes
2answers
36 views

Why does dos2unix abort converting files with special characters by default?

The man page for dos2unix states: Binary files are automatically skipped, unless conversion is forced. ... -f, --force Force conversion of binary files. If you run dos2unix without the -f flag ...
1
vote
2answers
170 views

Convert a textual representation of a float to actual numeral using command line

I have a double printed as text. Is there a way to pass that source text number to some utility in order to get the actual numeral i.e. the nearest actual representable double value? Either in decimal/...
1
vote
0answers
121 views

Search and 'in-place' replace strings in binary file

I want search and 'in-place' replace strings in binary file (case-sensitive, colon-separated strings). What method would be more clean, sed or bbe? sed -i.bak 's/F:O:0/B:A:R/g' file.bin bbe -e 's/F:O:...
3
votes
1answer
84 views

How to disassembly multiple functions using Linux utility objdump?

After a program is compiled and the binary file is generated, we can use objdump to disassemble the binary file and extract the assembly code and a lot of information. However, using -j .text with ...
0
votes
0answers
20 views

How to delete a binary that is not been shown on dpkg -list

So I compiled a program that I downloaded in github with Make and MakeFile , I'm looking to delete it and as far as I can see. it created two binaries. /dev/stterm (which is shown on dpkg -list) /usr/...
1
vote
1answer
93 views

How can we perform an arithmetic operation on a register using GDB? [closed]

I want to inject a bit-flip fault into a running program. For this purpose, I'm using gdb to insert a breakpoint into the target program and then flipping a single bit in a random-selected register. ...
1
vote
1answer
38 views

Which binary would be run when we have multiple installations?

I wanted to set gsettings as /usr/bin/gsettings so I created an alias. But I am not sure if that works: $ type gsettings gsettings is aliased to `/usr/bin/gsettings' gsettings is /home/linuxbrew/....
0
votes
1answer
96 views

What is the encoding format of a binary file(OBJ file,a.out,ELF etc..) [closed]

When I open a binary file in vim, I see the mnemonics instead of the 0s and 1s. I believe this is due to the fact that vim by default opens the file in ASCII mode. Is my understanding right? What is ...
-1
votes
1answer
54 views

How to determine the number of records in a binary file given the delimiter

I want to determine the number of records in a given binary file. The delimiter of the file is taken as input from the user.the total How may I proceed ?
-1
votes
2answers
119 views

How to determine the Number of records in a binary file that has fixed size records [closed]

I am trying to determine the number of records in a binary file. The size of the binary file is determined by wc -c. The delimiter is unknown .the size of records is fixed. The exact size of each ...
4
votes
1answer
218 views

How to fix onedrive corrupt zips with a bash script

Currently onedrive generates zip files that are broken to most software. https://www.bitsgalore.org/2020/03/11/does-microsoft-onedrive-export-large-ZIP-files-that-are-corrupt As we can see here, the ...
0
votes
1answer
47 views

How do linux distros like Debian, Red Hat make many binary packages from one source package? [closed]

I wonder how linux distros like Debian, Red Hat, Gentoo, Ubuntu make many binary packages from one package? When I compile package, they just become install all in one. So my questions are: How do ...
0
votes
1answer
114 views

zip/compress a .bin file

I have a .bin file size of 8MB; is it possible to compress it or zip it? Tried with 7z but 8MB -> 7.90 MB so any relevant changes. Is there any other tools? Or simply is it not possible?
0
votes
3answers
42 views

BASH binary to Hex to match PHP bin2hex function?

In bash I can call PHP and run the following: testKey='8798(*&98}9%"^8&]8_98{9798**76876' testHex=$(php -r "echo bin2hex('$testKey');") echo $testHex And that will result in ...
1
vote
4answers
62 views

How to count the number of bytes in a very large file, grouping the same bytes? [duplicate]

I am searching for a way to get a statistics on a very large (multiple times larger than the available RAM) the outputs what byte values in the files are present and how often: A0 01 00 FF 77 01 77 ...
1
vote
1answer
130 views

How do I find binary installed from AUR package?

I installed balena-cli from AUR (https://aur.archlinux.org/packages/balena-cli/) using yay on my Arch box and all seemed to complete well but I can't find a balena-cli (or similar binary) on my system....
0
votes
1answer
43 views

command invocation location is inconsistent with `which` command output

I'm installing protocolbuf on my CentOS 7 box, and after installation, I saw some inconsistency while running the protoc compiler binary: $ which protoc /usr/local/bin/protoc $ protoc bash: /bin/...
14
votes
5answers
3k views

Diff of two similar big raw binary files

Let's say I have a 4 GB file abc on my local computer. I have uploaded it to a distant server via SFTP, it took a few hours. Now I have slightly modified the file (probably 50 MB maximum, but not ...
2
votes
0answers
72 views

How Can I Use shc to Convert Scripts that contain `wget` Into Binaries? [closed]

I have a bash script that I wish to convert into a binary using shc. It includes the line wget www.google.com. If I run shc -f myscript.sh to convert it into ./myscript.sh.x (the resulting program), ...
0
votes
0answers
158 views

is there any way to execute binaries without importing anything from .py scripts?

First of all i created binaries of python scripts using following commands in ubuntu-16.04: cython3 --embed -o hello.c hello.py gcc -Os -I /usr/include/python3.5m -o hello hello.c -lpython3.5m -...
0
votes
0answers
169 views

How compare two binary files, showing long portions that match?

I have two pcapng files, and I'd like to compare them showing the matching portions and not. Basically, I know that in these 2 files each block header is different, but the block data are the same. ...
0
votes
0answers
19 views

Binary compiled from Debian 10 distro segfaults in newly created Debian 10 distro

To begin with, I'll sum up the context : I needed to create a distro based on Debian 10 for a personal project. I used live-build to generate the distro since I needed to put specific files in the ...
0
votes
0answers
23 views

Identifying dependencies of binary not already existing in distro and copy them

I'm trying to create a "copy" of a binary with all it's required dependencies and shared libraries. Since I'm copying to a same version of my distro I don't want to include shared libraries already ...
1
vote
1answer
142 views

Diff identifying html files as binary

I may be missing some information here, but I was surprised today when I tried to run diff on two .html files that should have a subtle difference and got this message: $ diff index.html index3.html ...
0
votes
0answers
39 views

Is it possible to have a binary and external files in separate folders?

I'm trying to create a .deb installer which saves the binary in the /usr/bin directory, and the external files in the /usr/lib/ directory. The installer works, except the binary is looks for files in ...
0
votes
0answers
2k views

What's the equivalent to objcopy on macOS?

I would expect llvm-objcopy to be installed on macOS, since its counterpart llvm-objdump is installed toghether with other LLVM tools like clang. What is the llvm-objcopy-equivalent tool to use on ...
0
votes
1answer
81 views

Grant sudo rights to binary without entering password [duplicate]

I've got some binary in /usr/bin. (brightlight, in my case). It changes screen brightness, but needs sudo rights to work. I want to bind it to shortkey, so I can't really enter my password every time ...
0
votes
1answer
192 views

bash file contain executable/binary code

I found this tool and when I downloaded it is a bash executable that contains binary code. First of all I didn't know this is possible. Does anyone know who this can be done? Also I am not sure how ...
-2
votes
1answer
61 views

Beeing root but without knowing password. Replacing binaries in /bin/ to bypass restrictions

I have an active root account, but I don't know my password. To be able to change my password or even to create another users (with the tool passwd) I need to know my password. So that creates a ...
4
votes
1answer
57 views

How many binaries do I need to get 'reasonable' Linux coverage?

Sorry, completely opinion-based. Please let me know if I should be asking elsewhere. I have written some free-of-charge engineering software (command line, no graphics) which has to be distributed as ...
2
votes
3answers
44 views

how do i figure out the architecture of certain hardware?

I have a tomtom one XL GPS. It is clearly a linux device: plugging it in shows a stripped down filesystem, and strings gltt | less (a program in the bin) shows: /lib/ld-linux.so.2 __gmon_start__ ...
2
votes
1answer
43 views

Any automatic way of obtaining the ELF section an address resides in?

Suppose I've the address of some string or symbol in an ELF binary output by e.g. strings -a and want to know what section that address resides in. Normally, I would do objdump -h and manually find ...
0
votes
0answers
49 views

Binary file permissions issue

I've been facing an issue with NordVPN binary installation after I compiled a package and install it at the end it says processing changes... and then cannot remove /var/lib/nordvpn/data/insights.dat ...
-1
votes
1answer
555 views

updates.sh - Command Not Found - Arch linux

I installed Archlabs 1 month later, today I noticed bin folder in ~ directory and Deleted it. After Reboot This errors Came out in polybar /bin/sh: updates.sh: command not foun And /bin/sh: ...
0
votes
2answers
49 views

How can I know what is the binary value I receive in a tcp socket?

in a socket created in the following way: nc -k -l 3111 I receive this message: �...
5
votes
5answers
970 views

How to count the number of bytes in a file, grouping the same bytes? [duplicate]

Example: I have the file "mybinaryfile", and the contents in hex are: A0 01 00 FF 77 01 77 01 A0 I need to know how many A0 bytes there are in this file, how many 01, and so on. The result could be: ...
0
votes
1answer
206 views

Simple Binary Replacement

I tried using bbe as below bbe -e 's/01110011/01111000/' test.txt All I'm trying to accomplish in this example is to read the file as if it's a binary file, and replacing the letter s with x. I'm ...
0
votes
1answer
152 views

How can I open a binary file with extension .chk or no extension? [closed]

I have a directory that was originally all ".doc" files and were copied over to an external hdd. Now all the files are 'binary' files. Some have extensions, many do not. I tried opening them with ...
1
vote
1answer
1k views

Why doesn't objdump display any entries for the .got section of the ELF binary?

I know of the relationship between the .plt and .got sections in an ELF binary, i.e. that corresponding entries must exist in each section for each dynamically loaded function (shared library). ...
0
votes
1answer
693 views

Is it safe to delete a binary in /usr/bin?

I installed the precompiled binary of a command line program in /usr/bin, now I want to install the same program using my package manager. In order to avoid conflict between the package manager dnf ...
0
votes
1answer
354 views

cannot execute elastix binary file

I am trying to run a binary file (./elastix) in the terminal but I am getting the following error /Users/tony/Desktop/elastix-4.9/bin/elastix: cannot execute binary file When I type the command file ...
1
vote
2answers
560 views

View and delete part of data in binary file

How to delete part of binary data from binary file? (hex dump). I tried GHex 3.18.0 binary file editor, but it's not suitable for this, just lack even simple features. For example, I need select the ...
0
votes
0answers
119 views

In vim in binary mode what is a ^K character?

When I open a file with vim -b it displays ^K sometimes in the text, which cannot be removed by dos2unix. It prevents dos2unix from processing the file:dos2unix: Binary symbol 0x0B found at line 628 ...
-1
votes
1answer
43 views

Can I install binary only drivers in Gentoo Linux?

I am considering Gentoo Linux as a possible candidate for my system. The only doubt I have at this point is about binary tools. Being Gentoo a source based distribution to be built from scratch, can ...
-2
votes
1answer
654 views

Replace a binary file within another binary file

Is it possible replace in place a binary file located inside another binary file? For example, compressed firmware.bin file contains: DECIMAL HEXADECIMAL DESCRIPTION ------------------------...

1
2 3 4 5 6