@@ -26,7 +26,7 @@ def optparser():
2626
2727 parser = argparse .ArgumentParser (
2828 usage = "python autosploit.py -[c|z|s|a] -[q] QUERY\n "
29- "{spacer}[-C] WORKSPACE LHOST LPORT [-e]\n "
29+ "{spacer}[-C] WORKSPACE LHOST LPORT [-e] [--whitelist] \n "
3030 "{spacer}[--ruby-exec] [--msf-path] PATH [-E] EXPLOIT-FILE-PATH\n "
3131 "{spacer}[--rand-agent] [--proxy] PROTO://IP:PORT [-P] AGENT" .format (
3232 spacer = " " * 28
@@ -89,10 +89,10 @@ def parse_provided(opt):
8989 parser = any ([opt .searchAll , opt .searchZoomeye , opt .searchCensys , opt .searchShodan ])
9090
9191 if opt .rubyExecutableNeeded and opt .pathToFramework is None :
92- lib .settings .close ("if the Ruby exec is needed, so is that path to metasploit, pass the `--msf-path` switch" )
92+ lib .settings .close ("if the Ruby exec is needed, so is the path to metasploit, pass the `--msf-path` switch" )
9393 if opt .pathToFramework is not None and not opt .rubyExecutableNeeded :
9494 lib .settings .close (
95- "if you need the metasploit path, you also need the executable. pass the `--ruby-exec` switch"
95+ "if you need the metasploit path, you also need the ruby executable. pass the `--ruby-exec` switch"
9696 )
9797 if opt .personalAgent is not None and opt .randomAgent :
9898 lib .settings .close ("you cannot use both a personal agent and a random agent, choose only one" )
@@ -106,7 +106,9 @@ def parse_provided(opt):
106106 if opt .startExploit and opt .msfConfig is None :
107107 lib .settings .close (
108108 "you must provide the configuration for metasploit in order to start the exploits "
109- "do so by passing the `-C\--config` switch IE -C default 127.0.0.1 8080"
109+ "do so by passing the `-C\--config` switch (IE -C default 127.0.0.1 8080). don't be "
110+ "an idiot and keep in mind that sending connections back to your localhost is "
111+ "probably not a good idea"
110112 )
111113 if not opt .startExploit and opt .msfConfig is not None :
112114 lib .settings .close (
@@ -133,7 +135,9 @@ def single_run_args(opt, keys, loaded_modules):
133135 ethics_file = "{}/etc/text_files/ethics.lst" .format (os .getcwd ())
134136 with open (ethics_file ) as ethics :
135137 ethic = random .choice (ethics .readlines ()).strip ()
136- lib .settings .close ("Here we have an ethical lesson for you:\n \n {}" .format (ethic ))
138+ lib .settings .close (
139+ "You should take this ethical lesson into consideration "
140+ "before you continue with the use of this tool:\n \n {}\n " .format (ethic ))
137141 if opt .exploitList :
138142 try :
139143 lib .output .info ("converting {} to JSON format" .format (opt .exploitList ))
@@ -154,8 +158,7 @@ def single_run_args(opt, keys, loaded_modules):
154158 elif opt .appendHosts :
155159 search_save_mode = "a"
156160
157- # TODO[4]:// move the searches into their own class and call it from the static method if a search is needed
158- # this is ugly and i wanna change it
161+ # changed my mind it's not to bad
159162 if opt .searchCensys :
160163 lib .output .info (single_search_msg .format ("Censys" ))
161164 api_searches [2 ](
0 commit comments