mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-27 18:14:32 +01:00
use normpath so abs path doesn't show up in log
This commit is contained in:
@@ -92,7 +92,7 @@ class HoneyPotBaseProtocol(insults.TerminalProtocol):
|
||||
if self.fs.exists(i):
|
||||
path = i
|
||||
break
|
||||
txt = os.path.abspath('%s/%s' % \
|
||||
txt = os.path.normpath('%s/%s' % \
|
||||
(self.env.cfg.get('honeypot', 'txtcmds_path'), path))
|
||||
if os.path.exists(txt) and os.path.isfile(txt):
|
||||
return self.txtcmd(txt)
|
||||
|
||||
Reference in New Issue
Block a user