getopt的使用说明:getopt模块的使用说明
try语句的使用说明:try语句的使用说明
唯一目的:短平快!!
语言:python
模块:socket,sys,getopt,threading,subprocess
#coding=utf-8
import sys
import socket
import getopt
import threading
import subprocess
listen = False
command = False
upload = False
execute = ""
target =""
upload_destination=""
port=0
#下面是语法说明
def usage():
print "bhp net tool"
print
print "usage:netcat.py -t target_host -p port"
print "-l --listen -listen on port"
print "-e --execute-file_to_run -execute the given file upon"
print "-c --command -initialize the command shell"
print "-u --upload=destination -receiving connection upload a file and write to destin"
print
print
print "examples:"
print "netcat.py -t 192.168.