Skip to content
Discussion options

You must be logged in to vote

The NetworkMonitor you're inheriting from is meant to interact with an RPC client. It's not suitable to what you're doing if I got your usecase correctly.

Try inheriting from BaseMonitor directly and checkout the docstrings on when to perfrom the ping test (probably in post_send()).
You also have to implement a restart_target() method, even if it always returns True.

Then inside post_start_target() you can send data. To send it on the same socket as the fuzz data later on, set reuse_target_connection=True in the Session constructor. This will keep the TCP connection open in between test cases.

Hope that helps.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@MauriceJoren
Comment options

@SR4ven
Comment options

SR4ven Nov 1, 2023
Collaborator

@MauriceJoren
Comment options

@SR4ven
Comment options

SR4ven Nov 2, 2023
Collaborator

Answer selected by MauriceJoren
Comment options

You must be logged in to vote
2 replies
@SR4ven
Comment options

SR4ven Nov 7, 2023
Collaborator

@MauriceJoren
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants