Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. latlan=[
  2. [39.2038492, 9.1539418],
  3. [39.1910433, 9.1166667],
  4. [39.2038492, 9.0793916],
  5. [39.2294842, 9.0793916],
  6. [39.2679135, 9.1166667],
  7. [39.2551076, 9.1539418],
  8. [39.2422901, 9.191117],
  9. [39.2294842, 9.2283921],
  10. [39.2166667, 9.191117],
  11. [39.2038492, 9.2283921],
  12. [39.1910433, 9.191117],
  13. [39.1782258, 9.1539418],
  14. [39.1654199, 9.1166667],
  15. [39.1782258, 9.0793916],
  16. [39.1910433, 9.0422164],
  17. [39.2038492, 9.0049413],
  18. [39.2166667, 9.0422164],
  19. [39.2294842, 9.0049413],
  20. [39.2422901, 9.0422164],
  21. [39.2551076, 9.0793916],
  22. [39.2935369, 9.1166667],
  23. [39.280731, 9.1539418],
  24. [39.2679135, 9.191117],
  25. [39.2551076, 9.2283921],
  26. [39.2422901, 9.2655673],
  27. [39.2294842, 9.3028424],
  28. [39.2166667, 9.2655673],
  29. [39.2038492, 9.3028424],
  30. [39.1910433, 9.2655673],
  31. [39.1782258, 9.2283921],
  32. [39.1654199, 9.191117],
  33. [39.1526024, 9.1539418],
  34. [39.1397965, 9.1166667],
  35. [39.1526024, 9.0793916],
  36. [39.1654199, 9.0422164],
  37. [39.1782258, 9.0049413],
  38. [39.1910433, 8.9677661],
  39. [39.2038492, 8.930491],
  40. [39.2166667, 8.9677661],
  41. [39.2294842, 8.930491],
  42. [39.2422901, 8.9677661],
  43. [39.2551076, 9.0049413],
  44. [39.2679135, 9.0422164],
  45. [39.280731, 9.0793916],
  46. [39.3191603, 9.1166667],
  47. [39.3063544, 9.1539418],
  48. [39.2935369, 9.191117],
  49. [39.280731, 9.2283921],
  50. [39.2679135, 9.2655673],
  51. [39.2551076, 9.3028424],
  52. [39.2422901, 9.3400176],
  53. [39.2294842, 9.3772927],
  54. [39.2166667, 9.3400176],
  55. [39.2038492, 9.3772927],
  56. [39.1910433, 9.3400176],
  57. [39.1782258, 9.3028424],
  58. [39.1654199, 9.2655673],
  59. [39.1526024, 9.2283921],
  60. [39.1397965, 9.191117],
  61. [39.126979, 9.1539418],
  62. [39.1141731, 9.1166667],
  63. [39.126979, 9.0793916],
  64. [39.1397965, 9.0422164],
  65. [39.126979, 9.0049413],
  66. [39.1654083, 8.9677661],
  67. [39.1782258, 8.930491],
  68. [39.1910317, 8.8933158],
  69. [39.2038492, 8.8560407],
  70. [39.2166667, 8.8933158],
  71. [39.2294842, 8.8560407],
  72. [39.2422901, 8.8933158],
  73. [39.2551076, 8.930491],
  74. [39.2679135, 8.9677661],
  75. [39.280731, 9.0049413],
  76. [39.2935369, 9.0422164],
  77. [39.3063544, 9.0793916]]
  78.  
  79. CREDENTIALS=[
  80. ["google","accout@gmail.com","password"],
  81. ["google","accout+1@gmail.com","password"],
  82. ["google","accout+2@gmail.com","password"],
  83. ["google","accout+3@gmail.com","password"],
  84. ["google","accout+4@gmail.com","password"],
  85. ["google","accout+5@gmail.com","password"],
  86. ]
  87.  
  88. GMAPS=[
  89. "key1",
  90. "key2",
  91. "key3",
  92. "key4",
  93. "key5",
  94. "key6",
  95. "key7"
  96. ]
  97.  
  98. f = open('map.sh','w')
  99. IP="178.62.53.132"
  100. PORT="81"
  101. COUNTER=1
  102. CR_SIZE=len(CREDENTIALS)
  103. GM_SIZE=len(GMAPS)
  104.  
  105. f.write("#!/bin/bash -e \n")
  106. f.write("python runserver.py -a '"+CREDENTIALS[0][0]+"' -u '"+CREDENTIALS[0][1]+"' -p '"+CREDENTIALS[0][2]+"' -l '"+str(latlan[0][0])+", "+str(latlan[0][1])+"' -st 10 -fl -H '"+IP+"' -P '"+PORT+"' -t 1 -k '"+str(GMAPS[0])+"' &\n" )
  107. #f.write("ping 127.0.0.1 -n 6 > nul & \n")
  108. latlan.pop(0)
  109.  
  110.  
  111. for ll in latlan:
  112. t = COUNTER % CR_SIZE
  113. v = COUNTER % GM_SIZE
  114. f.write("python runserver.py -a '"+CREDENTIALS[t][0]+"' -u '"+CREDENTIALS[t][1]+"' -p '"+CREDENTIALS[t][2]+"' -l '"+str(ll[0])+", "+str(ll[1])+"' -st 10 -ns -fl -t 1 -k '"+str(GMAPS[v])+"' &\n" )
  115. #f.write("ping 127.0.0.1 -n 6 > nul & \n")
  116. COUNTER+=1
  117. f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement