1、Linux挂载Winodws共享文件夹2、查看http的并发请求数及其TCP连接状态:3、用tcpdump嗅探80端口的访问看看谁最高4、统计/var/log/下文件个数5、查看当前系统每IP连接数6、shell下32位随机密码生成7、统计出apache的access.log中访问量最多的5个IP8、如何查看二进制文件的内容..
分类:
其他好文 时间:
2017-07-04 23:21:50
阅读次数:
236
在运行 ./bin/mysqld Cinitialize 初始化数据库时,会生成随机密码,示例: [Note] A temporary password is generated for root@localhost: Wtng#?e&S5,- 例中密码为 Wtng#?e&S5,- ,首次登录 my ...
分类:
数据库 时间:
2017-06-28 20:17:49
阅读次数:
175
1.查看root用户临时随机密码 yum 安装mysql后,无法通过空密码登录数据库,如下: 查找后,原来为了增加数据库的安全性,在安装时会为root用户生成一个临时的随机密码,存放在/var/log/mysqld.log 中。root用户的临时密码查看方法如下(红色标注部分就是其临时密码): 2. ...
分类:
数据库 时间:
2017-06-17 12:14:00
阅读次数:
1050
题目:批量添加20个用户,用户名为user1~20,密码为5个随机字符(要求不能使用shell循环语句)解决方法方法1echouser{1..20}|xargs-n1|sed-r‘s#(.*)#useradd\1\&\&echo\1>>/tmp/passwd.txt\&\&echo$RANDOM|md5sum|cut-c1-5>>/tmp/passwd.txt\&\..
分类:
系统相关 时间:
2017-06-14 16:35:18
阅读次数:
224
URL检查#!/bin/bashpath=/home/scriptsMAIL_GROUP="12306@qq.com123456@163.com"PHOTO_GROUP="1350269356818023569846"./etc/init.d/functionscheck_count=0url_list(http://www.baidu.comhttp://blog.51cto.comhttp://www.qq.comhttp://192.168.1.5)functionswait(){echo-n‘3..
分类:
Web程序 时间:
2017-06-09 22:41:26
阅读次数:
262
[root@localhost ~]# yum install -y expect # 安装 mkpasswd [root@localhost ~]# mkpasswd # 默认生成9位数的密码 [root@localhost ~]# mkpasswd -l 20 # -l 指定密码长度 [root... ...
分类:
其他好文 时间:
2017-06-08 10:47:48
阅读次数:
123
1 ''' 2 maketrans()、translate() 3 maketrans()方法用来生成字符映射表,而translate()方法则按映射表中定义的对应关系转换并替换其中的字符,使用这两个方法的组合可以 4 同时处理多个不同的字符,replace()方法则无法满足这一要求。 5 ''' ... ...
分类:
编程语言 时间:
2017-06-07 15:41:02
阅读次数:
350
0) && (! is_null($num_chars))) { $password = ''; $accepted_chars = 'abcdefghijklmnopqrstuvwxyz1234567890'; // Seed the generator if necessary. srand((... ...
分类:
其他好文 时间:
2017-05-29 21:09:22
阅读次数:
162
一:RANDOMecho$RANDOMRANDOM的随机数是有范围的1--32767,一般用它是可以被破解的1.2生成八位数的随机密码:echo$(($RANDOM+11111111))二:MD5sum随机加密方法生成的密码较长取9位数密码:echo$RADDOM|md5sum|cut-c2-9三:通过openssl产生随机数[root@web01tmp]#opensslrand-b..
分类:
系统相关 时间:
2017-05-11 22:39:38
阅读次数:
597
1在26个字母大小写和9个数字组成的列表中随机生成10个8位数密码 2程序如下 3运行结果如下 ...
分类:
其他好文 时间:
2017-05-07 16:49:45
阅读次数:
2497