diff --git a/bin/createfs b/bin/createfs index c61f69fe..62974426 100755 --- a/bin/createfs +++ b/bin/createfs @@ -4,7 +4,7 @@ # This program creates a cowrie file system pickle file. # # This is meant to build a brand new filesystem. -# To edit the file structure, please use './utils/fsctl.py' +# To edit the file structure, please use 'bin/fsctl' # ############################################################## @@ -20,8 +20,7 @@ VERBOSE = False blacklist_files = [ '/root/fs.pickle', - '/root/createfs.py', - '/root/.bash_history', + '/root/createfs', '*cowrie*', '*kippo*', ] diff --git a/bin/fsctl b/bin/fsctl index 13255ea5..7464a059 100755 --- a/bin/fsctl +++ b/bin/fsctl @@ -1,21 +1,21 @@ #!/usr/bin/env python ################################################################ -# This program creates a command line interpreter used to edit +# This is a command line interpreter used to edit # cowrie file system pickle files. # # It is intended to mimic a basic bash shell and supports # relative file references. # # Do not use to build a complete file system. Use: -# /opt/cowrie/utils/createfs.py +# /opt/cowrie/bin/createfs +# # Instead it should be used to edit existing file systems # such as the default: /opt/cowrie/data/fs.pickle. # # Donovan Hubbard # Douglas Hubbard # March 2013 -# ################################################################ import os, pickle, sys, locale, time, cmd @@ -639,7 +639,7 @@ class fseditCmd(cmd.Cmd): "gets a new client, it reads from the pickle file and loads " + \ "the fake file system into memory. By default this file " + \ "is /opt/cowrie/data/fs.pickle. Originally the script " + \ - "/opt/cowrie/createfs.py was used to copy the file system " + \ + "/opt/cowrie/bin/createfs was used to copy the file system " + \ "of the existing computer. However, it quite difficult to " + \ "edit the pickle file by hand.\n\nThis script strives to be " + \ "a bash-like interface that allows users to modify " + \ diff --git a/cowrie.cfg.dist b/cowrie.cfg.dist index 67822267..11558ce5 100644 --- a/cowrie.cfg.dist +++ b/cowrie.cfg.dist @@ -55,7 +55,7 @@ contents_path = honeyfs # File in the python pickle format containing the virtual filesystem. # # This includes the filenames, paths, permissions for the Cowrie filesystem, -# but not the file contents. This is created by the createfs.py utility from +# but not the file contents. This is created by the bin/createfs utility from # a real template linux installation. # # (default: fs.pickle)