Commit Graph

2966 Commits

Author SHA1 Message Date
91dca9f1c6 use 'open', not 'file' for py3 2016-09-18 14:57:55 +00:00
1efa964d45 py3 comp 2016-09-18 14:52:36 +00:00
f388b76937 Squashed commit of the following:
commit 79fff5332ba74bab40d0059e1051ca62614488ff
Merge: 645f25f 39c9fa4
Author: Michel Oosterhof <michel@oosterhof.net>
Date:   Sun Sep 18 14:46:09 2016 +0000

    Merge branch 'configparser' of https://github.com/micheloosterhof/cowrie into configparser

commit 645f25f6f22dbe374b544f08d69b7de2ef0dcb45
Author: Michel Oosterhof <michel@oosterhof.net>
Date:   Sun Sep 18 14:37:46 2016 +0000

    rewrite code for prompt. this had issues with unicode

commit 99adf95f27ef03b229e592f1fa393cf66be3faf0
Author: Michel Oosterhof <michel@oosterhof.net>
Date:   Sun Sep 18 14:15:10 2016 +0000

    can't use "mode"

commit bee2b6693fe009d361a0b117c67d11f37ed21c41
Author: Michel Oosterhof <michel@oosterhof.net>
Date:   Sun Sep 18 14:09:57 2016 +0000

    configparser changes. not working well yet on py2

commit 39c9fa406cca9ede51af8329280af81fff870e31
Author: Michel Oosterhof <michel@oosterhof.net>
Date:   Sun Sep 18 14:37:46 2016 +0000

    rewrite code for prompt. this had issues with unicode

commit 3dd08206fcb4c7dd0a66d20b914e3279947c77de
Author: Michel Oosterhof <michel@oosterhof.net>
Date:   Sun Sep 18 14:15:10 2016 +0000

    can't use "mode"

commit f54272b239409b65ef0292ac328b0a2efccbe6cd
Author: Michel Oosterhof <michel@oosterhof.net>
Date:   Sun Sep 18 14:09:57 2016 +0000

    configparser changes. not working well yet on py2
2016-09-18 14:51:02 +00:00
0a1d259cdc 'Crypto' is a missing dependency 2016-09-18 14:41:01 +00:00
45cbc2b59e switch to configparser 2016-09-18 13:38:20 +00:00
3fd7116d1e properly separate ssh and telnet session 2016-09-18 13:20:58 +00:00
7bde19b403 fix 2016-09-18 12:40:17 +00:00
37db3abed3 initialize flags correctly 2016-09-18 15:57:25 +04:00
eec4d716f2 set PYTHONPATH 2016-09-18 15:54:23 +04:00
eacff8c767 add cowrie.command.input for the raw inputted command 2016-09-18 10:27:07 +00:00
3d8085e86a bannerfile is optional 2016-09-07 12:15:20 +04:00
0b92ec370d remove default issue.net 2016-09-07 12:10:47 +04:00
4841a8b83c without semicolon works 2016-09-07 11:36:07 +04:00
588abd830a set PYTHONPATH explicitly 2016-09-07 11:20:19 +04:00
a438ee8272 Fixed interact by using the correct variable....wrong variable name in interact.py (#254) 2016-09-07 11:17:54 +04:00
b38add4e1e Merge branch 'master' of https://github.com/micheloosterhof/cowrie 2016-09-07 11:14:34 +04:00
710a8221ae single space between command and arguments 2016-09-06 17:41:44 +04:00
96447d2789 Fix unit tests due to log path (#249)
* Fix unit tests due to log path

* Add fake formatting function which just returns true
2016-09-06 01:39:38 +04:00
9c730b7257 implement 'ls -d' flag 2016-09-05 23:16:55 +04:00
4b9b86356f Fix #219 2016-09-05 23:09:49 +04:00
d41602a766 log from transport now instead of protocol 2016-09-05 21:59:43 +04:00
6ea509321f remove SSH specific for logging to enable telnet logging 2016-09-05 21:00:34 +04:00
21e5ba8b5a i think travis gets upset about pycrypto 2016-09-05 02:23:18 +04:00
309b4efbec Merge branch 'master' of https://github.com/micheloosterhof/cowrie 2016-09-05 01:22:34 +04:00
2c77ef44f8 Fix #243: don't log passwd change as file download 2016-09-05 01:22:00 +04:00
87bc9237ee add note about raspberry pi installation (#236) 2016-09-05 01:12:32 +04:00
2bef5c0db8 move lastlog to log/ as suggested by @boozezela 2016-09-05 01:10:39 +04:00
803f91e91e small tweaks 2016-09-05 01:00:00 +04:00
35954277e2 roll back trial change 2016-09-05 00:44:11 +04:00
56fe7c0353 explicitly run cowrie.test 2016-09-05 00:37:16 +04:00
43fd43481a split off factory from transport. 2016-09-04 22:36:54 +04:00
6fd4e43c59 formatting in README 2016-09-04 21:23:49 +04:00
d42ac579c4 rewrite of install instructions (#235)
* untested improvements to Install.md

* fixed missing pycrypto in requirements.txt

* table of contents

* removing citation

* beautification

* remove red hat instructions (they were wrong)

* PYTHONPATH might need to be set regardless

* bugfix

* reorganize, sweeping improvements

* finishing touches
2016-08-31 22:31:12 +04:00
30b2d3c8b9 accept -P switch for wget 2016-08-26 14:13:28 +00:00
eb8d3033f9 update README 2016-08-22 17:14:17 +04:00
ea31ba515d Merge branch 'master' of https://github.com/micheloosterhof/cowrie 2016-08-22 16:09:11 +04:00
a69fbf4aa2 telnet changelog 2016-08-22 16:08:49 +04:00
7da1b3479c listen_ssh_addr -> listen_addr 2016-08-22 12:07:24 +00:00
ef68617ec2 remove 'reset' starttime functionality 2016-08-22 15:58:25 +04:00
1602fa735a make telnet optional, small prompt fixes 2016-08-22 15:56:53 +04:00
31bdc68b0d Fix: Removing timeout on login after a successful login
Timeout will then be defined by HoneyPotBaseProtocol class. Just like
for SSH.
2016-08-22 15:56:53 +04:00
61318e3c21 New tasks for better customization of Telnet experience 2016-08-22 15:56:53 +04:00
97b6cd1bbd Refactoring: tasks added and cleaned-up 2016-08-22 15:56:53 +04:00
8374646843 Implemented an alternate code path for proper Telnet clients
Fixes access from both nc style clients and fat Telnet clients. Only
tested with python socket and telnet client from inetutils 1.9.4.
2016-08-22 15:56:53 +04:00
b4bf14b43d Achieved maximum compatibility with nc like clients
Will figure out how to make it work with both Telnet and nc later.
2016-08-22 15:56:53 +04:00
7e027fc8f5 Improve compatibility: No longer send a WILL SGA upon connection
These are still attempts at improving things.
2016-08-22 15:56:53 +04:00
29facd6ffe Protocol changes to prevent Telnet data to appear before password prompt
Not perfect because there is no ECHO when entering Username... A proper
fix will need more testing but I need to gather data now.
2016-08-22 15:56:53 +04:00
92cc6ee597 Refactoring: MyTelnet gets a proper name 2016-08-22 15:56:53 +04:00
670274ad83 Naming fix: HoneyPotTelnetAuthTransport -> HoneyPotTelnetAuthProtocol 2016-08-22 15:56:53 +04:00
1dfe826231 Removed debug code that I should have removed earlier
If repository wasn't working for you before, backport this patch.
Sorry.
2016-08-22 15:56:53 +04:00