Module: HackEx::Request
- Extended by:
- Network
- Defined in:
- lib/libGoo/hackex/request.rb
Constant Summary collapse
- URI_BASE =
'https://api.hackex.net/v5/'- USER_AGENT =
'Mozilla/5.0 (Linux; U; Android 4.1.1; en-us; Nexus 5) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1'
Class Method Summary collapse
- .AcceptContact(auth_token, user_id) ⇒ Object
- .AddContact(auth_token, user_id) ⇒ Object
- .CreateUser(username, email, password, facebook_id = nil) ⇒ Object
- .Leaderboard(auth_token, offset = 0) ⇒ Object
- .Login(email, password) ⇒ Object
- .ProcessDelete(auth_token, process_id) ⇒ Object
- .ProcessesDelete(auth_token, process_ids) ⇒ Object
- .ProcessInfo(auth_token, process_id) ⇒ Object
- .ProcessOverclock(auth_token, process_id) ⇒ Object
- .ProcessRetry(auth_token, process_id) ⇒ Object
- .RandomUsers(auth_token, count = 5) ⇒ Object
- .RemoveContact(auth_token, user_id) ⇒ Object
- .StoreInfo(auth_token) ⇒ Object
- .StorePurchase(auth_token, type, type_id) ⇒ Object
- .TransferBankFundsFromVictim(auth_token, user_id, amount) ⇒ Object
- .TransferBankFundsToContact(auth_token, user_id, amount) ⇒ Object
- .TransferBankFundsToSavings(auth_token, amount) ⇒ Object
- .UpdateUserLog(auth_token, text) ⇒ Object
- .UpdateUserNotepad(auth_token, text) ⇒ Object
- .UpdateVictimLog(auth_token, user_id, text) ⇒ Object
- .UserAddProcess(auth_token, user_id, process_type, software_id, software_level = nil) ⇒ Object
- .UserBank(auth_token) ⇒ Object
- .UserByIp(auth_token, ip) ⇒ Object
- .UserInfo(auth_token) ⇒ Object
- .UserProcesses(auth_token) ⇒ Object
- .UserRemoveUploadedVirus(auth_token, virus_id, software_type_id) ⇒ Object
- .UserSoftware(auth_token) ⇒ Object
- .UserSpam(auth_token) ⇒ Object
- .UserSpyware(auth_token) ⇒ Object
- .UserViruses(auth_token) ⇒ Object
- .VictimBank(auth_token, user_id) ⇒ Object
- .VictimInfo(auth_token, user_id) ⇒ Object
Methods included from Network
Class Method Details
.AcceptContact(auth_token, user_id) ⇒ Object
97 98 99 |
# File 'lib/libGoo/hackex/request.rb', line 97 def AcceptContact auth_token, user_id Post 'contact_accept', 'contact_user_id' => user_id, :auth_token => auth_token end |
.AddContact(auth_token, user_id) ⇒ Object
93 94 95 |
# File 'lib/libGoo/hackex/request.rb', line 93 def AddContact auth_token, user_id Post 'contact_add', 'contact_user_id' => user_id, :auth_token => auth_token end |
.CreateUser(username, email, password, facebook_id = nil) ⇒ Object
42 43 44 45 46 47 |
# File 'lib/libGoo/hackex/request.rb', line 42 def CreateUser username, email, password, facebook_id = nil params = { 'username' => username, 'email' => email, 'os_type_id' => '1' } params['password'] = password unless password.nil? params['facebook_id'] = facebook_id unless facebook_id.nil? Post 'user', params end |
.Leaderboard(auth_token, offset = 0) ⇒ Object
196 197 198 |
# File 'lib/libGoo/hackex/request.rb', line 196 def Leaderboard auth_token, offset = 0 Get 'leaderboards', 'offset' => offset, :auth_token => auth_token end |
.Login(email, password) ⇒ Object
49 50 51 |
# File 'lib/libGoo/hackex/request.rb', line 49 def Login email, password Post 'auth', 'email' => email, 'password' => password end |
.ProcessDelete(auth_token, process_id) ⇒ Object
188 189 190 |
# File 'lib/libGoo/hackex/request.rb', line 188 def ProcessDelete auth_token, process_id Post 'process_delete', 'process_id' => process_id, :auth_token => auth_token end |
.ProcessesDelete(auth_token, process_ids) ⇒ Object
192 193 194 |
# File 'lib/libGoo/hackex/request.rb', line 192 def ProcessesDelete auth_token, process_ids Post 'processes_delete', 'process_ids' => process_ids.join('|'), :auth_token => auth_token end |
.ProcessInfo(auth_token, process_id) ⇒ Object
176 177 178 |
# File 'lib/libGoo/hackex/request.rb', line 176 def ProcessInfo auth_token, process_id Get 'process', 'process_id' => process_id, :auth_token => auth_token end |
.ProcessOverclock(auth_token, process_id) ⇒ Object
184 185 186 |
# File 'lib/libGoo/hackex/request.rb', line 184 def ProcessOverclock auth_token, process_id Post 'process_overclock', 'process_id' => process_id, :auth_token => auth_token end |
.ProcessRetry(auth_token, process_id) ⇒ Object
180 181 182 |
# File 'lib/libGoo/hackex/request.rb', line 180 def ProcessRetry auth_token, process_id Post 'process_retry', 'process_id' => process_id, :auth_token => auth_token end |
.RandomUsers(auth_token, count = 5) ⇒ Object
53 54 55 |
# File 'lib/libGoo/hackex/request.rb', line 53 def RandomUsers auth_token, count = 5 Get 'users_random', 'count' => count, :auth_token => auth_token end |
.RemoveContact(auth_token, user_id) ⇒ Object
101 102 103 |
# File 'lib/libGoo/hackex/request.rb', line 101 def RemoveContact auth_token, user_id Post 'contact_remove', 'contact_user_id' => user_id, :auth_token => auth_token end |
.StoreInfo(auth_token) ⇒ Object
65 66 67 |
# File 'lib/libGoo/hackex/request.rb', line 65 def StoreInfo auth_token Get 'store', :auth_token => auth_token end |
.StorePurchase(auth_token, type, type_id) ⇒ Object
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/libGoo/hackex/request.rb', line 105 def StorePurchase auth_token, type, type_id params = {} case type when 'software' params['software_type_id'] = type_id when 'device' params['device_type_id'] = type_id when 'network' params['network_type_id'] = type_id else raise "Unknown type #{type}" end params[:auth_token] = auth_token Post 'store_purchase', params end |
.TransferBankFundsFromVictim(auth_token, user_id, amount) ⇒ Object
85 86 87 |
# File 'lib/libGoo/hackex/request.rb', line 85 def TransferBankFundsFromVictim auth_token, user_id, amount Post 'bank_transfer_from_victim', 'victim_user_id' => user_id, 'amount' => amount, :auth_token => auth_token end |
.TransferBankFundsToContact(auth_token, user_id, amount) ⇒ Object
89 90 91 |
# File 'lib/libGoo/hackex/request.rb', line 89 def TransferBankFundsToContact auth_token, user_id, amount Post 'bank_transfer_to_contact', 'contact_user_id' => user_id, 'amount' => amount, :auth_token => auth_token end |
.TransferBankFundsToSavings(auth_token, amount) ⇒ Object
81 82 83 |
# File 'lib/libGoo/hackex/request.rb', line 81 def TransferBankFundsToSavings auth_token, amount Post 'bank_transfer_savings', 'amount' => amount, :auth_token => auth_token end |
.UpdateUserLog(auth_token, text) ⇒ Object
73 74 75 |
# File 'lib/libGoo/hackex/request.rb', line 73 def UpdateUserLog auth_token, text Post 'user_log', 'text' => text, :auth_token => auth_token end |
.UpdateUserNotepad(auth_token, text) ⇒ Object
77 78 79 |
# File 'lib/libGoo/hackex/request.rb', line 77 def UpdateUserNotepad auth_token, text Post 'user_notepad', 'text' => text, :auth_token => auth_token end |
.UpdateVictimLog(auth_token, user_id, text) ⇒ Object
69 70 71 |
# File 'lib/libGoo/hackex/request.rb', line 69 def UpdateVictimLog auth_token, user_id, text Post 'victim_user_log', 'victim_user_id' => user_id, 'text' => text, :auth_token => auth_token end |
.UserAddProcess(auth_token, user_id, process_type, software_id, software_level = nil) ⇒ Object
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/libGoo/hackex/request.rb', line 157 def UserAddProcess auth_token, user_id, process_type, software_id, software_level = nil params = { 'victim_user_id' => user_id, 'software_id' => software_id } case process_type when 'scan', 'bypass' params['process_type_id'] = '1' when 'crack' params['process_type_id'] = '2' when 'download' params['process_type_id'] = '3' when 'upload' params['process_type_id'] = '4' else raise "Unknown type: #{process_type}" end params['software_level'] = software_level unless software_level.nil? params[:auth_token] = auth_token Post 'process', params end |
.UserBank(auth_token) ⇒ Object
129 130 131 |
# File 'lib/libGoo/hackex/request.rb', line 129 def UserBank auth_token Get 'user_bank', :auth_token => auth_token end |
.UserByIp(auth_token, ip) ⇒ Object
121 122 123 |
# File 'lib/libGoo/hackex/request.rb', line 121 def UserByIp auth_token, ip Get 'user', 'user_ip' => ip, 'process_type_id' => 1, :auth_token => auth_token end |
.UserInfo(auth_token) ⇒ Object
125 126 127 |
# File 'lib/libGoo/hackex/request.rb', line 125 def UserInfo auth_token Get 'user', 'extras' => 'true', :auth_token => auth_token end |
.UserProcesses(auth_token) ⇒ Object
141 142 143 |
# File 'lib/libGoo/hackex/request.rb', line 141 def UserProcesses auth_token Get 'user_processes', :auth_token => auth_token end |
.UserRemoveUploadedVirus(auth_token, virus_id, software_type_id) ⇒ Object
153 154 155 |
# File 'lib/libGoo/hackex/request.rb', line 153 def UserRemoveUploadedVirus auth_token, virus_id, software_type_id Post 'user_virus_uploaded_remove', 'virus_id' => virus_id, 'software_type_id' => software_type_id, :auth_token => auth_token end |
.UserSoftware(auth_token) ⇒ Object
137 138 139 |
# File 'lib/libGoo/hackex/request.rb', line 137 def UserSoftware auth_token Get 'user_software', :auth_token => auth_token end |
.UserSpam(auth_token) ⇒ Object
145 146 147 |
# File 'lib/libGoo/hackex/request.rb', line 145 def UserSpam auth_token Get 'user_spam', :auth_token => auth_token end |
.UserSpyware(auth_token) ⇒ Object
149 150 151 |
# File 'lib/libGoo/hackex/request.rb', line 149 def UserSpyware auth_token Get 'user_spyware', :auth_token => auth_token end |
.UserViruses(auth_token) ⇒ Object
133 134 135 |
# File 'lib/libGoo/hackex/request.rb', line 133 def UserViruses auth_token Get 'user_viruses', :auth_token => auth_token end |
.VictimBank(auth_token, user_id) ⇒ Object
61 62 63 |
# File 'lib/libGoo/hackex/request.rb', line 61 def VictimBank auth_token, user_id Get 'victim_user_bank', 'victim_user_id' => user_id, :auth_token => auth_token end |
.VictimInfo(auth_token, user_id) ⇒ Object
57 58 59 |
# File 'lib/libGoo/hackex/request.rb', line 57 def VictimInfo auth_token, user_id Get 'user_victim', 'victim_user_id' => user_id, :auth_token => auth_token end |