rlwrap - Privilege Escalation
ID: privesc-rlwrap
Severity: high
Author: daffainfo
Tags: code,linux,rlwrap,privesc,local
Description
Section titled “Description”rlwrap is a utility that provides readline functionality to commands that lack it, allowing for command-line editing and history capabilities. It is commonly used to enhance the user experience when working with command-line tools that do not have built-in readline support.
YAML Source
Section titled “YAML Source”id: privesc-rlwrap
info: name: rlwrap - Privilege Escalation author: daffainfo severity: high description: | rlwrap is a utility that provides readline functionality to commands that lack it, allowing for command-line editing and history capabilities. It is commonly used to enhance the user experience when working with command-line tools that do not have built-in readline support. reference: - https://gtfobins.github.io/gtfobins/rlwrap/ metadata: verified: true max-request: 3 tags: code,linux,rlwrap,privesc,local
self-contained: truecode: - engine: - sh - bash source: | whoami
- engine: - sh - bash source: | rlwrap whoami
- engine: - sh - bash source: | sudo rlwrap 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")' condition: or# digest: 4b0a00483046022100ddd43737e3e82eef31adf34c2b7c226475164dbbd8a534133a444fb4a79b3983022100f2cdeb52717c66b64bc42022ce9167df34c9feb6e9641f103c39c5cb3251ed1b:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "code/privilege-escalation/linux/binary/privesc-rlwrap.yaml"