def cyclic_metasploit_find(subseq, sets=None):
 sets = (sets or [string.ascii_uppercase, string.ascii_lowercase, string.digits])
 if isinstance(subseq, (int, long)):
  subseq = packing.pack(subseq, 'all', 'little', False)
 return _gen_find(subseq, metasploit_pattern(sets))

def cyclic_metasploit_find ( subseq , sets = None ) : sets = ( sets or [ string . ascii_uppercase , string . ascii_lowercase , string . digits ] ) if isinstance ( subseq , ( int , long ) ) : subseq = packing . pack ( subseq , 'all' , 'little' , False ) return _gen_find ( subseq , metasploit_pattern ( sets ) )
cyclic_metasploit_find -> int calculates the position of a substring into a metasploit pattern sequence .