-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME
46 lines (25 loc) · 1.27 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
1. Installating dependencies for Ubuntu/Debian/Kali systems
sudo apt-get install cpanminus libmojolicious-perl libtie-ixhash-perl
sudo apt-get install liblwp-protocol-https-perl libjson-xs-perl libfile-slurp-perl
sudo apt-get install libregexp-ipv6-perl libtext-csv-xs-perl
sudo cpanm -n Config::INI::Tiny Text::ParseWords Net::IPv4Addr Regexp::IPv4
2. Installing dependencies for all other systems
Install your local cpanminus ditribution and run the following:
sudo cpanm -n Mojolicious Config::INI::Tiny Tie::IxHash LWP::Protocol::https JSON::XS
sudo cpanm -n Text::ParseWords File::Slurp
sudo cpanm -n Regexp::IPv4 Text::CSV_XS Net::IPv4Addr Regexp::IPv6
3. Configure ONYPHE Command Line Interface settings
echo 'api_endpoint = https://www.onyphe.io/api/v2' > ~/.onyphe.ini
echo 'api_key = XXX' >> ~/.onyphe.ini
4. Install ONYPHE Command Line Interface
perl Build.PL
./Build && ./Build test
sudo ./Build install
5. With an Unrated API license
echo 'api_unrated_endpoint = https://www.onyphe.io/unrated/api/v2' > ~/.onyphe.ini
echo 'api_unrated_email = [email protected]' >> ~/.onyphe.ini
echo 'api_key = XXX' >> ~/.onyphe.ini
6. You're done
onyphe -help
onyphe -version
onyphe -search 'protocol:ssh | uniq domain | addcount'