1、显示当前系统上root、fedora或user1用户的默认shell;2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();3、使用echo命令输出一个绝对路径,使用grep取出其基名;扩展:取出其路径名4、找出ifconfig命令结果中的1-255之间数字;5、挑战题..
分类:
其他好文 时间:
2016-09-19 22:42:07
阅读次数:
220
linux中init相关内容定义在include/linux/init.h 先看下文件说明,此文件定义的宏主要用于初始化阶段标记函数或初始化数据,之后占用的资源会被释放掉。 /* These macros are used to mark some functions or * initialize ...
分类:
其他好文 时间:
2016-09-19 16:04:47
阅读次数:
185
Dependecies aren’t always objects created by classes or factory functions. Sometimes, all we really want is inject a simple value, which can be a prim ...
分类:
其他好文 时间:
2016-09-18 06:30:17
阅读次数:
230
查看shell函数写法可以参考 /etc/init.d/functions 打印信息可以调用,action函数 局部变量使用加上 local 定义 全局变量什么也不加 需要执行的命使用反引号`` 字符串一般使用双引号“” 原样输出使用单引号‘’ 脚本在没有给执行权限的情况下可以使用sh或者bash来 ...
分类:
系统相关 时间:
2016-09-17 00:09:03
阅读次数:
191
1. 反函数 定义1: A function ? is called a one-to-one function if it never takes on the same value twice; that is ?(x1)≠?(x2) whenever x1≠x2. Horizontal Lin ...
分类:
其他好文 时间:
2016-09-14 16:29:12
阅读次数:
115
Table 12.18 Information Functions NameDescription BENCHMARK() Repeatedly execute an expression CHARSET() Return the character set of the argument COER ...
分类:
数据库 时间:
2016-09-13 06:48:40
阅读次数:
289
Monads allow you to nest computations. They are a pointed functor that adds mjoin and chain functions to combine other functors. Brian shows a number ...
分类:
编程语言 时间:
2016-09-12 06:16:15
阅读次数:
353
转载: 利用pcntl_exec突破disable_functions 1、说明 pcntl是linux下的一个扩展,可以支持php的多线程操作。pcntl_exec函数的作用是在当前进程空间执行指定程序,版本要求:PHP > 4.2.0 2、利用 在做渗透的时候被disable_functions ...
分类:
Web程序 时间:
2016-09-11 12:41:15
阅读次数:
329
第五周作业1、显示当前系统上root、fedora或user1用户的默认shell;grep"^root"/etc/passwd|awk-F‘:‘‘{print$7}‘2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();grep".*(\{1\}).*"/etc/rc.d/init.d/functions3、使用echo命令输出一个绝对..
分类:
其他好文 时间:
2016-09-10 22:31:16
阅读次数:
207