import hashlib import string import re import stat from debug import Debug from data_alchemy import * from sqlalchemy import and_ rootMessage = """ Root privileges are required to run this program. """ longOptions = ['update-db'] debug = Debug() debug.level = 0 def githash(data): s = hashlib.sha1() s.update("blob %u\0" % len(data)) s.update(data) return s.hexdigest() source_windows_base = "./exploitdb/platforms/windows/" destination_windows_base = "./exploits/windows/" source_linux_base = "./exploitdb/platforms/linux/" destination_linux_base = "./exploits/linux/" script_extensions = ['py', 'pl', 'php']
counter += 1 base_dir = working_dir os.sys.path.insert(0, base_dir) from debug import Debug options = "t:p:u:v:d" longOptions = ("port=", "debug-level=") ip = "127.0.0.1" port = 21 receive_bytes = 1024 username = "******" password = "******" debug = Debug() debug.level = 0 root_msg = """ You must have root privileges to run this script! """ usage = ( """ [*] Usage: %s -t <target ip> --port <port> -u <username> -p <password> [other options] -d debug level 1 -dd debug level 2 """ % sys.argv[0] ) # Create an array of 30 buffers, from 100 to 2000, with increments of 100.