/*## (c) SECURITY EXPLORATIONS    2018 poland                                #*/
/*##     http://www.security-explorations.com                                #*/

/* THIS SOFTWARE IS PROTECTED BY DOMESTIC AND INTERNATIONAL COPYRIGHT LAWS    */
/* UNAUTHORISED COPYING OF THIS SOFTWARE IN EITHER SOURCE OR BINARY FORM IS   */
/* EXPRESSLY FORBIDDEN. ANY USE, INCLUDING THE REPRODUCTION, MODIFICATION,    */
/* DISTRIBUTION, TRANSMISSION, RE-PUBLICATION, STORAGE OR DISPLAY OF ANY      */
/* PART OF THE SOFTWARE, FOR COMMERCIAL OR ANY OTHER PURPOSES REQUIRES A      */
/* VALID LICENSE FROM THE COPYRIGHT HOLDER.                                   */

/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS    */
/* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,*/
/* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    */
/* SECURITY EXPLORATIONS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, */
/* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF  */
/* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE     */
/* SOFTWARE.                                                                  */

import java.lang.*;

public class Proto {
 public static final int CLT_BOX      = 0x01;
 public static final int CLT_CONSOLE  = 0x02;

 public static final int BUFFER_SIZE  = 0x1000;
 public static final int HEADER_SIZE  = 0x06;

 /* BoxServer specific commands */
 public static final int CMD_CLIENTS_COUNT         = 0x80;
 public static final int CMD_CLIENT_ID             = 0x81;

 public static final int CMD_LIST                  = 0x82;
 public static final int CMD_GO                    = 0x83;
 public static final int CMD_EXIT                  = 0x84;
 public static final int CMD_ECMROUTES             = 0x85;

 public static final int CMD_ANNOUNCEMENT          = 0x86;
 public static final int CMD_DATA                  = 0x87;

 /* BoxClient anouncement types */
 public static final int AN_NEW_SERVICE            = 0x01;
 public static final int AN_ECM_DATA               = 0x02;
 public static final int AN_ECM_FORWARDER_STARTED  = 0x03;
 public static final int AN_ECM_FORWARDER_STOPPED  = 0x04;
 public static final int AN_ECM_RECEIVER_STARTED   = 0x05;
 public static final int AN_ECM_RECEIVER_STOPPED   = 0x06;

 /* BoxClient specific commands */
 public static final int CMD_SYS_INFO              = 0x01;
 public static final int CMD_CARD_INFO             = 0x02;

 public static final int CMD_SYS_PWD               = 0x03;
 public static final int CMD_JVM_PWD               = 0x04;

 public static final int CMD_SYS_CHDIR             = 0x05;
 public static final int CMD_JVM_CHDIR             = 0x06;

 public static final int CMD_SYS_DIR               = 0x07;
 public static final int CMD_JVM_DIR               = 0x08;

 public static final int CMD_SYS_GET               = 0x09;
 public static final int CMD_JVM_GET               = 0x0a;

 public static final int CMD_SYS_PUT               = 0x0b;
 public static final int CMD_JVM_PUT               = 0x0c;

 public static final int CMD_SYS_DEL               = 0x0d;
 public static final int CMD_JVM_DEL               = 0x0e;

 public static final int CMD_SYS_FSDUMP            = 0x0f;
 public static final int CMD_JVM_FSDUMP            = 0x10;

 public static final int CMD_SYS_MKDIR             = 0x11;
 public static final int CMD_JVM_MKDIR             = 0x12;

 public static final int CMD_SYS_RMDIR             = 0x13;
 public static final int CMD_JVM_RMDIR             = 0x14;

 public static final int CMD_JVM_THREADS           = 0x15;

 public static final int CMD_ROOT                  = 0x16;
 public static final int CMD_ID                    = 0x17;

 public static final int CMD_OUTPUT                = 0x18;

 public static final int CMD_KDUMP                 = 0x19;

 public static final int CMD_OPENURL               = 0x1a;

 public static final int CMD_QUIT                  = 0x1b;

 public static final int CMD_PLAY                  = 0x1c;

 public static final int CMD_AV_INFO               = 0x1d;

 public static final int CMD_SRV_INFO              = 0x1e;

