jcubic / leash Goto Github PK
View Code? Open in Web Editor NEWBrowser Shell
Home Page: http://leash.jcubic.pl/
License: MIT License
Browser Shell
Home Page: http://leash.jcubic.pl/
License: MIT License
__ _______ ______ __ / / / __/ _ | / __/ // / / /__/ _// __ |_\ \/ _ / /____/___/_/ |_/___/_//_/ v. 1.20.0 ---------------------------------------------------------------------------- This is web application that will give you access to the shell, you will not need root priviliges, ssh or telnet only php based hosting. You only need one of the following: * php exec function enabled * php shell_exec function enabled * Enabled CGI with python or perl on the server ---------------------------------------------------------------------------- :: Shell Limitations ---------------------------------------------------------------------------- * you will not be able to execute interactive commands like `php -a` * you can't create a function and run it in next command (because each command is run as separated process) ---------------------------------------------------------------------------- :: Features ---------------------------------------------------------------------------- * mysql command * sqlite command * python interpreter * javascript interpreter * jargon command (will display definitions from jargon file) * ymacs editor (Emacs clone for the web) * vi editor (using jsvi) and clone to lib/apps directory * tab completion * File Drag & Drop upload (using HTML5) you can upload files that are bigger then the php limit * wikipedia command that display wikipedia articles * rfc command where you can read RFC documents * record command where you can save commands in hash and rerun them when you refresh * view html pages as text on the terminal, when clicking on the link * github repos browser (with cat/less/cd/ls sub commands) * guest and sudo options: * guest, if set, will have limited access to shell, list of commands are configurable from config.json * sudo option, if set, will allow to execute commands are real unix user to create new user you will need to use linux command line (adduser command from real terminal) and you will need to have leash user with the same name, (to add user from leash you need to be root and execute adduser command) and have sudo access without password for apache user ---------------------------------------------------------------------------- :: Requirements ---------------------------------------------------------------------------- * php >=5.5 with .htaccess with modules curl, mbstring, json and zip * to have full use of leash you will also need one of functions enabled: * exec * system * shell_exec * or cgi (perl or python in cgi-bin directory) * if you want to have mysql or sqlite commands you need to install those databases and appropriate php modules * you may also want to have programm unbuffer installed (in ubuntu it's provied by package expect - actually it's expect script), it will make not interactive shell act like real terminal (tty) ---------------------------------------------------------------------------- :: Chat ---------------------------------------------------------------------------- https://gitter.im/jcubic/leash ---------------------------------------------------------------------------- :: License ---------------------------------------------------------------------------- Copyright (C) 2013-2023 Jakub Jankiewicz Released under the MIT license
I've test it on iPhone, the keyboard can't display after login.
Hello,
I uploaded all file into server, but when open index.php in my browser I got this error. Could you help me out?
{"jsonrpc":"2.0","result":null,"id":null,"error":{"code":100,"message":"Server error","error":{"name":"PHPErorr","code":2,"message":"unlink(\/home\/content\/a2pewpnaspod04_data03\/66\/41247166\/html\/usr\/php\/leash\/config.json): No such file or directory","file":"\/home\/content\/a2pewpnaspod04_data03\/66\/41247166\/html\/usr\/php\/leash\/lib\/Service.php","at":249,"line":" unlink($filename);"},"name":"JSONRPCError"}}
When I run most commands, or even "test", I get "/bin/bash: .bashrc: No such file or directory".
I'm probably being stupid, but I would like some help. Thanks!
Is any text editor supported ? I tried with nano, vi and gedit without success.
I download the zip leash-master
Lancer le terminal et choisir un mot de passe root. ( TestAdmin )
Choisir un serveur ( localhost ) ?
Choisir un nom d'utilisateur ( Admin )
Choisir le répertoire home ( leash-master )
Autoriser les invités ( N )
Autoriser sudo pour les comptes utilisateurs ( N )
Mot de passe : TestAdmin
Login -> ( Admin / TestAdmin )
-->
jargon hacker
:'(
could not find driver
What can i do for use jargon ?
public function configure($settings) {
if ($this->installed()) {
throw new Exception("You can't call this function, leash already installed");
}
line 449: if ($settings['username'] == 'guest' || $settings['username'] == 'root') {
throw new Exception("You can't use " . $settings['username'] . " as userna".
"me because it's special account");
}
It does not like $settings['username']
Hello,
During installation, I got the below error. I think my host does not allow curl.
Is it checking github to get version updated?
Is there any way to by pass this check?
Detect Shell
Test Shell 'exec' [PASS]
Using shell exec
curl error Failed to connect to github.com port 443: Connection refused
Thank you!
There is issue in unicode characters as output of shell command the same as input form user.
for instance echo ą
or ls in directory that content file zając.
Hey, great work with Leash, it's looking like a pretty promising project. Would you consider moving it and its components like jsvi to MIT? We'd like to integrate leash in our workflow, and possibly contribute back if we make changes since it's written in our stack, but GPL is very restrictitive and we have some incompatibilities with it. If you could consider the switch it would save of us a lot of pain, since otherwise Leash fits the bill for us. Thanks!
Where should I install exec or shell-exec on Mac using MAMP? I've tried many locations, none of which have worked.
EDIT: I'm asking because without this, apparently no commands work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.