Comments (4)
Running with ascii string option gives a similar error:
./grep_bin -f test.bin -s "Hello World"
error: Found argument '-s' which wasn't expected, or isn't valid in this context
USAGE:
grep_bin ... -f ...
For more information try --help
from grep_bin.
I've changed the way of how the program receives input but forgot to update the docs, sorry about that!
This is how it works now grep_bin [OPTIONS] <FILE>... <PATTERN>
, pattern can be an ascii string or one of the following types of hex strings(f9b4ca, F9B4CA, f9B4Ca)
from grep_bin.
Ok I think I see the problem. The new tool seems to work with many byte patterns. However does not work with ff
ff makes it panic for some reason. I will look to see what other patterns crash it
from grep_bin.
Oh interesting. It seems to depend on what binary it is parsing. If you run it on the binary grep_bin binary itself, you will be able to reproduce my error.
Panics:
./grep_bin target/debug/grep_bin ff00
Panics:
./grep_bin target/debug/grep_bin ff
Does not panic:
./grep_bin target/debug/grep_bin 00
11 works fine. But ah I think we're onto something here. Try running it with 22
./grep_bin target/debug/grep_bin 22
Output:
00001298: 22 "
00001441: 22 "
000014E9: 22 "
00001639: 22 "
000017A1: 22 "
00001E50: 22 "
00000849: 22 "
00000861: 22 "
00000879: 22 "
00001020: 22 "
00001158: 22 "
00001668: 22 "
00001938: 22 "
00001B80: 22 "
00001F20: 22 "
from grep_bin.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grep_bin.