Fix paths for egrep/fgrep commands (#426)

* Support grep/egrep/fgrep without full path

* Fixed path for egrep/fgrep

* There is no grep/egrep/fgrep in /usr/bin in standard cowrie's fs.pickle.
This commit is contained in:
fe7ch
2017-01-27 09:42:07 +03:00
committed by Michel Oosterhof
parent 0757e057ae
commit 74916c1d72

View File

@@ -124,9 +124,8 @@ class command_grep(HoneyPotCommand):
commands['/bin/grep'] = command_grep
commands['/usr/bin/grep'] = command_grep
commands['/usr/bin/egrep'] = command_grep
commands['/usr/bin/fgrep'] = command_grep
commands['/bin/egrep'] = command_grep
commands['/bin/fgrep'] = command_grep
class command_tail(HoneyPotCommand):