nil0x42/phpsploit

View on GitHub
src/core/session/settings/TMPPATH.py

Summary

Maintainability
A
2 hrs
Test Coverage
"""
Default phpsploit temporary directory.

* USE CASES:
Used as base path for files edited with `edit` plugin.
"""
import tempfile

import linebuf
import datatypes


linebuf_type = linebuf.MultiLineBuffer


def validator(value):
    return datatypes.Path(value, mode="drw")


def default_value():
    return tempfile.gettempdir()