Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
github.com/robostorm/nametag-auto-printing
Webapp to take names and autonametically generate nametags with Openscad, slice it with Slic3r, and upload and print it on an Octoprint enable 3d printer. Developed and used by the Robostorm Robotics club of Hunterdon County 4-H.
The name submission page will allow a name to previewed with Openscad, and submitted to the server. it will ensure that names are under ten characters.
The manager page is located at /manager.html and allows veiwing and editing of the nametags in queue and printers. The manager page uses backgrid.js to make nice, editable tables to show nametags and printers.
This is intended to be used on a private network, and there are no security measures in place
First, install Go. The server is written in go and must be compiled.
Make sure the your GOHOME
environment variable is set correctly.
Get the source code by running go get github.com/Robostorm/Nametag-Auto-Printing
. This will clone the source into go's src
directory
Build and install the server into go's bin
directory by running go install github.com/Robostorm/Nametag-Auto-Printing
. Then run the resulting executable in $GOHOME/bin
.
A RESTful API is used to communicate between the server and the client.
GET /
Gets the name entering page, also serves resources such as images and js. Go to /manager.html for the manager. Returns the resource specified if available, 404 NOT FOUND if the resource does not exist. If image requested is not yet generated, returns a 409 CONFLICT
POST /preview
Previews the nametag
{
"name": "Name on the nametag"
}
Returns that the image will be at once generated
Return Codes:
POST /submit
Submits a nametag
{
"name": "Name on the nametag"
}
Returns nothing
Return Codes:
GET /nametags
Gets the nametag queue Returns JSON list of nametags in queue and their properties
POST /nametags/update
Update a nametag
A JSON form of the printer and its properties If an ID is supplied, edit that nametag, otherwise add a new nametag with specifed fields and generate an ID
POST /nametags/delete
Deletes a nametag
{
"id": "id of the nametag"
}
Returns nothing
Return Codes:
POST /nametags/done
The nametag is done printing. Sets the nametag's printer to Idle and deletes the nametag
{
"id": "id of the nametag"
}
Returns nothing
Return Codes:
GET /printers
Gets the printers
Returns JSON list of printers and their properties
POST /printers/update
Update a printer
A JSON form of the printer and its properties If an ID is supplied, edit that printer, otherwise add a new printer with specifed fields and generate an ID
POST /printers/delete
Deletes a printer
{
"id": "id of the printer"
}
Returns nothing
Return Codes:
POST /printers/done
The printer is done printing. Sets the printer to Idle and deletes the printer's nametag
{
"id": "id of the printer"
}
Returns nothing
Return Codes:
POST /printers/abort
Abort the current nametag. Sets printer and nametags to Idle.
{
"id": "id of the printer"
}
Returns nothing Return Codes:
FAQs
Unknown package
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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.