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.
Hi, I'm here to help you debug your HTTP. To get started, install me.
$ gem install hi
Now start me up:
$ hi
>> Thin web server (v1.5.1 codename Straight Razor)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
If you don't like my default port, try something else:
$ hi 1234
>> Thin web server (v1.5.1 codename Straight Razor)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:1234, CTRL+C to stop
Let's start debugging! Just send a request my way and I'll tell you everything I know about it.
$ curl localhost:3000/foo/bar\?message=hello
"GET http://localhost:3000/foo/bar?message=hello (2013-12-27 14:18:16 -0800)"
{
:host => "localhost",
:ip => "127.0.0.1",
:port => 3000,
:request_method => "GET",
:scheme => "http",
:url => "http://localhost:3000/foo/bar?message=hello",
:query_string => "message=hello",
:body => "",
:content_length => nil,
:media_type => nil,
:referer => nil,
:user_agent => "curl/7.30.0",
:xhr => false,
:headers => {
"HTTP_VERSION" => "HTTP/1.1",
"HTTP_USER_AGENT" => "curl/7.30.0",
"HTTP_HOST" => "localhost:3000",
"HTTP_ACCEPT" => "*/*"
}
}
The fancier your request, the better.
$ curl -H 'X-Requested-With: XMLHttpRequest' -d "message=hello" localhost:3000
"POST http://localhost:3000/ (2013-12-27 14:19:24 -0800)"
{
:host => "localhost",
:ip => "127.0.0.1",
:port => 3000,
:request_method => "POST",
:scheme => "http",
:url => "http://localhost:3000/",
:query_string => "",
:body => "message=hello",
:content_length => "13",
:media_type => "application/x-www-form-urlencoded",
:referer => nil,
:user_agent => "curl/7.30.0",
:xhr => true,
:headers => {
"HTTP_VERSION" => "HTTP/1.1",
"HTTP_USER_AGENT" => "curl/7.30.0",
"HTTP_HOST" => "localhost:3000",
"HTTP_ACCEPT" => "*/*",
"HTTP_X_REQUESTED_WITH" => "XMLHttpRequest"
}
}
$ gem install hi
Please see the Contributing Document
Please see the Changelog Document
Copyright (C) 2013 Chris Hunt, MIT License
FAQs
Unknown package
We found that hi 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
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.