-
Notifications
You must be signed in to change notification settings - Fork 54
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
Dis 3281/improved security scheme #847
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #847 +/- ##
==========================================
- Coverage 75.61% 75.59% -0.03%
==========================================
Files 311 311
Lines 26551 26561 +10
==========================================
+ Hits 20077 20078 +1
- Misses 6474 6483 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
dissect/target/loaders/mqtt.py
Outdated
return | ||
|
||
# The payload with the username and password is comma separated | ||
print(f'CALLID: "{hostname}",{decoded_payload}') |
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.
please leave out the prefix here
dissect/target/loaders/mqtt.py
Outdated
self.mqtt_client.publish(f"{self.case}/{host}/COMM", self.command.encode("utf-8")) | ||
time.sleep(1) | ||
|
||
def _on_callId(self, hostname: str, payload: bytes) -> None: |
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.
def _on_callId(self, hostname: str, payload: bytes) -> None: | |
def _on_call_id(self, hostname: str, payload: bytes) -> None: |
please use snake_case
dissect/target/loaders/mqtt.py
Outdated
@@ -365,6 +376,8 @@ def _on_message(self, client: mqtt.Client, userdata: Any, msg: mqtt.client.MQTTM | |||
self._on_read(hostname, tokens, msg.payload) | |||
elif response == "ID": | |||
self._on_id(hostname, msg.payload) | |||
elif response == "CALLID": | |||
self._on_callId(hostname, msg.payload) |
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.
change function call here please to match updated version
3874eae
to
854d39c
Compare
In response, print username and password to stdout.
854d39c
to
5026402
Compare
This is a companion PR of the agent and cannot be tested stand-alone.
To test together with the agent,
closes #846