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.
github.com/juanadelacuesta/blog
Simple blog posts visor where you can see and search all the available posts written in Go using Gorilla Mux and the Mysql driver. The API has three endpioints:
Name | Action | Method | Path |
---|---|---|---|
Index | index | GET | "/" |
Show | show post details | GET | "/post/{id} |
Search* | search for a post | GET | "/search?q={searchTerms} |
*The search enpoint returns a json including the ID and Title of the posts matching the search terms.
Too run the server go to the file and execute the EC-blog file, or run it with go build it and run it usign Go.
You should provide a Mysql database with the following table:
CREATE TABLE IF NOT EXISTS posts (
id INT AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(50) NOT NULL,
body TEXT,
created IMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (id)
)
Also provide through env variables:
In order to contribute you need to download the package Gorilla Mux and the driver for Mysql
To run the test go to the project folder and run
go test
.
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
Unknown package
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.