
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Ngrok-tunnel gem is a ruby wrapper for ngrok v2.
Note: You must have ngrok v2+ installed available in your PATH
.
Add this line to your application's Gemfile:
gem 'ngrok-tunnel'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ngrok-tunnel
require 'ngrok/tunnel'
# spawn ngrok (default port 3001)
Ngrok::Tunnel.start
# ngrok local_port
Ngrok::Tunnel.port
=> 3001
# ngrok external url
Ngrok::Tunnel.ngrok_url
=> "http://aaa0e65.ngrok.io"
Ngrok::Tunnel.ngrok_url_https
=> "https://aaa0e65.ngrok.io"
Ngrok::Tunnel.running?
=> true
Ngrok::Tunnel.stopped?
=> false
# ngrok process id
Ngrok::Tunnel.pid
=> 27384
# ngrok log file descriptor
Ngrok::Tunnel.log
=> #<File:/tmp/ngrok20141022-27376-cmmiq4>
# kill ngrok
Ngrok::Tunnel.stop
=> :stopped
# ngrok custom parameters
Ngrok::Tunnel.start(addr: 'foo.dev:80',
subdomain: 'MY_SUBDOMAIN',
hostname: 'MY_HOSTNAME',
authtoken: 'MY_TOKEN',
inspect: false,
log: 'ngrok.log',
config: '~/.ngrok')
See examples/rack-server.rb to get an idea how to use it along with a Rack server so that it automatically starts and stops when a Rack server does.
Use this gem: ngrok-rspec
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that ngrok-tunnel 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.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.