frida 0.1.0

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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/ext/c_frida/extconf.rb +25 -0
  3. metadata +64 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d86e64994def8105997b2dfb251292718701355ecfa74676a13c9744186c0c21
4
+ data.tar.gz: 9060faf4490a7946ac21e4c4cbb71afe412edba5292b78cbb1d93b08f33b07aa
5
+ SHA512:
6
+ metadata.gz: c580b297205b11deaa9168db95b88833141c4c64edce81f835d9c02db9db963bf1b7bb9d99eb9e40b233c3fcea98e6f17451e2e3eb961428e1d6e03b3d66e438
7
+ data.tar.gz: 0db83cd655738cbc8dab2abdc74934b284c8c550b8940cddf2ae2b4fba5430c98175de979b46d4b3b0d3b6664b5c3659b1acb6ffcbe7c2176cadb1a97241a6e6
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "mkmf"
4
+
5
+ unless ENV["FRIDA_CORE_DEVKIT"] && File.directory?(ENV["FRIDA_CORE_DEVKIT"])
6
+ abort "please download frida-core devkit, and set its path in the env variable FRIDA_CORE_DEVKIT"
7
+ end
8
+
9
+ # todo: use the native #have_header and #have_library
10
+ unless File.file?("#{ENV["FRIDA_CORE_DEVKIT"]}/frida-core.h") && File.file?("#{ENV["FRIDA_CORE_DEVKIT"]}/libfrida-core.a")
11
+ abort "could not find frida-core.h or libfrida-core.a in the configured env variable FRIDA_CORE_DEVKIT"
12
+ end
13
+
14
+ W =
15
+ if false
16
+ # only on DEV mode because it detects lot of unused var/params, in our code and Ruby's.
17
+ "-Wno-error=cast-function-type -Wno-error=unused-parameter -Wno-error=unused-variable -Wno-error=unused-function -Wall -Werror -Wextra"
18
+ else
19
+ ""
20
+ end
21
+
22
+ $CFLAGS = "#{W} -g3 -ffunction-sections -fdata-sections -I#{ENV["FRIDA_CORE_DEVKIT"]} -I#{File.dirname(__FILE__)}/inc"
23
+ $LDFLAGS = "-Wl,--export-dynamic -static-libgcc -Wl,-z,noexecstack,--gc-sections -L#{ENV["FRIDA_CORE_DEVKIT"]} -lfrida-core -ldl -lrt -lm -lresolv -pthread"
24
+
25
+ create_makefile("c_frida")
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: frida
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - hakivvi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-04-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake-compiler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.2.7
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.2.7
27
+ description: Frida Ruby bindings.
28
+ email:
29
+ - hakivvi@gmail.com
30
+ executables: []
31
+ extensions:
32
+ - ext/c_frida/extconf.rb
33
+ extra_rdoc_files: []
34
+ files:
35
+ - ext/c_frida/extconf.rb
36
+ homepage: https://github.com/hakivvi/frida-ruby
37
+ licenses:
38
+ - MIT
39
+ metadata:
40
+ allowed_push_host: https://rubygems.org
41
+ homepage_uri: https://github.com/hakivvi/frida-ruby
42
+ source_code_uri: https://github.com/hakivvi/frida-ruby
43
+ changelog_uri: https://github.com/hakivvi/frida-ruby
44
+ post_install_message: frida has been successfully compiled and installed, frida-core
45
+ is no longer required and can be safely removed.
46
+ rdoc_options: []
47
+ require_paths:
48
+ - lib
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 2.7.0
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ requirements: []
60
+ rubygems_version: 3.3.7
61
+ signing_key:
62
+ specification_version: 4
63
+ summary: Frida Ruby bindings.
64
+ test_files: []