Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
This is pyfmodex, an FMOD Engine Python binding using ctypes.
To install, first make sure that you have the FMOD Engine library for you platform somewhere in your path, so Python will be able to find it.
On Linux, libraries are searched for in LD_LIBRARY_PATH
.
Alternatively, you can set PYFMODEX_DLL_PATH
or PYFMODEX_STUDIO_DLL_PATH
as an environment variable to specify the library path. This can also be done inside Python setting os.environ["PYFMODEX_DLL_PATH"]
or os.environ["PYFMODEX_STUDIO_DLL_PATH"]
before importing pyfmodex.
To download the FMOD Engine library, visit http://www.fmod.org/download. The library is free to download, but requires a free account to be made first.
Then, install pyfmodex via pip
, easy_install
or the setup.py
way. Note that the minimum supported Python version is Python 3.6.
To verify if everything works, open a Python REPL and try importing pyfmodex:
import pyfmodex
If there is no error: good, it worked. :-)
Playing a sound is a little bit more complicated than the import, but nothing horrible. Try the following simple script:
import pyfmodex
system = pyfmodex.System()
system.init()
sound = system.create_sound("somefile.mp3")
channel = sound.play()
while channel.is_playing:
pass
Of course, somefile.mp3
must be replaced with something that actually exists. :-)
Note that the while loop is necessary (at least in this simple example) to keep the main thread alive long enough.
FAQs
Python bindings to the Fmod Ex library.
We found that pyfmodex 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.