Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #require_relative '/lib/hackex'
- require_relative '../lib/hackex'
- require '../lib2/colorize'
- system('cls')
- puts "Beginning Tranfer Flow"
- email = "techgiveawayv2@test.com"
- password = "tech123"
- HackEx.LoginDo(email, password) do |http, auth_token, user|
- begin
- user2 = HackEx::Action.CreateUser(http, 'tgiveaway', 'tech123', :prefix => 'tgiveaway')
- puts "Software Bought"
- File.open('tranfer.txt', 'w') { |f|
- f.puts "tgiveaway#{user2['username']}@gmail.com;tech123"
- }
- puts "Created User: #{user2['username']}".colorize(:yellow)
- puts "=============================================="
- email1 = "techgiveaway@test.com"
- password1 = "tech123"
- HackEx.LoginDo(email1, password1) do |http, auth_token, user|
- user = HackEx::Request.Do(http, HackEx::Request.UserInfo(auth_token))
- puts "Hello #{user['user']['username']}, you have: #{user['user_bank']['checking']} Bitcoins\n\n".colorize(:yellow)
- id = 839605
- victim = HackEx::Request.Do(http, HackEx::Request.VictimBank(auth_token, id))
- puts "Victim Banks: #{victim['user_bank']['checking']}"
- File.readlines('tranferam.txt').each do |id2|
- HackEx::Request.Do(http, HackEx::Request.TransferBankFundsFromVictim(auth_token, id, id2.to_i))
- puts "Success"
- user = HackEx::Request.Do(http, HackEx::Request.UserInfo(auth_token))
- check = user['user_bank']['checking']
- puts "Taken #{id2} Bitcoins.\tYour checking: #{check}".colorize(:green)
- puts "=============================================="
- end
- end
- email2= "techgiveawayv2@test.com"
- password2="tech123"
- puts "=============================================="
- HackEx.LoginDo(email2, password2) do |http, auth_token, user|
- user = HackEx::Request.Do(http, HackEx::Request.UserInfo(auth_token))
- puts "Hello #{user['user']['username']}, you have: #{user['user_bank']['checking']} Bitcoins\n\n".colorize(:yellow)
- id = 2189043
- victim = HackEx::Request.Do(http, HackEx::Request.VictimBank(auth_token, id))
- puts "Victim Banks: #{victim['user_bank']['checking']}"
- File.readlines('transferam.txt').each do |id2|
- HackEx::Request.Do(http, HackEx::Request.TransferBankFundsFromVictim(auth_token, id, id2.to_i))
- puts "Success"
- user = HackEx::Request.Do(http, HackEx::Request.UserInfo(auth_token))
- check = user['user_bank']['checking']
- puts "Taken #{id2} Bitcoins.\tYour checking: #{check}".colorize(:green)
- puts "=============================================="
- end
- end
- rescue
- puts "Op Failed"
- end
- end
- File.readlines('tranfer.txt').each do |lineoutput_unfiltered|
- values = lineoutput_unfiltered.split(";")
- email3 = values[0].to_s
- password3 = values[1].to_s.chomp.gsub("\n","")
- HackEx.LoginDo(email3, password3) do |http, auth_token, user|
- user = HackEx::Request.Do(http, HackEx::Request.UserInfo(auth_token))
- user_sw = HackEx.ParseSoftware(HackEx::Action.UserSoftware(http, auth_token))
- puts "\nHello #{user['user']['username']}, you have: #{user['user_bank']['checking']} Bitcoins\n\n".colorize(:yellow)
- HackEx::Request.Do(http, HackEx::Request.StorePurchase(auth_token, 'software', 3))
- puts "FireWall #{user_sw['Firewall']}"
- puts "Cracker #{user_sw['Password Cracker']}"
- begin
- id = 2190114
- #Bypass process
- p0=0
- begin
- aa = HackEx::Request.Do(http, HackEx::Request.UserAddProcess(auth_token, id, 'bypass', 999, 1))["user_processes"]
- puts "Bypassing: #{id.to_i}"
- rescue
- end
- prox = HackEx::Request.Do(http, HackEx::Request.UserProcesses(auth_token))
- while p0 == 0 #Managing process
- if prox['user_processes'][0]['status'].to_i ==2 #Process complete
- puts "Bypass completed."
- p0 = 1
- elsif prox['user_processes'][0]['status'].to_i ==1 #Processing
- puts "Overclocking..."
- HackEx::Request.Do(http, HackEx::Request.ProcessOverclock(auth_token, prox['user_processes'][0]['id']))
- elsif prox['user_processes'][0]['status'].to_i ==3 #Process failed
- HackEx::Request.Do(http, HackEx::Request.ProcessRetry(auth_token, prox['user_processes'][0]['id']))
- puts "Bypass failed, retrying..."
- else
- puts "OMG I don't know what happened HELP!!!"
- end
- prox = HackEx::Request.Do(http, HackEx::Request.UserProcesses(auth_token))
- end
- ####################
- #Crack process
- p0 = 0
- begin
- aa = HackEx::Request.Do(http, HackEx::Request.UserAddProcess(auth_token, id, 'crack', 1001, 1))["user_processes"]
- puts "Cracking: #{id.to_i}"
- rescue
- end
- prox = HackEx::Request.Do(http, HackEx::Request.UserProcesses(auth_token))
- while p0 == 0 #Gestione primo processo
- if prox['user_processes'][0]['status'].to_i ==2 #Process complete
- puts "Crack completed."
- p0 = 1
- elsif prox['user_processes'][0]['status'].to_i ==1 #Processing
- puts "Overclocking..."
- HackEx::Request.Do(http, HackEx::Request.ProcessOverclock(auth_token, prox['user_processes'][0]['id']))
- elsif prox['user_processes'][0]['status'].to_i ==3 #Process failed
- HackEx::Request.Do(http, HackEx::Request.ProcessRetry(auth_token, prox['user_processes'][0]['id']))
- puts "Crack failed, retrying..."
- else
- puts "OMG I don't know what happened HELP!!!"
- end
- prox = HackEx::Request.Do(http, HackEx::Request.UserProcesses(auth_token))
- end
- ####################
- #Money transfer
- begin
- victimbank = HackEx::Request.Do(http, HackEx::Request.VictimBank(auth_token, id))
- amount = victimbank['user_bank']['checking'].to_i
- if amount > 0
- HackEx::Request.Do(http, HackEx::Request.TransferBankFundsFromVictim(auth_token, id, amount))
- user = HackEx::Request.Do(http, HackEx::Request.UserInfo(auth_token))
- puts "Taken #{amount} bitcoins. New Bank Balance: #{user['user_bank']['checking']} Bitcoins\n\n".colorize(:green)
- File.open('transferip.json', 'a') { |f|
- f.puts "#{user['user']['ip']}"
- }
- puts "====================================="
- end
- else
- puts "There are no money in victim's bank"
- end
- rescue
- puts "Error. No money taken."
- end
- ####################
- rescue
- puts "Wrong ID.\n\n"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement