HTTPConsole
HTTPConsole - Issue Console Commands Over HTTP
Now under new management, And has been revived! Originally by BlueJeansAndRain: Original thread: HTTPConsole - Outdated Thread
Download
Do not use v2.2.0 use 2.2.1 instead
HTTPConsole Latest Stable Build
Source Code and Issues/Feature Requests
Features
- Issue any command over HTTP that you can issue on the console.
- Change the listener IP address, port, and log-level through the config file.
- Get back the output of the issued command. NOTE: This only works for some commands, specifically commands that are not "threaded".
- Accepts GET and POST (url or json encoded) requests.
- Client IP address whitelist/blacklist.
- Host name filtering.
Usage
Client side scripts such as javascript are not recommended since any action could easily be performed. Please stick to using server side scripts, (i.e. make javascript query a php script)
Make requests to http://127.0.0.1:8765/console?command=<command> (assuming you're using the default port and the server is running on localhost). If you're running your server locally, just open up your browser and type http://127.0.0.1:8765/console?command=save-all and SAVE THE WORLD!
TroubleShooting
- Change the "port: 8765" configuration option to a different number. Valid values are 1024 - 65565
- Make sure your firewall is allowing access to the port.
Please post all issues or feature requests on GitHub!
@ibankzero Thats a CommandSign error, try their plugin dev. ;)
[SEVERE] http://pastebin.com/XgavuXSv
@Sorroko
Yeah the closing is wrong. I just haven't worked with it for awhile. I'm going to try the bash example and see if that works.
Didn't work:( Tried setting the ip to any and reloading and didn't work and the whitelist any didn't work ether
@THUNDERGROOVE
Alright, so a couple of things I would try:
Set ip-address: 127.0.0.1, to ip-address: any for testing.
Also for now I would try to set add - any to client-ip-whitelist.
That way you can make sure that any ip will work for now.
I see nothing wrong with the php. Only shouldn't it close as ?> instead of php?>. Normally its:
<?php
//code here
?>
@Sorroko
Yeah I figured it was my end. http://dl.dropbox.com/u/51472257/HTTPconsole%20stuff/consolelogged.php.txt http://dl.dropbox.com/u/51472257/HTTPconsole%20stuff/console.php.txt http://dl.dropbox.com/u/51472257/HTTPconsole%20stuff/config.yml
the console.php send the password to consolelogged.php
and my config.yml is also there
@THUNDERGROOVE Make sure the server is accessible from 127.0.0.1, make sure 127.0.0.1 is in the configs whitelist. It doesnt seem like a plugin problem, seems more likely that either the script isnt running or your web server cant access the server.
@Sorroko
Using the php function you provided. I'm using 127.0.0.1 for the ip and the default port in the config.yml file and it matches up in the php too.
oh and I've tried different ports too and Bukkit isn't outputting any errors when the plugin starts.
@THUNDERGROOVE How are you sending the commands? Make sure you have the right port and ip. Whitelist the servers ip in the config and make sure its not sending commands from the client.
I'm having issues setting this up. I got a webpage with an admin login setup with a textbox that you can issue server commands from but the server never processes them.
@LukeHandle Cheers, I'll add it right now :)
On CentOS 5.8 The version of Curl that supports:
"--data-urlencode"
is not readily available, so I came up with this. It uses w3m and provides a response as well.
Thanks for (edit:continuing) this brilliant plugin!
Possibly add this in the CLI example as an alternative?
@Hsenor you would send pass it to a url such as http://127.0.0.1:8765/console?command=whitelist add Hsenor (Just type that in you browser) to add it from a website take a look at the php script http://dev.bukkit.org/server-mods/httpconsole/pages/php-example/
How would I go about running a command like /whitelist add HSenor?
You are amazing! Perfect, simple, exactly what I was looking for. BIG thanks bro.
@kemmeo and @A1ter Both the ip adress and whitelist work with ip addresses not with usernames, I also dont believe that the domain will work. Instead find the ip that your domain points to or the computer that should be allowed to access it, if on a website this should be the ip of the server. Hope that solves your problems ;)
Works Great!
I just put it in the folder and there we go^^
one thing I'm curious about is.
if I were to add names to a whitelist with this,
how would i manage this?
Regards Kemmeo
ps keep it the plugin going, its great!
Need help setting up, It doesn't work for some reason, I need it to only allow acces for mclietuva.eu domain, but it doesn't work, could someone showme how to write it properly? And could someone explain how this: ''ip-address:'' works?
Can you add a username/password support? im too lazy :p
Oh balls, Ill fix that now! ;)
Jar doesn't contain plugin.yml? W00t?!