Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Expr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Num If CompareIn Str NameLoad body TryExcept body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad TryFinally body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body TryExcept body If CompareIs Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Return TupleLoad NameLoad Str NameLoad handlers ExceptHandler type NameLoad body Return TupleLoad NameLoad Str NameLoad orelse Return TupleLoad NameLoad Str NameLoad decorator_list
N/A N/A six N/A socket N/A logging patch patch_transport exceptions AuthRequired authers brute_amqp brute_redis brute_zmq N/A N/A patch_transport N/A log N/A N/A logging getLogger is_rabbit N/A N/A host port user password config N/A N/A N/A 
	Custom detection of RabbitMQ servers
	 N/A s N/A N/A socket socket N/A N/A N/A s setsockopt N/A socket SOL_SOCKET N/A socket SO_REUSEADDR 1 N/A N/A N/A s connect N/A host N/A int port N/A N/A N/A s send A





 N/A data N/A N/A s recv 1000000 N/A N/A AMQP data N/A N/A N/A N/A N/A brute_amqp host port user password N/A True N/A N/A N/A N/A socket timeout N/A N/A N/A AuthRequired N/A N/A False N/A get_server_type N/A N/A config N/A N/A N/A 
	Get server type and if it's open or closed.

	Returns server type and their status as format: (TYPE, STATUS, port), where:

	- TYPE: redis/zeromq/amqp
	- STATUS: open/closed/auth
	
	:return: type of server as format: (type, status, port)
	:rtype: (str, str, int)
	 N/A handlers N/A Redis RabbitMQ ZeroMQ brute_redis is_rabbit brute_zmq N/A host N/A config target N/A port N/A config port N/A user N/A config user N/A password None N/A result -1 N/A N/A N/A log warning N/A     > Analyzing host '%s' with port '%s'  N/A host port N/A N/A N/A N/A N/A s N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A N/A s settimeout N/A config timeout N/A result N/A N/A s connect_ex N/A host N/A int port N/A N/A N/A N/A socket gaierror N/A e N/A N/A N/A N/A log debug N/A %s error: %s N/A port e N/A N/A N/A N/A s close N/A N/A result 0 N/A N/A N/A N/A log info N/A          <i> Port '%s' is open in '%s' N/A port host N/A N/A server_type handle N/A N/A six iteritems handlers N/A N/A N/A N/A N/A N/A handle host port user password config True N/A N/A N/A server_type open port N/A N/A N/A AuthRequired N/A N/A N/A server_type auth port N/A N/A N/A None closed port N/A