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!
Thank you all for using HTTP Console, I will do my best to get a release for 1.4.6 asap. Although I will no longer be updating HTTP Console very often as mods are becoming easier to install and develop and bukkit will soon (in my opinion) be replaced by the official server api. All in all, I shall be updating asap. Merry Christmas! ;)
Any planned date for update?.
Will you be updating this for 1.4.6? It doesn't seem to work anymore. :(
I rely on it to run quite a few different scripts on my server.
@Sorroko Error:
http://pastebin.com/raw.php?i=EcsPXeWH
Thanks for the awesome plugin
@externo6
Sorroko, please stop it from doing this when performing a port check on the console.
Thank you! eg.
Console output:
Hello, we are getting this every time a command is sent via http console
14:40:01 [SEVERE] HTTPConsole: Error writing HTTP request output stream 14:40:01 [SEVERE] Broken pipe java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.DataOutputStream.writeBytes(Unknown Source) at org.theanticookie.bukkit.httpconsole.HTTPResponseHeaderHelper.outputHeaders(HTTPResponseHeaderHelper.java:60) at org.theanticookie.bukkit.httpconsole.HTTPServer.requestHandler(HTTPServer.java:92) at org.theanticookie.bukkit.httpconsole.HTTPServer.run(HTTPServer.java:335) 14:40:01 [SEVERE] HTTPConsole: Error writing HTTP request output stream 14:40:01 [SEVERE] Broken pipe java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.DataOutputStream.writeBytes(Unknown Source) at org.theanticookie.bukkit.httpconsole.HTTPResponseHeaderHelper.outputHeaders(HTTPResponseHeaderHelper.java:60) at org.theanticookie.bukkit.httpconsole.HTTPServer.requestHandler(HTTPServer.java:92) at org.theanticookie.bukkit.httpconsole.HTTPServer.run(HTTPServer.java:335)
@Ta6akus3
Just code that into the php script.. /
Or
@ryan_the_leach
This should NEVER be live on your external IP. If you MUST then add IPs to the white list and/or allowed-hosts.
Although authentication would be nice, if you keep it locked down you will be safe.
Hello,
it's possible to add a gestion to white/Black-list with mysql storage plz ! :-)
@laseromich Well it still should work, but ill update something. Ill see if I add basic http authentication (should be fun...) ;)
update plz... with out changes... but only update something :3
@ryan_the_leach It does, sort of, you can whitelist ips. I recommend using this with a server, whitelist the server, then send requests through the server (i.e. you could add your own auth or only allow certain commands) EDIT: By server I mean web server, such as apache and php
Please, Please, Please tell me this has some form of authentication happening.
otherwise malicious user:
1. /plugins, 2. see's httpconsole, 3. (googles) 4. ops himself 5. griefs.
@bloudman There is no need for a config option, this is simple php, you could also dynamically poll with javascript, I would advise jQuery and ajax
HI, Can we return to a webpage when the command is sent. Because i need that and i have looked for in config but i did not find.
If there is a PHP page who is generate by the pluggin I can change this one but I didn't find this to...
(sorry for my english :) )
Fucking great plugin, thanks!!
@Sorroko
Ok, I hadn't seen any real problems with the backups, and it still normally reports World Saved.
Thanks.
@LukeHandle Sorry I haven't replied, it is a known issue although I don't think it would be easy to solve. It seems that despite the error it still saves so I would encourage you to ignore it for now.
@Sorroko
Sorry to bother you, have you had the ConcurrentModificationException before when trying to save?
ConcurrentModificationException when attempting "save-all" https://pastebin.com/raw.php?i=Kv8CFR2E
That's with a 3 second sleep between "save-off" and "save-all".
Is this as major an issue as it sounds? Or can I ignore it.... It doesn't always occur, but mostly it does.
Thanks for keeping this plugin going!