
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Interactive canvas that allows you to draw 2D coordinates in a plane and output their corresponding coordinates to a JSON file.
[!NOTE] All instructions in this README assume your Python 3.11.6+ installation is in your PATH and is aliased under
python
. If this is not the case, you will need to replacepython
with the alias or path that points to the correct Python executable.
python -m pip install ccanvas # Use dash instead of underscore!
You can display the help message by running the following command:
python -m ccanvas --help # Use underscore instead of dash!
Once the canvas has been opened, you will be able to click on any part of it and add a new coordinate. Lines can be switched using the numeric pad on the keyboard, as explained on the header of the window.
Once you have added all the desired coordinates, just press the "Escape" or "Q" keys or close the window. A JSON file will be generated containing all the coordinates you added. This is how the JSON structure looks like:
{
"line_1": {
"x": [
3.064516129032258,
5.510752688172044,
10.45698924731183,
14.045698924731184,
...
],
"y": [
8.837828837828837,
13.18015318015318,
13.126873126873129,
8.03862803862804,
...
]
},
"line_2": {
...
},
...
}
JSON data can easily be retrieved with a few lines of code.
import json
# Assuming the script is located in the same directory where the program is
# being executed (if not, modify the path below):
with open("coordinates.json", mode="r", encoding="utf-8") as fp:
data = json.load(fp) # Loads all data in a dictionary.
# Ways to retrieve data:
line_1 = data["line_1"]
line_1_x = data["line_1"]["x"]
line_1_y = data["line_1"]["y"]
line_1_xy = [(x, y) for x, y in zip(data["line_1"].values())] # Recommended!
If you are planning on contributing to the repository, take a look at the contribution guidelines.
FAQs
Matplotlib-based canvas that allows line drawing and coordinate retrieval
We found that ccanvas demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.