Steve Nyemba 1 week ago
parent 700452c8de
commit 0ee2eb7e8e

@ -30,12 +30,13 @@ import plugin_ix
# iregistry = plugins.Registry(meta.__home__) # iregistry = plugins.Registry(meta.__home__)
@_cli.command(name='log-intruder') @_cli.command(name='login')
def intrusion(path:str='/var/log/auth.log', year:int=datetime.now().year,debug:bool=False): def intrusion(path:str='/var/log/auth.log', year:int=datetime.now().year,debug:bool=False):
""" """
This function This function
""" """
_r = smart.logger.read(path=path,year=year) _r = smart.logger.read(path=path,year=year)
if _r : if _r :
for _id in _r : for _id in _r :
if hasattr(smart.logger,_id): if hasattr(smart.logger,_id):

Loading…
Cancel
Save