-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Changes** - **New** **timeout** option for cURL requests. A default value can be defined in configuration file (`timout` key in `[common]` section), and can be overwritten in command line (`-t` | `--timeout` options available in all API request commands). Timeout is expressed in **milliseconds**. - **New** man page and changelog now available in `.deb` package - Formatting
- Loading branch information
Showing
17 changed files
with
211 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
; \__,_|_.__/\_,_/__/\___|___|_| |___/|___/ | ||
; | ||
; Kristuff\AbuseIPDB-client configuration file. | ||
; v0.9.16 | (c) Kristuff <[email protected]> | ||
; v0.9.17 | (c) Kristuff <[email protected]> | ||
|
||
; ----------------------------------------------------------- | ||
; WARNING: In most of the cases you should not modify this | ||
|
@@ -23,6 +23,13 @@ | |
; api_key= "1234" | ||
api_key= | ||
|
||
; timeout: | ||
; The maximum number of milliseconds to allow cURL functions to execute. If libcurl is | ||
; built to use the standard system name resolver, that portion of the connect will still | ||
; use full-second resolution for timeouts with a minimum timeout allowed of one second. | ||
; Default is 0 (no timeout) | ||
timeout=0 | ||
|
||
[report] | ||
; self_ips: | ||
; Represents the ips or domain list to exclude from report messages (email address are already removed) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
abuseipdb-client (0.9.17) unstable; urgency=low | ||
|
||
* New feature: timeout for all cURL request can be defined in conf.ini | ||
or from command line using the -t | --timeout option. Timeout is expressed | ||
in milliseconds. | ||
* A man page is now available | ||
|
||
-- kristuff <[email protected]> Tue, 07 Dec 2021 19:00:00 +0100 | ||
|
||
abuseipdb-client (0.9.16) unstable; urgency=low | ||
|
||
* Fix php doc, typo, formatting in source code | ||
* Include composer.json and composer.lock in .deb package | ||
|
||
-- kristuff <[email protected]> Sun, 28 Nov 2021 19:00:00 +0100 | ||
|
||
abuseipdb-client (0.9.15) unstable; urgency=low | ||
|
||
* Break change Configuration is now in INI format and located in a conf.ini file | ||
(with possible override in a local.ini file) instead of json files. | ||
* The save-key command has been removed. | ||
* When installing the .deb package, config is now located in /etc/abuseipdb-client/ | ||
|
||
-- kristuff <[email protected]> Tue, 23 Nov 2021 19:00:00 +0100 | ||
|
||
abuseipdb-client (0.9.14) unstable; urgency=low | ||
|
||
* Initial release | ||
|
||
-- kristuff <[email protected]> Wed, 10 Nov 2021 19:00:00 +0100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: abuseipdb-client | ||
Version: 0.9.16 | ||
Version: 0.9.17 | ||
Maintainer: kristuff <[email protected]> | ||
Architecture: all | ||
Depends: php, php-curl | ||
Description: CLI tool to check, report IP address, download blacklists with AbuseIPDB API v2 | ||
Description: AbuseIPDB APIv2 client: check, report IP address, download blacklist | ||
Priority: optional | ||
Section: utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
% ABUSEIPDB(1) Abuseipdb Client User Manuals | ||
% Kristuff | ||
% December 7, 2021 | ||
|
||
# NAME | ||
|
||
abuseipdb - check, report IP addresses download blacklist with AbuseIPDB API v2. | ||
|
||
# SYNOPSIS | ||
|
||
abuseipdb COMMANDE [*OPTIONS*]... | ||
|
||
# DESCRIPTION | ||
|
||
**abuseipdb** is a client for AbuseIPDB API v2. You can use it to check IP addresses or subnet, | ||
report IP addressess, clear your report for a given IP, or download blacklist. | ||
|
||
# COMMANDES | ||
|
||
-h, \--help | ||
: Displays a short-help text and exits. | ||
|
||
-G, \--config | ||
: Displays the current config and exits. | ||
|
||
-L, \--list | ||
: Displays the list report categories and exits. | ||
|
||
-C *IP*, \--check *IP* | ||
: Performs a check request for the given IP address. A valid IPv4 or IPv6 address is required. | ||
|
||
-R *IP*, \--report *IP* | ||
: Performs a report request for the given IP address. A valid IPv4 or IPv6 address is required. | ||
|
||
-V *FILE*, \--bulk-report FILE | ||
: Performs a bulk-report request sending a csv file. A valid file name or full path is required. | ||
|
||
-E *IP*, \--clear *IP* | ||
: Remove own reports for the given IP address. A valid IPv4 or IPv6 address is required. | ||
|
||
-K *NETWORK*, \--checkblock *NETWORK* | ||
: Performs a check-block request for the given network. A valid subnet (v4 or v6) denoted with | ||
CIDR notation is required. | ||
|
||
-B, \--blacklist | ||
: Performs a blacklist request: get a list of reported IPs. | ||
|
||
\---version | ||
: Prints the current version. | ||
|
||
|
||
# OPTIONS | ||
|
||
-d *DAYS*, \--days *DAYS* | ||
: For a check or check-block request, defines the maxAgeDays. Min is 1, max is 365, default is 30. | ||
|
||
-c *CATEGORIES*, \--categories *CATEGORIES* | ||
: For a report request, defines the report category(ies). Categories must be separate by a comma. | ||
Some catgeries cannot be used alone. A category can be represented by its shortname or by its id. | ||
Use abuseipdb -L to print the categories list. | ||
|
||
-m *MESSAGE*, \--message *MESSAGE* | ||
: For a report request, defines the message to send with report. Message is required for all report | ||
requests. | ||
|
||
-l *LIMIT*, \--limit *LIMIT* | ||
: For a blacklist request, defines the limit (default is 1000). For a check request with verbose flag, | ||
sets the max number of last reports displayed (default is 10). For a check-block request, sets the | ||
max number of IPs displayed (default is 0 mean no limit). | ||
|
||
-o *FORMAT*, \--output *FORMAT* | ||
: Defines the output format for API requests. Default is a colorized report, possible formats are | ||
json or plaintext. Plaintext option prints partial response (blacklist: IPs list, check or report: | ||
confidence score only, check-block: reported IP list with confidence score, bulk-report: | ||
number of saved reports, clear: number of deleted reports). | ||
|
||
-s *SCORE*, \--score *SCORE* | ||
: For a blacklist request, sets the confidence score minimum. The confidence minimum must be between | ||
25 and 100. This parameter is subscriber feature (not honored otherwise, allways 100). | ||
|
||
-t *TIMEOUT*, \--timeout *TIMEOUT* | ||
: Define the timeout in API request and overwrite the value defined in conf.ini or local.ini. | ||
Timeout is expressed in milliseconds. | ||
|
||
-v, \--verbose | ||
: For a check request, display additional fields like the x last reports. Max number of last reports | ||
is defined in config. This increases request time and response size. | ||
|
||
# BUGS | ||
|
||
Submit bug reports online at: <https://github.com/kristuff/abuseipdb-cli/issues> | ||
|
||
# SEE ALSO | ||
|
||
Source code at: <https://github.com/kristuff/abuseipdb-cli> | ||
|
||
Full documentation at: <https://kristuff.fr/projects/abuseipdbcli/doc> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.