libGoo 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/Gemfile +0 -1
- data/LICENSE +22 -22
- data/README.md +1 -1
- data/example/example.rb +33 -0
- data/lib/hackex.rb +7 -7
- data/lib/libGoo.rb +1 -1
- data/lib/{hackex → libGoo/hackex}/action.rb +0 -0
- data/lib/{hackex → libGoo/hackex}/error.rb +0 -0
- data/lib/{hackex → libGoo/hackex}/hackex.rb +0 -0
- data/lib/{hackex → libGoo/hackex}/helper.rb +0 -0
- data/lib/{hackex → libGoo/hackex}/net/std.rb +0 -0
- data/lib/{hackex → libGoo/hackex}/net/typhoeus.rb +0 -0
- data/lib/{hackex → libGoo/hackex}/request.rb +0 -0
- data/lib/libGoo/helper.rb +85 -76
- data/lib/libGoo/objects.rb +51 -52
- data/lib/libGoo/user.rb +1 -1
- data/libGoo.gemspec +3 -3
- metadata +19 -46
- data/bin/example.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f45ce674e74d450f795bec33f6566af61b6e967
|
4
|
+
data.tar.gz: 6a5cdd95226d579891139c0a292fbeb44d4a8b67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66fe241aa698ab6d3612400931ae41a201df13e39b13c2bad9642addc520d5327d2cad8f233b327470a99f538436d7520317a033b1a049c067a96f1017e40a3c
|
7
|
+
data.tar.gz: efd35f60781515220576870cc9fc10fa481c7e2028d450e3bde354c90deb144a8c15fbf1cd206e2bc699dfc1116167780d48c88a4ed360e2ca51126fd26de7aa
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/LICENSE
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2015 grig191
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
22
|
-
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 grig191
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/README.md
CHANGED
data/example/example.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
#require 'hackex' #Optional, dont use that unless you want use ONLY and DIRECTLY hackex api lib
|
2
|
+
require 'libGoo' #Requiring libGoo
|
3
|
+
include LibGoo #Including libGoo into your script
|
4
|
+
email = 'your@e.mail' #Your email
|
5
|
+
password = 'password' #Your password
|
6
|
+
|
7
|
+
user = User.new(email, password) #Loggining into hackex
|
8
|
+
#user = User.new('', '', 'TOKEN_HERE') #Loggining by auth token
|
9
|
+
|
10
|
+
#Methods names as in hackex/request.rb, but you can also use old methods names or translate old ones to new ones by OLD_TO_NEW
|
11
|
+
puts LibGoo::OLD_TO_NEW['getUserProcesses'.to_sym] #=>UserProcesses
|
12
|
+
puts LibGoo::NEW_TO_OLD['UserProcesses'] #=>getUserProcesses
|
13
|
+
puts JSON.pretty_generate OLD_TO_NEW #Prints out methods names
|
14
|
+
#puts JSON.pretty_generate user.VictimInfo(590331) #Prints out info of victim with user id 590331
|
15
|
+
#puts JSON.pretty_generate user.user #Prints out your info
|
16
|
+
puts user.auth_token #=>B13C1313-1313-A13D-13E1-ACB13F131B13 #example
|
17
|
+
victim = Victim.new('user_id' => 590331) #Some not useful helpers
|
18
|
+
LibGooHelper.MassScanner(user.auth_token, [1001, 1005]) do |user| #Scans users with id's 1001 to 1004 and prints out his usernames
|
19
|
+
puts user['user']['username'] #=>Nardski, etc...
|
20
|
+
end
|
21
|
+
|
22
|
+
User.Do(email, password) do |http, auth_token, user_info, user| #Loggining to user with block
|
23
|
+
puts user.user == user_info #=>true
|
24
|
+
puts JSON.pretty_generate user.VictimInfo(victim)['user']
|
25
|
+
puts user.http == http #=>true
|
26
|
+
puts auth_token == user.auth_token #=>true
|
27
|
+
puts LibGooHelper.AnonymousTransfer(user.auth_token, 1, 590331) #Very cool helper, it is cayman and btc transfer in one time, support values up to 1B BTC
|
28
|
+
#Accepts values of BTC up to 1 Billion, where 1 is value of BTC
|
29
|
+
#Sending 1 BTC to me^^^^^ #You can dont care about adding this user as contact, it's cayman too
|
30
|
+
end
|
31
|
+
|
32
|
+
|
33
|
+
|
data/lib/hackex.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
begin
|
2
|
-
#require_relative 'hackex/typhoeus'
|
2
|
+
#require_relative 'libGoo/hackex/typhoeus'
|
3
3
|
rescue LoadError
|
4
4
|
puts "Typheous not available: #{$!}"
|
5
5
|
end
|
6
|
-
require_relative 'hackex/net/std' unless defined?(HackEx::Network)
|
6
|
+
require_relative 'libGoo/hackex/net/std' unless defined?(HackEx::Network)
|
7
7
|
|
8
|
-
require_relative 'hackex/error'
|
9
|
-
require_relative 'hackex/helper'
|
10
|
-
require_relative 'hackex/request'
|
11
|
-
require_relative 'hackex/action'
|
12
|
-
require_relative 'hackex/hackex'
|
8
|
+
require_relative 'libGoo/hackex/error'
|
9
|
+
require_relative 'libGoo/hackex/helper'
|
10
|
+
require_relative 'libGoo/hackex/request'
|
11
|
+
require_relative 'libGoo/hackex/action'
|
12
|
+
require_relative 'libGoo/hackex/hackex'
|
data/lib/libGoo.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/libGoo/helper.rb
CHANGED
@@ -1,77 +1,86 @@
|
|
1
|
-
module LibGoo
|
2
|
-
class LibGooHelper
|
3
|
-
|
4
|
-
class << self
|
5
|
-
|
6
|
-
def AnonymousTransfer(auth_token, amount, user_id, display = true) #Adds contact, then transfers BTC to him and removes him, or just transfers BTC if contact already exists. Supports values up to 1B
|
7
|
-
HackEx.NetworkDo do |http|
|
8
|
-
added = ForceAdd(auth_token, user_id)
|
9
|
-
if amount <= 100_000_000
|
10
|
-
HackEx::Request.Do(http, HackEx::Request.TransferBankFundsToContact(auth_token, user_id, amount))
|
11
|
-
puts "Transfering #{amount}" if display
|
12
|
-
elsif amount > 1_000_000_000
|
13
|
-
raise LibGooError, "Too much money to transfer #{amount}"
|
14
|
-
elsif amount < 100_000_000
|
15
|
-
i = amount / 100_000_000
|
16
|
-
ii = amount % 100_000_000
|
17
|
-
i.times {HackEx::Request.Do(http, HackEx::Request.TransferBankFundsToContact(auth_token, user_id, 100_000_000))}
|
18
|
-
i.times {puts 'Transfering 100M'} if display
|
19
|
-
HackEx::Request.Do(http, HackEx::Request.TransferBankFundsToContact(auth_token, user_id, ii)) if ii > 0
|
20
|
-
puts "Transfering #{ii}" if ii > 0 && display
|
21
|
-
end
|
22
|
-
HackEx::Request.Do(http, HackEx::Request.RemoveContact(auth_token, user_id)) if added
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
def ForceAdd(auth_token, user_id) #Force add contact and returns true if success, and false if not.
|
27
|
-
HackEx.NetworkDo do |http|
|
28
|
-
HackEx::Request.Do(http, HackEx::Request.AddContact(auth_token, user_id))
|
29
|
-
HackEx::Request.Do(http, HackEx::Request.AcceptContact(auth_token, user_id))
|
30
|
-
true
|
31
|
-
end
|
32
|
-
rescue
|
33
|
-
false
|
34
|
-
end
|
35
|
-
|
36
|
-
def SafeVictimInfo(http, auth_token, id) #Doesnt stopping your script in case SLL handshake or other errors
|
37
|
-
return HackEx::Request.Do(http, HackEx::Request.VictimInfo(auth_token, id))
|
38
|
-
rescue
|
39
|
-
false
|
40
|
-
end
|
41
|
-
|
42
|
-
def
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
1
|
+
module LibGoo
|
2
|
+
class LibGooHelper
|
3
|
+
|
4
|
+
class << self
|
5
|
+
|
6
|
+
def AnonymousTransfer(auth_token, amount, user_id, display = true) #Adds contact, then transfers BTC to him and removes him, or just transfers BTC if contact already exists. Supports values up to 1B
|
7
|
+
HackEx.NetworkDo do |http|
|
8
|
+
added = ForceAdd(auth_token, user_id)
|
9
|
+
if amount <= 100_000_000
|
10
|
+
HackEx::Request.Do(http, HackEx::Request.TransferBankFundsToContact(auth_token, user_id, amount))
|
11
|
+
puts "Transfering #{amount}" if display
|
12
|
+
elsif amount > 1_000_000_000
|
13
|
+
raise LibGooError, "Too much money to transfer #{amount}"
|
14
|
+
elsif amount < 100_000_000
|
15
|
+
i = amount / 100_000_000
|
16
|
+
ii = amount % 100_000_000
|
17
|
+
i.times {HackEx::Request.Do(http, HackEx::Request.TransferBankFundsToContact(auth_token, user_id, 100_000_000))}
|
18
|
+
i.times {puts 'Transfering 100M'} if display
|
19
|
+
HackEx::Request.Do(http, HackEx::Request.TransferBankFundsToContact(auth_token, user_id, ii)) if ii > 0
|
20
|
+
puts "Transfering #{ii}" if ii > 0 && display
|
21
|
+
end
|
22
|
+
HackEx::Request.Do(http, HackEx::Request.RemoveContact(auth_token, user_id)) if added
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def ForceAdd(auth_token, user_id) #Force add contact and returns true if success, and false if not.
|
27
|
+
HackEx.NetworkDo do |http|
|
28
|
+
HackEx::Request.Do(http, HackEx::Request.AddContact(auth_token, user_id))
|
29
|
+
HackEx::Request.Do(http, HackEx::Request.AcceptContact(auth_token, user_id))
|
30
|
+
true
|
31
|
+
end
|
32
|
+
rescue
|
33
|
+
false
|
34
|
+
end
|
35
|
+
|
36
|
+
def SafeVictimInfo(http, auth_token, id) #Doesnt stopping your script in case SLL handshake or other errors
|
37
|
+
return HackEx::Request.Do(http, HackEx::Request.VictimInfo(auth_token, id))
|
38
|
+
rescue
|
39
|
+
false
|
40
|
+
end
|
41
|
+
|
42
|
+
def no_error(http, request)
|
43
|
+
response = http.request(request)
|
44
|
+
if response.is_a? Net::HTTPOK
|
45
|
+
JSON.parse(response.body)
|
46
|
+
else
|
47
|
+
{'success' => false, 'error' => "Not OK: #{response.inspect}, #{response.body}"}
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def MassScanner(auth_token, array, display = false) #Array is array of scanned IDs like [minimum, maximum] ([1001, 1100])
|
52
|
+
errors = []
|
53
|
+
cur_id, max = array
|
54
|
+
HackEx.NetworkDo do |http|
|
55
|
+
while cur_id < max
|
56
|
+
victim = SafeVictimInfo(http, auth_token, cur_id)
|
57
|
+
if victim
|
58
|
+
yield victim
|
59
|
+
errors = [] if errors.count > 0
|
60
|
+
puts "[#{Time.now}] Scanned id #{cur_id}" if display
|
61
|
+
cur_id += 1
|
62
|
+
else
|
63
|
+
errors << 'error, yopta'
|
64
|
+
puts "Failed to scan victim ID:#{cur_id}, count of errors: #{errors.count}"
|
65
|
+
raise LibGooError, 'Too much errors in same victim: ' + errors.count.to_s if errors.count > 10
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def params(*objs) #Parameters processor, accepts Array, String, Integer, LibGoo::Processes
|
72
|
+
result = []
|
73
|
+
objs.each do |obj|
|
74
|
+
if obj.is_a?(Fixnum) || obj.is_a?(String) || obj.is_a?(Array)
|
75
|
+
result << obj
|
76
|
+
elsif LibGoo::ObjectProcessor.descendants.include?(obj.class)
|
77
|
+
return obj.get_var(obj.instance_variable_get(:@raise_if))
|
78
|
+
else
|
79
|
+
raise LibGooError, 'Undefined class object given as one of params: ' + obj.class.to_s
|
80
|
+
end
|
81
|
+
end
|
82
|
+
result
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
77
86
|
end
|
data/lib/libGoo/objects.rb
CHANGED
@@ -1,52 +1,51 @@
|
|
1
|
-
module LibGoo
|
2
|
-
class ObjectProcessor #Much needed such wow, really, idk why it's here
|
3
|
-
attr_reader :params
|
4
|
-
|
5
|
-
def initialize(params, raise_if)
|
6
|
-
if params.is_a?(Hash) || params.is_a?(JSON)
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
@params[m]
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
end
|
1
|
+
module LibGoo
|
2
|
+
class ObjectProcessor #Much needed such wow, really, idk why it's here
|
3
|
+
attr_reader :params
|
4
|
+
|
5
|
+
def initialize(params, raise_if)
|
6
|
+
if params.is_a?(Hash) || params.is_a?(JSON)
|
7
|
+
@raise_if = raise_if
|
8
|
+
raise LibGooError, "No specified key #{raise_if} in params" unless params.has_key?(raise_if) && raise_if
|
9
|
+
@params = params
|
10
|
+
else
|
11
|
+
raise LibGooError, "Unavailable type of argument: #{params.class.to_s}."
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def method_missing(m, *args)
|
16
|
+
var = self.get_var(m)
|
17
|
+
return var if var
|
18
|
+
super
|
19
|
+
end
|
20
|
+
|
21
|
+
def get_var(m)
|
22
|
+
if @params.has_key?(m.to_s)
|
23
|
+
@params[m.to_s]
|
24
|
+
elsif @params.has_key?(m)
|
25
|
+
@params[m]
|
26
|
+
else
|
27
|
+
false
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.descendants
|
32
|
+
ObjectSpace.each_object(Class).select { |klass| klass < self }
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
class Victim < ObjectProcessor
|
38
|
+
def initialize(params)
|
39
|
+
@raise_if = 'user_id'
|
40
|
+
super(params, @raise_if)
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
class Processes < ObjectProcessor
|
46
|
+
def initialize(params)
|
47
|
+
@raise_if = 'id'
|
48
|
+
super(params, @raise_if)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
data/lib/libGoo/user.rb
CHANGED
@@ -23,7 +23,7 @@ class User
|
|
23
23
|
if HackEx::Request.respond_to?(m)
|
24
24
|
HackEx::Request.Do(@http, HackEx::Request.method(m).call(@auth_token, *LibGooHelper.params(*args)))
|
25
25
|
else
|
26
|
-
|
26
|
+
super
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
data/libGoo.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["griggors@gmail.com"]
|
11
11
|
spec.summary = %q{HackEx LibGoo attachment was developed for ease your scripting}
|
12
12
|
spec.description = %q{It has full HackEx API library, and LibGoo. LibGoo is developed to ease your scripting, so you can easily write and manage your scripts!}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/grig191/libGoo/"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -18,6 +18,6 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler", "~> 1.7"
|
22
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
21
|
+
#spec.add_development_dependency "bundler", "~> 1.7"
|
22
|
+
#spec.add_development_dependency "rake", "~> 10.0"
|
23
23
|
end
|
metadata
CHANGED
@@ -1,74 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libGoo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grig O. Betsan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.7'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.7'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '10.0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '10.0'
|
11
|
+
date: 2015-10-29 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
41
13
|
description: It has full HackEx API library, and LibGoo. LibGoo is developed to ease
|
42
14
|
your scripting, so you can easily write and manage your scripts!
|
43
15
|
email:
|
44
16
|
- griggors@gmail.com
|
45
|
-
executables:
|
46
|
-
- example.rb
|
17
|
+
executables: []
|
47
18
|
extensions: []
|
48
19
|
extra_rdoc_files: []
|
49
20
|
files:
|
50
|
-
- .gitignore
|
21
|
+
- ".gitignore"
|
51
22
|
- Gemfile
|
52
23
|
- LICENSE
|
53
24
|
- LICENSE.txt
|
54
25
|
- README.md
|
55
26
|
- Rakefile
|
56
|
-
-
|
27
|
+
- example/debug.rb
|
28
|
+
- example/example.rb
|
57
29
|
- lib/hackex.rb
|
58
|
-
- lib/hackex/action.rb
|
59
|
-
- lib/hackex/error.rb
|
60
|
-
- lib/hackex/hackex.rb
|
61
|
-
- lib/hackex/helper.rb
|
62
|
-
- lib/hackex/net/std.rb
|
63
|
-
- lib/hackex/net/typhoeus.rb
|
64
|
-
- lib/hackex/request.rb
|
65
30
|
- lib/libGoo.rb
|
66
31
|
- lib/libGoo/error.rb
|
32
|
+
- lib/libGoo/hackex/action.rb
|
33
|
+
- lib/libGoo/hackex/error.rb
|
34
|
+
- lib/libGoo/hackex/hackex.rb
|
35
|
+
- lib/libGoo/hackex/helper.rb
|
36
|
+
- lib/libGoo/hackex/net/std.rb
|
37
|
+
- lib/libGoo/hackex/net/typhoeus.rb
|
38
|
+
- lib/libGoo/hackex/request.rb
|
67
39
|
- lib/libGoo/helper.rb
|
68
40
|
- lib/libGoo/objects.rb
|
69
41
|
- lib/libGoo/user.rb
|
70
42
|
- libGoo.gemspec
|
71
|
-
homepage:
|
43
|
+
homepage: https://github.com/grig191/libGoo/
|
72
44
|
licenses:
|
73
45
|
- MIT
|
74
46
|
metadata: {}
|
@@ -78,18 +50,19 @@ require_paths:
|
|
78
50
|
- lib
|
79
51
|
required_ruby_version: !ruby/object:Gem::Requirement
|
80
52
|
requirements:
|
81
|
-
- -
|
53
|
+
- - ">="
|
82
54
|
- !ruby/object:Gem::Version
|
83
55
|
version: '0'
|
84
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
57
|
requirements:
|
86
|
-
- -
|
58
|
+
- - ">="
|
87
59
|
- !ruby/object:Gem::Version
|
88
60
|
version: '0'
|
89
61
|
requirements: []
|
90
62
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.4.8
|
92
64
|
signing_key:
|
93
65
|
specification_version: 4
|
94
66
|
summary: HackEx LibGoo attachment was developed for ease your scripting
|
95
67
|
test_files: []
|
68
|
+
has_rdoc:
|
data/bin/example.rb
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
#require 'hackex' #Optional, dont use that
|
2
|
-
require 'libGoo' #Requiring libGoo
|
3
|
-
include LibGoo #Including libGoo into your script
|
4
|
-
email = 'your@e.mail'
|
5
|
-
password = 'password'
|
6
|
-
|
7
|
-
user = User.new(email, password)
|
8
|
-
#user = User.new(nil, nil, 'YOUR_AUTH_TOKEN_HERE') #Loggining by auth token
|
9
|
-
|
10
|
-
#Methods names as in hackex/request.rb, but you can also use old methods names or translate old ones to new ones by OLD_TO_NEW
|
11
|
-
puts LibGoo::OLD_TO_NEW['getUserProcesses'.to_sym] #=>UserProcesses
|
12
|
-
puts LibGoo::NEW_TO_OLD['UserProcesses'] #=>getUserProcesses
|
13
|
-
puts JSON.pretty_generate OLD_TO_NEW #Prints out methods names
|
14
|
-
#puts JSON.pretty_generate user.VictimInfo(590331)
|
15
|
-
#puts JSON.pretty_generate user.user
|
16
|
-
puts user.auth_token #=>B13C1313-1313-A13D-13E1-ACB13F131B13 #example
|
17
|
-
victim = Victim.new('user_id' => 590331)
|
18
|
-
LibGooHelper.MassScanner(user.auth_token, [1001, 1005]) do |user| #Scans users with id's 1001 to 1004 and prints out his usernames
|
19
|
-
puts user['user']['username'] #=>Nardski
|
20
|
-
end
|
21
|
-
User.Do(email, password) do |http, auth_token, user_info, user|
|
22
|
-
puts user.user == user_info #=>true
|
23
|
-
puts JSON.pretty_generate user.VictimInfo(victim)['user']
|
24
|
-
puts user.http == http #=>true
|
25
|
-
puts auth_token == user.auth_token #=>true
|
26
|
-
puts LibGooHelper.AnonymousTransfer(user.auth_token, 1, 590331) #Accepts values of BTC up to 1 Billion, where 1 is value of BTC
|
27
|
-
#Sending 1 BTC to me^^^^^ #You can dont care about adding this user as contact, it's cayman too
|
28
|
-
end
|
29
|
-
|
30
|
-
|
31
|
-
|