环境:Ubuntu 16.04、mysql5.7
月度归档:2017年07月
Auditd – Linux 服务器安全审计工具
安全防护是首先要考虑的问题。为了避免别人盗取我们的数据,我们需要时刻关注它。安全防护包括很多东西,审计是其中之一。
我们知道Linux系统上有一个叫 auditd 的审计工具。这个工具在大多数Linux操作系统中是默认安装的。那么auditd 是什么?该如何使用呢?下面我们开始介绍。
tcpdump使用技巧
一般情况下,非HTTP协议的网络分析,在服务器端用tcpdump
比较多,在客户端用wireshark比较多,两个抓包软件的语法是一样的。
一、基本语法
1.1、过滤主机
- 抓取所有经过eth1,目的或源地址是192.168.1.1的网络数据
tcpdump -i eth1 host 192.168.1.1
- 指定源地址
tcpdump -i eth1 src host 192.168.1.1
- 指定目的地址
tcpdump -i eth1 dst host 192.168.1.1
1.2、过滤端口
Python fabric远程自动部署简介
Fabric是一个Python(2.5-2.7)库,用于简化使用SSH的应用程序部署或系统管理任务。
它提供的操作包括:执行本地或远程shell命令,上传/下载文件,以及其他辅助功能,如提示用户输入、中止执行等。
本文主要介绍CentOS 6.3上使用fabric进行自动部署的基本方法。 继续阅读
How To: Set the proxy for the WebBrowser control in .NET
I see some horrible solutions for this out on the web. Most involve setting the proxy for the entire machine and then toggling it back off. Here is a class that will allow you to set it ONLY FOR THE PROCESS that the control is hosted in. You could call it like this:
WinInetInterop.SetConnectionProxy(“localhost:8888”);
and then restore it to the default set in IE with this call:
// read the default settings for IE and restore these as the proxy
WinInetInterop.RestoreSystemProxy();
Let me know if you thought this was useful! 继续阅读
Python:使用代理proxy爬虫
Python:使用代理proxy爬虫
如果要测试代理是否成功, 抓http://icanhazip.com 这个网站看内容就知道了.
继续阅读