mirror of
https://github.com/crazywhalecc/quick-shell.git
synced 2026-07-02 14:25:44 +08:00
update interactive shell
This commit is contained in:
@@ -5,6 +5,10 @@
|
|||||||
},
|
},
|
||||||
"neofetch": {
|
"neofetch": {
|
||||||
"description": "在线运行neofetch",
|
"description": "在线运行neofetch",
|
||||||
"command": "curl -H 'User-Agent: Chrome' -s https://gitee.com/mirrors/neofetch/raw/master/neofetch | bash"
|
"command": "bash <(curl -H 'User-Agent: Chrome' -s https://gitee.com/mirrors/neofetch/raw/master/neofetch)"
|
||||||
|
},
|
||||||
|
"ip": {
|
||||||
|
"description": "查看本机的公网IP",
|
||||||
|
"command": "curl -s http://ip.zhamao.xin"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -30,7 +30,8 @@ class QuickShellController
|
|||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$response = implode("\n", QuickShellProvider::getInstance()->getShellList()) . PHP_EOL;
|
$response = implode("\n", QuickShellProvider::getInstance()->getShellList()) . PHP_EOL;
|
||||||
$response .= "执行:\tcurl -s http://shell.zhamao.xin/run/{name} | bash" . PHP_EOL;
|
$response .= "普通执行:\tcurl -s http://shell.zhamao.xin/run/{name} | bash" . PHP_EOL;
|
||||||
|
$response .= "交互执行:\tbash <(curl -s http://shell.zhamao.xin/run/{name})" . PHP_EOL;
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user