Software :: Use Grep Through A Binary File For Sequence Of Bytes?

Apr 7, 2009

Is it possible to use grep to search for a sequence of bytes? For instance say I was looking for the following byte sequence in a file:

64 03 40 30 ; add eax, fs:[eax+30h]

Is this possible to do using grep?

View 5 Replies


ADVERTISEMENT

General :: Command Line To Prepend 8 Bytes Of Data To A Binary File?

Jan 14, 2011

i would like to add 8 bytes of data to the begigning of a binary file.is there a command for this?

View 2 Replies View Related

General :: Search Partition For Specific Sequence Of Bytes

Aug 17, 2010

I lost an important file. I know what bytes the file begins with. How can I search the partition for the sequence of bytes?

View 4 Replies View Related

CentOS 5 :: Bash: /bin/grep: Cannot Execute Binary File CentOS 5.4

Jun 4, 2011

I am facing problem on executing commands like df -h,ls-l,grep etc in /bin.

it is showing below errors:--
----------------------------------------------------------------------------------
login as: root
root@220.226.102.217's password:
Last login: Sat Jun 4 11:14:20 2011 from 220.227.54.149
-bash: /bin/egrep: cannot execute binary file

[code]....

View 2 Replies View Related

Programming :: Finding A Utility To Combine Two Or More Binary Files Into A Single Binary File?

May 5, 2011

Is there any Linux utility to combine two or more binary files into a single binary file ?

View 7 Replies View Related

Ubuntu :: Error: Allowed Memory Size Of 20971520 Bytes Exhausted (tried To Allocate 7680 Bytes) In /var/www/index.php On Line 2

Jan 9, 2011

I recently had to move to a new machine, everything went well except for one thing. I did fresh installation of LAMP server all with default configs. Every time I'm using PHP script to that invokes include, require or require_once I get the following error:

Code: Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 7680 bytes) in /var/www/index.php on line 2 index.php file: PHP Code:
<?php    include "index.php";?>
icukapi.php file:
PHP Code:
<?php    echo "test";?>

My memory_limit in php.ini is set to 20M. I tried to increase that however it didn't quite work. PHP seems to allocate all possible space and return that message every time i try. If somebody has an idea of how to fix it I would be more than grateful. I spend quite a long time searching for an answer however the all things i found suggested increating memory_limit which in this case doesn't work.

View 1 Replies View Related

Programming :: Input File - Grep Within Grep

Nov 22, 2010

I need to kind of grep within grep. My input file would be something like:

[Code]....

and I need to find the first occurrence of hello before MY PATTERN (hello 9008 in this case), so the output should be:

[Code]....

View 4 Replies View Related

Programming :: Fill A File With N Bytes Of A Given Value?

Dec 17, 2008

How do i fill a file with <n> bytes at a given value ,for example 3?

View 3 Replies View Related

Ubuntu :: File Transfer Speed Shown In Bytes/sec ?

Apr 20, 2010

I have few different usb cards and socets , some of them i have really hotwired.. and i would like to find out where to keep my usb-hdd . few months ago i would use "total commander" it would show .. copying-444Kb/s but these times are over...

View 1 Replies View Related

Software :: How To List File Sequence

Oct 31, 2010

If I have sequence of image file like this:
image.0001.jpg
image.0002.jpg
image.0003.jpg
...
image.9999.jpg

Is there anyway to list all file like this?image.[1-9999].jpg

View 4 Replies View Related

Server :: Scp Truncate Text File Busy - Copying File Is Not A Running Binary?

Jun 14, 2010

I am having problems with scp during a backup operationI added a ps -ef before and after the scp operation used during the backup.The backup is a script to backup a Zimbra ServerI am including the code segment that I am having problems

Code:
# DRCP Section. To scp newly created archives to a remote system
if [ "$DRCP" = "yes" ]

[code]...

View 3 Replies View Related

General :: Convert Binary File In To Ascii File Using Shell Script?

May 23, 2011

i am trying to convert a binary file in to ASCII using shell script. this file contains multiple types of data like string, number, bcd, etc.

View 5 Replies View Related

Ubuntu :: GDM Broken - Gdm-binary[230]: WARNING: Unable To Load File '/etc/gdm/custom.conf'. No Such File Or Directory

Sep 1, 2011

