Advertisement
Guest User

Sss

a guest
Jul 31st, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.86 KB | None | 0 0
  1. #require_relative '/lib/hackex'
  2. require_relative '../lib/hackex'
  3. require '../lib2/colorize'
  4. system('cls')
  5. puts "Beginning Tranfer Flow"
  6. email = "techgiveawayv2@test.com"
  7. password = "tech123"
  8. HackEx.LoginDo(email, password) do |http, auth_token, user|
  9. begin
  10. user2 = HackEx::Action.CreateUser(http, 'tgiveaway', 'tech123', :prefix => 'tgiveaway')
  11. puts "Software Bought"
  12. File.open('tranfer.txt', 'w') { |f|
  13. f.puts "tgiveaway#{user2['username']}@gmail.com;tech123"
  14. }
  15. puts "Created User: #{user2['username']}".colorize(:yellow)
  16. puts "=============================================="
  17. email1 = "techgiveaway@test.com"
  18. password1 = "tech123"
  19. HackEx.LoginDo(email1, password1) do |http, auth_token, user|
  20. user = HackEx::Request.Do(http, HackEx::Request.UserInfo(auth_token))
  21. puts "Hello #{user['user']['username']}, you have: #{user['user_bank']['checking']} Bitcoins\n\n".colorize(:yellow)
  22. id = 839605
  23. victim = HackEx::Request.Do(http, HackEx::Request.VictimBank(auth_token, id))
  24. puts "Victim Banks: #{victim['user_bank']['checking']}"
  25. File.readlines('tranferam.txt').each do |id2|
  26. HackEx::Request.Do(http, HackEx::Request.TransferBankFundsFromVictim(auth_token, id, id2.to_i))
  27. puts "Success"
  28. user = HackEx::Request.Do(http, HackEx::Request.UserInfo(auth_token))
  29. check = user['user_bank']['checking']
  30. puts "Taken #{id2} Bitcoins.\tYour checking: #{check}".colorize(:green)
  31. puts "=============================================="
  32. end
  33. end
  34.  
  35. email2= "techgiveawayv2@test.com"
  36. password2="tech123"
  37. puts "=============================================="
  38. HackEx.LoginDo(email2, password2) do |http, auth_token, user|
  39. user = HackEx::Request.Do(http, HackEx::Request.UserInfo(auth_token))
  40. puts "Hello #{user['user']['username']}, you have: #{user['user_bank']['checking']} Bitcoins\n\n".colorize(:yellow)
  41. id = 2189043
  42. victim = HackEx::Request.Do(http, HackEx::Request.VictimBank(auth_token, id))
  43. puts "Victim Banks: #{victim['user_bank']['checking']}"
  44. File.readlines('transferam.txt').each do |id2|
  45. HackEx::Request.Do(http, HackEx::Request.TransferBankFundsFromVictim(auth_token, id, id2.to_i))
  46. puts "Success"
  47. user = HackEx::Request.Do(http, HackEx::Request.UserInfo(auth_token))
  48. check = user['user_bank']['checking']
  49. puts "Taken #{id2} Bitcoins.\tYour checking: #{check}".colorize(:green)
  50. puts "=============================================="
  51. end
  52. end
  53. rescue
  54. puts "Op Failed"
  55. end
  56. end
  57. File.readlines('tranfer.txt').each do |lineoutput_unfiltered|
  58. values = lineoutput_unfiltered.split(";")
  59. email3 = values[0].to_s
  60. password3 = values[1].to_s.chomp.gsub("\n","")
  61. HackEx.LoginDo(email3, password3) do |http, auth_token, user|
  62.  
  63. user = HackEx::Request.Do(http, HackEx::Request.UserInfo(auth_token))
  64. user_sw = HackEx.ParseSoftware(HackEx::Action.UserSoftware(http, auth_token))
  65. puts "\nHello #{user['user']['username']}, you have: #{user['user_bank']['checking']} Bitcoins\n\n".colorize(:yellow)
  66. HackEx::Request.Do(http, HackEx::Request.StorePurchase(auth_token, 'software', 3))
  67. puts "FireWall #{user_sw['Firewall']}"
  68. puts "Cracker #{user_sw['Password Cracker']}"
  69.  
  70. begin
  71. id = 2190114
  72.  
  73. #Bypass process
  74. p0=0
  75. begin
  76. aa = HackEx::Request.Do(http, HackEx::Request.UserAddProcess(auth_token, id, 'bypass', 999, 1))["user_processes"]
  77. puts "Bypassing: #{id.to_i}"
  78. rescue
  79. end
  80.  
  81. prox = HackEx::Request.Do(http, HackEx::Request.UserProcesses(auth_token))
  82.  
  83. while p0 == 0 #Managing process
  84. if prox['user_processes'][0]['status'].to_i ==2 #Process complete
  85. puts "Bypass completed."
  86. p0 = 1
  87.  
  88. elsif prox['user_processes'][0]['status'].to_i ==1 #Processing
  89. puts "Overclocking..."
  90. HackEx::Request.Do(http, HackEx::Request.ProcessOverclock(auth_token, prox['user_processes'][0]['id']))
  91.  
  92. elsif prox['user_processes'][0]['status'].to_i ==3 #Process failed
  93. HackEx::Request.Do(http, HackEx::Request.ProcessRetry(auth_token, prox['user_processes'][0]['id']))
  94. puts "Bypass failed, retrying..."
  95.  
  96. else
  97. puts "OMG I don't know what happened HELP!!!"
  98. end
  99. prox = HackEx::Request.Do(http, HackEx::Request.UserProcesses(auth_token))
  100. end
  101. ####################
  102.  
  103. #Crack process
  104. p0 = 0
  105. begin
  106. aa = HackEx::Request.Do(http, HackEx::Request.UserAddProcess(auth_token, id, 'crack', 1001, 1))["user_processes"]
  107. puts "Cracking: #{id.to_i}"
  108. rescue
  109. end
  110.  
  111. prox = HackEx::Request.Do(http, HackEx::Request.UserProcesses(auth_token))
  112.  
  113. while p0 == 0 #Gestione primo processo
  114. if prox['user_processes'][0]['status'].to_i ==2 #Process complete
  115. puts "Crack completed."
  116. p0 = 1
  117.  
  118. elsif prox['user_processes'][0]['status'].to_i ==1 #Processing
  119. puts "Overclocking..."
  120. HackEx::Request.Do(http, HackEx::Request.ProcessOverclock(auth_token, prox['user_processes'][0]['id']))
  121.  
  122. elsif prox['user_processes'][0]['status'].to_i ==3 #Process failed
  123. HackEx::Request.Do(http, HackEx::Request.ProcessRetry(auth_token, prox['user_processes'][0]['id']))
  124. puts "Crack failed, retrying..."
  125.  
  126. else
  127. puts "OMG I don't know what happened HELP!!!"
  128. end
  129.  
  130. prox = HackEx::Request.Do(http, HackEx::Request.UserProcesses(auth_token))
  131. end
  132. ####################
  133.  
  134.  
  135. #Money transfer
  136. begin
  137. victimbank = HackEx::Request.Do(http, HackEx::Request.VictimBank(auth_token, id))
  138. amount = victimbank['user_bank']['checking'].to_i
  139. if amount > 0
  140. HackEx::Request.Do(http, HackEx::Request.TransferBankFundsFromVictim(auth_token, id, amount))
  141. user = HackEx::Request.Do(http, HackEx::Request.UserInfo(auth_token))
  142. puts "Taken #{amount} bitcoins. New Bank Balance: #{user['user_bank']['checking']} Bitcoins\n\n".colorize(:green)
  143. File.open('transferip.json', 'a') { |f|
  144. f.puts "#{user['user']['ip']}"
  145. }
  146. puts "====================================="
  147. end
  148. else
  149. puts "There are no money in victim's bank"
  150. end
  151. rescue
  152. puts "Error. No money taken."
  153. end
  154. ####################
  155.  
  156. rescue
  157. puts "Wrong ID.\n\n"
  158. end
  159. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement