BackDoor

Issue 1685: Starting Scilab with BackDoor from API

Reported by Jan S., Apr 19, 2017

Software:
Ubuntu 16.04.2
Scilab 5.5.2
BackDoor 0.2

When I run 'sudo scilab-adv-cli' in putty, BackDoor will start and 
listen on port. 

I want to run scilab server from API, but when I run from PHP

shell_exec('sudo scilab-adv-cli 2>&1');  the result is

Start Toolbox BackDoor 
Load macros 
Load gateways 
Load help 
Opening back door 
Killed

I don't know why is killed. I try run never-ending while

shell_exec('sudo scilab-adv-cli -e "i = 1; while i < 10  
end; " 2>&1');

but is also killed after few seconds.

I tried this at scilab without BackDoor module, and the proces 
scilab-adv-cli is running until I manually kill him. With BackDoor 
is killed after few seconds.



Steps to reproduce the problem:

1. (from PHP) shell_exec('sudo scilab-adv-cli 2>&1'); 
2. or shell_exec('sudo scilab-adv-cli -e "i = 1; while i < 
10  end; " 2>&1');

Expected result:

Start Toolbox BackDoor 
Load macros 
Load gateways 
Load help 
Opening back door 
BackDoor: listening to connections on TCP port 27020


Actual result:

Start Toolbox BackDoor 
Load macros 
Load gateways 
Load help 
Opening back door 
Killed
(sometimes it returns also 'BackDoor: listening to connections on 
TCP port 27020' but after this is still 'Killed' )

I wrote the problem at stackoverflow, too
http://stackoverflow.com/questions/43410361/runnig-scilab-with-backdo
or-from-php

Comment 1 by Jorge832 Nolan, Feb 13, 2019

The problem is probably that the Backdoor opens a TCP port for 
receiving connections. Check your PHP module to see if it has 
permission to open such a port https://tellthebell.us.

Created: 2 years 1 month ago by Jan S.

Updated: 4 months 5 days ago

Status: New

Followed by: 1 person

Labels:
Priority:Medium
Type:Defect