nil0x42/phpsploit

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

Summary

Maintainability
A
1 hr
Test Coverage
"""
Set attacker's default Web Browser in phpsploit's context.

* USE CASES:
The '--browser' option of `phpinfo` plugin uses this setting
to display remote server's informations locally:
> phpinfo --browser
"""
import linebuf
import datatypes


linebuf_type = linebuf.RandLineBuffer


def validator(value):
    return datatypes.WebBrowser(value)


def default_value():
    return "default"