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.
mosek-license-server
Advanced tools
Using a nginx image we expose a Mosek license on a server to be accessible from various research machines without sharing the actual license file in the underlying repositories.
This repository serves two purposes. It exposes the server but it is also the home for a little Python package to inject the license into your programs.
We solve a common problem here. Assume $20$ researchers work on $50$ different strategies. Using local copies of the same license file is a tedious exercise as the file needs to get updated once a year. Rather, each strategy would connect to the server to fetch a license using the mosek_license Python package. Once the strategy expires we only need to update the server. No change for the strategies is required.
Copy the license file you have received (from Mosek) into the web
folder.
Name it mosek
.
The file should look like
START_LICENSE
VENDOR MOSEKLM
# PSN-4183
FEATURE PTS MOSEKLM 10 31-jan-2024 uncounted ...
# PSN-4182
FEATURE PTON MOSEKLM 10 31-jan-2024 uncounted ...
END_LICENSE
Share the web folder (after you have copied your personal Mosek license into) via
docker run --name mosek -v $PWD/web:/usr/share/nginx/html:ro -p 8080:80 -d nginx
The license will now be exposed via http://localhost:8080/mosek
As an alternative you can run the script
./start_server.sh
Install via
pip install mosek-license-server
and then
import mosek
from mosek_license import license
license.upsert(server="http://localhost:8080/mosek")
In case you experience problems please check:
mosek
START_LICENSE
END_LICENSE
curl <http://localhost:8080/mosek>
works.
Still lost? Please open an issue.
We assume you share already the love for Poetry. Once you have installed poetry you can perform
make install
to replicate the virtual environment we have defined in pyproject.toml and locked in poetry.lock.
FAQs
Expose a mosek license via a nginx server
We found that mosek-license-server 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.