自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(84)
  • 资源 (2)
  • 收藏
  • 关注

转载 Pentest Tips and Tricks

Pentest Handy Tips and Tricks.ContentsOther PartsNmap Full Web Vulnerable ScanDirb Dir Bruteforce:Nikto web server scannerWordPress ScannerHTTP FingerprintingSKIP Fish ScannerNmap Ports ScanNC

2016-05-27 16:38:16 2160

转载 常用的Mysql数据库操作语句大全

零、用户管理:  1、新建用户:    >CREATE USER name IDENTIFIED BY 'ssapdrow';  2、更改密码:    >SET PASSWORD FOR name=PASSWORD('fdddfd');  3、权限管理    >SHOW GRANTS FOR name;    //查看name用户权限    >GRANT SELECT

2016-05-21 16:16:03 762

转载 将 Sublime 3 打造成 Python/Django IDE

作者: Desmond Chen, 发布日期: 2014-07-02, 修改日期: 2014-07-02 Sublime Text 是一款非常强大的文本编辑器, 下面我们介绍如何将 Sublime Text 3 打造成一款 Python/Django 开发利器:1. 安装 Sublime Text 3虽然现在的 Sublime 3 还处于 beta 阶段, 但已经非常稳定了,

2015-10-11 16:53:24 3803 1

转载 python下编译py成pyc和pyo

cite: http://www.cnblogs.com/dkblog/archive/2009/04/16/1980757.html其实很简单,用python -m py_compile file.pypython -m py_compile /root/src/{file1,file2}.py编译成pyc文件。也可以写份脚本来做这事:Code:

2015-08-13 17:44:30 493

转载 利用VBScript在隐藏窗口中运行应用程序

起因 使用MoinMoin Desktop Edition已经有一段时间了,每次开机都得运行wikiserver.py,而且总会有一个命令行的黑框,很碍眼。折腾了半晌,终于可以干掉黑框,让wikiserver.py在后台运行了。 其实这种方法同样可以用于其它需要保持运行,但又不想看见窗口的软件。 原理 利用VBScript创建wscript.shell对象,运行一个

2015-07-21 12:13:32 7727

转载 Docker -- 命令总结

查看docker的子命令,直接敲docker或完整的docker help就可以了:root@tankywoo-docker:~# docker [1/1617]Usage: docker [OPTIONS] COMMAND [arg...] -H=[unix:///var/run/docker.sock]

2015-07-09 15:43:02 1481

转载 常见的windows自启动方式

一: 注册表相关===============================================有部分程序可以将自身在注册表加载的位置进行隐藏,常见的操作有两种方式:1、对指定的注册表分支、键值设置权限(Acls)导致当前用户无权查看这些分支、键值的内容,自然无法获取病毒信息了。2、使用超长的分支、键值名字,让注册表程序无法正常显示这些内容。在XP

2014-10-29 04:17:08 3359

转载 Making scripts run at boot time with Debian

Posted by Steve on Mon 11 Oct 2004 at 13:01Tags: boot, debian-specific commands, initscripts, schedulingDebian uses a Sys-V like init system for executing commands when the system runlevel

2014-10-06 01:21:13 537

转载 How to set up a simple mail server on Debian in 5 easy steps

This tutorial will take you through the steps of setting up and configuring a simple mail server(SMTP, POP3, IMAP) on Debian/Linux. The instructions will be given for Debian, but they can be adapted q

2014-09-25 05:15:35 1829

转载 python发邮件实例

环境:windows ,python3.2.2文件形式的邮件[python] view plaincopy#!/usr/bin/env python3  #coding: utf-8  import smtplib  from email.mime.text import MIMEText  from email.head

2014-09-16 04:32:58 1040

转载 webshell变形

http://www.cnblogs.com/LittleHann/p/3522990.html

2014-06-05 09:58:54 620

转载 在Win2000/XP上安静地替换正在使用的系统文件

作者:Bgate总是索而不敷总有些过意不去.另外在安焦上灌了两年水竟然安焦文档还找不到一个我的名字. 灌不出篇精华帖子还回复不到别人灌的精华贴. 也算得上是个奇迹了.  要安静地替换正在使用的系统文件要解决两个问题:  1. 替换正在使用的文件.  2. 在替换系统文件时不显示插CD的对话框.  微软有两个工具可以替换正在使用的文件,zap和inuse. 不过都没有

2014-05-04 15:49:43 812

转载 debian/ubuntu和centos的系统升级命令

