-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alternative interfaces #93
Open
jtpereyda
wants to merge
15
commits into
OpenRCE:sulley_refactor
Choose a base branch
from
jtpereyda:alternative-interfaces
base: sulley_refactor
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Alternative interfaces #93
jtpereyda
wants to merge
15
commits into
OpenRCE:sulley_refactor
from
jtpereyda:alternative-interfaces
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…etConnection to describe interface.
…ere are print statements in the send and recv methods for now.
error_handler(e, "failed transmitting fuzz node", target, sock) | ||
continue | ||
error_handler(e, "failed transmitting fuzz node", target, target) | ||
raise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raise
is a left behind debugging change
…. Removed leftover debugging change.
Testing: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Issue #92 Feature Proposal: Alternative Interfaces .
Goal:
Changes:
Session
class:Target.open()
,Target.send()
,Target.recv()
,Target.close()
.fuzz_data_logger
constructor param (see below).ITargetConnection
is the generic interface for connections.SocketConnection
is where the existing sockets code went.SerialConnection
is self-explanatory.SerialTarget
class: Inherits from Target and uses aSerialConnection
. Simple class.IFuzzLogger
andFuzzLogger
define the interface and one implementation for logging sent and received fuzz data.open_test_case
to signal a new mutation, and in theTarget
class to record sent and received data.Example:
Here is a complete usage example for throwing data at a serial device. Files will be stored in
./exploration-local-caps/
.There is no error detection yet, but it's an important start.