2016年8月31日
摘要: 我发现PYTHON新手在理解*args和**kwargs这两个魔法变量的时候有些困难。他们到底是什么呢? 首先,我先告诉大家一件事情,完整地写*args和**kwargs是不必要的,我们可以只写*和**。你也可以写*var和**vars。写*args和**kwargs只是一个大家都遵守的习惯。那现在让我们从*args讲起。 *args的使用 *args和**kwargs允许你在给函数传不定数... 阅读全文
posted @ 2016-08-31 11:54 严宏君 阅读(5908) 评论(0) 推荐(0) 编辑
  2016年8月19日
摘要: 将下载源加入到系统的源列表 将下载源加入到系统的源列表 sudo wget https://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/ 导入谷歌软件的公钥,用于下面步骤中对下载软件进行验证 导入谷歌软件的公钥 阅读全文
posted @ 2016-08-19 16:00 严宏君 阅读(347) 评论(1) 推荐(0) 编辑
  2016年8月17日
摘要: apt-get install git git clone https://github.com/geeeeeeeeek/electronic-wechat.git cd electronic-wechat apt-get install npm apt-get install nodejs-leg 阅读全文
posted @ 2016-08-17 11:16 严宏君 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: 1.打开ubuntu系统自带的firefox软件 2.打开linux.wps.cn,并点击立即下载 3. 点击下载deb安装包 4.进入下载目录,sudo dpkg -i wps-office_10.1.0.5672~a21_amd64.deb 5.进入搜索功能,搜索WPS,将WPS文字、WPS表格 阅读全文
posted @ 2016-08-17 06:08 严宏君 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 安装命令 sudo apt-get install fcitx libssh2-1 查看是否安装了这些依赖 搜索命令 dpkg -l | grep fcitx dpkg -l | grep libssh 2.接下来我们从搜狗官方下载deb包下载地址在 http://pinyin.sogou.com/ 阅读全文
posted @ 2016-08-17 00:00 严宏君 阅读(2123) 评论(0) 推荐(0) 编辑
  2016年8月12日
摘要: 工具/原料 kali 2.0 ssh SSH连接工具(XShell) 一、配置SSH参数 修改sshd_config文件,命令为: vi /etc/ssh/sshd_config 将#PasswordAuthentication no的注释去掉,并且将NO修改为YES //kali中默认是ye... 阅读全文
posted @ 2016-08-12 13:29 严宏君 阅读(8556) 评论(0) 推荐(0) 编辑
  2016年8月1日
摘要: mai_sample.py home.py 运行结果: 阅读全文
posted @ 2016-08-01 13:42 严宏君 阅读(193) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python #-*- coding:utf-8 -*- class SqlHelper(): __static_name=None @classmethod def instance(cls): if cls.__static_name: return cls.__s 阅读全文
posted @ 2016-08-01 13:36 严宏君 阅读(143) 评论(0) 推荐(0) 编辑
  2016年7月31日
摘要: 1.apt-get install python-nmap 2.apt-get install python-setuptools 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 python-setuptools 已经是最新的版本。 python-setuptools 已设置为手动安装。 下列软件包是自动安... 阅读全文
posted @ 2016-07-31 22:47 严宏君 阅读(1084) 评论(0) 推荐(1) 编辑
  2016年5月9日
摘要: 1.msfconsle 2.use auxiliary/scanner/smb/smb_version 3. msf auxiliary(smb_version) > set RHOSTS 172.16.62.1-200RHOSTS => 172.16.62.1-200msf auxiliary(s 阅读全文
posted @ 2016-05-09 13:30 严宏君 阅读(2458) 评论(0) 推荐(0) 编辑