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.
Making some of those PHP-only functions available to Python
Sometimes you want to write a Python script for a project written in PHP. For the most part, this is easy, but for a few key things, PHP breaks with the standard and does things in a its own way. For these cases, you can use this module to compensate.
This was ripped shamelessly from a PHP forum
_ and ported to Python:
Essentially, it's a (hopefully perfect) replica of PHP's
http_build_query()
_ that allows you to pass multi-dimensional arrays to a
PHP-managed URL via POST or GET.
.. _PHP forum: http://www.codingforums.com/showthread.php?t=72179 .. _http_build_query(): http://php.net/manual/en/function.http-build-query.php
A hacked-together attempt at making an .ini file parser that's compatible with the "standards" that PHP follows in its parse_ini_file() function. Among the handy features included are:
varname[] = value
)varname[key] = value
)varname = "stuff"
becomes varname = stuff
)You can turn off the doublequote removal with stripquotes=False
Example ....... ::
from php import Php
config = Php.parse_ini_file("config.ini")
print config["sectionName"]["keyName"]
FAQs
Handle some of the strange standards in PHP projects
We found that php 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.