I've had Ubuntu 11.04 installed on my desktop since it's release. Up until an hour ago, it was working fine. I clicked on an update from the update manager, now booting into a graphical mode is completely broken, (the start-up load hangs at 'Check Battery State ... [0k]'). I restarted my computer, and booted into safe mode, and launched the terminal. This all works fine. I then typed :

Code: sudo gdm start into the command prompt, hoping that I would be able to start things manually. Instead, it spat out this: Code:

gdm-binary[230]: WARNING: Unable to load file '/etc/gdm/custom.conf'. No such file or directory.
gdm-binary[230]: WARNING: Unable to find users : no seat-id found.
gdm-binary[230]: WARNING: Gdm Display: display lasted 0.070467 seconds

The last line was printed about 8 times, with slightly different times, before it gave up and failed. Some information which might help, I have Gnome 2, Unity and KDE (not sure which version), installed. My graphics card is the GTX 275, and I have driver the Nvidia driver 275.21. So yeah, I think the update has gone and moved custom.conf somewhere, but I have no idea on how to fix it. I have a graphics programming assignment due on Friday and I would be eternally grateful if I could get this fixed well before then.

View 2 Replies View Related

General :: How To Verify If The File Is Binary Or Text Without To Open The File

Sep 7, 2010

how to verify if the file is binary or text without to open the file

View 2 Replies View Related

Programming :: Convert An Arbitrary Binary File Into A Executable File?

Feb 18, 2010

In a project I'm working on with a few other people, I got the task of writing an assembler. The last thing I do is convert the commands into a binary representation, and jam it into a file. Now one of my teammates said he'd like to be able to "reference" the code within another program. He said he'd be able to do this if the file I output is a Linux object file. I'm thinking it'd also work as an executable. Anyway, he said he'd like to be able to grab the file and reference the binary by address. I'm still fuzzy on this, and if you're confused with what I said here, please tell me so I can ask him for better details.Anyway, I'm aware that gcc can compile files to ".o", but that's only for C/C++, and my file is just binary. I'm also aware of "ld", but I haven't seen any use of it to help me. I'm happy to hear suggestions as to what I can do. If anything, I think I'll implement a few functions to grab the bits and hand them to him in an array or something.

View 8 Replies View Related

Slackware :: Searching A Byte Sequence Within A File?

Dec 11, 2010

Code:dd if=/dev/sda bs=1 count=2048 of=johnIs there a linux tool to search for a sequence of bytes within john? E.g., to look for 0x6a84b5fe78 ?

View 6 Replies View Related

General :: Replace Sequential Numbers In A File With A Different Sequence Using Sed?

Apr 11, 2010

I am trying to find a way to replace a set of sequential numbers in a file with a different sequence using sed. This might be done easier using awk or some sort of bash script, but it seems to me there must be a way to do this easily with sed. Basically, what I am editing is a Cisco switch config. I want to change the sequence of ports to a different numbered sequence. Here is an example of what I am trying to do.I want to change for example, the file:

Code:
cat testfile
interface FastEthernet0/1

[code]...

View 6 Replies View Related

Programming :: Variable String File Base - Output File Doest Not Exclude The Values In Grep -av

May 1, 2011

My script.

This is may script:

Code:

Problem: Output file doest not exclude the values in grep -av

View 3 Replies View Related

Programming :: Version Info Coded Into ELF Binary / Author And Company Name Into ELF Binary?

Nov 30, 2010

How to coded version info and other information likes author and company name into the ELF binary?

I prefer the put the version info during build step.

View 5 Replies View Related

General :: Grep The Contents Of A File With Another File?

Sep 25, 2010

someone once told me that use can pass a file to grep and use that to search the contents of another file. if that is the case I'm not entirely sure why the following isn't working for me.

Code:

[root@LCENT01:~]#grep -i id_rsa.pub .ssh/authorized_keys
[root@LCENT01:~]#cat id_rsa.pub >> .ssh/authorized_keys
[root@LCENT01:~]#grep -i id_rsa.pub .ssh/authorized_keys

View 3 Replies View Related

Ubuntu :: How To Run A Binary File In GUI

Dec 22, 2010

I am trying out an open source software According to its installation instruction, "Linux users with an x86 compatible platform can use the frozen package for a quick installation (Just unpack the tar file in directory an start the faces binary). "So I just did it and unpacked it. However, when I click on the application file, which is named "faces", nothing happens. I'm new to Ubuntu so I'm not sure if there is anything that I should do before I can click and run an application like this?

