
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
A backup tool for files and folders.
To view documentation or get support, visit docs.
Note:
w-backup
is mainly dependent onw-zip
andjson5
.
Note:
w-backup
can be compiled into an executable file by usingpkg
.
npm i w-backup
Link: [dev source code]
import fs from 'fs'
import w from 'wsemi'
import wb from 'w-backup'
let fpSetting = './setting-zip.json'
let fpBackup = './testData/output'
let fpKeep = './testData/outputList'
//fsDeleteFolder
w.fsDeleteFolder(fpBackup)
//fsCreateFolder
w.fsCreateFolder(fpKeep)
fs.writeFileSync(fpKeep + '/20200101.zip', 'a1', 'utf8')
fs.writeFileSync(fpKeep + '/20200115.zip', 'a2', 'utf8')
fs.writeFileSync(fpKeep + '/20200201.zip', 'b1', 'utf8')
fs.writeFileSync(fpKeep + '/20200215.zip', 'b2', 'utf8')
fs.writeFileSync(fpKeep + '/20200301.zip', 'c1', 'utf8')
fs.writeFileSync(fpKeep + '/20200315.zip', 'c2', 'utf8')
fs.writeFileSync(fpKeep + '/20200401.zip', 'd1', 'utf8')
fs.writeFileSync(fpKeep + '/20200415.zip', 'd2', 'utf8')
//use setting.json
wb(fpSetting)
.then((msg) => {
console.log(msg)
})
.catch((err) => {
console.log(err)
})
// then => output success to: path/to/testLog/success-20200806193318.log
// [
// 'done: ./testData/output/20200805/test-y1.zip',
// 'done: ./testData/output/2020-08-05/test-y2.zip',
// 'done: ./testData/output/20-08-05/test-y3.zip',
// 'done: ./testData/output/2020-08-06/test-t1.zip',
// 'done: ./testData/output/20200806/test1.zip',
// 'done: ./testData/output/20200806/test2.zip',
// 'done: ./testData/output/20200806/test3.zip',
// 'done: ./testData/output/20200806/unzip/test1',
// 'done: ./testData/output/20200806/unzip/test2',
// 'done: ./testData/output/20200806/unzip/test3',
// 'done: ./testData/outputList',
// 'finish at 2020-08-06T19:33:18+08:00'
// ]
You can use ./src/compile.js
and pkg
to compile w-backup
into an executable file.
Compile for windows:
./node_modules/.bin/pkg -t win src/compile.js --output bin/wb.exe
Run for windows:
path/to/wb.exe path/to/setting.json
FAQs
A backup tool for files and folders.
The npm package w-backup receives a total of 9 weekly downloads. As such, w-backup popularity was classified as not popular.
We found that w-backup 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
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.