Habbo Groups Scanner


/ Published in: Python
Save to your folder(s)

Scanner de grupos de habbo.es, identifica los grupos que son creados por el administrador (.adgar.) y crea un log con los grupos nuevos.


Copy this code and paste it in your HTML
  1. import urllib
  2. import os.path
  3.  
  4. ############################
  5. ############################
  6. #### #### #### ####
  7. #### #### #### ####
  8. #### #### #### ####
  9. #### #### ####
  10. #### #### ####
  11. #### #### ############
  12. #### #### #### ####
  13. #### #### #### ####
  14. ############################
  15. ############################
  16.  
  17. counter = 0
  18. aux = ""
  19. max = 0
  20.  
  21. print "Scanner de Grupos Por Cesar Vasquez C (AKA Heellxz).\n"
  22. rango = raw_input(">>Ingresa rango: ")
  23.  
  24. if os.path.exists("max.txt") == True:
  25. max_group = open('max.txt', 'r')
  26. max_init = max_group.read()
  27. max_group.close()
  28. else:
  29. max_init = 0
  30.  
  31. for i in range(int(max_init),int(max_init) + int(rango) + 1):
  32.  
  33. a = urllib.urlopen("http://www.habbo.es/groups/" + str(i) + "/id")
  34. b = a.read()
  35.  
  36. if b.find("no encontrada! </title>") > 0:
  37. counter = counter + 1
  38. if max == 0:
  39. max = i
  40.  
  41. if b.find("/home/.adgar.") > 0:
  42. print "Grupo de adgar: http://www.habbo.es/groups/" + str(i) + "/id"
  43. aux = aux + "http://www.habbo.es/groups/" + str(i) + "/id\n"
  44.  
  45. if counter == 5:
  46. break
  47.  
  48. print "Buscando..."
  49.  
  50. if max == 0:
  51. max = int(max_init) + int(rango)
  52.  
  53. print "Ultima home encontrada: " + str(max)
  54.  
  55. max_group = open('max.txt', 'w')
  56. max_group.write(str(max))
  57. max_group.close()
  58.  
  59. groups = open('grupos.txt', 'w')
  60. groups.write(aux)
  61. groups.close()

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.