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 september. Please use hippie2000@webnmail.de instead.

0
U

Property:luacgi (avmcmd)

From BoxMatrix


BoxMatrix >> Shell-Commands >> luacgi (avmcmd) @ 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 Gallery

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

Info
  
Name-Collision - multiple objects in this wiki use the name luacgi!
luacgi (avmcmd) Lua interpreter CGI.
luacgi (process) Lua interpreter CGI.

AVM-Command

Goto:   Libraries  -  Source  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

luacgi is a Lua interpreter CGI program. Lua is a simple and efficient scripting language.
Unlike Perl or PHP its memory and storage footprint makes it an excellent choice for embedded usage like in FRITZ!OS.
Initially AVM only provided this CGI interpreter, which requires webserver login, but later they added luavar for shell usage.

Lua scripts can be textual or compiled bytecode, both use the .lua file extension.
AVM uses this fact to hide the source of the mobiled Lua plugins, see the Plugins section there.

Like all AVM CGI programs luacgi can be launched as luacgi_notimeout to disable connection timeout.

Libraries

Lua uses textual .lua includes to extend its functionality but also Lua extended Shared-Libraries.
These are included like textual lua includes using the library name without the .so extension.
Example from fax_send.lua which includes libfaxsendlua.so:

fax = require("libfaxsendlua")

New Lua enhanced libraries (and Lua capable AVM-Commands) could be found by their dependency to liblua.so.

This is a subset of the Shared-Libraries section, filtered for the Lua-Library term:

Daily updated index of all shared libraries found scanning Firmware-Probes . Last update: 2023-01-27 05:54 GMT.
The label (lib) in the Library column shows there are other objects in this wiki using this name.
The Mod column shows the amount of models using the respective library. Click the column header to sort by this number.
You can hover or click a possible Link in the Type column to see the target of that link.

Source

The names of source files compiled into an executable often help to understand function blocks (and show gaps in the docs).
fw 7.39 source files:

$ strings /usr/www/cgi-bin/luacgi | grep -e '\.c$' -e '\.cpp$'

ar7/ctlmgr/src/luacgi/main.c
ar7/ctlmgr/src/luacgi/cgi.c
ar7/ctlmgr/src/luacgi/display_page.c
ar7/ctlmgr/src/luacgi/escape_lua.c
ar7/ctlmgr/src/luacgi/lua_json.c
ar7/ctlmgr/src/luacgi/script_access_rights.c  

Dependencies

