lpc

command module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

README

Leaky Prefix Checker

GoDoc Build Status

By Yishen Miao

Description

The leaky prefix checker checks for domain names that escapes a hosts block list through www. prefix.

License

GNU General Public License, version 3

Documentation

Overview

LPC checks a hosts block list and add of a given prefix.

The Leaky Prefix Checker for domain names that escapes a hosts block list through `www.` prefix.

Usage:

lpc [flags]

The flags are:

-dns string
	IP address of the resolver, default to 8.8.8.8.",
-in string
	path to the hosts file, default to stdin.
-port string
	port of the resolver, default to 53
-out string
	path to the output file, default to stdout.
-tgt string
	target IP address of the blocked entry, default to 0.0.0.0
-time int64
	time between DNS query, default to 100ms

Example:

cat /etc/hosts | lpc
lpc -in /etc/hosts -out hosts.tmp

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL