Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
Python url encoder script
ok, I have it MOSTLY working, but I need a small fix, it doesn't return the right characters, like < returns %3%63 instead of %3c. My second attempt at a script, maybe it can be helpful to someone for xss once it works. Thanks to anyone that helps! I'm starting to get the hang of it. The other one I made was for trig that calculates the radius of the circle and its sin cos tan sec csc and cot values, if anyone wants it I'll post it later.
print "URL encoder - by Lemur"
x = 1
while x == 1:
convert = raw_input ("Enter the string to convert here : ")
convert = [item.replace(' ', '%20') for item in convert]
convert = [item.replace('!', '%21') for item in convert]
convert = [item.replace('"', '%22') for item in convert]
convert = [item.replace('#', '%23') for item in convert]
convert = [item.replace('$', '%24') for item in convert]
convert = [item.replace('%', '%25') for item in convert]
convert = [item.replace('&', '%26') for item in convert]
convert = [item.replace('\'', '%27') for item in convert]
convert = [item.replace('(', '%28') for item in convert]
convert = [item.replace(')', '%29') for item in convert]
convert = [item.replace('*', '%2a') for item in convert]
convert = [item.replace('+', '%2b') for item in convert]
convert = [item.replace('-', '%2d') for item in convert]
convert = [item.replace('.', '%2e') for item in convert]
convert = [item.replace('/', '%2f') for item in convert]
convert = [item.replace('0', '%30') for item in convert]
convert = [item.replace('1', '%31') for item in convert]
convert = [item.replace('2', '%32') for item in convert]
convert = [item.replace('3', '%33') for item in convert]
convert = [item.replace('4', '%34') for item in convert]
convert = [item.replace('5', '%35') for item in convert]
convert = [item.replace('6', '%36') for item in convert]
convert = [item.replace('7', '%37') for item in convert]
convert = [item.replace('8', '%38') for item in convert]
convert = [item.replace('9', '%39') for item in convert]
convert = [item.replace(':', '%3a') for item in convert]
convert = [item.replace(';', '%3b') for item in convert]
convert = [item.replace('<', '%3c') for item in convert]
convert = [item.replace('=', '%3d') for item in convert]
convert = [item.replace('>', '%3e') for item in convert]
convert = [item.replace('?', '%3f') for item in convert]
convert = [item.replace('@', '%40') for item in convert]
convert = [item.replace('A', '%41') for item in convert]
convert = [item.replace('B', '%42') for item in convert]
convert = [item.replace('C', '%43') for item in convert]
convert = [item.replace('D', '%44') for item in convert]
convert = [item.replace('E', '%45') for item in convert]
convert = [item.replace('F', '%46') for item in convert]
convert = [item.replace('G', '%47') for item in convert]
convert = [item.replace('H', '%48') for item in convert]
convert = [item.replace('I', '%49') for item in convert]
convert = [item.replace('J', '%4a') for item in convert]
convert = [item.replace('K', '%4b') for item in convert]
convert = [item.replace('L', '%4c') for item in convert]
convert = [item.replace('M', '%4d') for item in convert]
convert = [item.replace('N', '%4e') for item in convert]
convert = [item.replace('O', '%4f') for item in convert]
convert = [item.replace('P', '%50') for item in convert]
convert = [item.replace('Q', '%51') for item in convert]
convert = [item.replace('R', '%52') for item in convert]
convert = [item.replace('S', '%53') for item in convert]
convert = [item.replace('T', '%54') for item in convert]
convert = [item.replace('U', '%55') for item in convert]
convert = [item.replace('V', '%56') for item in convert]
convert = [item.replace('W', '%57') for item in convert]
convert = [item.replace('X', '%58') for item in convert]
convert = [item.replace('Y', '%59') for item in convert]
convert = [item.replace('Z', '%5a') for item in convert]
convert = [item.replace('[', '%5b') for item in convert]
convert = [item.replace('\\', '%5c') for item in convert]
convert = [item.replace(']', '%5d') for item in convert]
convert = [item.replace('^', '%5e') for item in convert]
convert = [item.replace('_', '%5f') for item in convert]
convert = [item.replace('`', '%60') for item in convert]
convert = [item.replace('a', '%61') for item in convert]
convert = [item.replace('b', '%62') for item in convert]
convert = [item.replace('c', '%63') for item in convert]
convert = [item.replace('d', '%64') for item in convert]
convert = [item.replace('e', '%65') for item in convert]
convert = [item.replace('f', '%66') for item in convert]
convert = [item.replace('g', '%67') for item in convert]
convert = [item.replace('h', '%68') for item in convert]
convert = [item.replace('i', '%69') for item in convert]
convert = [item.replace('j', '%6a') for item in convert]
convert = [item.replace('k', '%6b') for item in convert]
convert = [item.replace('l', '%6c') for item in convert]
convert = [item.replace('m', '%6d') for item in convert]
convert = [item.replace('n', '%6e') for item in convert]
convert = [item.replace('o', '%6f') for item in convert]
convert = [item.replace('p', '%70') for item in convert]
convert = [item.replace('q', '%71') for item in convert]
convert = [item.replace('r', '%72') for item in convert]
convert = [item.replace('s', '%73') for item in convert]
convert = [item.replace('t', '%74') for item in convert]
convert = [item.replace('u', '%75') for item in convert]
convert = [item.replace('v', '%76') for item in convert]
convert = [item.replace('w', '%77') for item in convert]
convert = [item.replace('x', '%78') for item in convert]
convert = [item.replace('y', '%79') for item in convert]
convert = [item.replace('z', '%7a') for item in convert]
convert = [item.replace('{', '%7b') for item in convert]
convert = [item.replace('|', '%7c') for item in convert]
convert = [item.replace('}', '%7d') for item in convert]
convert = [item.replace('~', '%7e') for item in convert]
print convert
print "Please select one of the following"
print "1. Again"
print "2. Exit"
x = input("1 or 2: ")
if x == 2:
import sys
sys.exit()
else:
print "Next?"
edit- holy crap that's a lot of smiles, replace with backwards parenthesis, sorry about that