在安装/配置系统生产环境之前,一般都需要对现有系统进行升级,以确保系统内的包/组件达到最新版本,而debian/ubuntu和centos的升级命令是不同的,详情如下:debian/ubuntu,输入:apt-get update系统进行完毕后,输入:apt-get upgrade等待系统操作完毕。这一步如果你不考虑系统内部组件之间的依赖关系,而进行升级的话

2014-04-30 21:17:45 16862

转载 VMProtect SDK测试

XXX的时候用得上,记录一下1,复制VMProtectSDK32.lib和VMProtectSDK.h到工程目录,并添加头文件和库的引用:#include "VMProtectSDK.h"#pragma comment(lib,"VMProtectSDK32.lib")2,然后用VMProtectBegin、VMProtectBeginVirtualization、VM

2014-04-09 15:04:21 7123

转载 Any2Bat.vbs

很久以前写过一个Any2Bat,作用是把任何文件变成echo版,以便通过远程shell上传。http://hi.baidu.com/zzzevazzz/blog/item/75b8b50a118b6c1e94ca6b36.html新版本改进如下:1,增加数据压缩功能(使用系统自带的makecab.exe和expand.exe)。2,Base64编码采用Micro

2014-04-08 20:32:10 804

原创 C/C++ Log function source code

// log error info to file.void Log(char *szInfo, ...){ va_list args = NULL; FILE *fp = NULL; if (NULL == szInfo) { return; } fp = fopen("ad.log", "a+"); if (NULL ==

2014-03-24 23:11:55 572

原创 URLDownloadToFile

URLDownloadToFilehttp://msdn.microsoft.com/en-us/library/ms775123%28VS.85%29.aspx

2014-03-17 20:36:31 630

原创 simple HTTP server - python

# -*- coding:utf-8 -*-import sysreload(sys)sys.setdefaultencoding('gb18030')import SimpleHTTPServerimport SocketServerPORT = 8000Handler = SimpleHTTPServer.SimpleHTTPRequestHandlerhttpd =

2014-03-11 00:19:04 2005

转载 wget function of python

#wget_cmd.py#!/usr/bin/pythonimport sys, urllibdef reporthook(*a): print afor url in sys.argv[1:]: i = url.rfind('/') file = url[i+1:] print url, "->", file urllib.urlretriev

2014-03-06 15:35:26 614

原创 git cannot work in windows cmd shell : try git-credential-winstore

you can not use git for network operation, due to the authentication problem.solution: install git-credential-winstore.exe点击打开链接

2014-03-05 22:56:45 656

转载 Simple SSL cert - HOWTO

You will need openssl.Make a new ssl private key:Generate a new unencrypted rsa private key in PEM format: openssl genrsa -out privkey.pem 1024You can create an encrypted key by addi

2014-03-04 00:01:12 680

转载 python psutil

import psutilPROCNAME = "python.exe"for proc in psutil.process_iter(): if proc.name == PROCNAME: proc.kill()

2014-03-03 16:56:55 2053

转载 get proc list by python

use the pywin32 module.import win32pdh, string, win32apidef procids(): #each instance is a process, you can have multiple processes w/same name junk, instances = win32pdh.EnumObjectIte

2014-03-03 16:50:00 949

转载 C调用Python脚本文件里的函数

#Python脚本,存为pytest.pydef add(a,b): print "in python function add" print "a = " + str(a) print "b = " + str(b) print "ret = " + str(a+b) return a + b// C代码调,用上面的add函数#include #

2014-02-22 16:10:21 712

转载 C语言调用python代码 - 2

#include "python_lib/Python.h" #include #pragma comment(lib,"python27_d.lib") int main(int argc, char *argv[]) { Py_Initialize(); //PyRun_SimpleString("import sys"); /

2014-02-22 15:35:26 671

转载 C语言调用PYTHON脚本

先上python代码:# call.pydef test(): print 'hello world'def add(a,b): return a + b 再上c代码#include #include #include int main(int argc, char *argv[]){ Py_Initialize(); if(!Py_

2014-02-22 15:27:16 1989

转载 HTTPS Server - Python2

#!/usr/bin/env pythonfrom BaseHTTPServer import BaseHTTPRequestHandler,HTTPServerimport sslimport osclass HTTPRequestHandler(BaseHTTPRequestHandler): def setup(self): SSLSocket = ssl.

2014-02-19 23:52:49 1463

转载 Python 3 中的 urllib 实例

在Python3中合并了 urllib 和 urllib2, 统一命名为 urllib 了,我觉得这样更加合理了。urllib真的是太方便了,让我们可以像读取本地文件一样读取WEB上的数据。这周学习了一番,并封装了一个类,供以后方便使用吧!并附带有许多的应用实例。一、自己封装的类Code example:12345

2014-01-22 20:21:47 9906

