If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:shellinabox.lua

From BoxMatrix
(Redirected from shellinabox.lua)


BoxMatrix >> Webinterface >> shellinabox.lua @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

UI-Structure UI-Modules HTML-Files XML-Files Lua-Scripts Javascript Browser SSI-Files SSI-Directives HTML-Text Event-Text Help-Pages CSS-Files Graphics Research

Lua-Script

Goto:   Dependencies   -   Model-Matrix   -   SMW-Browser

Details

shellinabox.lua launches shellinaboxd in CGI mode.

If called from the Internet via HTTPS on Port-44395-44405-tcp it launches shellinabox_launcher which runs shellinaboxd.
If called from the LAN via HTTP on Port-44406-44416-tcp it launches shellinaboxd directly.

So far there's no evidence in the system how these ports are served and opened to the internet.

7490 fw 6.35 full quote - formatted for readability:

<?lua

box.header("")

if box.frominternet() then
    os.execute("

        /sbin/shellinabox_launcher 
            --cgi=44395-44405 
            -n -g 0 -u 0 
            --service=/:0:0:/:'/bin/sh -c /sbin/ar7login_frominternet'

    ")
else
    os.execute("

        /sbin/shellinaboxd 
            -t 
            --cgi=44406-44416 
            -n -g 0 -u 0 
            --service=/:0:0:/:'/bin/sh -c /sbin/ar7login'

    ")
end

?>

shellinabox.lua is unconditionally included in menu_data.lua:

pageData["shell"] = {
  ["show"] = true,
  ["wiz"] = true,
  ["lua"] = "lua/shellinabox.lua"
} or nil

shellinabox.lua is conditionally shown in support.lua with description text if:

This means it is NEVER shown in release or Labor or Inhaus firmware.

The german info text printed in support.lua if all conditions are met (from htmltext_de.db):

FRITZ!Box Console

Diese Funktion ermöglicht Entwicklern den direkten Zugriff auf die Console der FRITZ!Box mit dem Browser. 

Dependencies

Daily updated index of all dependencies of this script. Last update: 2024-03-28 08:24 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.
If an Object includes itself then this is a file with the same name but another Path and the dependencies are merged.

Relation Typ Object Mod Firmware Info Origin
0 dependencies for this script

Model-Matrix

Daily updated index of the presence, path and size of this script for each model. Last update: 2024-03-16 07:08 GMT.
Showing all models using this script. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size/Bytes
FRITZ!Box WLAN 3270 5.21 - 5.54 /usr/www/<oem>/lua 142 - 291
FRITZ!Box WLAN 3270 v3 5.21 - 5.54 /usr/www/<oem>/lua 142 - 291
FRITZ!Box WLAN 3270 IT 5.23 - 5.52 /usr/www/<oem>/lua 142 - 291
FRITZ!Box 3272 5.50 - 6.04 /usr/www/<oem>/lua 291 - 304
FRITZ!Box WLAN 3370 5.07 - 6.04 /usr/www/<oem>/lua 142 - 304
FRITZ!Box 3390 5.50 - 6.04 /usr/www/<oem>/lua 291 - 304
FRITZ!Box 6320 Cable v1 6.03 - 6.04 /usr/www/<oem>/lua 304
FRITZ!Box 6340 Cable 5.24 /usr/www/<oem>/lua 142
FRITZ!Box 6360 Cable 5.07 - 6.04 /usr/www/<oem>/lua 142 - 304
FRITZ!Box 6810 LTE /usr/www/<oem>/lua 291 - 304
FRITZ!Box 6840 LTE 5.08 - 6.04 /usr/www/<oem>/lua 142 - 304
FRITZ!Box 6842 LTE /usr/www/<oem>/lua 291 - 304
FRITZ!Box Fon WLAN 7240 5.09 - 6.06 /usr/www/<oem>/lua 142 - 304
FRITZ!Box Fon WLAN 7270 v2 5.07 - 6.06 /usr/www/<oem>/lua 142 - 304
FRITZ!Box Fon WLAN 7270 v3 5.07 - 6.06 /usr/www/<oem>/lua 142 - 304
FRITZ!Box 7272 5.55 - 6.04 /usr/www/<oem>/lua 304
FRITZ!Box 7312 5.23 - 6.03 /usr/www/<oem>/lua 142 - 304
FRITZ!Box Fon WLAN 7320 5.09 - 6.03 /usr/www/<oem>/lua 142 - 304
FRITZ!Box 7330 5.06 - 6.03 /usr/www/<oem>/lua 142 - 304
FRITZ!Box 7330 SL 5.08 - 6.03 /usr/www/<oem>/lua 142 - 304
FRITZ!Box Fon WLAN 7340 /usr/www/<oem>/lua 142 - 304
FRITZ!Box Fon WLAN 7360 SL 5.07 - 6.03 /usr/www/<oem>/lua 142 - 304
FRITZ!Box Fon WLAN 7360 v1 5.06 - 6.06 /usr/www/<oem>/lua 142 - 304
FRITZ!Box Fon WLAN 7360 v2 5.22 - 6.06 /usr/www/<oem>/lua 142 - 304
FRITZ!Box 7362 SL 5.53 - 6.03 /usr/www/<oem>/lua 291 - 304
FRITZ!Box Fon WLAN 7390 5.07 - 5.22 /usr/www/<oem>/lua 142 - 304
FRITZ!Box 7490 (main) 5.57 - 6.35 /usr/www/<oem>/lua 304
FRITZ!WLAN Repeater 300E 5.09 - 6.04 /usr/www/<oem>/lua 142 - 304
FRITZ!WLAN Repeater 310 A 5.24 - 6.04 /usr/www/<oem>/lua 291 - 304
FRITZ!WLAN Repeater 450E 6.00 - 6.04 /usr/www/<oem>/lua 304
FRITZ!Powerline 540E 5.58 - 6.25 /usr/www/<oem>/lua 304
FRITZ!Powerline 546E 5.50 - 6.25 /usr/www/<oem>/lua 291 - 304
32 models use this script

SMW-Browser

Information is currently being retrieved from the backend.