s2-032批量脚本】的更多相关文章

author: headsen   chen date : 2018-08-02   20:06:06 1,salt-ssh的安装: yum -y install epel-release yum -y install salt-ssh 2,配置salt-ssh vim  /etc/ssh/ssh_config      #将前面的#号去掉,将ask改成 no,作用:避免第一ssh连接的输入yes确认 service sshd restart vim /etc/salt/roster 3,测试所…
实验机器: 主机a:192.168.2.128 主机b:192.168.2.130 实验目标: 手动建立a到b的信任关系,实现在主机a通过 ssh 192.168.2.130不用输入密码远程登陆b主机 1.a主机生成公钥 ssh-keygen -t rsa 三次回车 [root@localhost ~]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/…
看乌云上许多大牛上脚本,我也写个玩吧!写的比较简单.懒得优化,参数获取就自己改吧 需要抓很多struts,可用爱站工具包或则自己写个脚本爬 #coding:utf8 import urllib2 import re import urlparse import Queue import threading import mechanize import cookielib queue = Queue.Queue() mutex = threading.Lock() def find_title(…
<?xml version="1.0"?> <project name="autotest" default="all" basedir="."> <tstamp> <format property="time" pattern="yyyyMMddhhmm" /> </tstamp> <!-- 需要改成自己本地的 Jmet…
import requests import re import sys header = { "Accept":"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01", "Accept-Encoding":"gzip, deflate, br", "Accept-…
@echo off echo please input phpCB url: set /p input= cd /d "E:\tools\phpCB\" phpCB --space-after- --padding- --glue-arrow %input% > %input%.phpCB copy /y %input% %input%.bak del %input% copy /y %input%.phpCB %input% del %input%.phpCB pause…
import requests import Queue import threading import time user_agent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" threads = 400 data={ '_method':'__construct', 'filter[]':'syst…
shell 根据参数检测 当前php项目下 的语法错误 #!/bin/bash function getdir(){ for el in `ls $1` do dir_file=$1"/"$el if [ -d $dir_file ] then getdir $dir_file else ext=${dir_file##*.} if [ $ext = 'php' ] then file_is=`php -l $dir_file` #echo $dir_file if [[ $file_…
    看到博友SQL Server MVP桦仔的一篇博文“将表里的数据批量生成INSERT语句的存储过程的实现”.我仔细看来博文中的两个存储代码,自我感觉两个都不太满意,都是生成的单行模式的插入,数据行稍微大些性能会受影响的.所在公司本来就存在第二个版本的类似实现,但是是基于多行模式的,还是需要手工添加UNAION ALL来满足多行模式的插入.看到这篇博文和基于公司数据行批量脚本的存储的缺点,这次改写和增强该存储的功能.     本存储运行于SQL Server 2005或以上版本,T-SQL…
#!/bin/bash ##cacti批量脚本位置 device=/var/www/html/cacti/cli/add_device.php graphs=/var/www/html/cacti/cli/add_graphs.php tree=/var/www/html/cacti/cli/add_tree.php ##需要添加的host ip在ip.txt中 host_ips=`cat ip.txt` ##开始循环遍历 for host_ip in $host_ips; do echo $h…