Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
228 views

Just in theory: is it possible to replace the domain string in the compiled binary file with an IP address by editing a binary file in place with sed? (IP address belongs to a different domain, but ...
fxgreen's user avatar
  • 143
10 votes
3 answers
12k views

I need to create a binary file that is filled only with 11111111. I only know how to create zero-filled binary with dd if=/dev/zero bs=18520 count=1 Could you please say to me what a command in ...
DisplayName's user avatar
4 votes
1 answer
3k views

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 ...
husin alhaj ahmade's user avatar
2 votes
1 answer
2k views

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. ...
husin alhaj ahmade's user avatar
10 votes
1 answer
7k views

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 ...
Freedo's user avatar
  • 1,396
2 votes
0 answers
260 views

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), ...
Changing Room's user avatar
0 votes
1 answer
819 views

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 ...
Jim's user avatar
  • 1,499
0 votes
1 answer
2k views

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 ...
Andrew Wei's user avatar
0 votes
1 answer
2k views

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 ...
Aart Stuurman's user avatar
0 votes
0 answers
301 views

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 ...
Dr Krishnakumar Gopalakrishnan's user avatar
3 votes
1 answer
3k views

I have this command which gets generated by a little script i wrote called "scan", which I use all the time to look for specific content (variable names etc) inside text files: find "." \ | awk '{...
Max Williams's user avatar
  • 1,167
1 vote
1 answer
628 views

So I made a decimal to binary converter but currently it doesn't chop off the zeros in the beginning. If I entered 64 for $1 it would start with 13 zeros which is rather unsightly but I don't know how ...
J. Doe's user avatar
  • 13
3 votes
2 answers
392 views

I need a large number of damaged .png files in order to test my project. To that end, I need to set all bytes from the 0x054-th to the 0xa00-th to 0. .png files contain chunks with checksums, I want ...
Vorac's user avatar
  • 3,247
2 votes
1 answer
11k views

I'm trying to apply SHA256 and then Base64 encode a string inside a shell script. Got it working with PHP: php -r 'echo base64_encode(hash("sha256", "asdasd", false));'. But I'm trying to get rid of ...
Niklas Berglund's user avatar
3 votes
2 answers
4k views

I am trying to extract a jpeg image from a binary text file. I want to extract all data between 0xFF 0xD8 (start of image) and 0xFF 0xD9 (end of image) inclusive. Earlier, I have successfully run the ...
Adnan Ashraf's user avatar

15 30 50 per page