SBox Control Script v1.4b

Not open for further replies.


Staff member
Super Moderator
These are the new environment variables:
# Environment Variables
__SET_TIME_DREAM = "1"  # If your dream does not have antenna enable this function to put in time: 0 = OFF | 1 = ON
__FOLDER_BIN = "/ Var / bin"  # folder where the files are bin: / usr / bin | / var / bin
__TIME_TEST = "20"  # seconds it takes to return to see if the EMU / CardReader is working
__FILE_EMU = "Sbox"  # Name of file we want to control Bin
__SET_START_EMU2 = "1"  # If you need to use the EMU2: 0 = OFF | 1 = ON | 2 = Reboot On EMU2 Bug
__FILE_EMU2 = "Cccam"  # Name of file we want to control bin, second EMU
__FILE_LOG = "/ Tmp / sbox.log"  # log file name you wish to test
__FILE_LOG_MAX_SIZE = "8000000"  # Maximum size of the log file: 100000 = 100kb | 1000000 = 1Mb
__SET_LIST_HOSTS = ""  # server to check whether we have internet:
__SET_TEST_WAN = "1"  # If we control our internet connection: 0 = OFF | 1 = ON
__SET_TEST_WAN_TIME_SLEEP = "60"  # If no Internet, we expect 8 seconds before rechecking.
__SET_MAX_SPACE_USED = "90"  # ceiling space used: 90% Used

This option is useful when our dream is not connected the antenna cable.

One may think that take time and with the correct date, it is nonsense when antenna is not used, because this dream is just a server.

Well, usually the servers, aunq autoreinicia are CCcam that alone, for cool to restart once a day, usually 06:30 am, if you get up with piles screwed!.

What happens if you have no time setting the dream ... it may not work the autoreinicio using crond, linux watch, and something so simple can become an inferno.

The problem with this, is that the dream does not have a watch battery to ensure that the date and time are saved on every restart or if the power goes out.

Well, if you activate this option, the dream automatically every time the restart or autoreinicie daily configured at boot time and date automatically, the latter may not be accurate, but not important.

Here we tell if our dream uses

* / Var / bin
* / Usr / bin

If you want to use Linux, Ubuntu or Debian, this is where we must put the address NewCS bin file if you use it SBox SBox.

Variable to control the refresh of the script, by default we have tested in 18 seconds, 18 seconds does it take to see if NewCS still online.

If we lower the 18 seconds, which can occur, esq NewCS detects that the script stopped working when it is not, and restarting NewCS happen, or SBox, which uses.

Anyway, it is interesting to check it out yourself, maybe your network is more quiet and if you go down to 15 or 10.

This is where we put the bin file name we use. If your bin is called: Newcs_1.67

We must put that name in the variable __FILE_EMU = "Newcs_1.67"

If we use SBox: SBox_0.0.5

Then the same thing __FILE_EMU = "SBox_0.0.5"

Normally if you use CCcam or NewCS use MBox also because this variable we activate our second EMU.

It has 3 positions:

0. Second EMU OFF -> not start the second EMU
1. Second EMU ON -> Starts the second EMU at the beginning of Script
2. Second EMU ON -> Start to start the second EMU besides the script and restart the EMU2 whenever the EMU1 exploit, this is interesting for people who say they lost NewCS Reshare to restart, in my case I have never seen it happen But if people say it will be for something.

This is where we put the bin file name we use for the EMU2. If your bin is called: CCcam_2.1.4

We must put that name in the variable __FILE_EMU = "CCcam_2.1.4"

If you want to use MBox: MBox_0.6

Then the same thing __FILE_EMU = "MBox_0.6"

Here's where this LOG file that we will control.

The LOG file you must create and manage EMU1, in this case SBox NewCS or, later will explain how to enable and configure.

This script looks complicated but is actually very simple and basic, if NewCS was a not a CardReader EMU as it otherwise might do something more sophisticated, the problem is not an EMU esq, is just a CardReader.

For SBox is very interesting as it is a CardReader / EMUServer, this means that you can get their hands on many sites using Enigma global variables, these variables could be used to determine whether still working or exploited, and all this without using a log file.

This variable is the maximum size of the log file, so our dream will not stay free space.

We are testing in a DreamBox 500 +, this has much more memory, defaults have left 8MEG.

This helps control our dreambox has the internet if the modem or router is restarted or burned, the script stops and enters an infinite loop where every 30s if we double check the internet.

Until we have the internet the script will do nothing more than that.

When the Internet becomes, the script exits the loop and continues on his way.

This variable contains the list of hosts that we use to test the internet connection, in this case I'm using google it is the fastest for my network, if you have a host can use it faster.

Typically, use 2 if you want to add a third no problem, you can use as many as you like, always remembering that each host will make the script more late in making its findings.

This is the time in seconds, to wait before returning to check if we have internet, so this setting only applies in the case of not having internet, when the Host is give an error when the script stops until recheck Internet.

New variable to control the free space on our Dreambox, is a percentage value, defaults to 90%, remember that only write the number without the% sign

You need to activate or SBox NewCS LOG

NewCS: newcs.xml

SBox: sbox.cfg
server_only=1            # 0=emu+newcamd server 1=only newcamd server
log=1                    # 0=no log 1=log to /tmp/sbox.log

Thanks to terrorman
Not open for further replies.