View 4 Replies View Related

Fedora :: Install A S/w With A Binary File?

Apr 29, 2010

[b] i got downloaded qt-sdk-linux-x86_64-opensource-2010.02.bin binary file then how to install that one[]

View 5 Replies View Related

Fedora :: Cannot Execute Binary File?

Sep 20, 2010

I'm new to Fedora, and haven't used any flavor of Linux in years. I'm attempting to run a few benchmarks that were given to me by my instructor, but every one I try to run gives an error "Cannot execute binary file". For instance,.inp.inThis command gives an error:bash: ./Mcf: cannot execute binary fileIt is not a permission problem, I have confirmed the file has execute permissions (one of the things I still remembered after all these years). I suspect all the benchmarks I have been given were compiled on Ubuntu. Would this be causing the problem? I do not have access to the source code, so I cannot recompile. If that is the problem, is there a way around it that doesn't involve throwing away a weekend and starting fresh on Ubuntu?

View 1 Replies View Related

Fedora :: Execute The .x86 Binary File?

Sep 24, 2010

I found a Linux .x86 binary file that I've been looking for, but not sure what to do with it. Does this (*.x86) binary file format seem like something that could simply be run by command, or something that would need to be compiled first? There is not much information that I could find regarding the particularly file.

View 11 Replies View Related

Fedora :: Can't Launch Binary File

Nov 13, 2010

I've been trying to launch a binary file, but I keep getting this error.

Code:
[csegale@localhost pSX]$ ./pSX
[src/linux/sound.cpp, line 215]: 'snd_pcm_hw_params_set_access(pcm_handle,hwparams,SND_PCM_ACCESS_MMAP_INTERLEAVED)' returned 'Invalid argument'

[Code]....

View 2 Replies View Related

Ubuntu :: Cannot Execute The Binary File

Jul 14, 2010

I have a strange issue on one of my machines. The same thing works fine on all the others. When I execute:

Code:

sudo -u myuser -i ls

I get:

Code:

/bin/ls: /bin/ls: cannot execute binary file

On the other hand if I just run

Code:

sudo -u myuser -i

and then run ls, it executes successfully, but I don't want to stay logged in as myuser I just want to run a single command.

View 2 Replies View Related

Ubuntu :: Cannot Execute Binary File

Jun 7, 2011

I'm trying to install this app called genBlast. It's a bioinformatics tool that does some cool stuff (I guess the actual use doesn't matter that much). Anyway, it comes as a .tar.gz folder with about a dozen executables in it; no compiling necessary. I extracted it to the desktop so I didn't have to worry about permissions, and then just tried to run it from inside the directory (it's a command line app).

All of the executables work with a ./ except one, and it's the most important one for that matter. When I go to run it, I get the error message Code: bash: ./genblast: cannot execute binary file I've checked permissions with ls -l, run a chmod 'u+x' just to make sure, and everything else I can think of. But it just won't work. Also, I just installed it on another computer and it works fine, so I'm pretty sure it's on my end.

View 2 Replies View Related

Red Hat / Fedora :: Unable To Run Any Binary File / Why Is This?

Oct 27, 2010

I want run binary files but shoot my errors that "Cannot Execute Binary file" I try with ./file, bash file etc i'm using fedora12 with KDE Desktop this happends with all binary files

do you know which extension is?

somebody knows why i cant run?

View 5 Replies View Related

Red Hat / Fedora :: Cannot Execute Binary File

Nov 3, 2010

I tried to restart my httpd service.cannot execute binary file seems like the HTTPD wasnt stopped while it should be stopped. it skipped the 'stop' and just right away jump into 'start' command. my case is i just changed some php.ini configuration, and to have it changed i need to restart after changes.am i correct if i say my '/bin/rm' and '/bin/touch' files are corrupted?

View 3 Replies View Related

Ubuntu :: Get Details Of A Binary File?

Nov 30, 2010

I have a binary file which display a lot of message when I run that binary. This binary file is statically linked with many files which are unknown to me. Is there any way to know from which file (obj or static lib) does these printf come from?

There is a way to get to know about the source of a symbol, but I am interested about the source of a string.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved