Atitit webshell选型

1. PHP Shell 2.4 1

1.1. 设置密码 4

2. 测试切换目录 4

2.1. 自己实现 5

1. PHP Shell 2.4

Please consult the READMEINSTALL, and SECURITY files for instruction on how to use PHP Shell.

If you have not created accounts for phpshell, please use pwhash.php to create secure passwords.

Copyright © 2000–2012, the Phpshell-team. Get the latest version at http://phpshell.sourceforge.net/.

INSTALL file for PHP Shell

Copyright (C) 2000-2012 the Phpshell-team

Licensed under the GNU GPL.  See the file COPYING for details.

Downloading PHP Shell

=====================

You can always get the latest version of PHP Shell from:

http://phpshell.sourceforge.net/

Installation

============

Installation is easy: first unpack the tarball or zipfile downloaded

from the above website into your webserver.  This will create a

subdirectory called phpshell-@VERSION@ for PHP Shell version @VERSION@.

Try loading the file ``phpshell.php`` in your browser and check that

you are served a page that asks you to authenticate yourself with a

username and a password.  If you do not see such a page, then please

check that you have entered the URL correctly and that PHP is working

on your server.

Configuration

=============

All configuration happens in the ``config.php`` file.  This is an

ini-file despite its name.  Ini-files consist of a number of sections,

each containing a number of 'key = "value"' pairs.  PHP Shell has tree

sections: '[users]' for configuring usernames and passwords,

'[aliases]' for configuring shell aliases, and '[settings]' for

general settings.

Setting usernames and passwords

-------------------------------

As a security precaution PHP Shell has no default username and

password (people often forget to change them...).  To add the user

"alice" with password "secret" you simply add

[users]

alice = "secret"

to the file.  Note that you can add as many users as you want by

simply adding more lines like this.

This system works, but there is a better way --- a way so that the

password does not appear in clear text in the file.  For that you use

the supplied script ``pwhash.php`` to generate a hashed password.

Please see the instructions given in ``pwhash.php``.

With the above example the result could look like

[users]

alice    = "sha1:1a4861:a8640981d2a5f9452c75a7bb0491eac3ecd8bdc3"

You will not get exactly the same line if you try it out, this is a

feature of the system which means that both "alice" and "bob" could

have "secret" as their password, and you would not be able to tell

from just looking at ``config.php``.

Shell Aliases

-------------

As in a normal shell, PHP Shell supports alias expansion, albeit in a

simple form.  Aliases are defined by 'key = "value"' pairs in the

'[aliases]' section.  The "key" will be matched against the first

token of the command line and substituted with the "value" given.

Two convenient aliases are already defined:

[aliases]

ls = "ls -CvhF"

ll = "ls -lvhF"

General Settings

----------------

You can define some other settings in the '[settings]' section:

home-directory = "Path/to/some/directory":

what directory should be considered as home-directory, where should the

user be after startup and where will he return after a bare "cd" command.

safe-mode-warning = true (or false):

should PHP Shell print a warning, if PHP safe mode is detected? PHP Shell will

probably not work correctly if safe mode is enabled.

PS1 = "string"  (e.g.: "$ "):

What string should be used as standard prompt string.

file-upload = false (or true):

do you want to use the new file-upload feature?

Bugs?  Comments?

================

If you find a bug or miss something in PHP Shell, please take a look

at the Tracker System at SourceForge:

http://sourceforge.net/tracker/?group_id=156638

There you will find trackers for Bugs, Patches, and Feature Requests.

You are invited to add items to these so that they wont get lost.

You can also email the development list, found at:

https://lists.sourceforge.net/lists/listinfo/phpshell-devel

This list is for discussion about all things PHP Shell and it is a

good place to discuss a feature or bug before adding it to one of the

SourceForge trackers.

1.1. 设置密码

2. 测试切换目录

2.1. 自己实现

C:\0wkspc\hislog\src\main\java\com\attilax\web\ShellServlet3.java