Daily updated index of all dependencies of this command. Last update: 2023-01-27 07:15 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Runs as proc luacgi (process) 8* 6.26 - 7.51 Lua interpreter CGI. AVM
Serving sock me_lua_aicmd.ctl 2* 7.39 TODO AVM
Serving sock me_luacgi($num).ctl 16* 4.87 - 7.51 TODO AVM
Serving sock me_luadsl.ctl 15* 7.19 - 7.51 TODO AVM
Depends on lib ld.so 40 7.08 - 7.51 Dynamic linker / loader Linux
Depends on lib libar7cfg.so 69 6.54 - 7.51 TFFS-Configuration API to ar7.cfg and many more. AVM
Depends on lib libavmauth.so 69 6.50 - 7.51 Fritzbox authentification helpers AVM
Depends on lib libavmcipher.so 69 6.54 - 7.51 AES / DES / Rijndael encryption / decryption. AVM
Depends on lib libavmcsock.so 98 4.80 - 7.51 Networking, I/O and helper functions AVM
Depends on lib libavmfbconf.so 30 7.39 - 7.51 API to hardcoded fbconf.cfg AVM
Depends on lib libavmfbstate.so 30 7.39 - 7.51 IPC fritzbox state notification AVM
Depends on lib libavmhmac.so 98 4.80 - 7.51 HMAC / SHA / MD5 hashing. AVM
Depends on lib libboxlib.so 98 4.80 - 7.51 Box status, logging and statistics functions AVM
Depends on lib libboxnotify.so 1 6.35 boxnotifyd client API (old) AVM
Depends on lib libc.so 98 4.80 - 7.51 Standard C library Linux
Depends on lib libcm.so 98 4.80 - 7.51 ctlmgr / cm_logic messaging API Linux
Depends on lib libcrypto.so 69 6.54 - 7.51 OpenSSL general crypto and X.509 library Linux
Depends on lib libdl.so 84 4.80 - 7.50 Dynamic linking library Linux
Depends on lib libdputil.so 75 6.35 - 7.51 DataPipe / packet utilities AVM
Depends on lib libewnwjson.so 30 7.39 - 7.51 JSON helper functions AVM
Depends on lib libewnwlinux.so 98 4.80 - 7.51 Linux networking functions AVM
Depends on lib libewnwnet.so 98 4.80 - 7.51 Internet helper functions AVM
Depends on lib libgcc_s.so 45 4.80 - 6.110 GCC low-level runtime library Linux
Depends on lib libjuisclient.so 69 6.54 - 7.51 Update-Search - second generation - JUIS AVM
Depends on lib liblua.so 98 4.80 - 7.51 Lua 5.1.4 interpreter library Linux
Depends on lib libm.so 84 4.80 - 7.50 C math library Linux
Depends on lib liboauth2.so 30 7.39 - 7.51 OAuth v2.0 authentificator Linux
Depends on lib libpthread.so 84 4.80 - 7.50 POSIX threading library Linux
Depends on lib librt.so 61 6.35 - 7.50 POSIX realtime extensions library Linux
Depends on lib libsvctl.so 51 7.19 - 7.51 supervisor control library AVM
Depends on lib libtiinterpreter.so 30 7.39 - 7.51 Preprocessor for SSI-Files by TI. AVM
Depends on lib libwdt.so 98 4.80 - 7.51 AVM-Watchdogs management API AVM
Depends on lib libwebkpiclient.so 22 7.39 - 7.51 KPI sensor for system parts which use HTTP / HTTPS AVM
Depends on lib libwebsrv.so 75 6.35 - 7.51 HTTP / HTTPS webserver and tools. AVM
Depends on lib libyajl.so 30 7.39 - 7.51 Event-driven JSON parser Linux
Depends on lib libz.so 63 6.83 - 7.51 Zlib compressor / decompressor Linux
36 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2023-01-27 05:54 GMT.
Showing all models using this command. 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
FRITZ!Box 5530 Fiber (prx) 7.27 - 7.30 <long> Link
FRITZ!Box WLAN 3270 4.86 - 5.54 /usr/www/cgi-bin, <long> 45.9k - 58.1k, Link
FRITZ!Box WLAN 3270 v3 4.86 - 5.54 /usr/www/cgi-bin, <long> 45.9k - 58.1k, Link
FRITZ!Box WLAN 3270 IT 5.23 - 5.52 /usr/www/cgi-bin, <long> 46.0k - 55.8k, Link
FRITZ!Box 3272 5.50 - 6.88 /usr/www/cgi-bin, <long> 48.4k - 54.2k, Link
FRITZ!Box WLAN 3370 5.01 - 6.55 /usr/www/cgi-bin, <long> 45.9k - 58.6k, Link
FRITZ!Box 3390 5.50 - 6.55 /usr/www/cgi-bin, <long> 45.8k - 52.8k, Link
FRITZ!Box 3490 (main) 6.20 - 7.30 /usr/www/cgi-bin, <long> 50.8k - 61.1k, Link
FRITZ!Box 4020 6.27 - 7.02 /usr/www/cgi-bin, <long> 50.4k - 53.1k, Link
FRITZ!Box 4040 6.50 - 7.39 /usr/www/cgi-bin, <long> 38.1k - 53.4k, Link
FRITZ!Box 4060 7.26 - 7.39 /usr/www/cgi-bin, <long> 49.3k - 53.4k, Link
FRITZ!Box 5490 (main) 6.51 - 7.29 /usr/www/cgi-bin, <long> 52.7k - 61.1k, Link
FRITZ!Box 5491 (main) 7.01 - 7.29 /usr/www/cgi-bin, <long> 53.0k - 61.1k, Link
FRITZ!Box 5530 Fiber (main) 7.21 - 7.30 /usr/www/cgi-bin, <long> 56.8k - 60.9k, Link
FRITZ!Box 5590 Fiber (arm) 7.27 - 7.30 /usr/www/cgi-bin, <long> 49.3k, Link
FRITZ!Box 5590 Fiber (prx) 7.27 - 7.30 <long> Link
FRITZ!Box 6320 Cable v1 6.03 - 6.04 /usr/www/cgi-bin, <long> 38.1k, Link
FRITZ!Box 6320 Cable v2 6.21 /usr/www/cgi-bin, <long> 38.1k, Link
FRITZ!Box 6340 Cable 5.24 /usr/www/cgi-bin, <long> 38.4k, Link
FRITZ!Box 6360 Cable 4.85 - 6.51 /usr/www/cgi-bin, <long> 38.1k - 42.4k, Link
FRITZ!Box 6430 Cable (arm) 6.84 - 7.29 /usr/www/cgi-bin, <long> 42.1k - 49.2k, Link
FRITZ!Box 6430 Cable (atom) 6.84 - 7.29 /usr/www/cgi-bin, <long> 42.1k - 49.2k, Link
FRITZ!Box 6490 Cable (arm) 6.20 - 7.39 /usr/www/cgi-bin, <long> 38.2k - 69.3k, Link
FRITZ!Box 6490 Cable (atom) 6.20 - 7.39 /usr/www/cgi-bin, <long> 40.3k - 69.3k, Link
FRITZ!Box 6590 Cable (arm) 6.83 - 7.39 /usr/www/cgi-bin, <long> 40.3k - 69.3k, Link
FRITZ!Box 6590 Cable (atom) 6.83 - 7.39 /usr/www/cgi-bin, <long> 40.3k - 69.3k, Link
FRITZ!Box 6591 Cable (arm) 7.04 - 7.39 /usr/www/cgi-bin, <long> 42.3k - 77.5k, Link
FRITZ!Box 6591 Cable (atom) 7.04 - 7.39 /usr/www/cgi-bin, <long> 42.3k - 77.5k, Link
FRITZ!Box 6660 Cable (arm) 7.14 - 7.39 /usr/www/cgi-bin, <long> 41.9k - 77.5k, Link
FRITZ!Box 6660 Cable (atom) 7.14 - 7.39 /usr/www/cgi-bin, <long> 41.9k - 77.5k, Link
FRITZ!Box 6690 Cable (arm) 7.28 - 7.50 /usr/www/cgi-bin, <long> 49.3k - 77.5k, Link
FRITZ!Box 6690 Cable (atom) 7.28 - 7.50 /usr/www/cgi-bin, <long> 49.3k - 77.5k, Link
FRITZ!Box 6810 LTE 5.27 - 6.34 /usr/www/cgi-bin, <long> 45.8k - 51.1k, Link
FRITZ!Box 6820 LTE v1 6.40 - 7.29 /usr/www/cgi-bin, <long> 52.7k - 61.1k, Link
FRITZ!Box 6820 LTE v2 6.40 - 7.29 /usr/www/cgi-bin, <long> 52.7k - 61.1k, Link
FRITZ!Box 6820 LTE v3 7.19 - 7.29 /usr/www/cgi-bin, <long> 61.0k - 61.1k, Link
FRITZ!Box 6840 LTE 5.07 - 6.87 /usr/www/cgi-bin, <long> 45.8k - 58.5k, Link
FRITZ!Box 6842 LTE 6.01 - 6.34 /usr/www/cgi-bin, <long> 45.9k - 51.1k, Link
FRITZ!Box 6850 LTE 7.21 - 7.39 /usr/www/cgi-bin, <long> 49.3k - 69.7k, Link
FRITZ!Box 6850 5G 7.24 - 7.39 /usr/www/cgi-bin, <long> 49.3k - 53.4k, Link
FRITZ!Box 6890 LTE 6.84 - 7.39 /usr/www/cgi-bin, <long> 52.7k - 69.7k, Link
FRITZ!Box 6890 LTE v1 6.84 - 7.39 /usr/www/cgi-bin, <long> 52.7k - 69.7k, Link
FRITZ!Box 6890 LTE v2 6.84 - 7.39 /usr/www/cgi-bin, <long> 52.7k - 69.7k, Link
FRITZ!Box Fon WLAN 7112 4.86 - 4.88 /usr/www/cgi-bin, <long> 49.1k, Link
FRITZ!Box Fon WLAN 7170 4.86 - 4.88 /usr/www/cgi-bin, <long> 48.8k - 49.1k, Link
FRITZ!Box Fon WLAN 7170 v1 4.86 - 4.88 /usr/www/cgi-bin, <long> 48.8k - 49.1k, Link
FRITZ!Box Fon WLAN 7170 v2 4.86 - 4.88 /usr/www/cgi-bin, <long> 48.8k - 49.1k, Link
FRITZ!Box Fon WLAN 7240 4.85 - 6.06 /usr/www/cgi-bin, <long> 45.9k - 58.2k, Link
FRITZ!Box Fon WLAN 7270 v1 4.80 - 4.89 /usr/www/cgi-bin, <long> 40.1k - 53.1k, Link
FRITZ!Box Fon WLAN 7270 v2 4.80 - 6.06 /usr/www/cgi-bin, <long> 40.1k - 58.6k, Link
FRITZ!Box Fon WLAN 7270 v3 4.80 - 6.06 /usr/www/cgi-bin, <long> 40.1k - 58.6k, Link
FRITZ!Box 7272 5.55 - 6.88 /usr/www/cgi-bin, <long> 49.1k - 54.2k, Link
FRITZ!Box 7312 5.23 - 6.55 /usr/www/cgi-bin, <long> 45.8k - 55.6k, Link
FRITZ!Box Fon WLAN 7320 4.85 - 6.34 /usr/www/cgi-bin, <long> 45.8k - 55.6k, Link
FRITZ!Box 7330 5.06 - 6.55 /usr/www/cgi-bin, <long> 45.8k - 58.5k, Link
FRITZ!Box 7330 SL 5.08 - 6.55 /usr/www/cgi-bin, <long> 45.8k - 58.5k, Link
FRITZ!Box Fon WLAN 7340 4.83 - 6.06 /usr/www/cgi-bin, <long> 46.0k - 55.8k, Link
FRITZ!Box Fon WLAN 7360 SL 5.04 - 6.34 /usr/www/cgi-bin, <long> 45.8k - 58.5k, Link
FRITZ!Box Fon WLAN 7360 v1 5.06 - 6.35 /usr/www/cgi-bin, <long> 45.9k - 58.5k, Link
FRITZ!Box Fon WLAN 7360 v2 5.22 - 6.87 /usr/www/cgi-bin, <long> 45.8k - 55.6k, Link
FRITZ!Box 7362 SL 5.53 - 7.13 /usr/www/cgi-bin, <long> 45.9k - 56.8k, Link
FRITZ!Box 7369 6.30 - 6.32 /usr/www/cgi-bin, <long> 50.9k, Link
FRITZ!Box Fon WLAN 7390 4.81 - 6.87 /usr/www/cgi-bin, <long> 44.3k - 55.8k, Link
FRITZ!Box 7412 6.21 - 6.87 /usr/www/cgi-bin, <long> 50.8k - 53.3k, Link
FRITZ!Box 7430 6.26 - 7.29 /usr/www/cgi-bin, <long> 52.6k - 61.1k, Link
FRITZ!Box 7490 (main) 5.57 - 7.51 /usr/www/cgi-bin, <long> 49.1k - 69.9k, Link
FRITZ!Box 7510 7.30 - 7.39 /usr/www/cgi-bin, <long> 49.3k - 53.4k, Link
FRITZ!Box 7520 6.98 - 7.50 /usr/www/cgi-bin, <long> 38.5k - 53.4k, Link
FRITZ!Box 7520 v2 (arm) 7.30 - 7.50 /usr/www/cgi-bin, <long> 49.3k - 53.4k, Link
FRITZ!Box 7530 6.93 - 7.50 /usr/www/cgi-bin, <long> 38.3k - 53.4k, Link
FRITZ!Box 7530 AX 7.20 - 7.39 /usr/www/cgi-bin, <long> 49.5k - 57.5k, Link
FRITZ!Box 7560 6.51 - 7.29 /usr/www/cgi-bin, <long> 52.7k - 60.9k, Link
FRITZ!Box Fon WLAN 7570 vDSL 4.80 - 4.92 /usr/www/cgi-bin, <long> 45.2k - 53.1k, Link
FRITZ!Box 7580 6.51 - 7.29 /usr/www/cgi-bin, <long> 52.7k - 60.9k, Link
FRITZ!Box 7581 6.54 - 7.16 /usr/www/cgi-bin, <long> 38.2k - 49.5k, Link
FRITZ!Box 7582 6.83 - 7.16 /usr/www/cgi-bin, <long> 38.2k - 49.5k, Link
FRITZ!Box 7583 7.01 - 7.31 /usr/www/cgi-bin, <long> 53.0k - 60.9k, Link
FRITZ!Box 7583 VDSL 7.19 - 7.31 /usr/www/cgi-bin, <long> 56.8k - 60.9k, Link
FRITZ!Box 7590 6.83 - 7.51 /usr/www/cgi-bin, <long> 52.7k - 69.8k, Link
FRITZ!Box 7590 AX 7.19 - 7.39 /usr/www/cgi-bin, <long> 56.8k - 69.7k, Link
FRITZ!WLAN Repeater 300E 5.01 - 6.33 /usr/www/cgi-bin, <long> 49.3k - 58.7k, Link
FRITZ!WLAN Repeater 310 A 5.24 - 7.15 /usr/www/cgi-bin, <long> 46.0k - 56.8k, Link
FRITZ!WLAN Repeater 310 B 6.30 - 7.15 /usr/www/cgi-bin, <long> 50.3k - 56.8k, Link
FRITZ!WLAN Repeater 450E 6.00 - 7.14 /usr/www/cgi-bin, <long> 49.2k - 56.8k, Link
FRITZ!Repeater 600 7.11 - 7.29 /usr/www/cgi-bin, <long> 49.0k - 56.8k, Link
FRITZ!Repeater 600 v2 7.19 - 7.30 /usr/www/cgi-bin, <long> 49.0k - 53.1k, Link
FRITZ!WLAN Repeater 1160 6.51 - 7.14 /usr/www/cgi-bin, <long> 52.7k - 56.8k, Link
FRITZ!Repeater 1200 7.11 - 7.29 /usr/www/cgi-bin, <long> 45.3k - 49.3k, Link
FRITZ!Repeater 1200 AX 7.27 - 7.39 /usr/www/cgi-bin, <long> 49.3k - 53.4k, Link
FRITZ!WLAN Repeater 1750E 6.12 - 7.30 /usr/www/cgi-bin, <long> 52.6k - 61.1k, Link
FRITZ!Repeater 2400 7.12 - 7.50 /usr/www/cgi-bin, <long> 49.0k - 57.9k, Link
FRITZ!Repeater 3000 6.98 - 7.39 /usr/www/cgi-bin, <long> 38.2k - 53.4k, Link
FRITZ!Repeater 3000 AX 7.39 - 7.41 /usr/www/cgi-bin, <long> 53.4k, Link
FRITZ!Repeater 6000 7.19 - 7.39 /usr/www/cgi-bin, <long> 45.3k - 53.4k, Link
FRITZ!WLAN Repeater DVB-C 6.12 - 7.02 /usr/www/cgi-bin, <long> 52.6k - 54.2k, Link
FRITZ!Powerline 540E 5.58 - 7.14 /usr/www/cgi-bin, <long> 49.3k - 56.8k, Link
FRITZ!Powerline 546E 5.50 - 7.10 /usr/www/cgi-bin, <long> 46.2k - 56.8k, Link
FRITZ!Powerline 1240E 6.33 - 7.14 /usr/www/cgi-bin, <long> 50.3k - 56.8k, Link
FRITZ!Powerline 1260E 6.90 - 7.29 /usr/www/cgi-bin, <long> 38.2k - 49.3k, Link
FRITZ!Powerline 1260 7.08 - 7.29 /usr/www/cgi-bin, <long> 45.3k - 49.3k, Link
Speedport W 503V MK 4.79 <long> Link
101 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2023-01-27 07:15 GMT.

