Commit Graph

2509 Commits

Author SHA1 Message Date
cd62bfe191 Fix Uploads to asciinema server. (#207)
Thanks!
2016-07-09 17:06:31 +04:00
8c5c0d7201 Added missing dependency (#208) 2016-07-09 17:06:00 +04:00
62220d581c allow to ls files only: "ls /etc/passwd" 2016-06-29 15:46:08 +00:00
641d7df7ec Fixed shutdown command (#200) 2016-06-27 15:59:30 +04:00
9b4ceab82b simplify env 2016-06-25 18:22:08 +00:00
d78d6c2399 formatting, '-h' option, no option behavior. 2016-06-25 18:17:53 +00:00
1db73be8a0 Quick service implementation (#196)
* Implemented the service command

* Fixed the command not exiting correctly, removed flags from getopt

* removed handle_CTRL_D, lineReceived
2016-06-25 22:10:41 +04:00
5cbf315df6 Fix https://github.com/micheloosterhof/cowrie/issues/197 2016-06-24 16:09:30 +00:00
e406d39169 log python/perl command again as command succesful 2016-06-20 13:57:05 +00:00
c39f059605 fix http://github.com/micheloosterhof/cowrie/issues/195 2016-06-19 20:35:23 +00:00
99f55e449d move install instructions to INSTALL.md. Update preqreq 2016-06-19 13:39:09 +00:00
d2eb56c0f5 start.sh and requirements improvements & no moduli fail fix with key exchanges (#194)
* Extra arguments to start.sh and improved requirements doc

Added possibly to pass extra arguments to twistd in start.sh (e.g. `env XARGS=--nodaemon ./start.sh`). Fixed list of the dependencies based on the issue micheloosterhof/cowrie#132 and added example of dependencies in practice for alpine:3.4.

* Fixes no moduli fail with key exchanges

Tries to fix issue micheloosterhof/cowrie#193

* Missing requirement and fixed logging
2016-06-19 17:36:48 +04:00
c8b7523569 Fixed up sh -c so if its an invalid file it will display command not found (#192) 2016-06-19 10:21:08 +04:00
c1e761dd6a close connection correctly 2016-06-16 21:33:32 +04:00
3d4e782aaa typo fix 2016-06-16 16:21:59 +04:00
f96a3c0d31 Fix https://github.com/micheloosterhof/cowrie/issues/182 2016-06-16 16:08:57 +04:00
a64cbe9a41 rewrite 2016-06-15 18:31:22 +04:00
8db82c7f96 cleanup imports for session.py 2016-06-15 14:01:10 +04:00
663ab926af reverse activation logging for port mapping 2016-06-15 13:58:14 +04:00
9ffeba80ec forward mapping (#148)
Sorry for the delay! Thanks for the patch!
2016-06-15 13:38:14 +04:00
bb935ca707 remove unused variable, clean imports 2016-06-15 13:34:01 +04:00
15cdfa4b10 Cowrie Unit Tests (#188)
* Can run LS in TEST assertion.
Having a problem when assert ends with this:
DirtyReactorAggregateError: Reactor was unclean

* First Test Case Enabled
Modified Example configuration file
Added some test unit cases for all BASE commands
Some more additions to FakeTransport.
Used Official Config file instead of mock config
Separated FakeTransport from unitTests
Added FS commands to testing
Fixed up some problems with grep in test case
You can now run unit tests with trial.
We should probably copy over the data files in a script to a common location....however to run unit tests using trial
trial cowrie/unittests/TestBaseCommands.py
Fixed rmdir test.
Fixed Some Formatting for TwistedChecker
2016-06-15 13:20:52 +04:00
5daf4547ef Fixed sh and bash -c (#191) 2016-06-15 08:19:03 +04:00
9d0fcd92be add ^ to wordchars 2016-06-14 14:47:51 +00:00
5fb34f9ee1 twistedchecker formatting 2016-06-13 08:54:15 +00:00
50ff8c4362 Merge pull request #187 from davegermiquet/FIXPIPEBYINSERTTOLIST
Fixed up SUDO / BusyBOX with a better implementation
2016-06-13 12:47:49 +04:00
7c655a6c6b Minor bug fixes 2016-06-12 13:00:02 -04:00
6259e81bee Print error out instead of standard out for help and error messages 2016-06-12 12:30:47 -04:00
115048aae8 Fixed up SUDO with a better implementation 2016-06-12 12:20:32 -04:00
cd4c4ffad3 remove uptime(reset) functionality 2016-06-10 17:48:36 +04:00
743b672e85 split off uptime 2016-06-10 17:46:40 +04:00
3b185f59ff Merge pull request #184 from davegermiquet/IFCONDITION
ADD IF CONDITION In case connection was lost, or something happens to…
2016-06-06 19:54:53 +04:00
4a48507491 Fixed if/Else Statement 2016-06-02 18:52:05 -04:00
d602ac4b46 ADD IF CONDITION In case connection was lost, or something happens to write
terminal to be null
2016-06-02 17:56:54 -04:00
4be619f96e Merge pull request #183 from davegermiquet/SUGGESTEDFIX
Suggestedfix
2016-06-02 10:06:27 +04:00
674b6839a8 Fixed CTRL-D issue. 2016-06-01 21:09:14 -04:00
b869867266 Renamed self.error to self.errorWrite to fix possible problem with webClient 2016-06-01 21:09:14 -04:00
fdfa04d7fb few fixes 2016-06-01 22:13:27 +04:00
83e7c6824f virtual env instructions 2016-06-01 22:09:44 +04:00
d1402b9298 give correct error when starting with && || or ; 2016-06-01 20:09:51 +04:00
8916d728b8 ls -l now respects -a flag 2016-06-01 19:54:49 +04:00
386267cc35 interpret ^H as backspace 2016-06-01 02:29:01 +04:00
36f32c009a twistedchecker 2016-05-30 17:20:17 +00:00
821b5e7fe5 move pipes functionality inside honeypot.py 2016-05-30 17:17:04 +00:00
61f4ccbb34 Merge pull request #176 from davegermiquet/pipecontrol
Pipecontrol.
Thanks @davegermiquet !!
2016-05-30 21:11:10 +04:00
777c443bb0 Fixed a problem when you EXIT it removes the protocol.username
So if we are exiting don't show the PROMPT!!
2016-05-30 02:38:15 -04:00
172cae5060 Finally FIXED PROMPT BUG!
My fault, incorrect indentation in if pp statement
2016-05-30 01:27:25 -04:00
50ca182671 Removed unneeded ;'s.
There is a small bug that needs to be fixed with the prompts showing multiple ties
2016-05-30 00:22:38 -04:00
96dc66bad0 Added pipe implementation
changed some functionality with tail/head/cat to work with pipe implementation
Got rid of ;'s of some places where it should not be :)
2016-05-30 00:15:42 -04:00
91866e3868 add 'curl -s'. fix exception on unknown option 2016-05-29 15:45:40 +00:00