
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
cng-micro-service
Advanced tools
cd /my-projects
mkdir my-api-www-api-resful-test
cd my-api-www-api-resful-test
npm init -y
npm install cng-micro-service@latest cng-node-js-utils@latest node-js-orm@latest client-socket-nodejs@latest
npm install cng-micro-service@latest
npm i fs path mime-types
# delete ./package.json and run this command:
node ./node_modules/cng-micro-service/sync-libs/sync-test-libs.js
# install all libs for api
npm i
# run sample server
node ./server.js
# define in package.json for test
npm test
# or
# define in package.json for start
npm start
mkdir logs
mkdir cfg
cp ./cfg-sample ./cfg
# 1. config db connection in ./cfg
# 2. edit ./db/excel/... sample.xlsx for function_apis, and models
# 3. config for all ./config params and paths
# 4. create databases, models
# 5. run to make resfule server
node ./test/create-api-functions/create-routers-handlers/x-create-api-routers-handlers.js
http://localhost: for test apis
http://localhost:/ for your web server
or you can config in server-<...>.js such as:
// add libs
const path = require("path");
// add root
const ROOT_DIR = __dirname
.split(path.sep)
.slice(0, __dirname.split(path.sep).length - 0)
.join(path.sep);
const expressCfg = {
// port: 8080
// ...
// root page when http(s)://<hostname:port>/ with index.html for test APIS
, staticRoot: `${ROOT_DIR}/client-test-api`
// subdirectory when http(s)://<hostname:port>/<baseDirectory> with index.html for your project app
, staticHtml: `${ROOT_DIR}/client-www-sample`
// ...
};
FAQs
for nodejs create javascript source code auto
The npm package cng-micro-service receives a total of 0 weekly downloads. As such, cng-micro-service popularity was classified as not popular.
We found that cng-micro-service 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.