
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
ADMesh is a library for processing triangulated solid meshes. Currently, ADMesh only reads the STL file format that is used for rapid prototyping applications, although it can write STL, VRML, OFF, and DXF files. Those are bindings for Ruby.
You'll need the ADMesh C library in version 0.98.x.
require 'radmesh'
# load an STL file
stl = RADMesh::STL.new 'file.stl'
# observe the available methods
p stl.methods
# read the stats
p stl.stats
# see how many facets are there
p stl.size
# walk the facets
stl.each_facet do |facet|
# get the normal
p facet[:normal]
# walk the vertices
facet[:vertex].each do |vertex|
# read the coordinates
p vertex[:x]
p vertex[:y]
p vertex[:z]
end
end
# manipulate the mesh
stl.rotate! :x, 90
stl.scale! 0.5
# repair the mesh
stl.repair!
# and save it
stl.write_binary 'block2.stl'
You can generate the full documentation with yard or see it online on RubyDoc.info.
FAQs
Unknown package
We found that radmesh demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.