Benign python Download

cmem-plugin-yaml 1.1.0

“Load and parse YAML documents.”

Parses JSON data with PythonPython pathlib opens binary output

Evidence

Python pathlib opens binary output lines 298–303
298:48… implemented yet: '{self.source_mode}'") from error
299 with Path.open(file_yaml, "wb") as writer:
300 get_input(writer)
301 return file_yaml
302
303 def _provide_output_json_entities(self, …
Reads file content (Python) lines 305–307
305:46… tf-8") as reader:
306 json_code = reader.read()
307 schema = EntitySchema(type_uri="urn:x-json:document", paths=[EntityPath(path="json-src …
Parses JSON data with Python lines 335–340
335:55… ntities | None:
336 """Output as entities"""
337 data = json.loads(Path.open(file_json, encoding="utf-8").read())
338 return build_entities_from_data(data=data)
339
340 def _provide_output(self …
Serializes to a stream with json.dump() lines 370–374
370:22… n(json_file, "w", encoding="utf-8") as json_writer:
371 json.dump(yaml_content, json_writer)
372 if logger:
373 logger.info(f"JSON written to {json_file}")
374 return json_file

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.