GithubHelp home page GithubHelp logo

codiad-terminal's People

Contributors

ksafranski avatar vrushaligawali avatar winguse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

codiad-terminal's Issues

use BASH shell?

Hey, I'm trying to figure out how to use the BASH shell with this plugin? my server is running Ubuntu 16, and I can make a new user dedicated to Codiad, I mean, I already have user directories for users that don't exist, just so I can store my webpage in a NON-root folder.

Password prompt text inputs should be more prominent and hidden

Currently it uses a dark font which makes it almost invisible to see that one is entering a password.

May be the simplest and safest fix would be to have an <input type="password"> just for that thing. I'd actually prefer to have it in a bright text, at least the cursor to see.

Terminal, and python. EOF error. Auto enter when I try run my script.

Hello. I'm find the Isue in Terminal Plugin installed from Marketplace. I can sign in to it. I can run script. But when i try in script read data from keyboard (like raw_input) and I can't. Python show me EOF Error. It's means, the input is empty. I think, the Codiac Terminal auto "hit enter" when user is ask to input data from keyboard.

error in php exec command

in term.php in the function Execute

you wrote

else if(function_exists('exec')){
exec($this->command_exec , $this->output);
$this->output = implode("\n" , $output);
}

it should be
else if(function_exists('exec')){
$output = array();
exec($this->command_exec , $output);
$this->output = implode("\n" , $output);
}

blocked commands are not blocked

Hi,

As default, for example, 'ssh' is on blocked command list. But it can execute simple way.

  1. /usr/bin/ssh
  2. cd | ssh
    ...

Maybe this is a bug.

ML, Hiro

'JAILED' to cd within project directoly only.

Hi,

I have one enhancement idea.

Now user can change working directory anywhere by cd command. It is not secure.

So how about introduce 'JAILED' constant, and when it is true, user can move within only project directory.

It is not hard to implement, I think.

  1. Once move to user specified directory when used 'cd' command.
  2. Get absolute directory by 'pwd'.
  3. Compare if 'pwd' result will start with project root directory.
  4. If pwd result is not in project root, show error message, then just move to project root.

How about this?

ML, Hiro

fatal: $HOME not set

This is after
git config --global push.default simple

Folder with Codiad inside folder of my project, and I make chmod -R 777 to all files and chown -R www-data:www-data

Commands

No commands work on my Terminal Plugin.

cin c++ code

I don't now why cin statement doesn't wait input in Codiad terminal, whereas the same code works well in normal bash shell.

404 Error when opening the terminal

Hello,

I installed the plugin and tried to start the terminal. But I am getting a 404 when calling this URL while loading the terminal

http://[mydomain.tld]/[BASEPATH TO CODIAD]/plugins/Codiad-Terminal-master/emulator/index.php?id=kd9kdi8nundj

Since the BASEPATH includes the absolute path to my codiad installation, the terminal can not be loaded. I tried to change the basepath in the config.php of codiad, but then the ide is not be loaded anymore.

I guess I just configured something wrong. Can you help me ?

Thanks!
Nadir.

Working directory was this plugin's one when made a project whit absolute path.

Hi,

I'll report a bug.

I made a new project with specified absolute path.

Then I started this plugin, and checked pwd. It showed this plugin's directory, instead of project root directory.

I read term.php. In the beginning of Terminal class, tried to set home by this code :

define('ROOT',WORKSPACE . '/' . $_SESSION['project']);

But when I set absolute path project, ROOT is not correct path, so path wouldn't set.

So, maybe you will change class constructor code. Like this :

            if(!isset($_SESSION['dir']) || empty($_SESSION['dir'])){
                if(substr($_SESSION['project'],0,1) == '/'){
                    $this->directory = $_SESSION['project'];
                } else {
                    $this->directory = rtrim(WORKSPACE, '/').'/'.$_SESSION['project'];
                }
                $this->ChangeDirectory();
            }else{
                $this->directory = $_SESSION['dir'];
            }
            $this->ChangeDirectory();

Sorry, I don't have time to make pull request.

ML, Hiro

Hi

This is not bug report, just enhancement.

On term.php, we can specify command by black list.

When I think to use CODIAD for green user instruction, too many command to inhibit. Maybe, I will permit for only command : cd, pwd, ls and php.

So, please add white list way. Maybe it is useful for others.

ML, Hiro

Terminal in split

Hello,

Really useful, is there a way to open the terminal in a split windows (espcially in the bottom)?

Thanks a lot for the answer

Some strings are replaced

This has happened with other commands, but do not remember which.

Firefox 34.0.5 - Windows 8.1

This problem also occurred in other browsers.
Soon I comment on the existence of problem in GNU/Linux environments.

Authentication Required

I installed Codiad-Terminal in plugins folder.
I activated it trough Plugins option.
It appears in the side panel.

But when I click it, the emulator asks me to enter a password.
I don't know how to handle this.

Regards,

term.php define(' '

In term.php

define('ROOT',WORKSPACE . '/' . $_SESSION['project']);
define(' ','ssh,telnet');

Should the second line be

define('ROOT',WORKSPACE . '/' . $_SESSION['project']);
define('BLOCKED','ssh,telnet');

I'm getting the error:

Notice: Use of undefined constant BLOCKED - assumed 'BLOCKED' in /opt/codiad/html/Codiad-master/plugins/Codiad-Terminal-master/emulator/term.php on line 107

only see "processing..."

When I run a simple ls, the prompt immediately without any response, when I try ls -la, the console stalls with "Processing...". This also happens when I do anything als like cd, echo, ....

ideas?

Why a password

It's be useful that you explain why there should be a password. I guess it's only because all there is no terminal access per user and all Codiad users run under the same UID/GID, and I guess there is no "public" exploit known risks (i.e. from non-logged in users). Those are all guesses and it'd be nice to update the README with a bit of details.

How to kill a process, if you closed the terminal, and in Codiad not let more in this regard

Kent, Hello! A very useful plugin. But there was a problem. Launched in the Terminal Grunt watch — everything is fine, the process is started, everything works. But! It is not clear how to stop the process. Tried ctrl+c, ctrl+b — did not help, the process does not stop. Thought to cheat the system — closed the browser. :-) Didn't help. The process is left running, it does not let me on the page codiad. Now it is not clear how to get out of this state and to kill a running process.

By 'cd' without any arguments/options, move into project root directory.

Hi,

I'll proposal an enhancement.

By cd without specified directory as argument, it means to move back to user's home directory normally.

But almost case, it is a user of web server. Normally, they are www or wwwrun. And this kind user don't have home directory.

So, I think it is better when user input only "cd", then it will move to project root directory.

ML, Hiro

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.