修改密码update user set password=password('') where user='root';FLUSH PRIVILEGES;远程访问权限:GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '' WITH G....
分类:
数据库 时间:
2014-10-13 15:33:19
阅读次数:
202
假设windows机器上有个共享文件夹"share",ip地址为xxxx,用户名:administrator,密码:0000则在linux上访问"share"文件夹为:格式一:mount-tcifs-ousername=administrator,password=0000//xxxx/share/home/win_share格式二:mount-tcifs//xxxx/share/home/win_share-ousername=..
一.expect实现自动填入密码1.vissh.exp.201#!/usr/bin/expectspawnssh-p20000oldboy@192.168.1.201/sbin/ifconfigeth0settimeout60expect"*password:"send"abcdef\n"expecteofexit2.chmod700ssh.exp.201#注。要是没有权限执行,也可以直接expect,700权限。防止其它用户查看脚本..
分类:
编程语言 时间:
2014-10-13 02:03:19
阅读次数:
287
kail linux以下postgresql startsudo -u postgres psql postgresalter user postgres with password 'toor'; 有分号!!用户名postgres 密码toor接下来直接连接msfdb_connect postg....
分类:
数据库 时间:
2014-10-12 22:59:38
阅读次数:
291
zencart重置用户ID为99的登录密码为aaaaaaaupdate customers set customers_password='1ebf0e689c7d44a19e4d0070ab381f81:52' where customers_id=99;
分类:
数据库 时间:
2014-10-12 17:52:28
阅读次数:
249
第一个题目本质是个动归dp问题。但是分析dp的方程使用了组合数学中的N求M盒问题。先来看下N球M盒的经典问题。给定N个相同的球,放入M个不同的盒子中,要求每个盒子必须非空,求组合数。假设Xi为第i个盒子中的放入的小球数,则方程X1+X2+X3+...+Xm=N,其实抽象成数学问题,就是求这个M元.....
分类:
其他好文 时间:
2014-10-12 17:33:28
阅读次数:
318
'公众平台帐号',
'password' => '密码'
);
$w = new Weixin($arr);
$w->getAllUserInfo();//获取用户信息
$w->sendMessage('群发内容'); //群发给所有用户
$w->sendMessage('群发内容',$userI...
分类:
微信 时间:
2014-10-12 14:22:48
阅读次数:
735
利用25端口,黑客可以找SMTP服务器,用来转发垃圾邮件。1.端口说明25端口为SMTP(Simple Mail Transfer Protocol,简单邮件传输协议)服务器所开放,主要用于发送邮件。2.端口漏洞25端口被很多木马程序所开放,比如Ajan、Antigen、Email Password...
分类:
其他好文 时间:
2014-10-12 12:15:37
阅读次数:
162
需求:输入用户名和密码,认证成功后显示欢迎信息,输错三次后锁定shell:#!/bin/bash
#Authuserlogin
user="hlf"
pass="123456"
lock_file=login.lock
[-f${lock_file}]||touch${lock_file}
foriin`seq3`
do
read-p"username:"username
read-p"password:"password
if[-z"$u..
分类:
其他好文 时间:
2014-10-12 11:07:18
阅读次数:
168
1最简单而又令人兴奋的命令: manage.py syncdb创建了指定app中的model相应的数据库表,假设是第一次使用此命令,会提示是否创建超级用户,输入username,Email和password,接着能够看到在创建索引:2. validate验证Model的正确性:manage.py v...
分类:
数据库 时间:
2014-10-11 23:12:26
阅读次数:
351