Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 12th, 2012  |  syntax: JavaScript  |  size: 0.65 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. suffix = ["anj", "ebf", "arm", "pra", "aym", "unj","ulj", "uag", "esp", "kot", "onv", "edc"]
  2. def generate_daily_domain():
  3. t = GetLocalTime()
  4. p = 8
  5. return generate_domain(t, p)
  6. def scramble_date(t, p):
  7. return (((t.month ^ t.day) + t.day) * p) +t.day + t.year
  8. def generate_domain(t, p):
  9. if t.year < 2007: t.year = 2007
  10. s = scramble_date(t, p)
  11. c1 = (((t.year >> 2) & 0x3fc0) + s) % 25 + ’a’
  12. c2 = (t.month + s) % 10 + ’a’
  13. c3 = ((t.year & 0xff) + s) % 25 + ’a’
  14. if t.day * 2 <0|| t.day * 2 >9: c4 = (t.day * 2) % 25 + ’a’
  15. else: c4 = t.day % 10 +1
  16. return c1 + ’h’ + c2 + c3 + ’x’ + c4 + suffix[t.month - 1]