Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

lenz

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lenz

Console based MAP ๐Ÿ—บ, with lots of features packed in ๐Ÿ˜Ž

  • 1.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by75%
Maintainers
1
Weekly downloads
ย 
Created
Source

lenz ๐Ÿค“

Console based MAP ๐Ÿ—บ , with lots of features ๐Ÿ˜‰

More can be found here

features

  • Given (sub-)domain name, it can look up all associated server IPv4/6 addresses, showing them in console map
  • Given IPv4/6 address, can lookup it's location & show it in console map
  • Can find all active TCP/UDP socket connections & marks their respective peers in console map
  • Given torrent ๐Ÿงฒ link, can look up all peers associated with that infohash & show them in console map
  • Given one URL, parses HTML & extracts out all static content i.e. {js, css} delivery domains & geo locate them

In all these cases, generates a tabular report of all connected peers ( including self ), who were shown on console map

Now also dumps peers along with location info into JSON file, for all supported commands

prerequisite

We need to download IP2Locationโ„ข LITE IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE Database for using this tool.

Consider using IPv6 Binary version, cause that will also support IPv4 lookup. This specific database, I've planned to use, is codenamed db5.

And you need to have NodeJS( >10.X ).

installation

Download & install from NPM.

npm i -g lenz

develop

You can clone this repo in your machine & try to do installation another way.

git clone git@github.com:itzmeanjan/lenz.git
cd lenz/lenz
npm install

And install tool globally. Also make sure you've added NPM global installation path to your system PATH variable.

npm i -g .

Now you can use lenz from any where in your directory tree.

usage

Invoke lenz from CLI, supply proper params for each of supported commands.

5p1d3r:lenz anjan$ lenz
[+]Author  : Anjan Roy < anjanroy@yandex.com >
[+]Project : https://github.com/itzmeanjan/lenz

Commands:
  lenz lm <magnet> <db>  Find peers by Torrent Infohash
  lenz ld <domain> <db>  Find location of Domain Name
  lenz lp <ip> <db>      Find location of IP Address
  lenz ls <db>           Find location of open TCP/UDP socket peer(s)

Options:
  --version  Show version number                               [boolean]
  --help     Show help                                         [boolean]

Not enough non-option arguments: got 0, need at least 1P

Please check here for more info

contribution

If you're interested in adding more features to this CLI tool, please raise a PR.

Keywords

FAQs

Package last updated on 16 Sep 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc