
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
This is a python port of the XSection project (https://github.com/klayoutmatthias/xsection).
The goal of this project is to provide an add-on to KLayout (www.klayout.de) to create and visualize a realistic cross-section view for VLSI designs supporting a wide range of technology options.
For the project description see klayout_pyxs Project Home Page.
The basic structure is:
docs
The documentationklayout_pyxs
The python package sourcespymacros
The python .lym macros files for KLayoutsamples
Some sample filestests
Test sources and golden dataxs2pyxs
xs to pyxs conversion scriptsThe docs
folder contains the .rst files and images for the documentation
pages. See rendered version here.
The klayout_pyxs
folder contains the python package which includes
the cross-section generation engine.
The pymacros
folder contains with the actual KLayout macros code,
pyxs.lym
.
The samples
folder holds a few files for playing around.
The tests
folder contains some regression tests for the package.
To run the tests, make sure "klayout" or "klayout_app" (in Windows)
is in your path and use
$ cd tests
$ ./run_tests.sh
or (from e.g. git bash console on Windows)
$ cd tests
$ bash run_tests_windows.sh
The xs2pyxs
folder contains a shell script which helps converting
Ruby-based .xs scripts to .pyxs scripts. It performs necessary but not
sufficient string replacements. Depending on the .xs script complexity,
more changes are likely to be needed.
You can install the module
pip install klayout_pyxs
And the klayout macro from klayout package manager.
To run .pyxs scripts from the KLayout menu, klayout_pyxs package and python macros file have to be installed to the KLayout folders. According to KLayout documentation, they should go to the "pymacros" and "python" folders in KLayout's user specific application folder. In Windows, it is $USERPROFILE/KLayout.
If you are using Python 2.7 in your KLayout distribution, you need
six
package installed.
In Windows, do the following (the commands should be run from e.g. git bash console). Tested on KLayout 0.25.3 and 0.25.7.
Check if $USERPROFILE/KLayout exists and is used by the KLayout to store macros. Run
$ ls $USERPROFILE/KLayout
If no error reported, continue with 1. If there is an error, you need to find a location of KLayout's user specific application folder with pymacros, python folders and use it in further commands.
Clone klayout_pyxs repository into any source folder:
$ git clone https://github.com/dimapu/klayout_pyxs.git klayout_pyxs_repo
Copy klayout_pyxs_repo/pymacros/pyxs.lym to $USERPROFILE/KLayout/pymacros/pyxs.lym
$ cp klayout_pyxs_repo/pymacros/pyxs.lym $USERPROFILE/KLayout/pymacros/pyxs.lym
Copy klayout_pyxs_repo/klayout_pyxs/. to $USERPROFILE/KLayout/python/klayout_pyxs
$ mkdir $USERPROFILE/KLayout/python/klayout_pyxs
$ cp klayout_pyxs_repo/klayout_pyxs/*.py $USERPROFILE/KLayout/python/klayout_pyxs
Now, run Klayout. In the Tools menu, you should see pyxs > Load pyxs script.
Run
$ make install
Now, run Klayout. In the Tools menu, you should see pyxs > Load pyxs script.
FAQs
python port of the Klayout xsection project
We found that klayout-pyxs 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
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.