by zamalek · 10y ago · 0 comments
> and the content of the files is suspicious
The script seems as though it might publish your entire codebase to NPM. Sorting NPM packages by creation date[1] reveals[2] a[3] few[4] potential victims. Filtering by the ISC license also seems to work.
[1]: https://libraries.io/search?order=desc&platforms=NPM&sort=cr...
[2]: https://libraries.io/npm/alaska-dev - internally hosted repo, edit: license doesn't match other projects by the same developer
[3]: https://libraries.io/npm/b3app-prototype - private bitbucket repo, edit: deleted from npmjs
[4]: https://libraries.io/npm/nodework - private bitbucket repo
It takes one argument, a package name, then attempts to publish that package.
So
cat list | xargs -I{} ./x {}
was what I used to publish the whole list.Anyway did you think of explaining your intend to doing so?
I've been doing development for years and I've never seen a developer naming files "x.sh", except if it was not malicious.