Firmware Symbol
5.07 - 5.24 FindSession
4.80 - 7.51 GetSessionId
4.80 - 7.51 LuaScript_Exit
4.80 - 7.31 LuaScript_MakeFunction
4.80 - 4.92 LuaScript_MakeGlobalTableNames
4.80 - 4.92 LuaScript_MakeGlobalTable_i
6.35 - 7.51 OutputDefaultHTTPHeader
7.19 - 7.51 OutputHTTPHeader
4.80 - 5.24 Query
4.80 - 5.24 QueryCache_Exit
4.80 - 5.24 QueryCache_Insert
4.80 - 5.24 QueryCache_Lookup
4.80 - 4.85 ReferrerViolation
7.19 - 7.51 SetDefaultHTTPHeader
4.80 - 7.51 SetSessionId
5.01 - 7.51 UseNextSessionId
5.01 - 7.51 cache_exit
5.01 - 7.51 cache_handle_prefetch
6.10 - 7.51 cgi_is_head_request
6.36 - 7.51 cgi_is_supported_method
6.36 - 7.51 cgi_show_errorpage
4.80 - 5.24 check_response
4.80 - 4.92 comm_init
5.07 - 5.24 common_login
5.07 - 5.24 common_logout
5.07 - 5.24 common_sid_valid
4.80 - 7.51 do_display_page
4.80 - 5.24 do_post
5.23 - 7.51 escape_init
4.80 - 7.31 get_any_string_arg
4.80 - 4.92 get_input
4.80 - 7.31 get_string_arg
5.07 - 5.27 info_session_init
5.01 - 5.24 is_access_from_internet
4.80 - 7.51 is_logged_in
6.98 - 7.51 is_loginbutton_needed
5.07 - 5.24 lock_data
4.80 - 7.51 login
7.39 - 7.51 login_from_addr
4.80 - 7.51 main
4.80 - 4.92 msgr_makeTransSetPost
4.80 - 5.27 nas_session_init
4.80 - 7.51 parse_cgivars
4.80 - 7.51 parse_cgivars_from_parameter
5.09 - 5.27 remote_session_init
5.01 - 7.51 set_loggedin
6.10 - 7.51 set_no_sidrenew
4.80 - 4.92 setup_input
4.80 - 4.92 unescape_url
5.07 - 5.24 unlock_data
4.80 - 4.92 valid_string
51 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.