Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@highpoint/get-ps-token
Advanced tools
Populates a cookie jar with PS_TOKEN.
yarn add -D @highpoint/get-ps-token
To populate a cookie jar with
a valid PS_TOKEN, call getToken
with an object that includes the following:
const request = require('request-promise');
const getToken = require('@highpoint/get-ps-token');
require('dotenv').config({ silent: true });
/*
Add the following environment variables to a `.env` file in the root of your
project:
ISCRIPT_HOSTNAME
ISCRIPT_ENVIRONMENT
HTTP_USERNAME
HTTP_PASSWORD
PS_USERNAME
PS_PASSWORD
*/
const makeRequest = async () => {
request
.get({
uri: '...',
jar: await getToken(process.env)
})
.then(response => {
// ...
});
};
makeRequest();
Key | Required | Example |
---|---|---|
PS_HOSTNAME | True | example.com |
PS_ENVIRONMENT | True | csdev92 |
PS_USERNAME | True | user |
PS_PASSWORD | True | password |
HTTP_USERNAME | False | user |
HTTP_PASSWORD | False | password |
Example:
const jar = await getToken({
PS_HOSTNAME: 'example.com',
PS_ENVIRONMENT: 'csdev92',
PS_USERNAME: 'user',
PS_PASSWORD: 'password1'
});
FAQs
Populate cookie jar with PeopleSoft token
The npm package @highpoint/get-ps-token receives a total of 0 weekly downloads. As such, @highpoint/get-ps-token popularity was classified as not popular.
We found that @highpoint/get-ps-token demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.