Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
gopkg.in/petname.v1
This utility will generate "pet names", consisting of a random combination of an adverb, adjective, and proper name. These are useful for unique hostnames, for instance.
As such, PetName tries to follow the tenets of Zooko's triangle. Names are:
The default packaging includes:
A 1-word PetName consists of one random name. A 2-word Petname consists of a random adjective and a random name. A 3-word (or more than 3 word) PetName consists of random adverb(s) and an adjective and a name.
Command line help:
usage: petname [--words INT] [--separator STR]
optional arguments:
-w|--words number of words in the name, default is 2
-s|--separator string used to separate name words, default is '-'
-d|--dir directory containing adverbs.txt, adjectives.txt, names.txt, default is \fI/usr/share/petname/\fP
$ petname
wiggly-Anna
$ petname --words 1
Marco
$ petname --words 3
quickly-scornful-Johnathan
$ petname --words 4
dolorously-leisurely-wee-Susan
$ petname --separator ":"
hospitable:Isla
$ petname --separator "" --words 3
adeptlystaticNicole
package main
import (
"flag"
"fmt"
"github.com/dustinkirkland/golang-petname"
)
var (
words = flag.Int("words", 2, "The number of words in the pet name")
separator = flag.String("separator", "-", "The separator between words in the pet name")
)
func main() {
flag.Parse()
fmt.Println(petname.Generate(*words, *separator))
}
See: https://pypi.python.org/pypi/petname
$ pip install petname
$ sudo apt-get install python-petname
import argparse
import petname
parser = argparse.ArgumentParser(description='Generate human readable random names')
parser.add_argument('-w', '--words', help='Number of words in name, default=2', default=2)
parser.add_argument('-s', '--separator', help='Separator between words, default="-"', default="-")
parser.options = parser.parse_args()
print petname.Generate(int(parser.options.words), parser.options.separator)
This project is authored and maintained by Dustin Kirkland.
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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.