Advertisement
Guest User

Untitled

a guest
Oct 14th, 2014
521
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def decrypt(s):
  2. s=s[::-1]
  3. for i in range(0,0xff):
  4. fin=""
  5. fin+=chr(i)
  6. fin+=chr(ord(s[0])^i)
  7. for j in range(1,len(f)):
  8. fin+=chr(ord(s[j])^ord(fin[-1]))
  9. aa=open("flag."+str(i),"w")
  10. aa.write(fin[::-1])
  11. aa.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement