Skip to content

Instantly share code, notes, and snippets.

View tnt1200's full-sized avatar
🐶

tnt1200

🐶
  • BH-Python
  • ShenZhen China
View GitHub Profile
##
# Copyright (c) 2014-2016, racaljk.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY. Redistribution and use in anyway, DO
# NOT remove these and follow comments.
#
# Host Database
#
# localhost is used to configure the loopback interface
@tnt1200
tnt1200 / svn_brute.py
Created July 28, 2015 08:23
svn brute force
import sys
import argparse
from svn import remote
# code by tnt1200
# https://pypi.python.org/pypi/svn
err = 'E170001'
err2 = 'Password incorrect'
@tnt1200
tnt1200 / rsabd.py
Last active August 29, 2015 14:13 — forked from ryancdotorg/rsabd.py
#!/usr/bin/env python
import sys
import gmpy
import curve25519
from struct import pack
from hashlib import sha256
from binascii import hexlify, unhexlify
@tnt1200
tnt1200 / rtcp.py
Created August 10, 2014 06:06
rtcp.py
# -*- coding: utf-8 -*-
'''
filename:rtcp.py
@desc:
利用python的socket端口转发,用于远程维护
如果连接不到远程,会sleep 36s,最多尝试200(即两小时)
@usage:
./rtcp.py stream1 stream2
#!/bin/sh
yum -y groupinstall "Development Tools"
wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh epel-release-5*.rpm
rpm -Uvh remi-release-5*.rpm
yum -y install python-devel screen
yum --enablerepo=remi install libcurl-devel -y
mkdir /opt/miner
cd /opt/miner
#!/usr/bin/python
# Filename s5.py
# Python Dynamic Socks5 Proxy
# Usage: python s5.py 1080
# Background Run: nohup python s5.py 1080 &
# Email: [email protected]
import socket, sys, select, SocketServer, struct, time
class ThreadingTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer): pass