Is it possible to, remotely using MySQL, to start a service on the server, or to run any file? What about FTP, can you tell it to run a file? I ask because a developer I work with has killed apache, and locked us out of RDP.
Asked
Active
Viewed 126 times
0
-
RDP not working because apache stopped? "run any file"? Sounds like you're looking to hack a solution to a problem you don't really understand. – symcbean Mar 21 '11 at 12:51
-
No, I understand the problem. The developer stopped apache, and I don't know what he did to cause RDP to stop working, I'm just wondering if It's possible to use MySQL or FTP to find out what's going on. – James T Mar 21 '11 at 12:53
-
1No, it is not possible (without exploiting security vulnerabilities) to start stuff remotely with neither FTP nor MySQL. Perhaps you should talk with the developer, and ask him/her to bring up apache again? – MattBianco Mar 21 '11 at 13:37
-
Heh, that's the issue, he doesn't have access either. He will have to go to the server I think. – James T Mar 21 '11 at 14:42
4 Answers
1
Is your FTP service able to write to C:\Windows\Tasks? Make a .job file to issue a "net start" and throw it in there. Seems worth a shot.

db2
- 2,180
- 3
- 15
- 19
0
If you can connect to the administrative share of the machine, then you should be able to connect to the services manager remotely.
Control Panel -> Administrative Tools -> Services. Then right-click on "Services (Local)" in the left-hand pane, and select "Connect to another computer..."

Steve Mayne
- 1,001
- 6
- 5
-
Thanks for the suggestion, but all ports are closed but FTP, and MySql. Not sure why RDP won't respond. – James T Mar 21 '11 at 12:46
-
1I'm afraid I think you're out of luck. If your FTP or MySQL servers did allow arbitrary execution of code that would be very scary indeed (from a security point of view). In MSSQL you have master..xp_cmdshell which allows execution of external programs, but there isn't anything like this in mysql. – Steve Mayne Mar 21 '11 at 13:05
-1
Try the PsExec tools.
This should allow you to remote in and enable Services.
Psexec net start <service name>

Matt
- 579
- 5
- 11
- 24
-
And what port does it use? I'd guess not FTP or MySQL, it didn't work. – James T Mar 21 '11 at 12:53
-
For using PSexec on the remote machine, the remote machine should have opened port 445 TCP (SMB). – Matt Mar 21 '11 at 12:57
-