jcubic on devel
update scripts + more restricti… (compare)
jcubic on devel
remove cat for guest users so s… (compare)
jcubic on devel
fix unicode issue #10 (compare)
jcubic on devel
fix perl cgi script (compare)
jcubic on devel
add hataccess to exec cgi files (compare)
jcubic on devel
fix logger, upload and download (compare)
jcubic on devel
restrict dir and write by guest… (compare)
AJAX Error: "*
require('lib/Service.php');
$service = new Service('config.json', getcwd());
if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) &&
$_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
require_once('lib/json-rpc.php');
if ($service->debug()) {
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
ini_set('display_errors', 'On');
}
echo handle_json_rpc($service);
exit;
}
?>
Leash
debug()) { ?>
" rel="stylesheet"/>
/* some styles before I move them to style.css */
/ / / / _ | / / // /
/ // _// |\ \/ /
/_/// |/__///_/
[ LOADING ]
debug()) { ?>
debug()) { ?>
">
debug()) { ?>
">
keyboardeventKeyPolyfill.polyfill();
var d = $.Deferred();
$.leash = d.promise();
$(function() {
$('#shell').css({
overflow: 'auto'
}).leash().then(function(leash) {
$('#splash').hide();
d.resolve(leash);
// terminal is created after async call so we need to get terminal
// instance in a promise otherwise it will be created here.
var terminal = $('#shell').show().terminal();
var $win = $(window);
$win.resize(function() {
var height = $win.height();
terminal.innerHeight(height);
}).resize();
terminal.resize();
});
});
';
}
}
closedir($dh);
}
}
?>"
AJAX Error: "Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in /var/www/html/lib/json-rpc.php:187
Stack trace:
#0 /var/www/html/lib/json-rpc.php(202): get_json_request()
#1 /var/www/html/index.php(21): handle_json_rpc(Object(Service))
#2 {main}
thrown in /var/www/html/lib/json-rpc.php on line 187"
You are running Leash for the first time. You need to configure it
root password: *
Type your server name
server: nicholas-server
Your normal username
username: nicholas
Home directory
home: /home/nicholas
Allow guest sessions (Y)es/(N)o
guest: Y
Execute sudo for user accounts (Y)es/(N)o
sudo: Y
password: **
Detect Shell
Test Shell 'exec' [PASS]
Using shell exec
AJAX Error: "Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/html/lib/Service.php:1110
Stack trace:
#0 /var/www/html/lib/Service.php(944): Service->curl('https://github....')
#1 /var/www/html/lib/Service.php(983): Service->unzip_url(NULL, 'https://github....', 'jsvi-app-master', '/var/www/html/l...')
#2 /var/www/html/lib/Service.php(504): Service->get_repo(NULL, 'jcubic', 'jsvi-app', '/var/www/html/l...')
#3 /var/www/html/lib/json-rpc.php(262): Service->configure(Array)
#4 /var/www/html/index.php(21): handle_json_rpc(Object(Service))
#5 {main}
thrown in /var/www/html/lib/Service.php on line 1110"
rohid
username it will use sudo -u rohid
I thougth that it make no sens to run sudo -u rohid sudo command
not sure if that command would work in bash.