Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/tailrecio/gopher-tunnels
A local tunnel built withby Gopher.
If ngrok is blocked in your network, this is an alternative one that you can deploy to your own AWS account in a few steps. This application runs on serverelss. I mean all servers will be managed by Amazon 100%. You pay nothing if there is no traffic coming to your service. However, Amazon may charge for configurations.
This project uses serverless framework. So, make sure that you're familiar with that framework a bit before giving it a go.
This is optional and these libraries can be installed to vendor directory locally.
Binary path: bin/server
Binary path: bin/client
Binary path: bin/tools
application.yml
.Please copy application.template.yml
to application.yml
Edit that file to make sure that all attributes are correct.
Note that you don't know baseApiEndpoint
until you deploy the API it to API Gateway.
This attribute can be left empty when you deploy your serverless because it's required by
the client not the server.
Make sure that everything is installed to vendor directory
$ dep ensure
Compile the project
$ make
You can deploy simply by running a simple command like the following. Thanks to serverless framework.
sls deploy
You can override some attributes such as stage and region via command line.
sls deploy --stage prod --region us-west-1
You can deploy individual function by providing the function name
sls deploy function --function gopher_register
Assume that your current directory is at the project root. Otherwise, you will get an error.
If you want to create a client for the default stage (dev), you simply run ./dist.sh
.
dist.sh
will create the dist directory, generate a client configuration from your application.yml, and
copy all related binary files and drop them there. You can just zip this directory and distribute it.
However, you can specify the stage name by providing the stage name as the first argument. I'm a bash script noob and I don't care to improve it. So, contribution is very welcome :)
Note that gopher
will read the configuration named gopher.yml
if you don't provide any argument.
Please see the usage section for more details.
You can override host
, mode
, and port
by providing the arguments for those attributes.
Otherwise, the values from a configuration file will be used.
$ ./gopher -h
Usage of ./gopher:
-host string
target host
-mode string
webhook mode: sync, async
-port string
target port
If your configuration file is not gopher.yml
, you have to provide the configuration
file as the last argument as the following.
$ ./gopher gopher.dev.yml
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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.