Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_relative 'lib/hackex'
- puts "-------------------------------"
- puts "HackEx IP Scanner - by Action "
- puts " Version 1.0.1 "
- puts "-------------------------------"
- puts ""
- print "Enter E-Mail\t: "
- email = gets.chomp
- print "Enter Password\t: "
- password = gets.chomp
- HackEx.LoginDo(email, password) do |http, auth_token, user|
- puts ""
- puts "Logged in as #{user['username']}"
- puts "--------------------------------"
- print "Enter IP to scan\t: "
- IP = gets.chomp
- UID = HackEx::Request.Do(http, HackEx::Request.UserByIp(auth_token, IP))["user"]["id"]
- json = HackEx::Request.Do(http, HackEx::Request.VictimInfo(auth_token, UID))
- puts ""
- puts "------------IP Scan Result------------"
- puts "User ID: " + UID
- puts "Username: " + json["user"]["username"]
- puts "IP: " + json["user"]["ip"]
- puts "Level: " + json["user"]["level"]
- puts "Reputation: " + json["user"]["reputation"]
- puts "Registered: " + json["user"]["created_at"]
- puts "Status: " + json["user"]["status"]
- puts "Overclocks: " + json["user"]["overclocks"]
- puts "Device: " + json["user_device"]["name"]
- puts "Network: " + json["user_network"]["name"]
- puts ""
- puts "Checking: " + json["user_bank"]["checking"]
- puts "Savings: " + json["user_bank"]["savings"]
- puts "Max: " + json["user_bank"]["max_limit"]
- puts "------------IP Scan Result------------"
- # puts HackEx::Request.Do(http, HackEx::ShadowFunctions.GetSoftwareByIp(http, auth_token, IP))
- end
Add Comment
Please, Sign In to add comment