Commit Graph

68 Commits

Author SHA1 Message Date
Michel Oosterhof 2a68eacb69
Pip check (#1576)
* add pip check/pip install to verify recommend config actually works
* add yamllint because too much yaml now
* add FAQ's
2021-06-09 13:37:10 +08:00
Michel Oosterhof ec69913a5d
7may (#1558)
* restructure documentation headings
* add output eventid reference guide 
* rename all classes with capitals
* more typing
2021-05-09 00:45:12 +08:00
Michel Oosterhof fdbb2f0939
Private ranges (#1557)
* limit private address ranges
2021-05-07 11:56:36 +08:00
Michel Oosterhof a79d6bc0ca
Gh actions pypy (#1544)
* typing
* python version updates in ci/cd
* only mypy on cpython
* twistedchecker ignore errors
* only run auto updater on the main repository
2021-04-26 08:03:52 +08:00
Michel Oosterhof 628ad9bed7
Gh action tox (#1536)
* tox via gh-action
2021-04-16 21:47:12 +08:00
Michel Oosterhof 2b818ec1ec
Pyre (#1531)
* add pyre
2021-04-13 21:55:23 +08:00
Michel Oosterhof ac2ad04925
Mypy4 (#1526)
* remove python2 support, assume 3.6+
* ignore .envrc
* type annotations
* rewrite cowrieconfig from singleton class to module variable
* add resumeproducing function
* name has become bytes (was str before)
* remove unreachable statement
* add typing for mock fake transport
* enable mypy check by default
2021-04-03 23:53:44 +08:00
Michel Oosterhof 66005e8e17
Mypy (#1517)
* add twistedchecker
* add mypy, failure allowed
2021-03-26 10:29:45 +08:00
Michel Oosterhof 6d23d70988
blackify. (#1518)
Use black coding standard. Update flake8 configuration with new settings.
2021-03-26 00:16:42 +08:00
Michel Oosterhof fd3f552732 Revert "update flake8/black calls"
This reverts commit 14e2087cc9.
2021-03-26 00:11:28 +08:00
Michel Oosterhof 14e2087cc9 update flake8/black calls 2021-03-26 00:09:26 +08:00
Michel Oosterhof 7f16c72c5c
Remove 3.5 (#1456)
* remove 3.5 from testing framework
2020-11-25 19:32:55 +08:00
Michel Oosterhof c049ebea49
codecov from travis (#1451) 2020-11-12 15:32:25 +08:00
Michel Oosterhof 4b1474cba2
python versions update (#1448)
* Update tox/circleci/travis build infrastructure. Remove Py 2.7 and 3.5.
* Add `pip check` command to build pipeline.
2020-11-10 13:46:36 +08:00
Michel Oosterhof 3df54905c4
Py 3.10 (#1407)
* add libvirt group membership

* remove 3.8-dev add 3.10-dev

* add python 3.9

* update allowed failures
2020-09-15 17:53:57 +08:00
Michel Oosterhof 453dce09e9
allow 2.7 failures (#1286)
* allow 2.7 failures

* oops
2020-01-03 13:27:58 +00:00
Michel Oosterhof 2d8dbb9aa1
Python 3.8 released (#1227)
* python 3.8 has been released
2019-10-23 14:13:26 +02:00
Michel Oosterhof bb225f52ec
Update .travis.yml 2019-09-12 22:52:50 +04:00
Michel Oosterhof 90a0a2ade8 pypy not working 2019-09-12 15:54:44 +04:00
Michel Oosterhof 7075d465d8 try without apt-get update 2019-09-12 15:45:26 +04:00
Michel Oosterhof 4a0577b471 grr 2019-09-12 15:38:08 +04:00
Michel Oosterhof c19af6623a give up 2019-09-12 15:34:35 +04:00
Michel Oosterhof c938c34a7f try different way 2019-09-12 15:27:51 +04:00
Michel Oosterhof 1ad7bacb05 change option order 2019-09-12 15:21:42 +04:00
Michel Oosterhof 826cddd2cd xenial -> bionic 2019-09-12 15:10:19 +04:00
Michel Oosterhof 759c6d8210 optimize test 2019-09-12 12:07:36 +04:00
Michel Oosterhof a33e67fa84 allow failure for nightly/dev 2019-09-12 11:12:46 +04:00
Michel Oosterhof 8526d5d18d more py versions` 2019-09-12 11:01:05 +04:00
Guilherme Borges aeba97b4cc
Add a pool of backends for the proxy (#1181)
* add pool configs

* add pool interface from proxy branch

* add support for pool initialisation in plugin

* add pool to telnet

* backend pool as service

* move libvirt backend to own dir

* add NAT settings

* add guest backend config

* check for telnet in nmap if ssh is disabled

* add pool periodic cleanup

* add developer guide for backend pool

* add proxy documentation

* add backend pool docs

* docs on XML configs

* add method to check guest connectivity

* add telnet exec class

* update circle deps

* add tox libvirt dep
2019-08-26 12:11:58 +01:00
Michel Oosterhof a97b1ead51
test new py versions (#1183)
* test new py versions

* 3.9-dev does not exist yet
2019-08-25 11:38:41 +04:00
Michel Oosterhof 297937fcfb
Sphinx rtd theme (#1081)
* read-the-docs theme
* import all dev requirements
* add FAQ and fix Sphinx warnings
2019-03-31 13:09:15 +04:00
Michel Oosterhof 54a6b135aa
Add Python 3.8-dev to Travis CI (#1013) 2019-02-06 08:37:02 +04:00
Michel Oosterhof bdff9601ca
Move to Restructured text (#979)
From Markdown to RestructuredText
2019-01-09 12:05:16 +04:00
Michel Oosterhof 0d80f9b1e0
Setup (#892)
* Set license, classifiers, packages / run setup build as part of CI workflow.
2018-09-18 23:17:11 +04:00
Michel Oosterhof f59b9513a0 add docker infra 2018-09-08 09:52:01 +04:00
Florian Pelgrim bdae37efc1 Fix travis (#868)
* Fix travis flake8 path

flake8 was checking the wrong path inside travis.
Problem here is if the path is not existing flake8 will return 0 and
makes the test pass.
Due to this fakt we have now some flake8 errors which I will handle now.

* Fix flake8 E128
2018-09-02 09:57:53 +04:00
Florian Pelgrim 6c7417393a Flake8 fixes (#857)
* Adding flake8-import-order to linters

We need some kind of linter to enforce the code style.
Doing this by hand is error prone and no one will really watch for it.

I decieded to use the default style since it's from my point of view the
best to read and more strictes version.

* Enforcing imports order on bin/

* Enforcing imports order on src/twisted/

* Enforcing imports order on setup.py

* Enforcing imports order on src/cowrie/commands

* Enforcing imports order on src/cowrie/core

* Enforcing imports order on src/cowrie/dblog

* Enforcing imports order on src/cowrie/insults

* Enforcing imports order on src/cowrie/output

* Enforcing imports order on src/cowrie/proxy

* Enforcing imports order on src/cowrie/python

* Enforcing imports order on src/cowrie/shell

* Enforcing imports order on src/cowrie/ssh

* Enforcing imports order on src/cowrie/telnet

* Enforcing imports order on src/cowrie/test

* Reformat file, improved readability

* flake8 E5,E701 src/cowrie/commands/base.py

Before
flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/commands/base.py
src/cowrie/commands/base.py:47:121: E501 line too long (180 > 120 characters)
src/cowrie/commands/base.py:48:121: E501 line too long (182 > 120 characters)
src/cowrie/commands/base.py:49:121: E501 line too long (149 > 120 characters)
src/cowrie/commands/base.py:50:121: E501 line too long (175 > 120 characters)
src/cowrie/commands/base.py:52:121: E501 line too long (127 > 120 characters)
src/cowrie/commands/base.py:54:121: E501 line too long (185 > 120 characters)
src/cowrie/commands/base.py:56:121: E501 line too long (130 > 120 characters)
src/cowrie/commands/base.py:57:121: E501 line too long (122 > 120 characters)
src/cowrie/commands/base.py:59:121: E501 line too long (188 > 120 characters)
src/cowrie/commands/base.py:60:121: E501 line too long (188 > 120 characters)
src/cowrie/commands/base.py:61:121: E501 line too long (145 > 120 characters)
src/cowrie/commands/base.py:63:121: E501 line too long (142 > 120 characters)
src/cowrie/commands/base.py:64:121: E501 line too long (152 > 120 characters)
src/cowrie/commands/base.py:66:121: E501 line too long (128 > 120 characters)
src/cowrie/commands/base.py:67:121: E501 line too long (123 > 120 characters)
src/cowrie/commands/base.py:72:121: E501 line too long (130 > 120 characters)
src/cowrie/commands/base.py:74:121: E501 line too long (125 > 120 characters)
src/cowrie/commands/base.py:75:121: E501 line too long (140 > 120 characters)
src/cowrie/commands/base.py:76:121: E501 line too long (133 > 120 characters)
src/cowrie/commands/base.py:78:121: E501 line too long (124 > 120 characters)
src/cowrie/commands/base.py:79:121: E501 line too long (122 > 120 characters)
src/cowrie/commands/base.py:80:121: E501 line too long (129 > 120 characters)
src/cowrie/commands/base.py:81:121: E501 line too long (150 > 120 characters)
src/cowrie/commands/base.py:83:121: E501 line too long (129 > 120 characters)
src/cowrie/commands/base.py:544:68: E502 the backslash is redundant between brackets
src/cowrie/commands/base.py:553:68: E502 the backslash is redundant between brackets
src/cowrie/commands/base.py:582:66: E502 the backslash is redundant between brackets
src/cowrie/commands/base.py:696:78: E502 the backslash is redundant between brackets
24    E501 line too long (180 > 120 characters)
4     E502 the backslash is redundant between brackets
28

* Reformat code, improved readability

* flake8 E5, E701 src/cowrie/commands/curl.py

Before
flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/commands/curl.py
src/cowrie/commands/curl.py:413:106: E502 the backslash is redundant between brackets
1     E502 the backslash is redundant between brackets
1

* Reformat code, improved readability

* Reformat code, improved readability

* flake8 E5, E701 src/cowrie/commands/fs.py

Before
flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/commands/fs.py
src/cowrie/commands/fs.py:438:74: E502 the backslash is redundant between brackets
src/cowrie/commands/fs.py:465:67: E502 the backslash is redundant between brackets
2     E502 the backslash is redundant between brackets
2

* flake8 E5, E701 src/cowrie/commands/gcc.py

Before
flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/commands/gcc.py
src/cowrie/commands/gcc.py:167:121: E501 line too long (635 > 120 characters)
1     E501 line too long (635 > 120 characters)
1

* flake8 E5, E701 src/cowrie/commands/ifconfig.py

Before
flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/commands/ifconfig.py
src/cowrie/commands/ifconfig.py:11:121: E501 line too long (145 > 120 characters)
src/cowrie/commands/ifconfig.py:13:121: E501 line too long (138 > 120 characters)
2     E501 line too long (145 > 120 characters)
2

* Reformat code, improved readability

* Reformat code, improved readability

* flake8 E5, E701 src/cowrie/commands/netstat.py

Before
flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/commands/netstat.py
src/cowrie/commands/netstat.py:21:121: E501 line too long (126 > 120 characters)
1     E501 line too long (126 > 120 characters)
1

* flake8 E5, E701 src/cowrie/commands/ping.py

flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/commands/ping.py
src/cowrie/commands/ping.py:81:74: E502 the backslash is redundant between brackets
1     E502 the backslash is redundant between brackets
1

* Reformat code, improved readability

* flake8 E5, E701 src/cowrie/commands/ssh.py

Before
flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/commands/ssh.py
src/cowrie/commands/ssh.py:79:87: E502 the backslash is redundant between brackets
src/cowrie/commands/ssh.py:99:81: E502 the backslash is redundant between brackets
2     E502 the backslash is redundant between brackets
2

* flake8 E5, E701 src/cowrie/commands/sudo.py

Before
flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/commands/sudo.py
src/cowrie/commands/sudo.py:14:121: E501 line too long (133 > 120 characters)
src/cowrie/commands/sudo.py:15:121: E501 line too long (166 > 120 characters)
src/cowrie/commands/sudo.py:16:121: E501 line too long (122 > 120 characters)
src/cowrie/commands/sudo.py:24:121: E501 line too long (133 > 120 characters)
src/cowrie/commands/sudo.py:25:121: E501 line too long (166 > 120 characters)
src/cowrie/commands/sudo.py:26:121: E501 line too long (122 > 120 characters)
6     E501 line too long (133 > 120 characters)
6

* Reformat code, improved readability

* Reformat code, improved readability

* flake8 E5, E701 src/cowrie/commands/wget.py

Before
flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/commands/wget.py
src/cowrie/commands/wget.py:50:19: E701 multiple statements on one line (colon)
src/cowrie/commands/wget.py:264:69: E502 the backslash is redundant between brackets
1     E502 the backslash is redundant between brackets
1     E701 multiple statements on one line (colon)
2

* flake8 E5, E701 src/cowrie/commands/yum.py

Before
flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/commands/yum.py
src/cowrie/commands/yum.py:8:1: F401 'datetime.datetime' imported but unused
src/cowrie/commands/yum.py:223:121: E501 line too long (193 > 120 characters)
src/cowrie/commands/yum.py:228:121: E501 line too long (193 > 120 characters)
src/cowrie/commands/yum.py:237:121: E501 line too long (193 > 120 characters)
3     E501 line too long (193 > 120 characters)
1     F401 'datetime.datetime' imported but unused
4

* flake8 E5, E701 src/cowrie/core/cef.py

flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/core
src/cowrie/core/cef.py:53:121: E501 line too long (122 > 120 characters)
1     E501 line too long (122 > 120 characters)
1

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* flake8 E5, E701 src/cowrie/output/hpfeeds.py

Before
flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/output/hpfeeds.py
src/cowrie/output/hpfeeds.py:61:26: E701 multiple statements on one line (colon)
src/cowrie/output/hpfeeds.py:80:29: E701 multiple statements on one line (colon)
src/cowrie/output/hpfeeds.py:147:22: E701 multiple statements on one line (colon)
src/cowrie/output/hpfeeds.py:166:22: E701 multiple statements on one line (colon)
src/cowrie/output/hpfeeds.py:173:26: E701 multiple statements on one line (colon)
src/cowrie/output/hpfeeds.py:180:30: E701 multiple statements on one line (colon)
src/cowrie/output/hpfeeds.py:186:34: E701 multiple statements on one line (colon)
7     E701 multiple statements on one line (colon)
7

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* flake8 E5, E701 src/cowrie/output/sqlite.py

Before
flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/output/sqlite.py
src/cowrie/output/sqlite.py:73:62: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:74:60: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:82:62: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:83:60: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:91:41: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:92:67: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py💯41: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:101:67: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:109:62: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:116:45: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:117:75: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:125:45: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:126:75: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:134:41: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:135:65: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:143:67: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:149:69: E502 the backslash is redundant between brackets
src/cowrie/output/sqlite.py:165:57: E502 the backslash is redundant between brackets
18    E502 the backslash is redundant between brackets
18

* flake8 E5, E701 src/cowrie/output/mysql.py

Before
flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/output/mysql.py
src/cowrie/output/mysql.py:108:77: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:109:71: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:115:75: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:116:73: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:122:75: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:127:54: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:128:80: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:133:54: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:134:80: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:139:58: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:140:88: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:147:58: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:148:88: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:154:58: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:155:88: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:161:54: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:162:78: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:169:68: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:175:70: E502 the backslash is redundant between brackets
src/cowrie/output/mysql.py:191:73: E502 the backslash is redundant between brackets
20    E502 the backslash is redundant between brackets
20

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* flake8 E5, E701 src/cowrie/shell/shlex.py

Before
flake8 --count --select=E1,E2,E3,E5,E701,E901,E999,F401,F821,F822,F823 --max-line-length=120 --statistics src/cowrie/shell
src/cowrie/shell/protocol.py:37:121: E501 line too long (144 > 120 characters)
src/cowrie/shell/shlex.py:111:51: E502 the backslash is redundant between brackets
1     E501 line too long (144 > 120 characters)
1     E502 the backslash is redundant between brackets
2

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Reformat code, improved readability

* Update linters to check for E5 and E701

* Update travis file to the current state

- Removed every checker we do not use. That means twistedchecker
and pytest.
- Updated the flake8 command to match our current clean state
- Removed unused old code

* Fix format typo of cowrie.direct-tcpip.data log event

* Update travis to match the current state

Travis checks now every fixed flake8 error.
Also I removed unused code from it to keep it clean.

* Removed vim file markers

We don't want to have editor specific code in our source files.
Fix your IDE but don't do it in the code.

* src/cowrie/test/test_echo.py removed trailing whitespace

* src/cowrie/commands/yum.py removed trailing whitespace

* src/cowrie/commands/netstat.py removed trailing whitespace

* Checking for flake8 W291, W293

* flake8 F811 ./src/cowrie/commands/scp.py

I made sure to delete only the oldest version of the code.

Before
flake8 --count --select=F811 --application-import-names cowrie --max-line-length=120 --statistics .
./src/cowrie/commands/scp.py:209:5: F811 redefinition of unused 'handle_CTRL_D' from line 192
1     F811 redefinition of unused 'handle_CTRL_D' from line 192
1

* Update flake8 checks

* Fix flake8 E722, F841 src/cowrie/commands/wget.py

* Fix flake8 E722 src/cowrie/commands/ping.py

* Fix flake8 E722,F841 src/cowrie/commands/nc.py

* Fix flake8 E722, E741, F841 src/cowrie/commands/base.py

* Flake8 E731 src/cowrie/commands/base.py

I removed all lambda functions and replaced them with proper code.
That means straight function calls or not calling anything because it's
not needed.

* Fix flake8 E722, F841 src/cowrie/commands/scp.py

* Fix flake8 E722, F841 src/cowrie/commands/ssh.py

* Fix flake8 E712 src/cowrie/commands/iptables.py

* Fix flake8 E741 src/cowrie/commands/adduser.py

* Fix flake8 F841 src/cowrie/commands/tftp.py

* Fix flake8 E722 in all files

* Fix flake8 E711 bin/createdynamicprocess.py

* Fix flake8 E712, E713 src/cowrie/core/dblog.py

* Fix flake8 E712, E713 src/cowrie/shell/avatar.py

* Fix flake8 E712 src/cowrie/shell/fs.py

* Fix flake8 E712, E741 src/cowrie/commands/ls.py

* Fix flake8 E712, E713 src/cowrie/dblog/xmpp.py

* Fix flake8 E731, F841 src/cowrie/commands/gcc.py

* Fix flake8 F841 src/cowrie/insults/insults.py

* Fix flake8 F841 src/cowrie/telnet/session.py

* Fix flake8 F841 src/cowrie/commands/fs.py

* Fix flake8 E741,F841 src/cowrie/commands/last.py

* Fix flake8 E741 src/cowrie/commands/netstat.py

* Fix flake8 F841 src/cowrie/commands/free.py

* Fix flake8 F841 src/cowrie/commands/sudo.py

* Fix flake8 F841 src/cowrie/commands/curl.py

* Fix flake8 F841 src/cowrie/commands/base64.py

* Fix flake8 F841 src/cowrie/commands/service.py

* Fix flake8 F841 src/cowrie/ssh/factory.py

* Fix flake8 F841 src/cowrie/ssh/transport.py

* Fix flake8 F841 src/cowrie/output/csirtg.py

* Fix flake8 F841 src/cowrie/output/kafka.py

* Fix flake8 F841 src/cowrie/output/mongodb.py

* Fix flake8 F741 src/cowrie/output/hpfeeds.py

* Fix flake8 F741 src/cowrie/output/hpfeeds.py

* Fix flake8 F841 src/proxy/session.py

* Fix flake8 F841 src/cowrie/core/utils.py

* Update travis and Dockerfile for flake8 checks
2018-08-18 15:52:45 +04:00
Florian Pelgrim d857be6232 Fixing Flake8 E3 (#846)
* flake8 E3 src/twisted/plugins/cowrie_plugin.py

flake8 --count --select=E1,E2,E3 --statistics src/twisted/plugins/cowrie_plugin.py
src/twisted/plugins/cowrie_plugin.py:62:1: E303 too many blank lines (3)
src/twisted/plugins/cowrie_plugin.py:67:1: E303 too many blank lines (3)
src/twisted/plugins/cowrie_plugin.py:80:1: E303 too many blank lines (3)
src/twisted/plugins/cowrie_plugin.py:218:1: E305 expected 2 blank lines after class or function definition, found 1
3     E303 too many blank lines (3)
1     E305 expected 2 blank lines after class or function definition, found 1
4

* flake8 E3 src/cowrie/insults/insults.py

flake8 --count --select=E1,E2,E3 --statistics src/cowrie/insults/insults.py
src/cowrie/insults/insults.py:56:5: E303 too many blank lines (2)
src/cowrie/insults/insults.py:64:5: E303 too many blank lines (2)
src/cowrie/insults/insults.py:89:5: E303 too many blank lines (2)
src/cowrie/insults/insults.py:99:5: E303 too many blank lines (2)
src/cowrie/insults/insults.py:121:5: E303 too many blank lines (2)
src/cowrie/insults/insults.py:129:5: E303 too many blank lines (2)
src/cowrie/insults/insults.py:136:5: E303 too many blank lines (2)
src/cowrie/insults/insults.py:225:1: E303 too many blank lines (3)
8     E303 too many blank lines (2)
8

* flake8 E3 src/cowrie/telnet/session.py

flake8 --count --select=E1,E2,E3 --statistics src/cowrie/telnet/session.py
src/cowrie/telnet/session.py:67:5: E303 too many blank lines (2)
src/cowrie/telnet/session.py:86:5: E303 too many blank lines (2)
src/cowrie/telnet/session.py:95:5: E303 too many blank lines (2)
src/cowrie/telnet/session.py:102:1: E303 too many blank lines (3)
src/cowrie/telnet/session.py:104:1: E302 expected 2 blank lines, found 3
src/cowrie/telnet/session.py:119:5: E303 too many blank lines (2)
src/cowrie/telnet/session.py:125:5: E303 too many blank lines (2)
src/cowrie/telnet/session.py:135:5: E303 too many blank lines (2)
src/cowrie/telnet/session.py:142:5: E303 too many blank lines (2)
src/cowrie/telnet/session.py:147:5: E303 too many blank lines (2)
src/cowrie/telnet/session.py:156:5: E303 too many blank lines (2)
src/cowrie/telnet/session.py:163:5: E303 too many blank lines (2)
src/cowrie/telnet/session.py:170:5: E303 too many blank lines (2)
src/cowrie/telnet/session.py:174:5: E303 too many blank lines (2)
src/cowrie/telnet/session.py:178:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 3
14    E303 too many blank lines (2)
15

* flake8 E3 src/cowrie/telnet/transport.py

flake8 --count --select=E1,E2,E3 --statistics src/cowrie/telnet/transport.py
src/cowrie/telnet/transport.py:44:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:63:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:71:1: E303 too many blank lines (3)
src/cowrie/telnet/transport.py:95:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:102:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:115:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:120:9: E306 expected 1 blank line before a nested definition, found 0
src/cowrie/telnet/transport.py:141:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:148:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:171:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:181:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:192:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:204:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:219:1: E303 too many blank lines (3)
src/cowrie/telnet/transport.py:247:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:259:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:271:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:277:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:283:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:289:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:295:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:317:5: E303 too many blank lines (2)
21    E303 too many blank lines (2)
1     E306 expected 1 blank line before a nested definition, found 0
22

* flake8 E3 src/cowrie/telnet/transport.py

flake8 --count --select=E1,E2,E3 --statistics src/cowrie/telnet/transport.py
src/cowrie/telnet/transport.py:44:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:63:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:71:1: E303 too many blank lines (3)
src/cowrie/telnet/transport.py:95:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:102:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:115:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:120:9: E306 expected 1 blank line before a nested definition, found 0
src/cowrie/telnet/transport.py:141:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:148:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:171:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:181:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:192:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:204:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:219:1: E303 too many blank lines (3)
src/cowrie/telnet/transport.py:247:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:259:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:271:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:277:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:283:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:289:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:295:5: E303 too many blank lines (2)
src/cowrie/telnet/transport.py:317:5: E303 too many blank lines (2)
21    E303 too many blank lines (2)
1     E306 expected 1 blank line before a nested definition, found 0
22

* flake8 E3 src/cowrie/dblog/xmpp.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/dblog/xmpp.py
./src/cowrie/dblog/xmpp.py:16:1: E302 expected 2 blank lines, found 1
./src/cowrie/dblog/xmpp.py:55:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/dblog/xmpp.py:61:1: E302 expected 2 blank lines, found 1
2     E302 expected 2 blank lines, found 1
1     E305 expected 2 blank lines after class or function definition, found 1
3

* flake8 E3 ./src/cowrie/commands/adduser.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/adduser.py
./src/cowrie/commands/adduser.py:16:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/adduser.py:65:5: E303 too many blank lines (2)
./src/cowrie/commands/adduser.py:85:5: E303 too many blank lines (2)
./src/cowrie/commands/adduser.py:92:5: E303 too many blank lines (2)
./src/cowrie/commands/adduser.py:108:1: E305 expected 2 blank lines after class or function definition, found 1
1     E302 expected 2 blank lines, found 1
3     E303 too many blank lines (2)
1     E305 expected 2 blank lines after class or function definition, found 1
5

* flake8 E3 ./src/cowrie/commands/apt.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/apt.py
./src/cowrie/commands/apt.py:16:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/apt.py:24:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/apt.py:176:1: E305 expected 2 blank lines after class or function definition, found 1
2     E302 expected 2 blank lines, found 1
1     E305 expected 2 blank lines after class or function definition, found 1
3

* flake8 E3 ./src/cowrie/commands/base.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/base.py
./src/cowrie/commands/base.py:31:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:90:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:94:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:108:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:113:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:125:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:130:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:180:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:213:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:224:5: E303 too many blank lines (2)
./src/cowrie/commands/base.py:229:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:234:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:242:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:249:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:263:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:268:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:499:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:504:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:513:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:518:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:530:5: E303 too many blank lines (2)
./src/cowrie/commands/base.py:537:5: E303 too many blank lines (2)
./src/cowrie/commands/base.py:551:5: E303 too many blank lines (2)
./src/cowrie/commands/base.py:561:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:566:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:615:5: E303 too many blank lines (2)
./src/cowrie/commands/base.py:622:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:631:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:645:5: E303 too many blank lines (2)
./src/cowrie/commands/base.py:652:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:657:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:676:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:680:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:689:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:694:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:703:5: E303 too many blank lines (2)
./src/cowrie/commands/base.py:713:5: E303 too many blank lines (2)
./src/cowrie/commands/base.py:719:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:724:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:746:5: E303 too many blank lines (2)
./src/cowrie/commands/base.py:766:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:783:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:788:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:852:5: E303 too many blank lines (2)
./src/cowrie/commands/base.py:861:5: E303 too many blank lines (2)
./src/cowrie/commands/base.py:866:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:871:1: E303 too many blank lines (3)
./src/cowrie/commands/base.py:887:1: E305 expected 2 blank lines after class or function definition, found 1
./src/cowrie/commands/base.py:892:1: E303 too many blank lines (3)
31    E303 too many blank lines (3)
18    E305 expected 2 blank lines after class or function definition, found 1
49

* flake8 E3 ./src/cowrie/commands/busybox.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/busybox.py
./src/cowrie/commands/busybox.py:53:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/busybox.py:66:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
1     E303 too many blank lines (2)
2

* flake8 E3 ./src/cowrie/commands/cat.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/cat.py
./src/cowrie/commands/cat.py:21:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/cat.py:68:5: E303 too many blank lines (2)
./src/cowrie/commands/cat.py:82:5: E303 too many blank lines (2)
./src/cowrie/commands/cat.py:94:5: E303 too many blank lines (2)
./src/cowrie/commands/cat.py:101:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
4     E303 too many blank lines (2)
5

* flake8 E3 ./src/cowrie/commands/curl.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/curl.py
./src/cowrie/commands/curl.py:104:5: E303 too many blank lines (2)
./src/cowrie/commands/curl.py:265:5: E303 too many blank lines (2)
./src/cowrie/commands/curl.py:298:5: E303 too many blank lines (2)
./src/cowrie/commands/curl.py:305:5: E303 too many blank lines (2)
./src/cowrie/commands/curl.py:343:5: E303 too many blank lines (2)
./src/cowrie/commands/curl.py:356:1: E303 too many blank lines (3)
./src/cowrie/commands/curl.py:376:5: E303 too many blank lines (2)
./src/cowrie/commands/curl.py:386:5: E303 too many blank lines (2)
./src/cowrie/commands/curl.py:413:5: E303 too many blank lines (2)
./src/cowrie/commands/curl.py:441:5: E303 too many blank lines (2)
10    E303 too many blank lines (2)
10

* flake8 E3 ./src/cowrie/commands/dd.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/dd.py
./src/cowrie/commands/dd.py:17:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/dd.py:85:5: E303 too many blank lines (3)
./src/cowrie/commands/dd.py:93:5: E303 too many blank lines (2)
./src/cowrie/commands/dd.py💯5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
3     E303 too many blank lines (3)
4

* flake8 E3 ./src/cowrie/commands/du.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/du.py
./src/cowrie/commands/du.py:14:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/du.py:132:1: E305 expected 2 blank lines after class or function definition, found 1
1     E302 expected 2 blank lines, found 1
1     E305 expected 2 blank lines after class or function definition, found 1
2

* flake8 E3 ./src/cowrie/commands/ethtool.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/ethtool.py
./src/cowrie/commands/ethtool.py:11:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/ethtool.py:29:5: E303 too many blank lines (2)
./src/cowrie/commands/ethtool.py:37:5: E303 too many blank lines (2)
./src/cowrie/commands/ethtool.py:44:5: E303 too many blank lines (2)
./src/cowrie/commands/ethtool.py:77:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
4     E303 too many blank lines (2)
5

* flake8 E3 ./src/cowrie/commands/free.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/free.py
./src/cowrie/commands/free.py:31:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/free.py:56:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
1     E303 too many blank lines (2)
2

* flake8 E3 ./src/cowrie/commands/fs.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/fs.py
./src/cowrie/commands/fs.py:23:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/fs.py:36:5: E303 too many blank lines (2)
./src/cowrie/commands/fs.py:46:5: E303 too many blank lines (2)
./src/cowrie/commands/fs.py:53:5: E303 too many blank lines (2)
./src/cowrie/commands/fs.py:85:5: E303 too many blank lines (2)
./src/cowrie/commands/fs.py:92:5: E303 too many blank lines (2)
./src/cowrie/commands/fs.py:115:5: E303 too many blank lines (2)
./src/cowrie/commands/fs.py:128:5: E303 too many blank lines (2)
./src/cowrie/commands/fs.py:156:5: E303 too many blank lines (2)
./src/cowrie/commands/fs.py:163:5: E303 too many blank lines (2)
./src/cowrie/commands/fs.py:185:5: E303 too many blank lines (2)
./src/cowrie/commands/fs.py:193:5: E303 too many blank lines (2)
./src/cowrie/commands/fs.py:221:5: E303 too many blank lines (2)
./src/cowrie/commands/fs.py:226:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
13    E303 too many blank lines (2)
14

* flake8 E3 ./src/cowrie/commands/gcc.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/gcc.py
./src/cowrie/commands/gcc.py:19:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/gcc.py:144:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
1     E303 too many blank lines (2)
2

* flake8 E3 ./src/cowrie/commands/iptables.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/iptables.py
./src/cowrie/commands/iptables.py:11:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/iptables.py:15:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/iptables.py:20:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/iptables.py:119:9: E303 too many blank lines (2)
3     E302 expected 2 blank lines, found 1
1     E303 too many blank lines (2)
4

* flake8 E3 ./src/cowrie/commands/ls.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/ls.py
./src/cowrie/commands/ls.py:16:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/ls.py:29:5: E303 too many blank lines (2)
./src/cowrie/commands/ls.py:38:5: E303 too many blank lines (2)
./src/cowrie/commands/ls.py:73:5: E303 too many blank lines (2)
./src/cowrie/commands/ls.py:118:5: E303 too many blank lines (2)
./src/cowrie/commands/ls.py:206:1: E305 expected 2 blank lines after class or function definition, found 1
1     E302 expected 2 blank lines, found 1
4     E303 too many blank lines (2)
1     E305 expected 2 blank lines after class or function definition, found 1
6

* flake8 E3 ./src/cowrie/commands/nc.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/nc.py
./src/cowrie/commands/nc.py:18:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/nc.py:24:1: E303 too many blank lines (3)
./src/cowrie/commands/nc.py:30:1: E303 too many blank lines (3)
./src/cowrie/commands/nc.py:36:1: E303 too many blank lines (3)
./src/cowrie/commands/nc.py:57:5: E303 too many blank lines (2)
./src/cowrie/commands/nc.py💯5: E303 too many blank lines (2)
./src/cowrie/commands/nc.py:116:5: E303 too many blank lines (2)
./src/cowrie/commands/nc.py:122:5: E303 too many blank lines (2)
./src/cowrie/commands/nc.py:129:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
8     E303 too many blank lines (3)
9

* flake8 E3 ./src/cowrie/commands/netstat.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/netstat.py
./src/cowrie/commands/netstat.py:11:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/netstat.py:171:1: E305 expected 2 blank lines after class or function definition, found 1
1     E302 expected 2 blank lines, found 1
1     E305 expected 2 blank lines after class or function definition, found 1
2

* flake8 E3 ./src/cowrie/commands/nohup.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/nohup.py
./src/cowrie/commands/nohup.py:11:1: E302 expected 2 blank lines, found 1
1     E302 expected 2 blank lines, found 1
1

* flake8 E3 ./src/cowrie/commands/perl.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/perl.py
./src/cowrie/commands/perl.py:41:5: E303 too many blank lines (2)
./src/cowrie/commands/perl.py:79:5: E303 too many blank lines (2)
./src/cowrie/commands/perl.py:112:5: E303 too many blank lines (2)
./src/cowrie/commands/perl.py:121:5: E303 too many blank lines (2)
4     E303 too many blank lines (2)
4

* flake8 E3 ./src/cowrie/commands/ping.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/ping.py
./src/cowrie/commands/ping.py:18:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/ping.py:32:5: E303 too many blank lines (2)
./src/cowrie/commands/ping.py:85:5: E303 too many blank lines (2)
./src/cowrie/commands/ping.py:102:5: E303 too many blank lines (2)
./src/cowrie/commands/ping.py:110:5: E303 too many blank lines (2)
./src/cowrie/commands/ping.py:121:1: E305 expected 2 blank lines after class or function definition, found 1
1     E302 expected 2 blank lines, found 1
4     E303 too many blank lines (2)
1     E305 expected 2 blank lines after class or function definition, found 1
6

* flake8 E3 ./src/cowrie/commands/python.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/python.py
./src/cowrie/commands/python.py:18:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/python.py:26:5: E303 too many blank lines (2)
./src/cowrie/commands/python.py:77:5: E303 too many blank lines (2)
./src/cowrie/commands/python.py:122:5: E303 too many blank lines (2)
./src/cowrie/commands/python.py:131:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
4     E303 too many blank lines (2)
5

* flake8 E3 ./src/cowrie/commands/scp.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/scp.py
./src/cowrie/commands/scp.py:224:5: E303 too many blank lines (2)
./src/cowrie/commands/scp.py:241:9: E303 too many blank lines (2)
./src/cowrie/commands/scp.py:243:1: E305 expected 2 blank lines after class or function definition, found 1
2     E303 too many blank lines (2)
1     E305 expected 2 blank lines after class or function definition, found 1
3

* flake8 E3 ./src/cowrie/commands/service.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/service.py
./src/cowrie/commands/service.py:88:5: E303 too many blank lines (2)
./src/cowrie/commands/service.py:95:5: E303 too many blank lines (2)
2     E303 too many blank lines (2)
2

* flake8 E3 ./src/cowrie/commands/sleep.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/sleep.py
./src/cowrie/commands/sleep.py:16:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/sleep.py:27:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
1     E303 too many blank lines (2)
2

* flake8 E3 ./src/cowrie/commands/ssh.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/ssh.py
./src/cowrie/commands/ssh.py:22:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/ssh.py:36:5: E303 too many blank lines (2)
./src/cowrie/commands/ssh.py:87:5: E303 too many blank lines (2)
./src/cowrie/commands/ssh.py:97:5: E303 too many blank lines (2)
./src/cowrie/commands/ssh.py:103:5: E303 too many blank lines (2)
./src/cowrie/commands/ssh.py:123:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
5     E303 too many blank lines (2)
6

* flake8 E ./src/cowrie/commands/sudo.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/sudo.py
./src/cowrie/commands/sudo.py:57:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/sudo.py:69:5: E303 too many blank lines (2)
./src/cowrie/commands/sudo.py:77:5: E303 too many blank lines (2)
./src/cowrie/commands/sudo.py:89:5: E303 too many blank lines (2)
./src/cowrie/commands/sudo.py:135:1: E305 expected 2 blank lines after class or function definition, found 1
1     E302 expected 2 blank lines, found 1
3     E303 too many blank lines (2)
1     E305 expected 2 blank lines after class or function definition, found 1
5

* flake8 E3 ./src/cowrie/commands/tar.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/tar.py
./src/cowrie/commands/tar.py:31:5: E303 too many blank lines (2)
./src/cowrie/commands/tar.py:85:1: E305 expected 2 blank lines after class or function definition, found 1
1     E303 too many blank lines (2)
1     E305 expected 2 blank lines after class or function definition, found 1
2

* flake8 E3 ./src/cowrie/commands/tftp.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/tar.py
./src/cowrie/commands/tar.py:31:5: E303 too many blank lines (2)
./src/cowrie/commands/tar.py:85:1: E305 expected 2 blank lines after class or function definition, found 1
1     E303 too many blank lines (2)
1     E305 expected 2 blank lines after class or function definition, found 1
2

* flake8 E3 ./src/cowrie/commands/ulimit.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/ulimit.py
./src/cowrie/commands/ulimit.py:16:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/ulimit.py:44:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
1     E303 too many blank lines (2)
2

* flake8 E3 ./src/cowrie/commands/uname.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/uname.py
./src/cowrie/commands/uname.py:16:1: E302 expected 2 blank lines, found 1
./src/cowrie/commands/uname.py:26:1: E303 too many blank lines (3)
./src/cowrie/commands/uname.py:36:1: E303 too many blank lines (3)
./src/cowrie/commands/uname.py:46:1: E303 too many blank lines (3)
./src/cowrie/commands/uname.py:56:1: E303 too many blank lines (3)
./src/cowrie/commands/uname.py:66:1: E303 too many blank lines (3)
./src/cowrie/commands/uname.py:92:1: E303 too many blank lines (3)
./src/cowrie/commands/uname.py:106:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
7     E303 too many blank lines (3)
8

* flake8 E3 ./src/cowrie/commands/wget.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/wget.py
./src/cowrie/commands/wget.py:247:1: E303 too many blank lines (4)
./src/cowrie/commands/wget.py:248:1: E302 expected 2 blank lines, found 4
./src/cowrie/commands/wget.py:274:5: E303 too many blank lines (2)
./src/cowrie/commands/wget.py:311:5: E303 too many blank lines (2)
./src/cowrie/commands/wget.py:344:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 4
4     E303 too many blank lines (4)
5

* flake8 E3 ./src/cowrie/commands/which.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/commands/which.py
./src/cowrie/commands/which.py:9:1: E302 expected 2 blank lines, found 1
1     E302 expected 2 blank lines, found 1
1

* flake8 E3 ./src/cowrie/core/artifact.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/core/artifact.py
./src/cowrie/core/artifact.py:57:5: E303 too many blank lines (2)
./src/cowrie/core/artifact.py:63:5: E303 too many blank lines (2)
./src/cowrie/core/artifact.py:69:5: E303 too many blank lines (2)
./src/cowrie/core/artifact.py:75:5: E303 too many blank lines (2)
4     E303 too many blank lines (2)
4

* flake8 E3 ./src/cowrie/core/auth.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/core/auth.py
./src/cowrie/core/auth.py:20:1: E302 expected 2 blank lines, found 1
./src/cowrie/core/auth.py:33:5: E303 too many blank lines (2)
./src/cowrie/core/auth.py:55:5: E303 too many blank lines (2)
./src/cowrie/core/auth.py:68:5: E303 too many blank lines (2)
./src/cowrie/core/auth.py:77:5: E303 too many blank lines (2)
./src/cowrie/core/auth.py:91:5: E303 too many blank lines (2)
./src/cowrie/core/auth.py:113:1: E303 too many blank lines (3)
./src/cowrie/core/auth.py:140:5: E303 too many blank lines (2)
./src/cowrie/core/auth.py:152:5: E303 too many blank lines (2)
./src/cowrie/core/auth.py:162:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
9     E303 too many blank lines (2)
10

* flake8 E3 ./src/cowrie/core/cef.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/core/cef.py
./src/cowrie/core/cef.py:50:1: E302 expected 2 blank lines, found 1
1     E302 expected 2 blank lines, found 1
1

* flake8 E3 ./src/cowrie/core/checkers.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/core/checkers.py
./src/cowrie/core/checkers.py:27:1: E302 expected 2 blank lines, found 1
./src/cowrie/core/checkers.py:50:1: E303 too many blank lines (3)
./src/cowrie/core/checkers.py:65:1: E303 too many blank lines (3)
./src/cowrie/core/checkers.py:88:5: E303 too many blank lines (2)
./src/cowrie/core/checkers.py:95:5: E303 too many blank lines (2)
./src/cowrie/core/checkers.py:104:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
5     E303 too many blank lines (3)
6

* flake8 E3 ./src/cowrie/core/credentials.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/core/credentials.py
./src/cowrie/core/credentials.py:40:1: E302 expected 2 blank lines, found 1
./src/cowrie/core/credentials.py:50:1: E303 too many blank lines (3)
./src/cowrie/core/credentials.py:66:1: E303 too many blank lines (3)
./src/cowrie/core/credentials.py:73:1: E303 too many blank lines (3)
./src/cowrie/core/credentials.py:86:1: E303 too many blank lines (3)
./src/cowrie/core/credentials.py:95:1: E303 too many blank lines (3)
1     E302 expected 2 blank lines, found 1
5     E303 too many blank lines (3)
6

* flake8 E3 ./src/cowrie/core/dblog.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/core/dblog.py
./src/cowrie/core/dblog.py:19:1: E302 expected 2 blank lines, found 1
1     E302 expected 2 blank lines, found 1
1

* flake8 E3 ./src/cowrie/core/output.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/core/output.py
./src/cowrie/core/output.py:108:5: E303 too many blank lines (2)
./src/cowrie/core/output.py:118:5: E303 too many blank lines (2)
./src/cowrie/core/output.py:126:5: E303 too many blank lines (2)
./src/cowrie/core/output.py:134:5: E303 too many blank lines (2)
./src/cowrie/core/output.py:142:5: E303 too many blank lines (2)
5     E303 too many blank lines (2)
5

* flake8 E3 ./src/cowrie/core/ttylog.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/core/ttylog.py
./src/cowrie/core/ttylog.py:33:1: E303 too many blank lines (3)
./src/cowrie/core/ttylog.py:50:1: E303 too many blank lines (3)
./src/cowrie/core/ttylog.py:63:1: E303 too many blank lines (3)
3     E303 too many blank lines (3)
3

* flake8 E3 ./src/cowrie/core/utils.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/core/utils.py
./src/cowrie/core/utils.py:50:1: E303 too many blank lines (3)
./src/cowrie/core/utils.py:70:1: E303 too many blank lines (3)
2     E303 too many blank lines (3)
2

* flake8 E3 ./src/cowrie/output/cuckoo.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/cuckoo.py
./src/cowrie/output/cuckoo.py:48:1: E302 expected 2 blank lines, found 1
./src/cowrie/output/cuckoo.py:60:5: E303 too many blank lines (2)
./src/cowrie/output/cuckoo.py:67:5: E303 too many blank lines (2)
./src/cowrie/output/cuckoo.py:74:5: E303 too many blank lines (2)
./src/cowrie/output/cuckoo.py:98:5: E303 too many blank lines (2)
./src/cowrie/output/cuckoo.py:152:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
5     E303 too many blank lines (2)
6

* flake8 E3 ./src/cowrie/output/dshield.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/dshield.py
./src/cowrie/output/dshield.py:38:5: E303 too many blank lines (2)
./src/cowrie/output/dshield.py:42:5: E303 too many blank lines (2)
./src/cowrie/output/dshield.py:46:5: E303 too many blank lines (2)
./src/cowrie/output/dshield.py:64:5: E303 too many blank lines (2)
./src/cowrie/output/dshield.py:70:5: E303 too many blank lines (2)
./src/cowrie/output/dshield.py:118:9: E303 too many blank lines (2)
6     E303 too many blank lines (2)
6

* flake8 E3 ./src/cowrie/output/elasticsearch.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/elasticsearch.py
./src/cowrie/output/elasticsearch.py:13:1: E303 too many blank lines (3)
./src/cowrie/output/elasticsearch.py:28:5: E303 too many blank lines (2)
./src/cowrie/output/elasticsearch.py:34:5: E303 too many blank lines (2)
./src/cowrie/output/elasticsearch.py:40:5: E303 too many blank lines (2)
4     E303 too many blank lines (3)
4

* flake8 E3 ./src/cowrie/output/hpfeeds.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/hpfeeds.py
./src/cowrie/output/hpfeeds.py:68:1: E303 too many blank lines (3)
./src/cowrie/output/hpfeeds.py:69:1: E302 expected 2 blank lines, found 3
./src/cowrie/output/hpfeeds.py:75:1: E303 too many blank lines (3)
./src/cowrie/output/hpfeeds.py:80:1: E303 too many blank lines (3)
./src/cowrie/output/hpfeeds.py:85:1: E303 too many blank lines (3)
./src/cowrie/output/hpfeeds.py:91:1: E303 too many blank lines (3)
./src/cowrie/output/hpfeeds.py:97:1: E303 too many blank lines (3)
./src/cowrie/output/hpfeeds.py:102:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:106:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:110:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:114:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:131:1: E303 too many blank lines (3)
./src/cowrie/output/hpfeeds.py:145:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:157:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:165:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:170:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:182:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:223:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:233:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:242:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:250:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:264:1: E303 too many blank lines (3)
./src/cowrie/output/hpfeeds.py:274:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:286:5: E303 too many blank lines (2)
./src/cowrie/output/hpfeeds.py:292:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 3
24    E303 too many blank lines (3)
25

* flake8 E3 ./src/cowrie/output/hpfeeds3.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/hpfeeds3.py
./src/cowrie/output/hpfeeds3.py:62:5: E303 too many blank lines (2)
1     E303 too many blank lines (2)
1

* flake8 E3 ./src/cowrie/output/influx.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/influx.py
./src/cowrie/output/influx.py:13:1: E303 too many blank lines (3)
1     E303 too many blank lines (3)
1

* flake8 E3 ./src/cowrie/output/jsonlog.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/jsonlog.py
./src/cowrie/output/jsonlog.py:43:1: E302 expected 2 blank lines, found 1
./src/cowrie/output/jsonlog.py:56:5: E303 too many blank lines (2)
./src/cowrie/output/jsonlog.py:62:5: E303 too many blank lines (2)
./src/cowrie/output/jsonlog.py:68:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
3     E303 too many blank lines (2)
4

* flake8 E3 ./src/cowrie/output/kafka.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/kafka.py
./src/cowrie/output/kafka.py:52:1: E302 expected 2 blank lines, found 1
./src/cowrie/output/kafka.py:127:1: E303 too many blank lines (3)
./src/cowrie/output/kafka.py:143:5: E303 too many blank lines (2)
./src/cowrie/output/kafka.py:149:5: E303 too many blank lines (2)
./src/cowrie/output/kafka.py:155:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
4     E303 too many blank lines (3)
5

* flake8 E3 ./src/cowrie/output/localsyslog.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/localsyslog.py
./src/cowrie/output/localsyslog.py:52:5: E303 too many blank lines (2)
./src/cowrie/output/localsyslog.py:58:5: E303 too many blank lines (2)
./src/cowrie/output/localsyslog.py:64:5: E303 too many blank lines (2)
3     E303 too many blank lines (2)
3

* flake8 E3 ./src/cowrie/output/malshare.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/malshare.py
./src/cowrie/output/malshare.py:46:1: E302 expected 2 blank lines, found 1
./src/cowrie/output/malshare.py:55:5: E303 too many blank lines (2)
./src/cowrie/output/malshare.py:62:5: E303 too many blank lines (2)
./src/cowrie/output/malshare.py:69:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
3     E303 too many blank lines (2)
4

* flake8 E3 ./src/cowrie/output/mongodb.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/mongodb.py
./src/cowrie/output/mongodb.py:58:5: E303 too many blank lines (2)
./src/cowrie/output/mongodb.py:64:5: E303 too many blank lines (2)
2     E303 too many blank lines (2)
2

* flake8 E3 ./src/cowrie/output/mysql.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/mysql.py
./src/cowrie/output/mysql.py:47:1: E303 too many blank lines (3)
./src/cowrie/output/mysql.py:62:5: E303 too many blank lines (2)
./src/cowrie/output/mysql.py:87:5: E303 too many blank lines (2)
./src/cowrie/output/mysql.py:94:5: E303 too many blank lines (2)
./src/cowrie/output/mysql.py:101:5: E303 too many blank lines (2)
./src/cowrie/output/mysql.py:111:5: E303 too many blank lines (2)
6     E303 too many blank lines (3)
6

* flake8 E3 ./src/cowrie/output/redis.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/redis.py
./src/cowrie/output/redis.py:16:1: E302 expected 2 blank lines, found 1
./src/cowrie/output/redis.py:49:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
1     E303 too many blank lines (2)
2

* flake8 E3 ./src/cowrie/output/rethinkdblog.py

lake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/rethinkdblog.py
./src/cowrie/output/rethinkdblog.py:13:1: E303 too many blank lines (3)
1     E303 too many blank lines (3)
1

* flake8 E3 ./src/cowrie/output/s3.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/s3.py
./src/cowrie/output/s3.py:19:1: E303 too many blank lines (3)
1     E303 too many blank lines (3)
1

* flake8 E3 ./src/cowrie/output/slack.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/slack.py
./src/cowrie/output/slack.py:45:1: E303 too many blank lines (3)
./src/cowrie/output/slack.py:56:5: E303 too many blank lines (2)
./src/cowrie/output/slack.py:62:5: E303 too many blank lines (2)
./src/cowrie/output/slack.py:68:5: E303 too many blank lines (2)
4     E303 too many blank lines (3)
4

* flake8 E3 ./src/cowrie/output/socketlog.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/socketlog.py
./src/cowrie/output/socketlog.py:13:1: E303 too many blank lines (3)
1     E303 too many blank lines (3)
1

* flake8 E3 ./src/cowrie/output/splunk.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/splunk.py
./src/cowrie/output/splunk.py:57:5: E303 too many blank lines (2)
./src/cowrie/output/splunk.py:64:5: E303 too many blank lines (2)
./src/cowrie/output/splunk.py:70:5: E303 too many blank lines (2)
./src/cowrie/output/splunk.py:93:5: E303 too many blank lines (2)
./src/cowrie/output/splunk.py:109:9: E303 too many blank lines (2)
./src/cowrie/output/splunk.py:117:9: E303 too many blank lines (2)
./src/cowrie/output/splunk.py:128:9: E303 too many blank lines (2)
./src/cowrie/output/splunk.py:132:9: E303 too many blank lines (2)
./src/cowrie/output/splunk.py:142:1: E303 too many blank lines (3)
9     E303 too many blank lines (2)
9

* flake8 E3 ./src/cowrie/output/splunklegacy.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/splunklegacy.py
./src/cowrie/output/splunklegacy.py:39:5: E303 too many blank lines (2)
./src/cowrie/output/splunklegacy.py:50:5: E303 too many blank lines (2)
./src/cowrie/output/splunklegacy.py:56:5: E303 too many blank lines (2)
3     E303 too many blank lines (2)
3

* flake8 E3 ./src/cowrie/output/sqlite.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/sqlite.py
./src/cowrie/output/sqlite.py:26:5: E303 too many blank lines (2)
./src/cowrie/output/sqlite.py:45:5: E303 too many blank lines (2)
./src/cowrie/output/sqlite.py:52:5: E303 too many blank lines (2)
./src/cowrie/output/sqlite.py:60:5: E303 too many blank lines (2)
./src/cowrie/output/sqlite.py:68:5: E303 too many blank lines (2)
5     E303 too many blank lines (2)
5

* flake8 E3 ./src/cowrie/output/textlog.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/textlog.py
./src/cowrie/output/textlog.py:35:1: E302 expected 2 blank lines, found 1
./src/cowrie/output/textlog.py:45:5: E303 too many blank lines (2)
./src/cowrie/output/textlog.py:51:5: E303 too many blank lines (2)
./src/cowrie/output/textlog.py:57:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
3     E303 too many blank lines (2)
4

* flake8 E3 ./src/cowrie/output/virustotal.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/virustotal.py
./src/cowrie/output/virustotal.py:62:1: E302 expected 2 blank lines, found 1
./src/cowrie/output/virustotal.py:75:5: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:82:5: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:89:5: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:125:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:132:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:139:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:144:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:180:5: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:203:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:210:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:223:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:229:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:248:5: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:271:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:278:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:285:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:290:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:315:5: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:335:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:342:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:355:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:361:9: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:375:1: E303 too many blank lines (3)
./src/cowrie/output/virustotal.py:383:1: E303 too many blank lines (3)
./src/cowrie/output/virustotal.py:393:5: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:400:5: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:406:5: E303 too many blank lines (2)
./src/cowrie/output/virustotal.py:413:1: E303 too many blank lines (3)
1     E302 expected 2 blank lines, found 1
28    E303 too many blank lines (2)
29

* flake8 E3 ./src/cowrie/output/xmpp.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/output/xmpp.py
./src/cowrie/output/xmpp.py:20:1: E302 expected 2 blank lines, found 1
./src/cowrie/output/xmpp.py:59:1: E302 expected 2 blank lines, found 1
2     E302 expected 2 blank lines, found 1
2

* flake8 E3 ./src/cowrie/proxy/avatar.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/proxy/avatar.py
./src/cowrie/proxy/avatar.py:47:5: E303 too many blank lines (2)
./src/cowrie/proxy/avatar.py:52:1: E305 expected 2 blank lines after class or function definition, found 1
1     E303 too many blank lines (2)
1     E305 expected 2 blank lines after class or function definition, found 1
2

* flake8 E3 ./src/cowrie/proxy/endpoints.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/proxy/endpoints.py
./src/cowrie/proxy/endpoints.py:47:1: E303 too many blank lines (3)
./src/cowrie/proxy/endpoints.py:48:1: E302 expected 2 blank lines, found 3
./src/cowrie/proxy/endpoints.py:60:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:78:1: E303 too many blank lines (3)
./src/cowrie/proxy/endpoints.py:108:1: E303 too many blank lines (3)
./src/cowrie/proxy/endpoints.py:132:1: E303 too many blank lines (3)
./src/cowrie/proxy/endpoints.py:172:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:180:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:190:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:201:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:225:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:237:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:251:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:264:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:278:1: E303 too many blank lines (3)
./src/cowrie/proxy/endpoints.py:312:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:320:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:329:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:338:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:350:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:372:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:384:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:398:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:411:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:425:1: E303 too many blank lines (3)
./src/cowrie/proxy/endpoints.py:440:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:452:1: E303 too many blank lines (3)
./src/cowrie/proxy/endpoints.py:485:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:499:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:511:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:523:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:532:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:547:9: E306 expected 1 blank line before a nested definition, found 0
./src/cowrie/proxy/endpoints.py:554:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:564:1: E303 too many blank lines (3)
./src/cowrie/proxy/endpoints.py:585:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:598:9: E306 expected 1 blank line before a nested definition, found 0
./src/cowrie/proxy/endpoints.py:605:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:627:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:642:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:665:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:685:1: E303 too many blank lines (3)
./src/cowrie/proxy/endpoints.py:710:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:768:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:786:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:806:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:821:9: E306 expected 1 blank line before a nested definition, found 0
./src/cowrie/proxy/endpoints.py:835:1: E303 too many blank lines (3)
./src/cowrie/proxy/endpoints.py:872:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:932:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:954:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:974:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:989:9: E306 expected 1 blank line before a nested definition, found 0
./src/cowrie/proxy/endpoints.py:1004:1: E303 too many blank lines (3)
./src/cowrie/proxy/endpoints.py:1017:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:1025:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:1038:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:1045:1: E303 too many blank lines (3)
./src/cowrie/proxy/endpoints.py:1081:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:1096:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:1107:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:1127:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:1147:1: E303 too many blank lines (3)
./src/cowrie/proxy/endpoints.py:1163:5: E303 too many blank lines (2)
./src/cowrie/proxy/endpoints.py:1172:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 3
60    E303 too many blank lines (3)
4     E306 expected 1 blank line before a nested definition, found 0
65

* flake8 E3 ./src/cowrie/proxy/session.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/proxy/session.py
./src/cowrie/proxy/session.py:22:1: E302 expected 2 blank lines, found 1
./src/cowrie/proxy/session.py:32:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:39:1: E303 too many blank lines (3)
./src/cowrie/proxy/session.py:55:1: E303 too many blank lines (3)
./src/cowrie/proxy/session.py:69:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:76:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:87:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:95:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:101:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:107:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:114:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:122:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:129:1: E303 too many blank lines (3)
./src/cowrie/proxy/session.py:175:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:192:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:199:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:206:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:220:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:228:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:235:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:243:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:254:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:264:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:270:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:277:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:284:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:291:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:299:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:305:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:311:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:318:5: E303 too many blank lines (2)
./src/cowrie/proxy/session.py:325:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
31    E303 too many blank lines (2)
32

* flake8 E3 ./src/cowrie/python/logfile.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/python/logfile.py
./src/cowrie/python/logfile.py:34:1: E302 expected 2 blank lines, found 1
1     E302 expected 2 blank lines, found 1
1

* flake8 E3 ./src/cowrie/shell/avatar.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/shell/avatar.py
./src/cowrie/shell/avatar.py:64:5: E303 too many blank lines (2)
1     E303 too many blank lines (2)
1

* flake8 E3 ./src/cowrie/shell/command.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/shell/command.py
./src/cowrie/shell/command.py:30:1: E303 too many blank lines (3)
./src/cowrie/shell/command.py:81:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:88:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:95:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:102:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:115:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:121:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:130:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:136:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:144:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:150:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:173:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:181:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:190:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:196:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:202:5: E303 too many blank lines (2)
./src/cowrie/shell/command.py:208:5: E303 too many blank lines (2)
17    E303 too many blank lines (3)
17

* flake8 E3 ./src/cowrie/shell/customparser.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/shell/customparser.py
./src/cowrie/shell/customparser.py:5:1: E302 expected 2 blank lines, found 1
./src/cowrie/shell/customparser.py:55:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
1     E303 too many blank lines (2)
2

* flake8 E3 ./src/cowrie/shell/filetransfer.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/shell/filetransfer.py
./src/cowrie/shell/filetransfer.py:73:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:81:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:87:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:97:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:104:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:111:1: E303 too many blank lines (3)
./src/cowrie/shell/filetransfer.py:121:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:127:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:134:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:170:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:177:1: E303 too many blank lines (3)
./src/cowrie/shell/filetransfer.py:188:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:195:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:206:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:219:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:225:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:232:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:239:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:246:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:256:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:263:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:270:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:282:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:290:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:298:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:307:5: E303 too many blank lines (2)
./src/cowrie/shell/filetransfer.py:313:5: E303 too many blank lines (2)
27    E303 too many blank lines (2)
27

* flake8 E3 ./src/cowrie/shell/fs.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/shell/fs.py
./src/cowrie/shell/fs.py:56:1: E303 too many blank lines (3)
./src/cowrie/shell/fs.py:65:1: E303 too many blank lines (3)
./src/cowrie/shell/fs.py:73:1: E303 too many blank lines (3)
./src/cowrie/shell/fs.py:81:1: E303 too many blank lines (3)
./src/cowrie/shell/fs.py:103:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:119:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:145:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:156:9: E306 expected 1 blank line before a nested definition, found 0
./src/cowrie/shell/fs.py:172:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:194:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:204:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:214:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:223:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:255:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:279:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:295:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:313:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:325:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:338:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:398:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:405:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:411:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:434:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:442:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:452:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:473:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:482:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:491:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:503:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:513:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:524:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:530:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:546:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:553:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:559:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:580:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:586:5: E303 too many blank lines (2)
./src/cowrie/shell/fs.py:598:1: E303 too many blank lines (3)
37    E303 too many blank lines (3)
1     E306 expected 1 blank line before a nested definition, found 0
38

* flake8 E3 ./src/cowrie/shell/honeypot.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/shell/honeypot.py
./src/cowrie/shell/honeypot.py:28:1: E303 too many blank lines (3)
./src/cowrie/shell/honeypot.py:41:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:119:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:131:9: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:141:9: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:233:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:241:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:266:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:275:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:284:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:294:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:369:1: E303 too many blank lines (3)
./src/cowrie/shell/honeypot.py:386:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:392:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:412:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:420:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:428:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:434:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:446:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:452:5: E303 too many blank lines (2)
./src/cowrie/shell/honeypot.py:458:5: E303 too many blank lines (2)
21    E303 too many blank lines (3)
21

* flake8 E3 ./src/cowrie/shell/protocol.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/shell/protocol.py
./src/cowrie/shell/protocol.py:28:1: E302 expected 2 blank lines, found 1
./src/cowrie/shell/protocol.py:63:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:72:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:81:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:118:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:126:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:142:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:153:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:160:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:192:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:206:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:219:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:228:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:238:1: E303 too many blank lines (3)
./src/cowrie/shell/protocol.py:254:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:263:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:267:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:285:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:314:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:323:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:331:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:339:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:346:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:354:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:367:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:377:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:384:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:391:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:398:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:405:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:415:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:425:5: E303 too many blank lines (2)
./src/cowrie/shell/protocol.py:431:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
32    E303 too many blank lines (2)
33

* flake8 E3 ./src/cowrie/shell/pwd.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/shell/pwd.py
./src/cowrie/shell/pwd.py:50:5: E303 too many blank lines (2)
./src/cowrie/shell/pwd.py:89:5: E303 too many blank lines (2)
./src/cowrie/shell/pwd.py💯5: E303 too many blank lines (2)
./src/cowrie/shell/pwd.py:110:5: E303 too many blank lines (2)
./src/cowrie/shell/pwd.py:121:1: E303 too many blank lines (3)
./src/cowrie/shell/pwd.py:132:5: E303 too many blank lines (2)
./src/cowrie/shell/pwd.py:163:5: E303 too many blank lines (2)
./src/cowrie/shell/pwd.py:174:5: E303 too many blank lines (2)
./src/cowrie/shell/pwd.py:184:5: E303 too many blank lines (2)
9     E303 too many blank lines (2)
9

* flake8 E3 ./src/cowrie/shell/server.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/shell/server.py
./src/cowrie/shell/server.py:46:1: E302 expected 2 blank lines, found 1
./src/cowrie/shell/server.py:71:5: E303 too many blank lines (2)
./src/cowrie/shell/server.py:80:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
2     E303 too many blank lines (2)
3

* flake8 E3 ./src/cowrie/shell/session.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/shell/session.py
./src/cowrie/shell/session.py:61:5: E303 too many blank lines (2)
./src/cowrie/shell/session.py:75:5: E303 too many blank lines (2)
./src/cowrie/shell/session.py:84:5: E303 too many blank lines (2)
./src/cowrie/shell/session.py:94:5: E303 too many blank lines (2)
./src/cowrie/shell/session.py:101:5: E303 too many blank lines (2)
5     E303 too many blank lines (2)
5

* flake8 E3 ./src/cowrie/shell/shlex.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/shell/shlex.py
./src/cowrie/shell/shlex.py:23:1: E302 expected 2 blank lines, found 1
./src/cowrie/shell/shlex.py:312:1: E302 expected 2 blank lines, found 1
./src/cowrie/shell/shlex.py:321:1: E303 too many blank lines (3)
./src/cowrie/shell/shlex.py:322:1: E305 expected 2 blank lines after class or function definition, found 3
./src/cowrie/shell/shlex.py:324:1: E302 expected 2 blank lines, found 1
3     E302 expected 2 blank lines, found 1
1     E303 too many blank lines (3)
1     E305 expected 2 blank lines after class or function definition, found 3
5

* flake8 E3 ./src/cowrie/ssh/channel.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/ssh/channel.py
./src/cowrie/ssh/channel.py:34:5: E303 too many blank lines (2)
./src/cowrie/ssh/channel.py:44:5: E303 too many blank lines (2)
./src/cowrie/ssh/channel.py:63:5: E303 too many blank lines (2)
./src/cowrie/ssh/channel.py:76:5: E303 too many blank lines (2)
./src/cowrie/ssh/channel.py:88:5: E303 too many blank lines (2)
./src/cowrie/ssh/channel.py:111:5: E303 too many blank lines (2)
6     E303 too many blank lines (2)
6

* flake8 E3 ./src/cowrie/ssh/connection.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/ssh/connection.py
./src/cowrie/ssh/connection.py:43:1: E302 expected 2 blank lines, found 1
1     E302 expected 2 blank lines, found 1
1

* flake8 E3 ./src/cowrie/ssh/factory.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/ssh/factory.py
./src/cowrie/ssh/factory.py:53:5: E303 too many blank lines (2)
./src/cowrie/ssh/factory.py:88:5: E303 too many blank lines (2)
./src/cowrie/ssh/factory.py:94:5: E303 too many blank lines (2)
./src/cowrie/ssh/factory.py:106:9: E303 too many blank lines (2)
4     E303 too many blank lines (2)
4

* flake8 E3 ./src/cowrie/ssh/forwarding.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/ssh/forwarding.py
./src/cowrie/ssh/forwarding.py:17:1: E302 expected 2 blank lines, found 1
./src/cowrie/ssh/forwarding.py:90:1: E303 too many blank lines (3)
./src/cowrie/ssh/forwarding.py:97:5: E303 too many blank lines (2)
./src/cowrie/ssh/forwarding.py:102:1: E303 too many blank lines (3)
./src/cowrie/ssh/forwarding.py:114:5: E303 too many blank lines (2)
./src/cowrie/ssh/forwarding.py:130:5: E303 too many blank lines (2)
./src/cowrie/ssh/forwarding.py:139:5: E303 too many blank lines (2)
./src/cowrie/ssh/forwarding.py:149:5: E303 too many blank lines (2)
./src/cowrie/ssh/forwarding.py:158:5: E303 too many blank lines (2)
./src/cowrie/ssh/forwarding.py:182:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
9     E303 too many blank lines (3)
10

* flake8 E3 ./src/cowrie/ssh/keys.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/ssh/keys.py
./src/cowrie/ssh/keys.py:43:1: E303 too many blank lines (3)
1     E303 too many blank lines (3)
1

* flake8 E3 ./src/cowrie/ssh/session.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/ssh/session.py
./src/cowrie/ssh/session.py:38:5: E303 too many blank lines (2)
./src/cowrie/ssh/session.py:45:5: E303 too many blank lines (2)
./src/cowrie/ssh/session.py:52:5: E303 too many blank lines (2)
./src/cowrie/ssh/session.py:60:5: E303 too many blank lines (2)
./src/cowrie/ssh/session.py:70:5: E303 too many blank lines (2)
./src/cowrie/ssh/session.py:77:5: E303 too many blank lines (2)
./src/cowrie/ssh/session.py:84:5: E303 too many blank lines (2)
7     E303 too many blank lines (2)
7

* flake8 E3 ./src/cowrie/ssh/transport.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/ssh/transport.py
./src/cowrie/ssh/transport.py:30:1: E303 too many blank lines (3)
./src/cowrie/ssh/transport.py:46:5: E303 too many blank lines (2)
./src/cowrie/ssh/transport.py:81:5: E303 too many blank lines (2)
./src/cowrie/ssh/transport.py:90:5: E303 too many blank lines (2)
./src/cowrie/ssh/transport.py:98:5: E303 too many blank lines (2)
./src/cowrie/ssh/transport.py:134:5: E303 too many blank lines (2)
./src/cowrie/ssh/transport.py:169:5: E303 too many blank lines (2)
./src/cowrie/ssh/transport.py:187:5: E303 too many blank lines (2)
./src/cowrie/ssh/transport.py:196:5: E303 too many blank lines (2)
./src/cowrie/ssh/transport.py:218:5: E303 too many blank lines (2)
./src/cowrie/ssh/transport.py:232:5: E303 too many blank lines (2)
11    E303 too many blank lines (3)
11

* flake8 E3 ./src/cowrie/ssh/userauth.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/ssh/userauth.py
./src/cowrie/ssh/userauth.py:48:5: E303 too many blank lines (2)
./src/cowrie/ssh/userauth.py:67:5: E303 too many blank lines (2)
./src/cowrie/ssh/userauth.py:74:5: E303 too many blank lines (2)
./src/cowrie/ssh/userauth.py:86:5: E303 too many blank lines (2)
./src/cowrie/ssh/userauth.py:95:5: E303 too many blank lines (2)
./src/cowrie/ssh/userauth.py:105:5: E303 too many blank lines (2)
./src/cowrie/ssh/userauth.py:121:5: E303 too many blank lines (2)
./src/cowrie/ssh/userauth.py:154:5: E303 too many blank lines (2)
8     E303 too many blank lines (2)
8

* flake8 E3 ./src/cowrie/test/fake_server.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/test/fake_server.py
./src/cowrie/test/fake_server.py:14:1: E302 expected 2 blank lines, found 1
./src/cowrie/test/fake_server.py:28:1: E302 expected 2 blank lines, found 1
2     E302 expected 2 blank lines, found 1
2

* flake8 E3 ./src/cowrie/test/fake_transport.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/test/fake_transport.py
./src/cowrie/test/fake_transport.py:74:5: E301 expected 1 blank line, found 0
./src/cowrie/test/fake_transport.py:79:5: E303 too many blank lines (2)
./src/cowrie/test/fake_transport.py:93:5: E303 too many blank lines (2)
./src/cowrie/test/fake_transport.py:97:5: E303 too many blank lines (2)
./src/cowrie/test/fake_transport.py:105:5: E303 too many blank lines (2)
./src/cowrie/test/fake_transport.py:143:5: E303 too many blank lines (2)
./src/cowrie/test/fake_transport.py:147:5: E303 too many blank lines (2)
1     E301 expected 1 blank line, found 0
6     E303 too many blank lines (2)
7

* flake8 E3 ./src/cowrie/test/test_base_commands.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/test/test_base_commands.py
./src/cowrie/test/test_base_commands.py:21:1: E302 expected 2 blank lines, found 1
./src/cowrie/test/test_base_commands.py:24:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:31:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:36:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:41:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:45:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:49:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:53:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:58:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:62:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:67:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:72:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:79:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:83:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:87:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:93:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:98:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:103:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:108:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:113:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:118:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:123:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:128:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:133:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:138:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:143:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:148:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:153:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:158:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:163:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:168:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:173:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:178:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:183:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:195:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:201:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:207:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:213:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:219:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:225:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:231:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:237:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:243:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:250:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:256:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:262:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:278:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:285:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:292:5: E303 too many blank lines (2)
./src/cowrie/test/test_base_commands.py:296:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
49    E303 too many blank lines (2)
50

* flake8 E3 ./src/cowrie/test/test_echo.py

flake8 --count --select=E1,E2,E3 --statistics ./src/cowrie/test/test_echo.py
./src/cowrie/test/test_echo.py:24:1: E302 expected 2 blank lines, found 1
./src/cowrie/test/test_echo.py:36:5: E303 too many blank lines (2)
./src/cowrie/test/test_echo.py:44:5: E303 too many blank lines (2)
./src/cowrie/test/test_echo.py:52:5: E303 too many blank lines (2)
./src/cowrie/test/test_echo.py:60:5: E303 too many blank lines (2)
./src/cowrie/test/test_echo.py:68:5: E303 too many blank lines (2)
./src/cowrie/test/test_echo.py:76:5: E303 too many blank lines (2)
./src/cowrie/test/test_echo.py:84:5: E303 too many blank lines (2)
./src/cowrie/test/test_echo.py:92:5: E303 too many blank lines (2)
./src/cowrie/test/test_echo.py💯5: E303 too many blank lines (2)
./src/cowrie/test/test_echo.py:108:5: E303 too many blank lines (2)
./src/cowrie/test/test_echo.py:116:5: E303 too many blank lines (2)
./src/cowrie/test/test_echo.py:124:5: E303 too many blank lines (2)
./src/cowrie/test/test_echo.py:132:5: E303 too many blank lines (2)
1     E302 expected 2 blank lines, found 1
13    E303 too many blank lines (2)
14

* Add flake8 E3 check

Checking now in every travis run and docker build for flake8 E3xx
errors.
2018-08-08 11:27:31 +04:00
Michel Oosterhof 7756f4d987
move cowrie and twisted to src subdirectory (#825) 2018-07-21 14:04:44 +04:00
Michel Oosterhof 6513ab966c trusty -> xenial 2018-07-08 18:14:46 +00:00
Michel Oosterhof 91b5160e4f add 3.5 and 3.7 as allowed failures 2018-07-07 12:13:24 +00:00
Michel Oosterhof 6fa9533671 allow 3.6 failures 2018-07-07 12:08:00 +00:00
Florian Pelgrim 170ce3d5e3 Fixing flake8 E2 (#796)
* flake8 E2 cowrie/insults/insults.py

flake8 --count --select=E1,E2 --statistics cowrie/insults/insults.py
cowrie/insults/insults.py:51:28: E261 at least two spaces before inline comment
cowrie/insults/insults.py:53:28: E261 at least two spaces before inline comment
cowrie/insults/insults.py:86:14: E261 at least two spaces before inline comment
cowrie/insults/insults.py:86:15: E262 inline comment should start with '# '
cowrie/insults/insults.py:115:13: E265 block comment should start with '# '
cowrie/insults/insults.py:181:47: E226 missing whitespace around arithmetic operator
cowrie/insults/insults.py:215:41: E226 missing whitespace around arithmetic operator
2     E226 missing whitespace around arithmetic operator
3     E261 at least two spaces before inline comment
1     E262 inline comment should start with '# '
1     E265 block comment should start with '# '
7

* flake8 E2  cowrie/telnet/session.py

flake8 --count --select=E1,E2 --statistics cowrie/telnet/session.py
cowrie/telnet/session.py:28:11: E261 at least two spaces before inline comment
cowrie/telnet/session.py:116:5: E265 block comment should start with '# '
1     E261 at least two spaces before inline comment
1     E265 block comment should start with '# '
2

* flake8 E2 cowrie/telnet/transport.py

flake8 --count --select=E1,E2 --statistics cowrie/telnet/transport.py
cowrie/telnet/transport.py:36:32: E226 missing whitespace around arithmetic operator
cowrie/telnet/transport.py:108:9: E265 block comment should start with '# '
cowrie/telnet/transport.py:144:53: E226 missing whitespace around arithmetic operator
cowrie/telnet/transport.py:197:13: E265 block comment should start with '# '
cowrie/telnet/transport.py:207:13: E265 block comment should start with '# '
cowrie/telnet/transport.py:208:13: E265 block comment should start with '# '
cowrie/telnet/transport.py:237:30: E226 missing whitespace around arithmetic operator
3     E226 missing whitespace around arithmetic operator
4     E265 block comment should start with '# '
7

* flake8 E2 cowrie/dblog/xmpp.py

 lake8 --count --select=E1,E2 --statistics cowrie/dblog/xmpp.py
cowrie/dblog/xmpp.py:20:20: E221 multiple spaces before operator
cowrie/dblog/xmpp.py:25:18: E221 multiple spaces before operator
cowrie/dblog/xmpp.py:26:18: E221 multiple spaces before operator
cowrie/dblog/xmpp.py:38:29: E202 whitespace before ')'
cowrie/dblog/xmpp.py:44:32: E202 whitespace before ')'
cowrie/dblog/xmpp.py:66:15: E221 multiple spaces before operator
cowrie/dblog/xmpp.py:67:13: E221 multiple spaces before operator
cowrie/dblog/xmpp.py:68:17: E221 multiple spaces before operator
cowrie/dblog/xmpp.py:69:12: E221 multiple spaces before operator
cowrie/dblog/xmpp.py:81:54: E231 missing whitespace after ','
cowrie/dblog/xmpp.py:81:59: E231 missing whitespace after ','
cowrie/dblog/xmpp.py:81:66: E231 missing whitespace after ','
cowrie/dblog/xmpp.py:88:46: E261 at least two spaces before inline comment
cowrie/dblog/xmpp.py:103:84: E203 whitespace before ','
cowrie/dblog/xmpp.py:109:33: E231 missing whitespace after ','
cowrie/dblog/xmpp.py:161:21: E221 multiple spaces before operator
2     E202 whitespace before ')'
1     E203 whitespace before ','
8     E221 multiple spaces before operator
4     E231 missing whitespace after ','
1     E261 at least two spaces before inline comment
16

* flake8 E2 cowrie/commands/ping.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/ping.py
cowrie/commands/ping.py:57:21: E225 missing whitespace around operator
cowrie/commands/ping.py:64:29: E226 missing whitespace around arithmetic operator
1     E225 missing whitespace around operator
1     E226 missing whitespace around arithmetic operator
2

* flake8 E2 cowrie/commands/base.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/base.py
./cowrie/commands/base.py:29:47: E226 missing whitespace around arithmetic operator
./cowrie/commands/base.py:115:45: E231 missing whitespace after ','
./cowrie/commands/base.py:246:46: E226 missing whitespace around arithmetic operator
./cowrie/commands/base.py:313:25: E226 missing whitespace around arithmetic operator
./cowrie/commands/base.py:402:29: E226 missing whitespace around arithmetic operator
./cowrie/commands/base.py:495:61: E226 missing whitespace around arithmetic operator
./cowrie/commands/base.py:511:43: E226 missing whitespace around arithmetic operator
./cowrie/commands/base.py:596:29: E226 missing whitespace around arithmetic operator
./cowrie/commands/base.py:640:29: E226 missing whitespace around arithmetic operator
8     E226 missing whitespace around arithmetic operator
1     E231 missing whitespace after ','
9

* flake8 E2 setup.py

flake8 --count --select=E1,E2 --statistics setup.py
./setup.py:5:6: E211 whitespace before '('
./setup.py:6:9: E251 unexpected spaces around keyword / parameter equals
./setup.py:6:9: E221 multiple spaces before operator
./setup.py:6:23: E251 unexpected spaces around keyword / parameter equals
./setup.py:7:12: E251 unexpected spaces around keyword / parameter equals
./setup.py:7:12: E221 multiple spaces before operator
./setup.py:7:23: E251 unexpected spaces around keyword / parameter equals
./setup.py:8:16: E251 unexpected spaces around keyword / parameter equals
./setup.py:8:16: E221 multiple spaces before operator
./setup.py:8:23: E251 unexpected spaces around keyword / parameter equals
./setup.py:9:15: E251 unexpected spaces around keyword / parameter equals
./setup.py:9:15: E221 multiple spaces before operator
./setup.py:9:23: E251 unexpected spaces around keyword / parameter equals
./setup.py:10:21: E251 unexpected spaces around keyword / parameter equals
./setup.py:10:23: E251 unexpected spaces around keyword / parameter equals
./setup.py:11:13: E251 unexpected spaces around keyword / parameter equals
./setup.py:11:13: E221 multiple spaces before operator
./setup.py:11:23: E251 unexpected spaces around keyword / parameter equals
./setup.py:12:8: E251 unexpected spaces around keyword / parameter equals
./setup.py:12:8: E221 multiple spaces before operator
./setup.py:12:23: E251 unexpected spaces around keyword / parameter equals
./setup.py:13:13: E251 unexpected spaces around keyword / parameter equals
./setup.py:13:13: E221 multiple spaces before operator
./setup.py:13:23: E251 unexpected spaces around keyword / parameter equals
./setup.py:15:17: E251 unexpected spaces around keyword / parameter equals
./setup.py:15:17: E221 multiple spaces before operator
./setup.py:15:23: E251 unexpected spaces around keyword / parameter equals
./setup.py:15:25: E201 whitespace after '{'
./setup.py:15:38: E202 whitespace before '}'
./setup.py:16:12: E251 unexpected spaces around keyword / parameter equals
./setup.py:16:12: E221 multiple spaces before operator
./setup.py:16:23: E251 unexpected spaces around keyword / parameter equals
./setup.py:21:21: E251 unexpected spaces around keyword / parameter equals
./setup.py:21:23: E251 unexpected spaces around keyword / parameter equals
./setup.py:35:17: E251 unexpected spaces around keyword / parameter equals
./setup.py:35:17: E221 multiple spaces before operator
./setup.py:35:23: E251 unexpected spaces around keyword / parameter equals
./setup.py:38:19: E251 unexpected spaces around keyword / parameter equals
./setup.py:38:19: E221 multiple spaces before operator
./setup.py:38:23: E251 unexpected spaces around keyword / parameter equals
./setup.py:38:25: E201 whitespace after '{'
1     E127 continuation line over-indented for visual indent
1     E201 whitespace after '{'
1     E202 whitespace before '}'
1     E211 whitespace before '('
26    E251 unexpected spaces around keyword / parameter equals
30

* flake8 E2 cowrie/shell/protocol.py

flake8 --count --select=E1,E2 --statistics cowrie/shell/protocol.py
cowrie/shell/protocol.py:63:119: E231 missing whitespace after ','
cowrie/shell/protocol.py:63:129: E231 missing whitespace after ','
cowrie/shell/protocol.py:139:29: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:146:9: E265 block comment should start with '# '
cowrie/shell/protocol.py:231:9: E265 block comment should start with '# '
cowrie/shell/protocol.py:309:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:309:43: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:310:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:310:43: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:311:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:311:45: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:312:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:312:45: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:313:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:313:42: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:314:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:314:44: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:315:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:315:48: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:316:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:317:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:317:45: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:318:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:318:45: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:319:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:319:43: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:320:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:320:41: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:321:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:321:45: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:322:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:322:45: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:323:21: E241 multiple spaces after ':'
cowrie/shell/protocol.py:323:42: E261 at least two spaces before inline comment
cowrie/shell/protocol.py:331:67: E226 missing whitespace around arithmetic operator
cowrie/shell/protocol.py:375:70: E226 missing whitespace around arithmetic operator
2     E226 missing whitespace around arithmetic operator
2     E231 missing whitespace after ','
15    E241 multiple spaces after ':'
15    E261 at least two spaces before inline comment
2     E265 block comment should start with '# '
36

* flake8 E2 cowrie/commands/scp.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/scp.py
cowrie/commands/scp.py:235:48: E226 missing whitespace around arithmetic operator
1     E226 missing whitespace around arithmetic operator
1

* flake8 E2 cowrie/commands/ifconfig.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/ifconfig.py
cowrie/commands/ifconfig.py:34:21: E226 missing whitespace around arithmetic operator
1     E226 missing whitespace around arithmetic operator
1

* flake8 E2 cowrie/commands/ssh.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/ssh.py
cowrie/commands/ssh.py:58:29: E226 missing whitespace around arithmetic operator
1     E226 missing whitespace around arithmetic operator
1

* flake8 E2 cowrie/commands/iptables.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/iptables.py
cowrie/commands/iptables.py:69:28: E231 missing whitespace after ','
cowrie/commands/iptables.py:69:36: E231 missing whitespace after ','
cowrie/commands/iptables.py:69:42: E231 missing whitespace after ','
cowrie/commands/iptables.py:71:24: E225 missing whitespace around operator
cowrie/commands/iptables.py:74:24: E225 missing whitespace around operator
cowrie/commands/iptables.py:75:38: E231 missing whitespace after ','
cowrie/commands/iptables.py:75:50: E231 missing whitespace after ','
cowrie/commands/iptables.py:320:41: E226 missing whitespace around arithmetic operator
cowrie/commands/iptables.py:359:43: E226 missing whitespace around arithmetic operator
2     E225 missing whitespace around operator
2     E226 missing whitespace around arithmetic operator
5     E231 missing whitespace after ','
9

* flake8 E2 cowrie/commands/python.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/python.py
cowrie/commands/python.py:83:45: E222 multiple spaces after operator
1     E222 multiple spaces after operator
1

* flake8 E2 cowrie/commands/apt.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/apt.py
cowrie/commands/apt.py:42:32: E251 unexpected spaces around keyword / parameter equals
cowrie/commands/apt.py:42:34: E251 unexpected spaces around keyword / parameter equals
cowrie/commands/apt.py:113:24: E231 missing whitespace after ','
cowrie/commands/apt.py:115:112: E231 missing whitespace after ','
cowrie/commands/apt.py:122:27: E241 multiple spaces after ':'
cowrie/commands/apt.py:126:24: E241 multiple spaces after ':'
2     E231 missing whitespace after ','
2     E241 multiple spaces after ':'
2     E251 unexpected spaces around keyword / parameter equals
6

* flake8 E2 cowrie/commands/fs.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/fs.py
cowrie/commands/fs.py:36:35: E231 missing whitespace after ','
cowrie/commands/fs.py:45:20: E201 whitespace after '('
cowrie/commands/fs.py:46:20: E201 whitespace after '('
cowrie/commands/fs.py:47:20: E201 whitespace after '('
cowrie/commands/fs.py:48:20: E201 whitespace after '('
4     E201 whitespace after '('
1     E231 missing whitespace after ','
5

* flake8 E2 cowrie/commands/gcc.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/gcc.py
cowrie/commands/gcc.py:21:13: E221 multiple spaces before operator
cowrie/commands/gcc.py:166:24: E226 missing whitespace around arithmetic operator
1     E221 multiple spaces before operator
1     E226 missing whitespace around arithmetic operator
2

* flake8 E2 cowrie/commands/last.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/last.py
cowrie/commands/last.py:30:48: E231 missing whitespace after ','
cowrie/commands/last.py:36:81: E226 missing whitespace around arithmetic operator
cowrie/commands/last.py:36:93: E226 missing whitespace around arithmetic operator
cowrie/commands/last.py:36:102: E202 whitespace before ')'
cowrie/commands/last.py:36:105: E202 whitespace before ')'
2     E202 whitespace before ')'
2     E226 missing whitespace around arithmetic operator
1     E231 missing whitespace after ','
5

* flake8 E2 cowrie/commands/busybox.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/busybox.py
cowrie/commands/busybox.py:6:50: E231 missing whitespace after ','
cowrie/commands/busybox.py:11:13: E225 missing whitespace around operator
cowrie/commands/busybox.py:62:31: E226 missing whitespace around arithmetic operator
1     E225 missing whitespace around operator
1     E226 missing whitespace around arithmetic operator
1     E231 missing whitespace after ','
3

* flake8 E2 cowrie/commands/netstat.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/netstat.py
cowrie/commands/netstat.py:75:22: E226 missing whitespace around arithmetic operator
cowrie/commands/netstat.py:76:22: E226 missing whitespace around arithmetic operator
cowrie/commands/netstat.py:97:37: E226 missing whitespace around arithmetic operator
cowrie/commands/netstat.py:97:41: E226 missing whitespace around arithmetic operator
cowrie/commands/netstat.py:97:52: E226 missing whitespace around arithmetic operator
cowrie/commands/netstat.py:97:60: E226 missing whitespace around arithmetic operator
cowrie/commands/netstat.py:98:37: E226 missing whitespace around arithmetic operator
cowrie/commands/netstat.py:98:41: E226 missing whitespace around arithmetic operator
cowrie/commands/netstat.py:98:52: E226 missing whitespace around arithmetic operator
cowrie/commands/netstat.py:98:60: E226 missing whitespace around arithmetic operator
cowrie/commands/netstat.py💯25: E226 missing whitespace around arithmetic operator
11    E226 missing whitespace around arithmetic operator
11

* flake8 E2 cowrie/commands/free.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/free.py
cowrie/commands/free.py:16:11: E225 missing whitespace around operator
cowrie/commands/free.py:21:10: E225 missing whitespace around operator
cowrie/commands/free.py:26:11: E225 missing whitespace around operator
cowrie/commands/free.py:60:15: E225 missing whitespace around operator
cowrie/commands/free.py:61:34: E226 missing whitespace around arithmetic operator
cowrie/commands/free.py:62:17: E225 missing whitespace around operator
cowrie/commands/free.py:63:33: E226 missing whitespace around arithmetic operator
cowrie/commands/free.py:64:17: E225 missing whitespace around operator
cowrie/commands/free.py:65:34: E226 missing whitespace around arithmetic operator
6     E225 missing whitespace around operator
3     E226 missing whitespace around arithmetic operator
9

* flake8 E2 cowrie/commands/ls.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/ls.py
cowrie/commands/ls.py:189:25: E226 missing whitespace around arithmetic operator
1     E226 missing whitespace around arithmetic operator
1

* flake8 E2 cowrie/commands/cat.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/cat.py
cowrie/commands/cat.py:79:28: E226 missing whitespace around arithmetic operator
1     E226 missing whitespace around arithmetic operator
1

* flake8 E2 cowrie/commands/tar.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/tar.py
cowrie/commands/tar.py:75:34: E226 missing whitespace around arithmetic operator
1     E226 missing whitespace around arithmetic operator
1

* flake8 E2 cowrie/commands/sudo.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/sudo.py
cowrie/commands/sudo.py:9:50: E231 missing whitespace after ','
cowrie/commands/sudo.py:13:15: E225 missing whitespace around operator
cowrie/commands/sudo.py:22:14: E225 missing whitespace around operator
cowrie/commands/sudo.py:66:31: E226 missing whitespace around arithmetic operator
cowrie/commands/sudo.py:74:31: E226 missing whitespace around arithmetic operator
cowrie/commands/sudo.py:95:29: E231 missing whitespace after ','
cowrie/commands/sudo.py:96:26: E222 multiple spaces after operator
cowrie/commands/sudo.py:101:45: E231 missing whitespace after ','
cowrie/commands/sudo.py:125:17: E265 block comment should start with '# '
cowrie/commands/sudo.py:128:70: E231 missing whitespace after ','
cowrie/commands/sudo.py:128:79: E231 missing whitespace after ','
cowrie/commands/sudo.py:128:106: E203 whitespace before ','
cowrie/commands/sudo.py:128:107: E231 missing whitespace after ','
1     E203 whitespace before ','
1     E222 multiple spaces after operator
2     E225 missing whitespace around operator
2     E226 missing whitespace around arithmetic operator
6     E231 missing whitespace after ','
1     E265 block comment should start with '# '
13

* flake8 E2 cowrie/commands/env.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/env.py
cowrie/commands/env.py:41:39: E231 missing whitespace after ','
1     E231 missing whitespace after ','
1

* flake8 E2 cowrie/commands/curl.py

flake8 --count --select=E1,E2 --statistics cowrie/commands/curl.py
cowrie/commands/curl.py:85:12: E225 missing whitespace around operator
cowrie/commands/curl.py:294:14: E261 at least two spaces before inline comment
cowrie/commands/curl.py:349:46: E261 at least two spaces before inline comment
cowrie/commands/curl.py:351:25: E226 missing whitespace around arithmetic operator
cowrie/commands/curl.py:383:30: E261 at least two spaces before inline comment
cowrie/commands/curl.py:437:46: E226 missing whitespace around arithmetic operator
cowrie/commands/curl.py:437:64: E226 missing whitespace around arithmetic operator
cowrie/commands/curl.py:440:55: E226 missing whitespace around arithmetic operator
cowrie/commands/curl.py:464:41: E226 missing whitespace around arithmetic operator
1     E225 missing whitespace around operator
5     E226 missing whitespace around arithmetic operator
3     E261 at least two spaces before inline comment
9

* flake8 E2 cowrie/ssh/factory.py

flake8 --count --select=E1,E2 --statistics cowrie/ssh/factory.py
cowrie/ssh/factory.py:39:15: E261 at least two spaces before inline comment
cowrie/ssh/factory.py:45:32: E226 missing whitespace around arithmetic operator
1     E226 missing whitespace around arithmetic operator
1     E261 at least two spaces before inline comment
2

* flake8 E2 cowrie/ssh/session.py

flake8 --count --select=E1,E2 --statistics cowrie/ssh/session.py
cowrie/ssh/session.py:22:9: E265 block comment should start with '# '
1     E265 block comment should start with '# '
1

* flake8 E2 cowrie/ssh/channel.py

flake8 --count --select=E1,E2 --statistics cowrie/ssh/channel.py
cowrie/ssh/channel.py:81:40: E226 missing whitespace around arithmetic operator
cowrie/ssh/channel.py:82:37: E226 missing whitespace around arithmetic operator
2     E226 missing whitespace around arithmetic operator
2

* flake8 E2 cowrie/ssh/userauth.py

flake8 --count --select=E1,E2 --statistics cowrie/ssh/userauth.py
cowrie/ssh/userauth.py:133:26: E261 at least two spaces before inline comment
cowrie/ssh/userauth.py:135:28: E261 at least two spaces before inline comment
2     E261 at least two spaces before inline comment
2

* flake8 E2 cowrie/ssh/transport.py

flake8 --count --select=E1,E2 --statistics cowrie/ssh/transport.py
cowrie/ssh/transport.py:59:56: E226 missing whitespace around arithmetic operator
cowrie/ssh/transport.py:61:33: E226 missing whitespace around arithmetic operator
cowrie/ssh/transport.py:61:55: E226 missing whitespace around arithmetic operator
cowrie/ssh/transport.py:96:13: E265 block comment should start with '# '
cowrie/ssh/transport.py:107:38: E226 missing whitespace around arithmetic operator
4     E226 missing whitespace around arithmetic operator
1     E265 block comment should start with '# '
5

* flake8 E2 cowrie/output/mysql.py

flake8 --count --select=E1,E2 --statistics cowrie/output/mysql.py
cowrie/output/mysql.py:37:72: E225 missing whitespace around operator
cowrie/output/mysql.py:74:21: E251 unexpected spaces around keyword / parameter equals
cowrie/output/mysql.py:74:23: E251 unexpected spaces around keyword / parameter equals
cowrie/output/mysql.py:75:19: E251 unexpected spaces around keyword / parameter equals
cowrie/output/mysql.py:75:21: E251 unexpected spaces around keyword / parameter equals
cowrie/output/mysql.py:76:21: E251 unexpected spaces around keyword / parameter equals
cowrie/output/mysql.py:76:23: E251 unexpected spaces around keyword / parameter equals
cowrie/output/mysql.py:77:23: E251 unexpected spaces around keyword / parameter equals
cowrie/output/mysql.py:77:25: E251 unexpected spaces around keyword / parameter equals
cowrie/output/mysql.py:78:21: E251 unexpected spaces around keyword / parameter equals
cowrie/output/mysql.py:78:23: E251 unexpected spaces around keyword / parameter equals
cowrie/output/mysql.py:79:23: E251 unexpected spaces around keyword / parameter equals
cowrie/output/mysql.py:79:25: E251 unexpected spaces around keyword / parameter equals
cowrie/output/mysql.py:80:23: E251 unexpected spaces around keyword / parameter equals
cowrie/output/mysql.py:80:25: E251 unexpected spaces around keyword / parameter equals
cowrie/output/mysql.py:128:18: E222 multiple spaces after operator
1     E222 multiple spaces after operator
1     E225 missing whitespace around operator
14    E251 unexpected spaces around keyword / parameter equals
16

* flake8 E2 cowrie/output/hpfeeds3.py

flake8 --count --select=E1,E2 --statistics cowrie/output/hpfeeds3.py
cowrie/output/hpfeeds3.py:68:26: E231 missing whitespace after ':'
cowrie/output/hpfeeds3.py:70:26: E231 missing whitespace after ':'
cowrie/output/hpfeeds3.py:76:30: E231 missing whitespace after ':'
cowrie/output/hpfeeds3.py:77:27: E231 missing whitespace after ':'
cowrie/output/hpfeeds3.py:78:34: E231 missing whitespace after ':'
cowrie/output/hpfeeds3.py:79:23: E231 missing whitespace after ':'
6     E231 missing whitespace after ':'
6

* flake8 E2 cowrie/output/textlog.py

flake8 --count --select=E1,E2 --statistics cowrie/output/textlog.py
cowrie/output/textlog.py:63:53: E226 missing whitespace around arithmetic operator
cowrie/output/textlog.py:64:67: E226 missing whitespace around arithmetic operator
cowrie/output/textlog.py:66:53: E226 missing whitespace around arithmetic operator
cowrie/output/textlog.py:67:51: E226 missing whitespace around arithmetic operator
4     E226 missing whitespace around arithmetic operator
4

* flake8 E2 cowrie/output/sqlite.py

flake8 --count --select=E1,E2 --statistics cowrie/output/sqlite.py
cowrie/output/sqlite.py:36:25: E251 unexpected spaces around keyword / parameter equals
cowrie/output/sqlite.py:36:27: E251 unexpected spaces around keyword / parameter equals
cowrie/output/sqlite.py:86:18: E222 multiple spaces after operator
1     E222 multiple spaces after operator
2     E251 unexpected spaces around keyword / parameter equals
3

* flake8 E2 cowrie/output/hpfeeds.py

flake8 --count --select=E1,E2 --statistics cowrie/output/hpfeeds.py
cowrie/output/hpfeeds.py:33:9: E221 multiple spaces before operator
cowrie/output/hpfeeds.py:34:8: E221 multiple spaces before operator
cowrie/output/hpfeeds.py:35:8: E221 multiple spaces before operator
cowrie/output/hpfeeds.py:36:11: E221 multiple spaces before operator
cowrie/output/hpfeeds.py:37:13: E221 multiple spaces before operator
cowrie/output/hpfeeds.py:41:16: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:42:15: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:42:19: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:43:15: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:43:19: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:44:18: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:45:20: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:45:24: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:73:17: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:73:25: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:78:32: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:94:36: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:127:48: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:248:37: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:248:48: E226 missing whitespace around arithmetic operator
cowrie/output/hpfeeds.py:300:26: E231 missing whitespace after ':'
cowrie/output/hpfeeds.py:302:26: E231 missing whitespace after ':'
cowrie/output/hpfeeds.py:308:30: E231 missing whitespace after ':'
cowrie/output/hpfeeds.py:309:27: E231 missing whitespace after ':'
cowrie/output/hpfeeds.py:310:34: E231 missing whitespace after ':'
cowrie/output/hpfeeds.py:311:23: E231 missing whitespace after ':'
5     E221 multiple spaces before operator
15    E226 missing whitespace around arithmetic operator
6     E231 missing whitespace after ':'
26

* flake8 E2 cowrie/output/influx.py

flake8 --count --select=E1,E2 --statistics cowrie/output/influx.py
cowrie/output/influx.py:109:47: E231 missing whitespace after ','
1     E231 missing whitespace after ','
1

* flake8 E2 cowrie/output/virustotal.py

flake8 --count --select=E1,E2 --statistics cowrie/output/virustotal.py
cowrie/output/virustotal.py:93:13: E265 block comment should start with '# '
cowrie/output/virustotal.py:94:13: E265 block comment should start with '# '
cowrie/output/virustotal.py:95:13: E265 block comment should start with '# '
cowrie/output/virustotal.py:104:13: E265 block comment should start with '# '
cowrie/output/virustotal.py:105:13: E265 block comment should start with '# '
cowrie/output/virustotal.py:113:26: E226 missing whitespace around arithmetic operator
cowrie/output/virustotal.py:126:17: E265 block comment should start with '# '
cowrie/output/virustotal.py:180:17: E265 block comment should start with '# '
cowrie/output/virustotal.py:193:26: E226 missing whitespace around arithmetic operator
cowrie/output/virustotal.py:197:41: E226 missing whitespace around arithmetic operator
cowrie/output/virustotal.py:261:26: E226 missing whitespace around arithmetic operator
cowrie/output/virustotal.py:274:17: E265 block comment should start with '# '
cowrie/output/virustotal.py:329:26: E226 missing whitespace around arithmetic operator
cowrie/output/virustotal.py:330:23: E201 whitespace after '{'
1     E201 whitespace after '{'
5     E226 missing whitespace around arithmetic operator
8     E265 block comment should start with '# '
14

* flake8 E2 cowrie/output/jsonlog.py

flake8 --count --select=E1,E2 --statistics cowrie/output/jsonlog.py
cowrie/output/jsonlog.py:73:59: E225 missing whitespace around operator
1     E225 missing whitespace around operator
1

* flake8 E2 cowrie/output/dshield.py

flake8 --count --select=E1,E2 --statistics cowrie/output/dshield.py
cowrie/output/dshield.py:39:24: E261 at least two spaces before inline comment
cowrie/output/dshield.py:50:23: E203 whitespace before ':'
cowrie/output/dshield.py:51:23: E203 whitespace before ':'
cowrie/output/dshield.py:52:27: E203 whitespace before ':'
cowrie/output/dshield.py:53:28: E203 whitespace before ':'
cowrie/output/dshield.py:54:23: E203 whitespace before ':'
cowrie/output/dshield.py:55:27: E203 whitespace before ':'
cowrie/output/dshield.py:102:27: E231 missing whitespace after ':'
cowrie/output/dshield.py:104:9: E265 block comment should start with '# '
cowrie/output/dshield.py:111:19: E251 unexpected spaces around keyword / parameter equals
cowrie/output/dshield.py:112:16: E251 unexpected spaces around keyword / parameter equals
cowrie/output/dshield.py:112:18: E251 unexpected spaces around keyword / parameter equals
cowrie/output/dshield.py:113:20: E251 unexpected spaces around keyword / parameter equals
cowrie/output/dshield.py:113:22: E251 unexpected spaces around keyword / parameter equals
cowrie/output/dshield.py:114:20: E251 unexpected spaces around keyword / parameter equals
cowrie/output/dshield.py:114:22: E251 unexpected spaces around keyword / parameter equals
cowrie/output/dshield.py:115:17: E251 unexpected spaces around keyword / parameter equals
cowrie/output/dshield.py:115:19: E251 unexpected spaces around keyword / parameter equals
cowrie/output/dshield.py:132:57: E226 missing whitespace around arithmetic operator
6     E203 whitespace before ':'
1     E226 missing whitespace around arithmetic operator
1     E231 missing whitespace after ':'
9     E251 unexpected spaces around keyword / parameter equals
1     E261 at least two spaces before inline comment
1     E265 block comment should start with '# '
19

* flake8 E2 cowrie/output/elasticsearch.py

flake8 --count --select=E1,E2 --statistics cowrie/output/elasticsearch.py
cowrie/output/elasticsearch.py:22:21: E225 missing whitespace around operator
1     E225 missing whitespace around operator
1flake8 E2 cowrie/output/elasticsearch.py

flake8 --count --select=E1,E2 --statistics
cowrie/output/elasticsearch.py
cowrie/output/elasticsearch.py:22:21: E225 missing whitespace around
operator
1     E225 missing whitespace around operator
1flake8 E2 cowrie/output/elasticsearch.py

flake8 --count --select=E1,E2 --statistics
cowrie/output/elasticsearch.py
cowrie/output/elasticsearch.py:22:21: E225 missing whitespace around
operator
1     E225 missing whitespace around operator
1flake8 E2 cowrie/output/elasticsearch.py

flake8 --count --select=E1,E2 --statistics
cowrie/output/elasticsearch.py
cowrie/output/elasticsearch.py:22:21: E225 missing whitespace around
operator
1     E225 missing whitespace around operator
1flake8 E2 cowrie/output/elasticsearch.py

flake8 --count --select=E1,E2 --statistics
cowrie/output/elasticsearch.py
cowrie/output/elasticsearch.py:22:21: E225 missing whitespace around
operator
1     E225 missing whitespace around operator
1flake8 E2 cowrie/output/elasticsearch.py

flake8 --count --select=E1,E2 --statistics
cowrie/output/elasticsearch.py
cowrie/output/elasticsearch.py:22:21: E225 missing whitespace around
operator
1     E225 missing whitespace around operator
1flake8 E2 cowrie/output/elasticsearch.py

flake8 --count --select=E1,E2 --statistics
cowrie/output/elasticsearch.py
cowrie/output/elasticsearch.py:22:21: E225 missing whitespace around
operator
1     E225 missing whitespace around operator
1flake8 E2 cowrie/output/elasticsearch.py

flake8 --count --select=E1,E2 --statistics
cowrie/output/elasticsearch.py
cowrie/output/elasticsearch.py:22:21: E225 missing whitespace around
operator
1     E225 missing whitespace around operator
1

* flake8 E2 cowrie/output/xmpp.py

flake8 --count --select=E1,E2 --statistics cowrie/output/xmpp.py
cowrie/output/xmpp.py:19:20: E221 multiple spaces before operator
cowrie/output/xmpp.py:24:18: E221 multiple spaces before operator
cowrie/output/xmpp.py:25:18: E221 multiple spaces before operator
cowrie/output/xmpp.py:71:15: E221 multiple spaces before operator
cowrie/output/xmpp.py:72:13: E221 multiple spaces before operator
cowrie/output/xmpp.py:72:21: E222 multiple spaces after operator
cowrie/output/xmpp.py:73:17: E221 multiple spaces before operator
cowrie/output/xmpp.py:74:12: E221 multiple spaces before operator
cowrie/output/xmpp.py:79:44: E231 missing whitespace after ','
cowrie/output/xmpp.py:79:53: E231 missing whitespace after ','
cowrie/output/xmpp.py:79:58: E231 missing whitespace after ','
cowrie/output/xmpp.py:79:65: E231 missing whitespace after ','
cowrie/output/xmpp.py:86:46: E261 at least two spaces before inline comment
cowrie/output/xmpp.py:102:38: E231 missing whitespace after ','
7     E221 multiple spaces before operator
1     E222 multiple spaces after operator
5     E231 missing whitespace after ','
1     E261 at least two spaces before inline comment
14

* flake8 E2 cowrie/shell/honeypot.py

flake8 --count --select=E1,E2 --statistics cowrie/shell/honeypot.py
cowrie/shell/honeypot.py:210:9: E265 block comment should start with '# '
cowrie/shell/honeypot.py:347:32: E226 missing whitespace around arithmetic operator
cowrie/shell/honeypot.py:365:43: E226 missing whitespace around arithmetic operator
cowrie/shell/honeypot.py:366:29: E222 multiple spaces after operator
cowrie/shell/honeypot.py:397:33: E226 missing whitespace around arithmetic operator
cowrie/shell/honeypot.py:398:30: E226 missing whitespace around arithmetic operator
cowrie/shell/honeypot.py:402:9: E265 block comment should start with '# '
cowrie/shell/honeypot.py:403:9: E265 block comment should start with '# '
cowrie/shell/honeypot.py:408:45: E226 missing whitespace around arithmetic operator
cowrie/shell/honeypot.py:408:49: E226 missing whitespace around arithmetic operator
cowrie/shell/honeypot.py:408:72: E226 missing whitespace around arithmetic operator
cowrie/shell/honeypot.py:408:76: E226 missing whitespace around arithmetic operator
cowrie/shell/honeypot.py:414:35: E203 whitespace before ','
cowrie/shell/honeypot.py:440:19: E222 multiple spaces after operator
1     E203 whitespace before ','
2     E222 multiple spaces after operator
8     E226 missing whitespace around arithmetic operator
3     E265 block comment should start with '# '
14

* flake8 E2 cowrie/shell/fs.py

flake8 --count --select=E1,E2 --statistics cowrie/shell/fs.py
cowrie/shell/fs.py:229:63: E225 missing whitespace around operator
cowrie/shell/fs.py:377:13: E265 block comment should start with '# '
cowrie/shell/fs.py:416:13: E265 block comment should start with '# '
cowrie/shell/fs.py:457:36: E225 missing whitespace around operator
cowrie/shell/fs.py:558:23: E231 missing whitespace after ':'
cowrie/shell/fs.py:559:22: E231 missing whitespace after ':'
cowrie/shell/fs.py:560:22: E231 missing whitespace after ':'
cowrie/shell/fs.py:561:23: E231 missing whitespace after ':'
cowrie/shell/fs.py:562:23: E231 missing whitespace after ':'
cowrie/shell/fs.py:563:24: E231 missing whitespace after ':'
2     E225 missing whitespace around operator
6     E231 missing whitespace after ':'
2     E265 block comment should start with '# '
10

* flake8 E2 cowrie/shell/shlex.py

flake8 --count --select=E1,E2 --statistics cowrie/shell/shlex.py
cowrie/shell/shlex.py:70:13: E265 block comment should start with '# '
cowrie/shell/shlex.py:321:1: E265 block comment should start with '# '
2     E265 block comment should start with '# '
2

* flake8 E2 cowrie/shell/filetransfer.py

flake8 --count --select=E1,E2 --statistics cowrie/shell/filetransfer.py
cowrie/shell/filetransfer.py:83:43: E226 missing whitespace around arithmetic operator
cowrie/shell/filetransfer.py:116:33: E226 missing whitespace around arithmetic operator
cowrie/shell/filetransfer.py:309:9: E265 block comment should start with '# '
2     E226 missing whitespace around arithmetic operator
1     E265 block comment should start with '# '
3

* flake8 E2 cowrie/shell/session.py

flake8 --count --select=E1,E2 --statistics cowrie/shell/session.py
cowrie/shell/session.py:47:20: E225 missing whitespace around operator
cowrie/shell/session.py:48:33: E225 missing whitespace around operator
cowrie/shell/session.py:50:33: E225 missing whitespace around operator
3     E225 missing whitespace around operator
3

* flake8 E2 cowrie/shell/customparser.py

flake8 --count --select=E1,E2 --statistics cowrie/shell/customparser.py
cowrie/shell/customparser.py:56:27: E231 missing whitespace after ','
1     E231 missing whitespace after ','
1

* flake8 E2 cowrie/test/test_base_commands.py

flake8 --count --select=E1,E2 --statistics cowrie/test/test_base_commands.py
cowrie/test/test_base_commands.py:24:58: E211 whitespace before '('
cowrie/test/test_base_commands.py:33:41: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:38:41: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:43:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:47:49: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:52:49: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:57:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:74:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:83:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:87:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:94:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:114:49: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:123:49: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:134:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:139:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:144:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:149:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:154:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:159:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:164:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:169:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:174:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:179:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:184:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:189:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:193:42: E231 missing whitespace after ','
cowrie/test/test_base_commands.py:198:42: E231 missing whitespace after ','
1     E211 whitespace before '('
26    E231 missing whitespace after ','
27

* flake8 E2 cowrie/test/fake_transport.py

flake8 --count --select=E1,E2 --statistics cowrie/test/fake_transport.py
cowrie/test/fake_transport.py:8:42: E231 missing whitespace after ','
1     E231 missing whitespace after ','
1

* flake8 E2 cowrie/proxy/endpoints.py

flake8 --count --select=E1,E2 --statistics cowrie/proxy/endpoints.py
cowrie/proxy/endpoints.py:214:29: E226 missing whitespace around arithmetic operator
cowrie/proxy/endpoints.py:233:42: E226 missing whitespace around arithmetic operator
cowrie/proxy/endpoints.py:323:22: E231 missing whitespace after ','
cowrie/proxy/endpoints.py:323:25: E231 missing whitespace after ','
cowrie/proxy/endpoints.py:323:27: E231 missing whitespace after ','
cowrie/proxy/endpoints.py:323:30: E261 at least two spaces before inline comment
cowrie/proxy/endpoints.py:346:55: E226 missing whitespace around arithmetic operator
cowrie/proxy/endpoints.py:380:48: E226 missing whitespace around arithmetic operator
cowrie/proxy/endpoints.py:824:24: E222 multiple spaces after operator
cowrie/proxy/endpoints.py:992:24: E222 multiple spaces after operator
2     E222 multiple spaces after operator
4     E226 missing whitespace around arithmetic operator
3     E231 missing whitespace after ','
1     E261 at least two spaces before inline comment
10

* flake8 E2 cowrie/proxy/avatar.py

flake8 --count --select=E1,E2 --statistics cowrie/proxy/avatar.py
cowrie/proxy/avatar.py:14:1: E265 block comment should start with '# '
cowrie/proxy/avatar.py:38:9: E265 block comment should start with '# '
cowrie/proxy/avatar.py:41:9: E265 block comment should start with '# '
cowrie/proxy/avatar.py:59:1: E265 block comment should start with '# '
4     E265 block comment should start with '# '
4

* Add TODO for checking SFTP support

I removed code which was never used in this version of cowrie. But for
me it looks like there is no SFTP support anymore? Look the previous
commit message for more details.

* flake8 E2 cowrie/proxy/session.py

flake8 --count --select=E1,E2 --statistics cowrie/proxy/session.py
cowrie/proxy/session.py:15:1: E265 block comment should start with '# '
cowrie/proxy/session.py:60:21: E261 at least two spaces before inline comment
cowrie/proxy/session.py:61:18: E261 at least two spaces before inline comment
cowrie/proxy/session.py:62:14: E261 at least two spaces before inline comment
cowrie/proxy/session.py:71:13: E265 block comment should start with '# '
cowrie/proxy/session.py:83:30: E226 missing whitespace around arithmetic operator
cowrie/proxy/session.py:83:42: E226 missing whitespace around arithmetic operator
cowrie/proxy/session.py:83:59: E226 missing whitespace around arithmetic operator
cowrie/proxy/session.py:91:37: E226 missing whitespace around arithmetic operator
cowrie/proxy/session.py:146:9: E265 block comment should start with '# '
cowrie/proxy/session.py:168:32: E226 missing whitespace around arithmetic operator
cowrie/proxy/session.py:169:26: E226 missing whitespace around arithmetic operator
cowrie/proxy/session.py:170:26: E226 missing whitespace around arithmetic operator
cowrie/proxy/session.py:171:26: E226 missing whitespace around arithmetic operator
cowrie/proxy/session.py:185:28: E226 missing whitespace around arithmetic operator
cowrie/proxy/session.py:189:23: E226 missing whitespace around arithmetic operator
cowrie/proxy/session.py:250:9: E265 block comment should start with '# '
cowrie/proxy/session.py:322:13: E265 block comment should start with '# '
10    E226 missing whitespace around arithmetic operator
3     E261 at least two spaces before inline comment
5     E265 block comment should start with '# '
18

* flake8 E2 cowire/core/dblog.py

flake8 --count --select=E1,E2 --statistics cowrie/core/dblog.py
cowrie/core/dblog.py:27:9: E265 block comment should start with '# '
1     E265 block comment should start with '# '
1

* flake8 E2 cowrie/core/output.py

flake8 --count --select=E1,E2 --statistics cowrie/core/output.py
cowrie/core/output.py:172:9: E265 block comment should start with '# '
cowrie/core/output.py:174:13: E265 block comment should start with '# '
cowrie/core/output.py:175:13: E265 block comment should start with '# '
cowrie/core/output.py:176:13: E265 block comment should start with '# '
cowrie/core/output.py:177:13: E265 block comment should start with '# '
cowrie/core/output.py:188:32: E226 missing whitespace around arithmetic operator
cowrie/core/output.py:192:36: E226 missing whitespace around arithmetic operator
2     E226 missing whitespace around arithmetic operator
5     E265 block comment should start with '# '
7

* flake8 E2 cowrie/core/realm.py

flake8 --count --select=E1,E2 --statistics cowrie/core/realm.py
cowrie/core/realm.py:72:9: E265 block comment should start with '# '
1     E265 block comment should start with '# '
1

* flake8 E2 cowrie/core/utils.py

flake8 --count --select=E1,E2 --statistics cowrie/core/utils.py
cowrie/core/utils.py:35:55: E226 missing whitespace around arithmetic operator
cowrie/core/utils.py:38:56: E226 missing whitespace around arithmetic operator
cowrie/core/utils.py:57:22: E226 missing whitespace around arithmetic operator
cowrie/core/utils.py:58:45: E226 missing whitespace around arithmetic operator
cowrie/core/utils.py:59:35: E226 missing whitespace around arithmetic operator
5     E226 missing whitespace around arithmetic operator
5

* Enable flake8 E1 and E2 checks in travis

Prevent bad code style of fixed flake8 errors again in the code.

* Fixing missspelled variable
2018-07-05 22:46:00 +04:00
Michel Oosterhof 528907e0fe Ignore E3xx 2018-06-22 09:27:34 +00:00
Michel Oosterhof d686accd33 disable Twistedchecker 2018-06-22 07:10:07 +00:00
Michel Oosterhof eb8a12b598 skip pep8 2018-06-22 06:49:06 +00:00
Michel Oosterhof 28245a969b more checking with twistedchecker 2018-06-20 23:17:25 +04:00
cclauss d32cb40ce3 Add flake8 to the Travis CI testing (#767)
* Add flake8 to the Travis CI testing

* exceptions.AttributeError —> AttributeError

* notImplementedError —> NotImplementedError

* notImplementedError —> NotImplementedError

* buffer was removed in Python 3

* New Style Exception for Python 3

* file() —> open() for Python 3

__file()__ was removed in Python 3

* from twisted.conch.ssh.common import getNS

__getNS()__ is called on lines 208 and 209 but it is never imported.

* New Style Exception again
2018-06-04 13:58:08 +04:00
Michel Oosterhof cbe7d59c2e libmpc no longer required 2017-07-25 11:54:31 +04:00
Michel Oosterhof bc72aa8017 build on travis with python 3.6 for bytes.format support 2017-03-06 12:39:47 +00:00