blacklist timeout increase

Developers may discuss here.

blacklist timeout increase

Postby szymon.nowak » 2014-03-23 10:18

where can I find the line corresponding to the increase of time after a failed login attempt (blacklist )

I found a lot of lines in the file vncserver.cpp but abolished know which corresponds to
szymon.nowak
20
20
 
Posts: 40
Joined: 2011-12-09 22:21

Re: blacklist timeout increase

Postby Rudi De Vos » 2014-03-25 14:12

todo, just to put mssg back ontop
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5439
Joined: 2004-04-23 10:21

Re: blacklist timeout increase

Postby Rudi De Vos » 2014-03-31 20:14

search for _lastRefTime

if ((now.QuadPart - current->_lastRefTime.QuadPart) > 0)
current->_lastRefTime.QuadPart = now.QuadPart + 10; <<<< max this bigger or

You can replace it by, that's how i made a little change in source.
Replaced
current->_lastRefTime.QuadPart = now.QuadPart + 10;
By
current->_lastRefTime.QuadPart = now.QuadPart + 10*current->_failureCount;

Timeout now increase for each wrong password
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5439
Joined: 2004-04-23 10:21


Return to Developer discussions (mainly user-mode)

Who is online

Users browsing this forum: No registered users and 2 guests