Socket
Book a DemoInstallSign in
Socket

github.com/andreajegher/nlp

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/andreajegher/nlp

Source
Go
Version
v0.0.0-20200530154407-896d6f596746
Version published
Created
Source

nlp

Command line parser for chromium netlog

NetLog

NetLog is chrome network logging system

Obtaining log

From browser

Visit chrome://net-export

From command line

You can collect the netlog with either google-chrome or chromium

chromium --log-net-log=/tmp/netlog.json --net-log-capture-mode=Everything
google-chrome-stable --log-net-log=/tmp/netlog.json --net-log-capture-mode=Everything
# <any-google-chrome-binary> --log-net-log=/tmp/netlog.json --net-log-capture-mode=Everything

The netlog capture mode flag is necessary to extract the sources.

Usage Examples

Show the event with id 1

nlp -f /path/to/netlog.json
> show id 1
nlp -f /path/to/netlog.json -c 'show id 1'

Extract all the sources from the netowrk

Will extract all the website sources that were downloaded into the ./out folder. The folder can be changed.

nlp -f /path/to/netlog.json
> e src out
nlp -f /path/to/netlog.json -c 'e src out'

Find all dns requests

nlp -f /path/to/netlog.json
> extract dns
nlp -f /path/to/netlog.json -c 'extract dns'

Find all URLs accessed

nlp -f /path/to/netlog.json
> e url
nlp -f /path/to/netlog.json -c 'e url'

Find all the TCP and UDP connections opened

nlp -f /path/to/netlog.json
> e con
nlp -f /path/to/netlog.json -c 'e con'

Show help

nlp
> help

Building and Installing

Obtaing the code

go get github.com/AndreaJegher/nlp

The repo with the code will be created in your default go source folder

Installing

go install github.com/AndreaJegher/nlp

If you have the default go binary folder in your path, you can start the program by using the nlp command

Building

go get github.com/AndreaJegher/nlp
cd $GOPATH/src/github.com/AndreaJegher/nlp
make

FAQs

Package last updated on 30 May 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