
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
unshrtn is a LevelDB backed URL unshortening microservice written in JavaScript and Node for quick, asynchronous processing of requests. unshrtn remembers what it has already looked up so it can save you the trouble of keeping track of URLs when you are looking up a lot of them at one time and they haven't necessarily been de-duplicated.
unshrtn uses the metaweb library to do the lookups, which means that in addition to returning the unshortened URL you will also get some potentially useful metadata if the response happens to be HTML:
% curl http://localhost:3000?url=https://bit.ly/348J1DN
{
"short": "https://bit.ly/348J1DN",
"long": "https://www.youtube.com/watch?v=oHg5SJYRHA0",
"canonical": "https://www.youtube.com/watch?v=oHg5SJYRHA0",
"status": 200,
"content_type": "text/html; charset=utf-8",
"title": "RickRoll'D - YouTube",
"description": "http://www.facebook.com/rickroll548 As long as trolls are still trolling, the Rick will never stop rolling.",
"image": "https://i.ytimg.com/vi/oHg5SJYRHA0/hqdefault.jpg",
"publisher": "YouTube",
"keywords": ["Cotter548", "Shawn", "Cotter", "lol", "gamefaqs", "CE", "reddit", "rettocs", "no", "brb", "afk", "lawl", "pwnt", "Rickroll", "Rickroll'd", "Rick", "Roll", "Duckroll", "Duck", "rick", "roll", "astley", "..."]
}
Probably the easiest way to get unshrtn up and running is with Docker.
docker run -p 3000:3000 docnow/unshrtn
You can also install it with npm:
% npm install -g unshrtn
Once installed you can start up the microservice:
% unshrtn start
If you'd like more control over how it starts use the start subcommand:
% unshrtn start --host 0.0.0.0 --port 8080 --log /var/log/unshrtn.log
By default unshrtn writes its database to unshrtn.db in the current working directory. However you can control this with the --database option:
% unshrt start --database /var/unshrtn/unshrtn.db
You can dump the database as line oriented JSON and load it again if you want to back it up or move it around:
% unshrtn dump /path/to/datbase > backup.jsonl
% cat backup.jsonl | unshrtn load /path/to/another/database
If you just want to look up one URL you can also use unshrtn on the command line:
% unshrtn get https://bitly.com/4kb77v
FAQs
A leveldb backed URL unshortening microservice
The npm package unshrtn receives a total of 0 weekly downloads. As such, unshrtn popularity was classified as not popular.
We found that unshrtn 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.