原创 os_walk.py

#!/usr/bin/env python #coding=utf-8 #os_walk.py import os def walkdir(path,rmdirectories): for root, dirs, files

原创 python學習--paramiko

#!/usr/bin/env python #coding=utf-8 #python setup.py build #python setup.py install # install PyCrypto #ssh = paramiko

原创 spoofetter.sh Version 0.1

#!/bin/bash #Author: Qingzheng #2012-11-11 #spoofetter.sh Version 0.1 #Email:[email protected] function Usage(){

原创 autonmap.sh

#!/bin/bash #autonmap.sh : #Author: Qingzheng #platform: backtrack5 r3 function Usage(){ echo "###################

原创 Centos_DHCP+NAT.sh

#!/bin/bash #Center_DHCP+NAT.sh #root@Center:~#vi /etc/sysconfig/network-scripts/ifcfg-eth0 #DEVICE="eth0" #BOOTPROTO="

原创 Centos_samba_login.sh

#!/bin/bash #Centos_samba_login.sh #需要帳戶登陸共享 echo "[global] workgroup = Workgroup netbios name = Cgate server

原创 Ubuntu_install_snmp_snmpd.sh

#!/bin/bash #Ubuntu_install_snmp_snmpd.sh apt-get update apt-get install snmp snmpd #access MyROSystem "" any

原创 python學習一ftplib

#!/usr/bin/python env #coding=utf-8 #導入模塊 import ftplib #類實例化 ftp = ftplib.FTP() #連接到指定主機跟端口 version = ftp.connect(h

原创 Centos_vsftpd.sh

#!/bin/bash #shell腳本自動安裝配置vsftpd並創建10個nologin帳戶作爲ftp測試帳號 #Centos_vsftpd.sh yum install -y vsftpd echo "anonymous_enable

原创 Centos_Cache-only_DNS.sh

#!/bin/bash #Centos_Cache-only_DNS.sh echo 'options { listen-on port 53 { any; }; listen-on-v6 port 53

原创 Centos_DNS_master_slave.sh

#!/bin/bash #Centos_DNS_master_slave.sh #兩個互爲主從DNS服務 ############################### ### Master ####### ##

原创 Plugins_nrpe.sh

#!/bin/bash #Plugins_nrpe.sh #yum install -y wget gcc glibc glibc-common gd gd-devel make net-snmp net-snmp-utils opens

原创 sshlogin.sh

#!/usr/bin/expect -f #sshlogin.sh #腳本不能用sh sshlogin.sh執行 #應該付權限執行./sshlogin.sh set timeout 30 spawn ssh [email protected]

原创 python學習--platform

#!/usr/bin/env python #coding=utf-8 #platform_mode.py import platform profile = [ platform.architecture(), #系統架

原创 Centos_Close_selinux.sh

#!/bin/bash #Centos_Close_selinux.sh setenforce 0 #Close selinux cp -rf /etc/selinux/config /etc/selinux/config.backup