mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-08 11:43:17 +08:00
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
id: privesc-torify
|
|
|
|
info:
|
|
name: Torify - Privilege Escalation
|
|
author: daffainfo
|
|
severity: high
|
|
description: |
|
|
torify is a command-line utility that is used to transparently route network traffic through the Tor network. It is commonly used to anonymize the network connections of other command-line programs, allowing them to communicate over the Tor network for enhanced privacy and security.
|
|
reference:
|
|
- https://gtfobins.github.io/gtfobins/torify/
|
|
metadata:
|
|
verified: true
|
|
tags: code,linux,torify,privesc
|
|
|
|
self-contained: true
|
|
code:
|
|
- engine:
|
|
- sh
|
|
- bash
|
|
source: |
|
|
whoami
|
|
|
|
- engine:
|
|
- sh
|
|
- bash
|
|
source: |
|
|
torify whoami
|
|
|
|
- engine:
|
|
- sh
|
|
- bash
|
|
source: |
|
|
sudo torify 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: 4a0a004730450220154ec04f332ea7e202cbcfeafd63857b85e9bed7e847c9bd5676dd4c887b8f0d022100f2d7f29b486c60956522e7f60b7705f93fca788825aaa855f24b65d0e9eb38a1:922c64590222798bb761d5b6d8e72950 |