 public static final int CMD_SYS_CAT               = 0x1f;
 public static final int CMD_JVM_CAT               = 0x20;

 public static final int CMD_SERVICE               = 0x21;

 public static final int CMD_DVR_INFO              = 0x22;

 public static final int CMD_JVM_PROPS             = 0x23;

 public static final int CMD_DIALOG                = 0x24;

 public static final int CMD_HTTPSNIFF             = 0x25;

 public static final int CMD_SYS_PS                = 0x26;

 public static final int CMD_KEYS                  = 0x27;

 public static final int CMD_URIMAP                = 0x28;

 public static final int CMD_SUBS_INFO             = 0x29;

 public static final int CMD_EPG_INFO              = 0x2a;

 public static final int CMD_CAPTURE               = 0x2b;

 public static final int CMD_MPEGSNIFF             = 0x2c;

 public static final int CMD_PAT                   = 0x2d;
 public static final int CMD_PMT                   = 0x2e;

 public static final int CMD_DMESG                 = 0x2f;
 public static final int CMD_REBOOT                = 0x30;

 public static final int CMD_INVOICES              = 0x31;
 public static final int CMD_DSMCCMOUNT            = 0x32;
 public static final int CMD_SSU_INFO              = 0x33;

 public static final int CMD_EMMBLOCK              = 0x34;
 public static final int CMD_KEYINFO               = 0x35;
 public static final int CMD_UPGDNL                = 0x36;

 public static final int CMD_DVRMGR                = 0x37;
 public static final int CMD_EMMSNIFF              = 0x38;
 public static final int CMD_EMMLOAD               = 0x39;

 public static final int CMD_MPEGDUMP              = 0x3a;

 public static final int CMD_HDCP_INFO             = 0x3b;
 public static final int CMD_CHMOD                 = 0x3c;
 public static final int CMD_CHOWN                 = 0x3d;
 public static final int CMD_EXEC                  = 0x3e;//REMOVE (NOT WORKING)
 public static final int CMD_FWFLUSH               = 0x3f;

 public static final int CMD_ECMRECEIVE            = 0x40;
 public static final int CMD_ECMFORWARD            = 0x41;

 public static final int CMD_CONAX_INFO            = 0x43;
 public static final int CMD_CW_INFO               = 0x44;

 public static final int CMD_VODPROPS              = 0x45;
 public static final int CMD_VODECM                = 0x46;
 public static final int CMD_VODSERVER             = 0x47;

 public static final int CMD_VODDUMP               = 0x48;

 public static final int CMD_FAKESUBS              = 0x49;
 public static final int CMD_SCRIPT                = 0x4a;
 public static final int CMD_MEM                   = 0x4b;

 public static final int CMD_TKDINPUT              = 0x4c;

 public static final int CMD_TKDREG                = 0x4d;
 public static final int CMD_TKDREGS               = 0x4e;
 public static final int CMD_TKDCMD                = 0x4f;
 public static final int CMD_TKDRUN                = 0x50;
 public static final int CMD_TKDMEM                = 0x51;

 public static final int CMD_TKDPEEK8              = 0x52;
 public static final int CMD_TKDPEEK16             = 0x53;
 public static final int CMD_TKDPEEK32             = 0x54;

 public static final int CMD_TKDPOKE8              = 0x55;
 public static final int CMD_TKDPOKE16             = 0x56;
 public static final int CMD_TKDPOKE32             = 0x57;

 public static final int CMD_IOMEM                 = 0x58;

 public static final int CMD_STBPROPS              = 0x59;

 public static final int CMD_ISOLATE               = 0x5a;

 public static final int CMD_SCWATCH               = 0x5b;

 public static final int CMD_NOSTBPROPS            = 0x5c;
 public static final int CMD_STBPROP               = 0x5d;

 public static final int CMD_CARDADDR              = 0x5e;
 public static final int CMD_MACADDR               = 0x5f;
 public static final int CMD_SERIAL                = 0x60;

 public static final int CMD_GETCWPK               = 0x61;
 public static final int CMD_SETCWPK               = 0x62;

 public static final int CMD_SECFUSES              = 0x63;

 public static final int CMD_IVODURL               = 0x64;

 //LAST COMMAND
 public static final int CMD_TEST                  = 0x77;
}
