mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-17 14:04:28 +01:00
add some duplicate file prevention
git-svn-id: https://kippo.googlecode.com/svn/trunk@12 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@@ -71,6 +71,10 @@ class command_mkdir(HoneyPotCommand):
|
||||
'mkdir: cannot create directory `%s\': ' % f + \
|
||||
'No such file or directory')
|
||||
return
|
||||
if f in [x[A_NAME] for x in dir]:
|
||||
self.honeypot.writeln(
|
||||
'mkdir: cannot create directory `test\': File exists')
|
||||
return
|
||||
dir.append([f, T_DIR, 0, 0, 4096, 16877, time.time(), [], None])
|
||||
|
||||
class command_uptime(HoneyPotCommand):
|
||||
|
||||
Reference in New Issue
Block a user