Rootkit安装踩坑记

首先先执行:yum update && yum upgrade 1.查看对方服务器的内核版本:uname -a 2.查找对应的内核版本和内核开发包,到下列地址搜对应的版本:kernel(内核) rpm包下载链接:ftp://ftp.pbone.net/mirror/ftp.scientificlinux.org/linux/scientific/7.0/x86_64/updates/security/kernel-xxx.xxx.xxxx..xxxx.x86_64.rpm kernel-devel(内核开发) rpm包下载链接:ftp://ftp.riken.jp/Linux/cern/centos/7/updates/x86_64/repoview/kernel-devel.html 3.kernel 直接安装即可:rpm -ivh kernel-xx.xxx.xxx.x […]

查看全部


关于ELK插件Sentinl最新版(Version 2.0)使用模版

{ “actions”: { “Email_alarm_480afd92-0c2a-460c-88d3-4c3027196d2a”: { “name”: “发送邮件的标题”, “throttle_period”: “1”, “email”: { “priority”: “medium”, “stateless”: false, “body”: “邮件实际内容可以如下格式{{payload.hits.total}}\r\n\r\n{{payload.hits.hits.0._source.message}}\r\n{{payload.hits.hits.0._source.host}}\r\n”, “to”: “邮件接受人”, “subject”: “邮件的subject” } } }, “input”: { “search”: { “request”: { “index”: [ “elk日 […]

查看全部


IOS开发笔记-PickerView控件使用

在Main.storyboard上拖入pickerview控件,设置一下大小和位置后,开始在ViewController.swift里面写入代码 //遵循UIPickerViewDelegate,UIPickerViewDataSource协议,所以添加以下类class ViewController: UIViewController, UIPickerViewDelegate, UIPickerViewDataSource {} //在预加载类里面写入如下,就是你打开应用的时候,程序首要加载的视图代码override func viewDidLoad() { super.viewDidLoad() pickerView.delegate = self pickerView.dataSource = self } //PickerView控件的值 let colors = [“Red”,” […]

查看全部


IOS开发笔记-点击按钮倒计时

//前提是新建一个按钮 @IBOutlet weak var edit: UIButton! func timeChange() {         var time = 100 //从100倒计时         let codeTimer = DispatchSource.makeTimerSource(flags: .init(rawValue: 0), queue: DispatchQueue.global())         codeTimer.schedule(deadline: .now(), repeating: .milliseconds(1000))         codeTimer.setEventHandler {             time = time – 1             DispatchQueue.main.async {         […]

查看全部


IOS开发笔记-特殊数组类型转换

let num_array = “01,02,03,04,05,06,07,08,09,10”let split_num_array = num_array.split(separator: “,”)var new_num_array = Array<String>()for _num_array in split_num_array { //      new_num_array.append(String(format: “%d”, Int(_num_array)!))         } let _new_array = new_num_array.joined(separator: “,”)//调用后输出print (_new_array) //结果:1,2,3,4,5,6,7,8,9,10

查看全部