Questions tagged [binary]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
46 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
40 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
39 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
16 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
20 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
43 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
27 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
461 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
38 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
89 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
57 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
52 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
39 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
38 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
428 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
26 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
4answers
543 views

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

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
69 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
85 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
412 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
226 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
274 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
228 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
68 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
26 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
301 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 ------------------------...
5
votes
1answer
2k views

Why do I get “Binary file matches” with grep -I?

In the following example, grep behaves strangely: it's supplied with -I option, which, according to man page, should make grep ignore binary files (similarly to --binary-files=without-match), but I ...
0
votes
1answer
264 views

Shell - Read binary file character by character as hex

I'm trying to read serial input(/dev/tty*) character by character. I need this to parse the data following the corresponding protocol. My current method is as follows: while read -rs -n 1 c; do ...
0
votes
1answer
173 views

linux aplication binary files location - how to find out?

An application usually consists of 3 different file types : binary files configuration files application data Where does Linux (CentOS, RHEL) store the binary files for a given application / how ...
0
votes
3answers
583 views

How Change psql Versions?

My system is looking at usr/bin/psql and I need to use /usr/pgsql-10/bin/psql but I'm not sure how to change it. I don't feel like I should be deleting or renaming the first one. How can I get my ...
1
vote
1answer
52 views

Are CentOS 7 binaries the same of Ubuntu or any other GNU distribution?

I need to compile and run binaries on CentOS 7 but I'm having hard time running my wrapper app due to Python versions and other issues. If I compile and test binaries on Ubuntu (or any other ...
0
votes
1answer
94 views

Why would there be a binary incompatibility between packages for different Linux distributions? [duplicate]

The Linux Standard Base project is an effort to create a binary compatibility between different Linux distributions. But why would this be necessary? The implication is that the source code for the ...
1
vote
1answer
58 views

What software that I run uses AVX (or a specific assembly instruction)?

Let's say I want to find any libraries that use AVX, or the VZEROALL instruction? How could I go about doing that? I don't care if the AVX was hand written or compiled, I'll look that up later. I'm ...
3
votes
1answer
83 views

How do I boot a bootable .bin file from a CD/DVD?

I have written a bootable program in assembly and compiled it into an .bin file. I want to make it boot from a CD/DVD. How to do that?
1
vote
1answer
25 views

Insert OD output in another file

I have output from an od command (without access to the original file). Is it possible for me to get the binary data and insert it into another file with a programming language, like python? Here is ...
2
votes
1answer
510 views

Text file being identified as binary

Background I've been using lynx for a couple of years to dump automatically (via cron), process (using awk, sed, and tr), then mail (bsd-mailx) the contents of a web page. It's been working pretty ...
0
votes
2answers
1k views

Why the output of “cat a.out” is some weird text, instead of binary? [duplicate]

We all know "a.out" is file-format used to denote object code(binary) and is abbreviated form of assembler output, then cat a.out should also give us binary but why this doesn't happens? I am ...
1
vote
0answers
71 views

ARP binary for MIPS64 (big-endian) compatible with Linux v2.6

Where can I find an ARP binary for the MIPS64 (big-endian) CPU compatible with Linux v2.6 ? By "ARP binary" I mean a standalone compiled binary executable of the ARP command that manipulates the ...
3
votes
2answers
1k views

Is there a way to embed an executable binary in a shell script without extra tools?

I'm looking for a way to have an executable binary hardwired into a script. Something like this: #!/bin/bash ...some shell code execute binary: >>> binary code ......
1
vote
2answers
3k views

Use dd to extract a precise portion of a file?

I have a 588Ko file, and I want to extract bytes from 0x7E8D6 to 0x8AD5D. I tried : dd if=file of=result bs=50311 count=1 skip=518358 50311 stands for 0x8AD5D - 0x7E8D6 518358 stands for 0x7E8D6 (...
1
vote
2answers
96 views

CLI: Editing binary strings

There's a nice CLI binutils utility for interpreting binary files, and outputting legible strings, in a cat-like fashion. It's called strings. If you try to cat a binary file, you'll see a bunch of ...
1
vote
3answers
8k views

What's the right way to base64 encode a binary file on CentOS 7?

I'm using CentOS 7 with bash shell. I thought base64-encoding a binary file would be as simple as [rails@server lib]$ cat mybinary.file | base64 > /tmp/output.base64 However, I notice when I ...
1
vote
1answer
556 views

Replace a binary block within a large file

I have a partition image that contains a 1MB file populated with random data, and I would like to replace the contents of that file with another 1MB file populated with different random data. I have ...
1
vote
1answer
793 views

how to read a nul-terminated-string from a binary file

I have a binary file that is filled with FF values. I filled its start with many \000. Then, I padded its start with 10 \000, in order to get some kind of offset, and then I wrote a shorter string, ...
0
votes
1answer
87 views

how is it possible that which -a shows two paths?

When I execute which -a python I get two paths: /home/autumn/anaconda3/bin/python /usr/bin/python If I delete the directory ~/anaconda3 the first link to the python binary automatically vanishes....
0
votes
0answers
58 views

Automated way to periodically move files of a specific file-extension to cloud folder (mounted as local directory)

I am currently working on a large project (Phd thesis) using git for version control. My source files are processed by latex which are just plain-text, naturally suited to version control. The ...
2
votes
1answer
285 views

Why can't we delete an running executable file [closed]

As we know, when we execute an executable file, this file will be loaded into RAM. So I'm thinking that I can rm a.exe after ./a.exe. In my opinion, after executing ./a.exe, this file has been ...
2
votes
1answer
2k views

Symbol table in the .data section of ELF

I'm trying to understand how does symbol tables relate to the .data section in ELF. First some assumptions that I'm using as ground to start with. A symbol is a human readable (or "as written in ...
1
vote
1answer
13k views

Troubleshooting advice for: -bash: cannot execute binary file: Exec format error

I have a mining rig and am trying to run a program ./garlicoind but I get this error: -bash: ./garicoind: cannot execute binary file: Exec format error Is this a common problem? What does it ...