2024-01-22 18:59:57 +05:30
id : privesc-lua
info :
name : lua - Privilege Escalation
author : daffainfo
severity : high
description : |
Lua is a powerful, efficient, lightweight, embeddable scripting language. It is often used as a scripting language for game development and other applications that require a customizable and extensible scripting interface. Lua is known for its simplicity, speed, and ease of integration with other languages and systems.
reference :
- https://gtfobins.github.io/gtfobins/lua/
metadata :
2024-01-29 11:58:34 +00:00
max-request : 3
2024-01-22 18:59:57 +05:30
verified : true
2024-01-31 23:11:31 +05:30
tags : code,linux,lua,privesc,local
2024-01-22 18:59:57 +05:30
self-contained : true
code :
- engine :
- sh
- bash
source : |
whoami
- engine :
- sh
- bash
source : |
lua -e 'os.execute("whoami")'
- engine :
- sh
- bash
source : |
sudo lua -e 'os.execute("whoami")'
matchers-condition : and
matchers :
- type : word
part : code_1_response
words :
- "root"
negative : true
- type : dsl
dsl :
- 'contains(code_2_response, "root")'
- 'contains(code_3_response, "root")'
2024-01-22 16:20:01 +00:00
condition : or
2024-01-31 17:43:39 +00:00
# digest: 4a0a00473045022033fd3387c3085b4f8e3a7ced68a4e324ba82f7e683a8c29e5ab32c1975a8fe4b02210097eb732caf95609123a361436265388bba8c2c95fcba6ddaf6504d3a5b19c19f:922c64590222798bb761d5b6d8e72950