mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
78cf01c1fdff31c27c91bbe8d7a93462d9d826e2
Added SSL certificate capability to butterfly. Butterfly now has the --secure option, which requires the following files to be present in the local folder: - butterfly.crt - butterfly.key - butterflyca.crt This option forces butterfly to use HTTPS and secure WebSockets. The connection still requires a username and password. There is also the --reallysecure option, which forces the user's browser to provide a client side certificate. The certificate is validated against butterflyca.crt, before allowing the connection. Afterward, the commonName in the certificate is used as the username for the connection. The connection still requires the user to provide a password. Also forced a default user "daemon" to be returned by the User class, as it prevents someone from finding valid users on the remote host.
ƸӜƷ butterfly
Description
Butterfly is a tornado web server written in python which powers a full featured web terminal.
The js part is heavily based on term.js which is heavily based on jslinux.
Try it
$ pip install butterfly
$ butterfly.server.py
Then open localhost:57575 in your favorite browser and done.
Author
License
butterfly Copyright (C) 2014 Florian Mounier
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Description
Languages
CoffeeScript
31.3%
JavaScript
27.8%
Python
18.2%
CSS
17.9%
Sass
4%
Other
0.8%
