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/don1101/bingfei-blog
A blog system for Bingfei by Tang Guojing
Download Mac version from http://www.postgresql.org/download/
Locate psql in your Mac machine
locate psql | grep /bin
A sample output would be:
/Applications/Postgres.app/Contents/Versions/9.4/bin/psql
You may encouter below error:
WARNING: The locate database (/var/db/locate.database) does not exist.
To create the database, run the following command:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
Please be aware that the database can take some time to generate; once
the database has been created, this message will no longer appear.
Then you need run sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
If the error still persists, you may need run sudo /usr/libexec/locate.updatedb
Append below line to ~/.bash_profile
export PATH=/Applications/Postgres.app/Contents/Versions/9.4/bin/:$PATH
After having saved the file, read the file
. ~/.bash_profile
try psql in your terminal command
Refer to https://github.com/moovweb/gvm and http://www.ascent.io/blog/2014/03/11/gvm-with-golang/
## gvm config
[[-s "$HOME/.gvm/scripts/gvm"]] && source "$HOME/.gvm/scripts/gvm"
gvm listall
gvm install go1.4
gvm use go1.4 --default
gvm pkgset create bingfei
gvm pkgset use bingfei
gvm pkgenv bingfei
Edit GOPATH and PATH environment variables
export gvm_pkgset_name="bingfei"
export GOPATH; GOPATH="${HOME}/Projects/bingfei-blog:/Users/guojing/.gvm/pkgsets/go1.4/bingfei:$GOPATH"
export PATH; PATH="${HOME}/Projects/bingfei-blog/bin:/Users/guojing/.gvm/pkgsets/go1.4/bingfei/bin:$PATH"
## Package Set-Specific Overrides
export GVM_OVERLAY_PREFIX; GVM_OVERLAY_PREFIX="${GVM_ROOT}/pkgsets/go1.4/bingfei/overlay"
export PATH; PATH="/Users/guojing/.gvm/pkgsets/go1.4/bingfei/bin:${GVM_OVERLAY_PREFIX}/bin:${PATH}"
Every time you update your pkgenv, you need to run gvm pkgset use bingfei
again
go get github.com/beego/bee
go get github.com/lib/pq
go get github.com/astaxie/beego/orm
cp local_settings.template local_settings.go
Run directly
./build.sh
./main
Run from Beego
bee run -e=github.com
Initialization
npm install webpack-dev-server
npm install
Build/Watch
npm run build
OR
npm run watch
./test.sh
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.