def usage(self): msg = """ Synopsis: Thug: Pure Python honeyclient implementation Usage: python thug.py [ options ] url Options: -h, --help \tDisplay this help information -o, --output= \tLog to a specified file -r, --referer= \tSpecify a referer -p, --proxy= \tSpecify a proxy (see below for format and supported schemes) -l, --local -v, --verbose \tEnable verbose mode -d, --debug \tEnable debug mode -u, --useragent= \tSelect a user agent (see below for values, default: xpie61) Proxy Format: scheme://[username:password@]host:port (supported schemes: http, socks4, socks5) Available User-Agents: """ for key, value in sorted(Personality.iteritems(), key = lambda (k, v): (v['id'], k)): msg += "\t%s\t\t\t%s\n" % (key, value['description'], ) print msg sys.exit(0)
def usage(self): msg = """ Synopsis: Thug: Pure Python honeyclient implementation Usage: python thug.py [ options ] url Options: -h, --help \tDisplay this help information -o, --output= \tLog to a specified file -l, --local -v, --verbose \tEnable verbose mode -d, --debug \tEnable debug mode -u, --useragent= \tSelect a user agent (see below for values, default: xpie61) Available User-Agents: """ for key, value in sorted(Personality.iteritems(), key = lambda (k, v): (v['id'], k)): msg += "\t%s\t\t\t%s\n" % (key, value['description'], ) print msg sys.exit(0)