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!
-
View User Profile
-
Send Message
Posted Jul 18, 2015The plugin works in 1.8 but although the commands are run it says Error: Invalid parameters
-
View User Profile
-
Send Message
Posted Jun 26, 2015How can i set up the console for my website ?
-
View User Profile
-
Send Message
Posted Apr 30, 2014I have edited this plugin to work with 1.7.9. It's a fix that we have tested on another server that is working without any problems but I will soon be creating a entirely new plugin as I don't like using other peoples codes. I will link the new one within the next few days. You can PM for questions.
-
View User Profile
-
Send Message
Posted Mar 16, 2014I cant see console it just says "Error: Invalid parameters" Im using port 5839 but commands work its weird any one else have this problem and if I go to 99.xx.99.60:5839 in console it shows [17:50:39 ERROR]: HTTPConsole: Error while handling an HTTP request. [17:50:39 ERROR]: null java.lang.NullPointerException
at org.theanticookie.bukkit.httpconsole.HTTPRequest.<init>(HTTPRequest.java:38) [HTTPConsole.jar:?] at org.theanticookie.bukkit.httpconsole.HTTPServer.requestHandler(HTTPServer.java:80) [HTTPConsole.jar:?] at org.theanticookie.bukkit.httpconsole.HTTPServer.run(HTTPServer.java:335) [HTTPConsole.jar:?]
-
View User Profile
-
Send Message
Posted Jan 21, 2014@TheAtreidius
+1 for $20!!!
I just checked the GitHub and it shows there is some source for a 1.7 "hackey workaround" (23 days ago)
-
View User Profile
-
Send Message
Posted Dec 23, 2013I have reached out to @Sorroko but have not received a response. For what it's worth, I'm offering $20 to get this fixed. I have yet to find an alternative solution.
-
View User Profile
-
Send Message
Posted Dec 18, 2013Checking in to see if an update is on the way.
Thanks for this plugin. It has been very helpful.
-
View User Profile
-
Send Message
Posted Dec 3, 2013Hi can we get this plugin updated to work on 1.7.2?
Currently sending commands to the server does work but the responses back through the connection are always as follows:
I'd really appreciate an update. I understand 1.7.2 is only in development builds right now and I just want to clarify I'm not using 1.7.2 on my server yet, I'm only testing the compatibility of my plugins at this time and that is why I'm bringing up this incompatibility with you now before the stable builds of 1.7.2 become available.
Thank you :)
-
View User Profile
-
Send Message
Posted Oct 27, 2013I have written a small tool for the plugin in html. Sorry for my language, I translated everything mot a translator program. So here's the code:
It would be nice if you would leave me a thank you since.
-
View User Profile
-
Send Message
Posted Aug 27, 2013Download: Mod edit: removed external download link
-
View User Profile
-
Send Message
Posted Jul 28, 2013Is it possible to send POST variables to the HTTPConsole as well?
-
View User Profile
-
Send Message
Posted Jul 20, 2013please update...
-
View User Profile
-
Send Message
Posted Jun 30, 2013I Made a PHP-Script for This Console Script.
This Plugin is fucking Incredible...
Here The Console PHP-Script...
http://www.dzcp-addons.eu/HTTPConsole_PHP-Script.txt
Have fun by Use this....
-
View User Profile
-
Send Message
Posted Jun 24, 2013I am promoting this plugin to be used with my IRC bot, to allow users to execute commands via IRC if their IRC plugin doesn't have a command feature. The only thing i dislike is the ability, (rather then whitelisting an IP) to make a make a GET request for a password.
i.e, http://my.hostname.net:8080/console?password=herpderptrains&command=op testuser
If this feature is added, i would feel it would be more flexible.
-
View User Profile
-
Send Message
Posted Jun 3, 2013@janototh
You need to urlencode for it to work.
-
View User Profile
-
Send Message
Posted Apr 21, 2013I tryed this:
<?php
function console($command)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://37.**.**.99:8765/console?command=$command");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output=curl_exec($ch);
curl_close($ch);
return $output;
}
console('op testuser1234'');
?>
But it's not work.
Any idea? ( Said: Usage: /op <player>)
-
View User Profile
-
Send Message
Posted Mar 28, 2013Having an error with that part of code : function console($command) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://88.160.*.*:1024/console?command=' . urlencode($command)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output=curl_exec($ch);
curl_close($ch);
return $output; }
echo console('broadcast The Webserver says HI!');
I think i tried everything... I need the function because people can see commands and can exec commands when i use http://88.160.*.*:1024/console?command= Thanks for helping me ! :)
-
View User Profile
-
Send Message
Posted Mar 18, 2013New relase is great but sometimes in console:
-
View User Profile
-
Send Message
Posted Mar 18, 2013i dont know but tis downt work by me
-
View User Profile
-
Send Message
Posted Mar 17, 2013New release, fixes command output and makes it compatible with 1.5 The release also remove the craftbukkit dependency meaning it won't need to be fixed for each new craftbukkit version. It should (hopefully) work for future updates.
As a side note: I am using a new development environment, if you get an unsupported class error please let me know! I have compiled with Java 1.7 but with 1.6 compatibility so it should still work with 1.6.