Commit Graph

661 Commits

Author SHA1 Message Date
Michel Oosterhof aa63778469 dailylogfile for jsonlog. make default 2015-04-12 05:39:08 +00:00
Michel Oosterhof 80e2e92169 rename 'handleLog' to 'write to be inline with twisted. 2015-04-12 05:22:31 +00:00
Michel Oosterhof 82a1f12937 replacing fstat call with stat 2015-04-10 07:33:18 +00:00
Michel Oosterhof 347056a03d after commands, close channel, don't kill session directly 2015-03-31 12:11:50 +00:00
Michel Oosterhof aa11c54140 consolidate auth file names in init() 2015-03-20 06:47:26 +00:00
Michel Oosterhof 93b2961329 cosmetic changes on docstrings 2015-03-20 06:44:14 +00:00
Michel Oosterhof d64b749801 Merge pull request #30 from honigbij/auth-checklogin-ip
IP address checking during authorization
2015-03-20 10:41:24 +04:00
honigbij db22e63bc3 Use self.transport.transport instead of self.transport 2015-03-19 10:24:48 +01:00
honigbij cb1ba514a6 Also set src_ip directly in auth_password 2015-03-18 19:03:09 +01:00
HonigBij 8f343662c0 Formatting of AuthRandom checklogin comment 2015-03-18 16:04:48 +01:00
HonigBij b2794b1aed formatting 2015-03-18 15:47:09 +01:00
HonigBij 2957d00bd8 Retrieve client IP address (src_ip) directly in HoneyPotSSHUserAuthServer 2015-03-18 15:44:13 +01:00
HonigBij dc0e183de3 Auth_class more generic via dynamic lookup
If auth_class is defined in the kippo.cfg config file it is looked
up in the module. When it exists it is used, otherwise fall back
to default UserDB class.
Also auth_class_parameters are made more robust.
2015-03-18 13:53:01 +01:00
HonigBij 4c78039143 Additions for IP address in credentials 2015-03-17 23:02:22 +01:00
HonigBij 0b25c86051 Added AuthRandom class
The AuthRandom class is an alternative to the UserDB class and
implements the checklogin() method.
To enable the class use the auth_class and auth_class_parameters options
in kippo.cfg.
2015-03-17 23:01:53 +01:00
HonigBij 78b98781e3 Added auth_class and auth_class_parameters
The auth_class and class_parameters options in kippo.cfg can be used to
enable an alternative class (instead of UserDB) for checklogin() in auth.py
2015-03-17 23:00:35 +01:00
Michel Oosterhof f07e03b696 Merge pull request #28 from honigbij/utils-update-fsctl
Add 'ls -l' option side the fsctl utility.
2015-03-16 19:13:15 +04:00
HonigBij 3aefb643b3 Move -l option check up 2015-03-16 16:03:42 +01:00
Michel Oosterhof 36a8f37433 Merge pull request #27 from honigbij/utils-update
Added multiple options to createfs.py
2015-03-16 18:38:05 +04:00
HonigBij 1a509bbcbc Added -l (long format) option to ls command 2015-03-16 15:38:05 +01:00
HonigBij 7bca3b7d92 Added multiple options
-v             verbose
  -p             include /proc
  -l <dir>       local root directory (default is current working directory)
  -d <depth>     maximum depth (default is full depth)
  -o <file>      write output to file instead of stdout
2015-03-16 15:23:30 +01:00
Michel Oosterhof 7ffd54561c Fix issue #26 as reported by honigbij 2015-03-15 07:09:41 +00:00
Michel Oosterhof f39e5d6491 stop logging exec cmd, already logged before 2015-03-11 15:33:09 +00:00
Michel Oosterhof 8733cca515 updates to logging to fix race condition 2015-03-11 13:46:14 +00:00
Michel Oosterhof 35d853c8b9 fix hanging session on unknown exec command 2015-03-11 13:03:43 +00:00
Michel Oosterhof 60932db100 update lastlog based on shell close, not on transport close
also don't keep lastlog for exec commands, as unix does
2015-03-11 12:45:03 +00:00
Michel Oosterhof 613e277832 correct newlines onissue file. also doesn't need ^M. 2015-03-10 14:10:08 +00:00
Michel Oosterhof dfae11047a typo on ssh fingerprint 2015-03-10 14:05:06 +00:00
Michel Oosterhof 616f2b745c remove isError, system, cache IP in output module 2015-03-10 10:36:38 +00:00
Michel Oosterhof 87b6368fd6 remove isError by default 2015-03-10 10:14:40 +00:00
Michel Oosterhof e53840355a put all abstract methods together 2015-03-10 09:40:18 +00:00
Michel Oosterhof 79bc99f47a add output module to .cfg.dist 2015-03-10 09:29:29 +00:00
Michel Oosterhof 85b3f0dcbf Merge branch 'master' into output-plugin 2015-03-10 09:22:12 +00:00
Michel Oosterhof 4c43a99ad2 remove warnings for closing ttylog msg 2015-02-26 17:02:23 +00:00
Michel Oosterhof 8928cb10fa display /etc/motd only on interactive shell 2015-02-26 16:48:12 +00:00
Michel Oosterhof b932936597 update exception to 'as' syntax 2015-02-26 11:50:11 +00:00
Michel Oosterhof f1bcd95bf2 updated exception syntax 2015-02-26 11:46:55 +00:00
Michel Oosterhof 81b1ea36ae formatted log message with fingerprint 2015-02-26 08:37:06 +00:00
Michel Oosterhof 2dd5910889 basics working 2015-02-25 19:27:15 +00:00
Michel Oosterhof 317fae3273 a few small changes 2015-02-25 18:17:55 +00:00
Michel Oosterhof d4d3bdbe0e Merge branch 'master' into output-plugin
Conflicts:
	kippo/core/ssh.py
2015-02-25 17:59:41 +00:00
Michel Oosterhof d36e8077e4 forgot changelog as usual 2015-02-25 17:17:03 +00:00
Michel Oosterhof 8cf00addaf don't write ttylog to JSON, is for test only 2015-02-25 17:13:14 +00:00
Michel Oosterhof 356f5f7409 Merge branch 'master' into logging-2 2015-02-25 17:00:00 +00:00
Michel Oosterhof b48e10adb7 changelog update 2015-02-24 09:38:33 +00:00
Michel Oosterhof ea7148c521 support for 'uname -m' 2015-02-24 09:37:04 +00:00
Michel Oosterhof 9e3ef8ffd6 Merge branch 'master' into logging-2
Conflicts:
	kippo/core/protocol.py
	kippo/core/ssh.py
2015-02-20 09:19:06 +00:00
Michel Oosterhof a7f189eed1 stdin log updates
now give log message when writing
and simplify variable storage
2015-02-19 20:21:55 +00:00
Michel Oosterhof e4cd5442ae changelog 2015-02-19 20:03:44 +00:00
Michel Oosterhof 62697b967c remove the screen clear/reset on logout 2015-02-19 20:01:04 +00:00