Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
This is an example repository for flask-restful usage, and packaging it for pypi. The logic used is the mirrored wallclock. Apart from the REST endpoint, there is a command line tool which uses the same logic to test the functionality.
The mirrorclock.wsgi:app entrypoint can be supplied to uwsgi for publication over HTTP.
You can build it from the repo, or simply get it from pypi:
pip install mirrorclock-gczuczy
Using the command line client:
$ date Tue Oct 4 09:35:10 UTC 2022 $ mirrorclock 02:25
From python: `` $ python3 Python 3.8.13 (default, Jul 22 2022, 15:16:53) [Clang 14.0.3 (https://github.com/llvm/llvm-project.git llvmorg-14.0.3-0-g1f914 on freebsd13 Type "help", "copyright", "credits" or "license" for more information.
import mirrorclock.bi mirrorclock.bi.mirrorClock() (2, 24) mirrorclock.bi.mirrorTime(4, 20) (7, 40) mirrorclock.bi.mirrorTime(5, 25) (6, 35) mirrorclock.bi.mirrorTime(11, 58) (12, 2) print(mirrorclock.bi.mirrorTime.doc)
Mirrors the time visually as it would seen on a wallclock.
Returns a tuple as (hour, minute).
Parameters are hour and minute, 1<=hour<13, 0<=minute<60
``
Over the REST API, there is a single endpoint. Using GET, it mirrors the current system clock, using POST,
a supplied time will be mirrored (set the host envvar accordingly):
$ curl -XGET http://$host/api/v1/mirrortime {"status": "success", "string": "02:22", "hour": 2, "minute": 22} $ curl -XPOST -H 'Content-type: application/json' -d '{"hour": 4, "minute": 20}' http://$host/api/v1/mirrortime {"status": "success", "string": "07:40", "hour": 7, "minute": 40}
Add unit tests
FAQs
Mirroclock example
We found that mirrorclock-gczuczy 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.