原创 fatal: could not read Password for 'https:/[email protected]': No such file or directory

git issues in windows while push file to server.[issue description]fatal: could not read Password for 'https://[email protected]': No such file or directory[solution]going to

2014-01-21 20:29:26 8373

转载 GPL源码感染的问题

GPL 的传染可以被两道边界阻止(但是很不幸,这两道边界都很模糊,所以你必须用最保守的方式「自我审查」):证明你的产品不是 derived work;或者证明你满足 system exception。如何证明不是 Derived Work唯一被认可的方式是建立 address space boundary。被承认的 ASD 包括:基于 MMU 的内存空间隔离(进程隔离,

2014-01-12 23:24:15 4247 2

转载 右键添加cmd的技巧

方法一 1.打开“我的电脑”2.点击菜单中的“工具”-“文件夹选项”3.选择“文件类型”,找到“(无)资料夹”4.点“高级”,“新建”5.在“操作”中填入“CMD快速通道”(填什么都可以)   在“用于执行操作的应用程序”中填入“cmd.exe /k cd %1”(这个是关键),确定即可。【A:/K :执行字符串指定的命令但保留=执行

2013-11-23 23:21:21 666

转载 笔记本怎么设置WIfi热点

方法/步骤1首先确认你的无线网卡可以使用。在开始菜单中依次找到“所有程序”--“附件”--“命令提示符”,右键“以管理员身份运行”。如下图所示:2在“命令提示符”里输入“netsh wlan set hostednetwork mode=allow ssid=Test key=0123456789”,回车,系统会自动虚拟出一个

2013-10-28 21:09:59 789

转载 Windows下编译OpenSSL (VS2010)

需要说明的是请一定安装openssl-1.0.1e,openssl-1.0.0我没有编译成功。如何在Windows下编译OpenSSL (Vs2010使用VC10的cl编译器)1、安装ActivePerl//初始化的时候,需要用到perl解释器2、使用VS2010下的Visual Studio 2010 Command Prompt进入控制台模式(这个模式会自动设置各种环境变量)

2013-10-09 17:27:06 9216

原创 forbidden the ThinkVantage password manager

到C盘下搜索“css_pwmgr_toggle.exe”,一般是在“C:\Program Files\Lenovo\Client Security Solution”下,双击打开css_pwmgr_toggle.exe,就可以禁用“password manager”

2013-03-10 09:00:33 786

转载 information about btcoin

一在过去的十年左右的时间里,有数十家公司(比如CyberCash和DigiCash,也有像Beenz和Flooz这种有着奇怪名字的、更小的初创公司)都曾企图创建一种新的用于网上交易的电子货币,但它们都基本上都失败了。不过这并没有阻止一个精英小组推出一种名为Bitcoin的 “点对点(peer-to-peer)”货币。虽然Bitcoin的一些支持者对于这种开源的新型电子货币的未来表示

2013-02-27 23:11:52 1206

转载 python: https client sample

#-*- coding: cp936 -*-#!/usr/bin/env pythonimport osimport httplibimport socketKEY_FILE = os.getcwd() + '/CA/private/key.pem'CERT_FILE = os.getcwd() + '/CA/certs/01.pem'GET = "GET"conn = ht

2013-01-01 16:04:25 1029

转载 python: https server sample

#-*- coding: cp936 -*-#!/usr/bin/env pythonimport socket, osfrom SocketServer import BaseServerfrom BaseHTTPServer import HTTPServer, BaseHTTPRequestHandlerfrom SimpleHTTPServer import SimpleHT

2013-01-01 16:02:29 3912

原创 website collection

http://cnbeta.com/http://www.leiphone.com/http://www.c114.net/http://www.tektalk.org/http://www.cnw.com.cn/

2012-10-27 22:13:33 552

原创 Modify the PAMIE for attach opened IE

class PAMIE: """ cPAMIE is an automation object based on the work of PAMIE by RLM http://pamie.sourceforge.net/ """ __version__ = "3.0" def __init__(self, url=None, timeOut=30

2012-10-27 20:42:00 674

原创 Get username and password for sina weibo

#-*- coding: gb2312 -*-from win32com.client import Dispatch as DSPfrom PAM30 import PAMIE as PIEcls_id = '{9BA05972-F6A8-11CF-A442-00A0C90A8F39}'# find and attach the open IEdef get_cur_ie():

2012-10-26 22:00:45 644

UPX文件压缩工具

PE文件(EXE/DLL等)压缩、解压缩工具。

2014-04-07

git-credential-winstore.exe

解决windows中使用git工具,不能输入用户名和密码的问题。原理是使用windows的“凭据管理器”。

2014-04-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除