Atitit webshell选型 1. PHP Shell 2.4 1 1.1. 设置密码 4 2. 测试切换目录 4 2.1. 自己实现 5 1.PHP Shell 2.4 Please co相关推荐

  1. shell脚本中的特殊变量与if条件测试

    1.特殊变量 实际工作中我们不可避免的遇到一些xxxx.sh脚本文件,实际阅读shell脚本代码时经常会遇到很多特殊变量(例如:$0.$n.$#.$@.$*.$?.$$等),我们常常会被这些特殊符号折 ...

  2. cmd 切换目录_Linux Shell从入门到删除根目录跑路指南

    shell 作为一门 linux 下使用广泛的系统语言,语法简单,上手容易,但是想要用好,少犯错误,也不是那么容易的一件事,可谓虽是居家旅行之良药,但也是杀人灭口之利器~ 今天就来聊聊 linux 下 ...

  3. shell 获取家目录_一篇教会你写90%的shell脚本

    shell是外壳的意思,就是操作系统的外壳.我们可以通过shell命令来操作和控制操作系统,比如Linux中的Shell命令就包括ls.cd.pwd等等.总结来说,Shell是一个命令解释器,它通过接 ...

  4. 基本BASH SHELL脚本命令——切换目录以及处理文件和目录的基本知识

    遍历目录 cd destination cd 命令可接受单个参数 destination ,用以指定想切换到的目录名.如果没有为 cd 命令指定目标路径,它将切换到用户主目录. destination ...

  5. shell 获取ora报错信息_带你了解企业是如何编写脚本的-第2篇:Shell脚本规范

    在带你了解企业是如何编写脚本的-第一篇:认识脚本这篇文章中,我对脚本进行了一些基本的讲解,那么今天我们就来了解一下Shell脚本有哪些规范(约定俗成). 俗话说无规矩不成方圆,想要长远的发展就需要制定 ...

  6. shell 删除simatic_请教Simatic net安装好后,硬盘目录下的Simatic shell是做什么的??...

    请教各位朋友,最近我安装了Simatic net,安装好后发现在"我的电脑"主目录下出现了一个simatic shell文件夹图标,打开后代开一个类似资源管理器一样的界面,左边是我 ...

  7. adb shell 小米手机_【转】【Android测试技巧】01. root后adb shell默认不是root用户时,如何将文件放入手机系统中...

    http://blog.csdn.net/wirelessqa/article/details/8624208 有些机器root后通过adb shell 后,默认不是root用户,需要输入 su才能切 ...

  8. Linux:shell 脚本 自动解压压缩文件tar.gz到指定目录

    具体情境 Ubuntu16.04系统,将.tar.gz格式的文件从/home/myftp/upload/nuodongiot目录自动解压到/home/myftp/upload/backupcopy目录 ...

  9. shell命令之cd切换目录

    1.返回到某一级目录 cd dirName1/dirName2/dirName3/ dirName1.dirName2.dirName3表示某一目录; 2.返回到上级目录 cd ../ 也可以写成: ...

  10. linux 脚本 切换目录,在shell脚本中切换目录ros生成

    用VB打造自己的SQL连接器 大家好.....好长时间没上网了...祝大家新年快乐....好了.工程开始 现建一个普通窗口..放上3个textBox控件. 一个是用来输入ip的txtaddres..还 ...

最新文章

  1. JavaScript 常用函数
  2. ABAP常用字符串操作
  3. servlet学习--Cookie小应用
  4. matlab实现音频信号的左右声道信号分离_立体声分离度与立体声相关系数
  5. 在批处理脚本所在目录下打开cmd
  6. 2017年程序媛和工程狮绝对不能忽视的编程语言、框架和工具
  7. Github for Windows使用介绍
  8. 啊!多么痛的领悟···
  9. 《BI那点儿事》数据流转换——透视
  10. windows linux内核版本,微软决定在Windows10中发布一个完整的Linux内核
  11. C++网络编程实例之多个客户端交互(多线程)
  12. MySQL 四种事务隔离级的说明
  13. 2b青年欢乐多之地铁奇幻记
  14. 两阶段最小二乘法原理_R语言工具变量与两阶段最小二乘法
  15. 关于注册苹果开发者账号时登录遇到的提示未知错误
  16. SVN提交出错--URL access forbidden for unknown reason
  17. iOS中scheme详解
  18. python怎样删除某一行_python删除某一行
  19. 学习java随堂练习-20220610
  20. BarChart使用详解及详细属性

热门文章

  1. ios tabbar中间凸起_移动端开发基础【21】tabBar 配置
  2. 计算机软件行业职业病,IT行业的六大职业病,看看你有没有中
  3. 机械的东西学的难 还是计算机的难,最难学十大工科专业 不想累成狗就别去(高薪)...
  4. c++语言函数参数传递方式,C++函数传递三种方式解读
  5. 5. COM编程——IDispatch介绍
  6. chmod和chown命令的用法
  7. 进击webpack4 (基础篇:配置 一)
  8. Java学习笔记(JDBC数据库编程常用接口)
  9. 让UITableView数据处理更轻便
  10. 关于使用,NI采集卡+labview信号采集,问题交流【第二贴】