Skip to content

Instantly share code, notes, and snippets.

@WeiEast
WeiEast / vsFtpdBackdoor.py
Created December 1, 2017 13:15 — forked from thaisingle/vsFtpdBackdoor.py
Source code of Python for Exploiting the vulnerability of vsFTP version 2.3.4 (vsFtpd Backdoor Command Execution)
#!/usr/bin/python2
import sys
import socket
import time
import threading
if len(sys.argv) == 3:
pass
else:
直接下载安装包,装python2.7.5,默认应该会在/usr/bin/下面多一个python2.7
因为系统的python是2.6,所以如果用easy_install装了pip及virtualenv,那么全部的项目都不使用python2.7了
所以我们需要自己下包,安装pip等
(以下4步全都是使用su权限进行操作)
1、下载distribute,用于定位pypi内容的
wget --no-check-certificate https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip#md5=c6c59594a7b180af57af8a0cc0cf5b4a
@WeiEast
WeiEast / py.py
Created November 19, 2015 15:36
python interview questions
# encoding: utf8
# 什么是lambda函数?它有什么好处?另外python在函数式编程方面提供了些什么函数和语法?
# - lambda 就是匿名函数
# - 好处: 可以动态生成一个函数对象,不用给这个对象命名,污染名字空间
# - 函数:map()/filter()
# - 语法:可以函数内部定义函数,闭包支持
# 详细说说tuple、list、dict的用法,它们的特点;
# - tuple 固定长度的子项不可变的顺序型容器,一般用来做常量(策划配表)或者表示少量属性的对象(比如pos)表示
#!/usr/bin/env python
# coding=utf8
# author=evi1m0
# website=linux.im
'''
12306 Captcha Picture:
author: Evi1m0@20150316
1. Download Captcha
2. Pic Conver Text
@WeiEast
WeiEast / openssl.py
Last active August 29, 2015 14:08 — forked from rixtox/openssl.py
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select