fake_arch to arch, self.arch -> self.server.arch

This commit is contained in:
oliveriandrea 2018-03-28 17:56:09 +02:00 committed by GitHub
parent 1c7ca09449
commit a22bf01855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ class HoneyPotBaseProtocol(insults.TerminalProtocol, TimeoutMixin):
self.clientVersion = None
self.kippoIP = None
self.clientIP = None
self.arch = 'linux-x64-lsb'
self.server.arch = 'linux-x64-lsb'
if self.fs.exists(avatar.avatar.home):
self.cwd = avatar.avatar.home
@ -65,13 +65,13 @@ class HoneyPotBaseProtocol(insults.TerminalProtocol, TimeoutMixin):
self.cmdstack = []
try:
fake_arch = CONFIG.getboolean('shell', 'fake_arch')
fake_arch = CONFIG.getboolean('shell', 'arch')
except:
fake_arch = False
if fake_arch:
try:
archs_emulated = CONFIG.get('shell', 'archs_emulated').split(',')
self.arch = random.choice(archs_emulated)
self.server.arch = random.choice(archs_emulated)
except:
pass