Skip to content

Commit 98d3c6c

Browse files
authored
Merge pull request #26 from SimonCahill/feat/update-version-to-1.2.3
Updated version to v1.2.3
2 parents 306cc74 + a63904a commit 98d3c6c

File tree

6 files changed

+50
-19
lines changed

6 files changed

+50
-19
lines changed

CMakeLists.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.10)
22

3-
project(endlessh-report VERSION 1.2.2 LANGUAGES CXX DESCRIPTION "A simple report generator for endlessh tarpits.")
3+
project(endlessh-report VERSION 1.2.3 LANGUAGES CXX DESCRIPTION "A simple report generator for endlessh tarpits.")
44
set(PROJECT_LONG_NAME "Endlessh Report Generator")
55
set(CMAKE_CXX_STANDARD 17)
66
set(CMAKE_CXX_STANDARD_REQUIRED True)
@@ -18,7 +18,7 @@ include_directories(
1818
${CMAKE_CURRENT_BINARY_DIR}/include
1919
)
2020

21-
if (DEFINED endlesshreport_DEBUG)
21+
if (DEFINED endlesshreport_DEBUG OR CMAKE_BUILD_TYPE STREQUAL "Debug")
2222
add_compile_options(
2323
-O0
2424
-ggdb
@@ -30,6 +30,15 @@ else()
3030
)
3131
endif()
3232

33+
###
34+
# Make sure submodules are updated
35+
###
36+
message("Ensuring repository has all submodules...")
37+
execute_process(
38+
COMMAND git submodule update --init --recursive
39+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
40+
)
41+
3342
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/submodules/date)
3443
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/submodules/fmt)
3544

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ endlessh-report
5555
## Arguments
5656

5757
```
58-
endlessh-report v1.2.1 - A simple report generator for endlessh tarpits.
58+
endlessh-report v1.2.3 - A simple report generator for endlessh tarpits.
5959
6060
Usage:
6161
endlessh-report
@@ -74,7 +74,7 @@ Switches:
7474
--version, -v Display version information and exit
7575
7676
Arguments:
77-
--syslog [f], -S[f] Override syslog/endlessh log location
77+
--syslog [f], -S[f] Override syslog/endlessh log location
7878
```
7979

