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.
ptv-api-signature
Advanced tools
Hacked together a method for the API signature generation only
If you are after a full fledged swagger client implementation see ptv-api npm
First obtain a dev id and key from PTV here
If using in the browser - Please consider that you will need to support the crypto nodejs module. A polyfil exists here
const ptvSig = require ('ptv-api-signature')
const BASE_URL = 'http://timetableapi.ptv.vic.gov.au'
const DEV_ID = 'REPLACE'
const DEV_KEY = 'REPLACE1-1111-1111-1111-111111111111'
/**
* Search for stops based on search term
* @param {String} search_term
*/
const getStopsBySearchTerm = (search_term) => {
return fetch(`${BASE_URL}${ptvSig.pathWithSig(`/v3/search/${search_term.toLowerCase()}`, [{ name: 'route_types', value: '0' }], DEV_ID, DEV_KEY)}`).then(res => res.json())
}
getStopsBySearchTerm('Balaclava').then(d => {
console.log(d)
})
FAQs
Assist with PTV Api path signature generation
The npm package ptv-api-signature receives a total of 4 weekly downloads. As such, ptv-api-signature popularity was classified as not popular.
We found that ptv-api-signature demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.