上一页 1 2 3 4 5 6 7 8 9 10 ··· 89 下一页
  2023年3月30日
摘要: $groupnum=@('d1','d2') $var_mid="groupnum" + $groupnum[0]New-Variable -Name $var_mid -Value 3 Get-Variable $var_mid $groupnumd1值为3 阅读全文
posted @ 2023-03-30 16:50 momingliu11 阅读(38) 评论(0) 推荐(0) 编辑
  2023年3月10日
摘要: #安装PSFTP模块 Install-Module psftp Get-Module psftp -ListAvailable Import-Module psftp $UserName = "ftpuser" $Password = "ftppassword" $userPassword = Co 阅读全文
posted @ 2023-03-10 15:22 momingliu11 阅读(89) 评论(0) 推荐(0) 编辑
  2023年2月8日
摘要: 1.A机器上启用sftp,编辑 /etc/ssh/sshd_config Subsystem sftp internal-sftp Ciphers aes256-ctr,aes192-ctr,aes128-ctr Match Group sftp ChrootDirectory /data1/sft 阅读全文
posted @ 2023-02-08 15:13 momingliu11 阅读(404) 评论(0) 推荐(0) 编辑
  2023年2月3日
摘要: 1.为Logstash添加一个配置文件dnsquery.conf,如下 input { kafka { add_field => { "es_index_name" => "dns-query" } bootstrap_servers => "10.0.8.1:9092" topics => "dn 阅读全文
posted @ 2023-02-03 10:28 momingliu11 阅读(244) 评论(0) 推荐(0) 编辑
  2023年2月2日
摘要: 开启DNS调试日志,记录DNS查询日志 当文件达到20M后,会自动重写新日志 DNS Deug Log,使用如下脚本进行分析 脚本: ############################################################################# # Thi 阅读全文
posted @ 2023-02-02 11:42 momingliu11 阅读(646) 评论(0) 推荐(0) 编辑
  2023年2月1日
摘要: #Backup records to other folder everyday.#定义备份的源目录、目标目录,备份每天日期的文件夹 today=`date -d "now" +%Y%m%d` record_path="/var/spool/records" record_remotebak_pat 阅读全文
posted @ 2023-02-01 14:28 momingliu11 阅读(27) 评论(0) 推荐(0) 编辑
  2022年11月17日
摘要: 1.先安装winpcap,下载地址:https://www.winpcap.org/windump/install/default.htm 2.windump命令使用方法: windump.exe -D #返回所有可用网卡windump.exe -i 3 #监听网卡3windump.exe -n # 阅读全文
posted @ 2022-11-17 16:05 momingliu11 阅读(882) 评论(0) 推荐(0) 编辑
  2022年11月10日
摘要: Exchange用户发邮件提示“550 5.7.60 SMTP; Client does not have permissions to send as this sender” 处理方法: get-mailbox username |get-adpermission |select user,ex 阅读全文
posted @ 2022-11-10 10:19 momingliu11 阅读(1884) 评论(0) 推荐(0) 编辑
  2022年10月28日
摘要: #!/bin/bash source /etc/profile #需要导入环境变量,否则非原生命令执行不成功 Sendmail(){ smtp='mail.yx.com' account='he@yx.com' password='123' to='liu@yx.com' subject=$1 co 阅读全文
posted @ 2022-10-28 10:34 momingliu11 阅读(342) 评论(0) 推荐(0) 编辑
  2022年10月27日
摘要: 1. yum -y install sendemail 2.编写函数发送邮件(需要认证) Sendmail(){ smtp='noticemail.yxit.cc' account='he@qq.com' password='123' to='liu@yx.com' #多个收件人以空格分隔即可 su 阅读全文
posted @ 2022-10-27 17:16 momingliu11 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 89 下一页