def tamper(payload, **kwargs):
 retVal = payload
 warnMsg = "you should consider usage of switch '--no-cast' along with "
 warnMsg += ("tamper script '%s'" % os.path.basename(__file__).split('.')[0])
 singleTimeWarnMessage(warnMsg)
 match = re.search('(?i)MID\\((.+?)\\s*,\\s*(\\d+)\\s*\\,\\s*(\\d+)\\s*\\)', (payload or ''))
 if match:
  retVal = retVal.replace(match.group(0), ('MID(%s FROM %s FOR %s)' % (match.group(1), match.group(2), match.group(3))))
 return retVal

def tamper ( payload , ** kwargs ) : retVal = payload warnMsg = "you should consider usage of switch '--no-cast' along with " warnMsg += ( "tamper script '%s'" % os . path . basename ( __file__ ) . split ( '.' ) [ 0 ] ) singleTimeWarnMessage ( warnMsg ) match = re . search ( '(?i)MID\\((.+?)\\s*,\\s*(\\d+)\\s*\\,\\s*(\\d+)\\s*\\)' , ( payload or '' ) ) if match : retVal = retVal . replace ( match . group ( 0 ) , ( 'MID(%s FROM %s FOR %s)' % ( match . group ( 1 ) , match . group ( 2 ) , match . group ( 3 ) ) ) ) return retVal
unicode-url-encodes non-encoded characters in a given payload requirement: * asp * asp .