Skip to content

Commit

Permalink
Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
micheloosterhof committed Jul 28, 2018
1 parent 0bc66d8 commit 2128cc5
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/cowrie/commands/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
from twisted.python import failure, log
from twisted.internet import error, reactor

from cowrie.shell.honeypot import HoneyPotShell, StdOutStdErrEmulationProtocol
from cowrie.shell.honeypot import HoneyPotShell
from cowrie.shell.command import HoneyPotCommand
from cowrie.core.auth import UserDB
from cowrie.core import utils

commands = {}
Expand Down
1 change: 0 additions & 1 deletion src/cowrie/commands/dd.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from cowrie.shell.command import HoneyPotCommand
from cowrie.shell.fs import FileNotFound
import cowrie.shell.fs

commands = {}

Expand Down
4 changes: 2 additions & 2 deletions src/cowrie/commands/du.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import os

from cowrie.shell.command import HoneyPotCommand
from cowrie.shell.fs import *
from cowrie.shell.fs import A_NAME

commands = {}

Expand Down Expand Up @@ -94,7 +94,7 @@ def call(self):

def du_show(self, path, all=False):
try:
if self.protocol.fs.isdir(path) and self.showDirectories == False:
if self.protocol.fs.isdir(path) and not self.showDirectories:
files = self.protocol.fs.get_path(path)[:]
if self.showHidden:
dot = self.protocol.fs.getfile(path)[:]
Expand Down
1 change: 0 additions & 1 deletion src/cowrie/commands/ifconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,3 @@ def call(self):

commands['/sbin/ifconfig'] = command_ifconfig
commands['ifconfig'] = command_ifconfig

1 change: 0 additions & 1 deletion src/cowrie/commands/last.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import time

from cowrie.shell.command import HoneyPotCommand
from cowrie.shell.fs import *

commands = {}

Expand Down

0 comments on commit 2128cc5

Please sign in to comment.