""" # python standard library import sys import os import imp from core.color import * from core.Comp import tab from core.static_const import * from api.pl_shell_cmd_const import PL_PWD name = PL_PWD sys.path.append(name) #记录开始 tab.start() #shell main class class PLline(object): def __init__(self): self.disassembly = "" def imp_poc(self, path): poc = imp.load_source('PocInfo', path) poc = poc.Payload() return poc def gener(self, poc): from database.generator import generator poc.sld()
import sys #os.path.dirname(os.path.realpath(__file__)) name = os.sep.join([ x for x in os.getcwd().split(os.sep) if x != os.getcwd().split(os.sep)[-1] ]) sys.path.append(name) from core.logo.logo import banner from core.color import bcolors from core.logo.counter import * from core.Comp import tab from core.static_const import * dpath = name + PL_SHOW_PATH tab.start(1) db = PLogo(dpath).start() def start(): print(banner(db[0], db[1])) shellsploit() def shellsploit(): try: bash = bcolors.OKBLUE + bcolors.UNDERLINE + "sle" + bcolors.ENDC bash += bcolors.OKBLUE + " > " + bcolors.ENDC try: terminal = raw_input(bash) except NameError: