Toggle the bypass with :max_time_bypass. Value is stored in session.
Bypass is inserted before -prefix value.
User-defined aliases
Those are simple "translations" that are applied to your command lines.
For example if you do :alias ll "ls -lha", then if the command ll <args> is called, ls -lha <args> is executed instead.
Aliases get saved in a text file ({base_path}/aliases by default, terminal mode can be started with -a <path> option to set a custom alias file). This file is automatically saved when exiting weevely.
:alias <name> <command> defines a new alias
:alias <name> shows an alias
:alias lists all aliases
:unalias <name> removes an alias
Shell modules (pre|suf)fix
:shell_sh module has now two more options: -prefix and -suffix.
:shell_php module options -prefix-string and -postfix-string have been renamed to only -prefix and -suffix.
Pretty useful to run commands with some shaky privesc trick like kill -64 0 && id, by doing :set shell_sh.prefix "kill -64 0 && "
More commits won't make this PR move faster, so I close for now.
If you're interested in these features/patches let me know, I'll make clean PRs for each.
Additions
Max exec time bypass (from wiki)
Toggle the bypass with
:max_time_bypass
. Value is stored in session.Bypass is inserted before
-prefix
value.User-defined aliases
Those are simple "translations" that are applied to your command lines.
For example if you do
:alias ll "ls -lha"
, then if the commandll <args>
is called,ls -lha <args>
is executed instead.Aliases get saved in a text file (
{base_path}/aliases
by default,terminal
mode can be started with-a <path>
option to set a custom alias file). This file is automatically saved when exiting weevely.:alias <name> <command>
defines a new alias:alias <name>
shows an alias:alias
lists all aliases:unalias <name>
removes an aliasShell modules (pre|suf)fix
:shell_sh
module has now two more options:-prefix
and-suffix
.:shell_php
module options-prefix-string
and-postfix-string
have been renamed to only-prefix
and-suffix
.Pretty useful to run commands with some shaky privesc trick like
kill -64 0 && id
, by doing:set shell_sh.prefix "kill -64 0 && "