gods

a simple blocklist for ssh
Log | Files | Refs | README | LICENSE

commit dfc3dc8bd05e0e61b13f459587326828a74b7a9b
parent 373731f2a04491ea2ec590ee246a329f09320167
Author: Naveen Narayanan <zerous@nocebo.space>
Date:   Sat, 25 Sep 2021 23:56:41 +0200

Compute unix time by setting year

Prospective attackers shall be blocked by comparing this time against
the respective time for which they are blocked.

Diffstat:
Mparser.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/parser.c b/parser.c @@ -190,6 +190,9 @@ timestamp() if (!word() || !hms(&tm)) return 0; + tm.tm_year = 121; /* XXX Call time and setup year? */ + probtim = mktime(&tm); + return 1; }