8080
## Output
@@ -245,14 +245,14 @@ Resulting in:
245245
## Detailed AbuseIPDB CSV format
246246
```csv
247247
IP,Categories,ReportDate,Comment
248-
218.92.0.208,"18,14,22,15",2022-10-15T22:43:11Z,"218.92.0.208 fell into Endlessh tarpit; 50/2276 total connections are currently still open. Total time wasted: 64d 15h 33m 56s. Total bytes sent by tarpit: 685.00MiB. Report generated by Endlessh Report Generator v1.2.1"
249-
179.60.147.99,"18,14,22,15",2022-10-15T22:43:11Z,"179.60.147.99 fell into Endlessh tarpit; 0/534 total connections are currently still open. Total time wasted: 2h 52m 10s. Total bytes sent by tarpit: 1.00MiB. Report generated by Endlessh Report Generator v1.2.1"
250-
61.177.173.49,"18,14,22,15",2022-10-15T22:43:11Z,"61.177.173.49 fell into Endlessh tarpit; 0/62 total connections are currently still open. Total time wasted: 1d 12h 1m 18s. Total bytes sent by tarpit: 15.00MiB. Report generated by Endlessh Report Generator v1.2.1"
251-
218.92.0.221,"18,14,22,15",2022-10-15T22:43:11Z,"218.92.0.221 fell into Endlessh tarpit; 0/33 total connections are currently still open. Total time wasted: 8h 39m 45s. Total bytes sent by tarpit: 3.00MiB. Report generated by Endlessh Report Generator v1.2.1"
252-
61.177.172.98,"18,14,22,15",2022-10-15T22:43:11Z,"61.177.172.98 fell into Endlessh tarpit; 0/48 total connections are currently still open. Total time wasted: 19h 38m 37s. Total bytes sent by tarpit: 8.00MiB. Report generated by Endlessh Report Generator v1.2.1"
253-
61.177.173.47,"18,14,22,15",2022-10-15T22:43:11Z,"61.177.173.47 fell into Endlessh tarpit; 0/56 total connections are currently still open. Total time wasted: 1d 16h 44m 50s. Total bytes sent by tarpit: 17.00MiB. Report generated by Endlessh Report Generator v1.2.1"
254-
210.97.53.178,"18,14,22,15",2022-10-15T22:43:11Z,"210.97.53.178 fell into Endlessh tarpit; 0/2 total connections are currently still open. Total time wasted: 6s. Total bytes sent by tarpit: 333B. Report generated by Endlessh Report Generator v1.2.1"
255-
61.177.173.48,"18,14,22,15",2022-10-15T22:43:11Z,"61.177.173.48 fell into Endlessh tarpit; 0/31 total connections are currently still open. Total time wasted: 55m 10s. Total bytes sent by tarpit: 298.00KiB. Report generated by Endlessh Report Generator v1.2.1"
256-
61.177.173.53,"18,14,22,15",2022-10-15T22:43:11Z,"61.177.173.53 fell into Endlessh tarpit; 0/72 total connections are currently still open. Total time wasted: 2d 6h 20m 48s. Total bytes sent by tarpit: 24.00MiB. Report generated by Endlessh Report Generator v1.2.1"
257-
45.141.84.126,"18,14,22,15",2022-10-15T22:43:11Z,"45.141.84.126 fell into Endlessh tarpit; 2/13 total connections are currently still open. Total time wasted: 10d 4h 5m 29s. Total bytes sent by tarpit: 107.00MiB. Report generated by Endlessh Report Generator v1.2.1"
248+
218.92.0.208,"18,14,22,15",2022-10-15T22:43:11Z,"218.92.0.208 fell into Endlessh tarpit; 50/2276 total connections are currently still open. Total time wasted: 64d 15h 33m 56s. Total bytes sent by tarpit: 685.00MiB. Report generated by Endlessh Report Generator v1.2.3"
249+
179.60.147.99,"18,14,22,15",2022-10-15T22:43:11Z,"179.60.147.99 fell into Endlessh tarpit; 0/534 total connections are currently still open. Total time wasted: 2h 52m 10s. Total bytes sent by tarpit: 1.00MiB. Report generated by Endlessh Report Generator v1.2.3"
250+
61.177.173.49,"18,14,22,15",2022-10-15T22:43:11Z,"61.177.173.49 fell into Endlessh tarpit; 0/62 total connections are currently still open. Total time wasted: 1d 12h 1m 18s. Total bytes sent by tarpit: 15.00MiB. Report generated by Endlessh Report Generator v1.2.3"
251+
218.92.0.221,"18,14,22,15",2022-10-15T22:43:11Z,"218.92.0.221 fell into Endlessh tarpit; 0/33 total connections are currently still open. Total time wasted: 8h 39m 45s. Total bytes sent by tarpit: 3.00MiB. Report generated by Endlessh Report Generator v1.2.3"
252+
61.177.172.98,"18,14,22,15",2022-10-15T22:43:11Z,"61.177.172.98 fell into Endlessh tarpit; 0/48 total connections are currently still open. Total time wasted: 19h 38m 37s. Total bytes sent by tarpit: 8.00MiB. Report generated by Endlessh Report Generator v1.2.3"
253+
61.177.173.47,"18,14,22,15",2022-10-15T22:43:11Z,"61.177.173.47 fell into Endlessh tarpit; 0/56 total connections are currently still open. Total time wasted: 1d 16h 44m 50s. Total bytes sent by tarpit: 17.00MiB. Report generated by Endlessh Report Generator v1.2.3"
254+
210.97.53.178,"18,14,22,15",2022-10-15T22:43:11Z,"210.97.53.178 fell into Endlessh tarpit; 0/2 total connections are currently still open. Total time wasted: 6s. Total bytes sent by tarpit: 333B. Report generated by Endlessh Report Generator v1.2.3"
255+
61.177.173.48,"18,14,22,15",2022-10-15T22:43:11Z,"61.177.173.48 fell into Endlessh tarpit; 0/31 total connections are currently still open. Total time wasted: 55m 10s. Total bytes sent by tarpit: 298.00KiB. Report generated by Endlessh Report Generator v1.2.3"
256+
61.177.173.53,"18,14,22,15",2022-10-15T22:43:11Z,"61.177.173.53 fell into Endlessh tarpit; 0/72 total connections are currently still open. Total time wasted: 2d 6h 20m 48s. Total bytes sent by tarpit: 24.00MiB. Report generated by Endlessh Report Generator v1.2.3"
257+
45.141.84.126,"18,14,22,15",2022-10-15T22:43:11Z,"45.141.84.126 fell into Endlessh tarpit; 2/13 total connections are currently still open. Total time wasted: 10d 4h 5m 29s. Total bytes sent by tarpit: 107.00MiB. Report generated by Endlessh Report Generator v1.2.3"
258258
```

include/extensions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @version 0.1
66
* @date 2022-10-15
77
*
8-
* @copyright Copyright (c) 2022 Simon Cahill
8+
* @copyright Copyright (c) 2023 Simon Cahill
99
*/
1010

1111
#ifndef ENDLESSH_REPORT_INCLUDE_EXTENSIONS_HPP

include/options.hpp

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @version 0.1
66
* @date 2022-10-15
77
*
8-
* @copyright Copyright (c) 2022 Simon Cahill
8+
* @copyright Copyright (c) 2023 Simon Cahill
99
*/
1010

1111
#ifndef ENDLESSH_REPORT_INCLUDE_OPTIONS_HPP
@@ -25,8 +25,18 @@
2525
using std::string;
2626
using std::string_view;
2727

28+
/**
29+
* @brief Gets the string containing the application's short arg string.
30+
*
31+
* @return constexpr string_view The arg string as required for @see getopt_long
32+
*/
2833
constexpr string_view getAppArgs() { return R"(icsandhvS:)"; }
2934

35+
/**
36+
* @brief Gets the application's command-line options for @see getopt_long.
37+
*
38+
* @return const option* A const pointer to the array containing the options.
39+
*/
3040
const option* getAppOptions() {
3141
const static option OPTIONS[] = {
3242
{ "no-ip-stats", no_argument, nullptr, 'i' },
@@ -43,6 +53,13 @@ const option* getAppOptions() {
4353
return OPTIONS;
4454
}
4555

56+
/**
57+
* @brief Gets the application's help text.
58+
*
59+
* @param binName The name of the binary.
60+
*
61+
* @return string The actual help text.
62+
*/
4663
inline string getAppHelpText(const string_view& binName = getProjectName()) {
4764
const static string HELP_TEXT_FMT = R"(
4865
{0:s} v{1:s} - {2:s}
@@ -64,12 +81,17 @@ inline string getAppHelpText(const string_view& binName = getProjectNa
6481
--version, -v Display version information and exit
6582
6683
Arguments:
67-
--syslog [f], -S[f] Override syslog/endlessh log location
84+
--syslog [f], -S[f] Override syslog/endlessh log location
6885
)";
6986

7087
return fmt::format(HELP_TEXT_FMT, binName, getApplicationVersion(), getProjectDescription());
7188
}
7289

90+
/**
91+
* @brief Gets the application's version information.
92+
*
93+
* @return string The string containing the version information.
94+
*/
7395
inline string getAppVersionText() { return fmt::format(R"({0:s} v{1:s} - {2:s})", getProjectName(), getApplicationVersion(), getProjectDescription()); }
7496

7597
#endif // ENDLESSH_REPORT_INCLUDE_OPTIONS_HPP

include/version.hpp.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @version 0.1
66
* @date 2022-10-15
77
*
8-
* @copyright Copyright (c) 2022 Simon Cahill and Contributors
8+
* @copyright Copyright (c) 2023 Simon Cahill and Contributors
99
*/
1010

1111
#ifndef ENDLESSH_REPORT_INCLUDE_VERSION_HPP

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @version 0.1
66
* @date 2022-01-07
77
*
8-
* @copyright Copyright (c) 2022 Simon Cahill
8+
* @copyright Copyright (c) 2023 Simon Cahill
99
*/
1010

1111
////////////////////////////////

0 commit comments

Comments
 (0)