def main(): tests_pyver() tests_platform() try: from bs4 import BeautifulSoup as bs except ImportError: printt(1, "Please install beautifulsoup 4 to continue ...") from core.shell import shell shell()
def main(): global url global action_url global port global user_agent global html_file global start tests_pyver() tests_platform() parser = optparse.OptionParser() parser.add_option("-q", "--quiet", dest="quiet_mode_opt", action="store_true", default=False, help="Runs without displaying the banner.") parser.add_option("-u", "--url", dest="url", help="The webpage URL.", default=None) parser.add_option("-a", "--action-url", dest="action_url", help="The action_url for the data.", default=None) parser.add_option("-p", "--port", dest="port", help="The port weeman server will listen.", default=8080) parser.add_option("-U", "--user-agent", dest="user_agent", help="User-Agent for the HTTP request.", default=usera) parser.add_option("-f", "--html-file", dest="html_file", help="HTML file to load, instead of URL.", default=None) parser.add_option("-s", "--start", dest="start", action="store_true", help="Start weeman server.") options, r = parser.parse_args() if options.start: from core.shell import shell_noint shell_noint(options) else: from core.shell import shell shell()
def main(): tests_pyver() tests_platform() parser = optparse.OptionParser() parser.add_option("-q", "--quiet", dest="quiet_mode_opt", action="store_true", default=False, help="Runs without displaying the banner.") options,r = parser.parse_args() mode = options.quiet_mode_opt from core.shell import shell shell(mode)
def main(): tests_pyver() tests_platform() parser = optparse.OptionParser() parser.add_option("-q", "--quiet", dest="quiet_mode_opt", action="store_true", default=False, help="Runs without displaying the banner.") parser.add_option("-p", "--profile", dest="profile", help="Load weeman profile.") options,r = parser.parse_args() if options.profile: from core.shell import shell_noint shell_noint(options.profile) else: from core.shell import shell shell()
def main(): tests_pyver() tests_platform() try: from bs4 import BeautifulSoup as bs except ImportError: printt(1, "Please install beautifulsoup 4 to continue ...") parser = optparse.OptionParser() parser.add_option("-q", "--quiet", dest="quiet_mode_opt", action="store_true", default=False, help="Runs without displaying the banner.") options,r = parser.parse_args() mode = options.quiet_mode_opt from core.shell import shell shell(mode)
def main(): tests_pyver() tests_platform() parser = optparse.OptionParser() parser.add_option("-q", "--quiet", dest="quiet_mode_opt", action="store_true", default=False, help="Runs without displaying the banner.") parser.add_option("-u", "--url", dest="url", help="The webpage URL.", default=None) parser.add_option("-a", "--action-url", dest="action_url", help="The action_url for the data.", default=None) parser.add_option("-p", "--port", dest="port", help="The port weeman server will listen.", default=8080) parser.add_option("-U", "--user-agent", dest="user_agent", help="User-Agent for the HTTP request.", default=usera) parser.add_option("-f", "--html-file", dest="html_file", help="HTML file to load, instead of URL.", default=None) parser.add_option("-s", "--start", dest="start", action="store_true", help="Start weeman server.") options,r = parser.parse_args() if options.start: from core.shell import shell_noint shell_noint(options) else: from core.shell import shell shell()
def connect(self, rhost, rport): target_addr = rhost + ":" + rport print(self.badges.G + "Connecting to " + target_addr + "...") self.ghost.start_server() self.ghost.connect(target_addr) is_connected = self.ghost.send_command("devices", "| grep " + target_addr) is_offline = self.ghost.send_command("devices", "| grep offline") if is_connected == "": print(self.badges.E + "Failed to connect to " + target_addr + "!") self.ghost.disconnect(target_addr) sys.exit() else: if is_offline != "": print(self.badges.E + "Failed to connect to " + target_addr + "!") self.ghost.disconnect(target_addr) sys.exit() time.sleep(0.5) from core.shell import shell shell = shell(self.ghost) shell.shell(target_addr)
def main(): parser = optparse.OptionParser() options,r = parser.parse_args() from core.shell import shell shell()
def main(): tests_pyver() tests_platform() from core.shell import shell shell()