crabstone 4.0.2 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/lib/crabstone/arch/4/x86.rb +4 -4
- data/lib/crabstone/error.rb +14 -0
- data/lib/crabstone/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62bfda46ec0c0067bf58a302ea21c6ac9694856ef3273c02a36613b700961fb5
|
4
|
+
data.tar.gz: 8f2681eb861e8231a943bcdd10e7293a650d073bbe477fd370e0d1346417c93f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aeb2a02448a221198e21a229f28c0423126d301696dd7c7e4d1d17ea311f227c940478f7ed448302d1f92f1255ab8c7ead557dabd4ca37f80e700a14bedcdad8
|
7
|
+
data.tar.gz: 2f41ce7d0f4113608ab474f2348259f4d60e3c8610333fd46ae8bfe60c36e7257de504fa3f156ff7716e0387710cd45bbfe97edc28459329b0290ffb3a4c8c18
|
data/README.md
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/crabstone.svg)](https://badge.fury.io/rb/crabstone)
|
2
|
-
[![Build Status](https://travis-ci.org/david942j/crabstone.svg?branch=master)](https://travis-ci.org/david942j/crabstone)
|
3
2
|
[![Issue Count](https://codeclimate.com/github/david942j/crabstone/badges/issue_count.svg)](https://codeclimate.com/github/david942j/crabstone)
|
4
3
|
[![Test Coverage](https://codeclimate.com/github/david942j/crabstone/badges/coverage.svg)](https://codeclimate.com/github/david942j/crabstone/coverage)
|
5
4
|
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
|
data/lib/crabstone/arch/4/x86.rb
CHANGED
@@ -52,7 +52,7 @@ module Crabstone
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class Encoding < FFI::Struct
|
56
56
|
layout(
|
57
57
|
:modrm_offset, :uint8,
|
58
58
|
:disp_offset, :uint8,
|
@@ -60,8 +60,6 @@ module Crabstone
|
|
60
60
|
:imm_offset, :uint8,
|
61
61
|
:imm_size, :uint8
|
62
62
|
)
|
63
|
-
|
64
|
-
include Crabstone::Extension::Instruction
|
65
63
|
end
|
66
64
|
|
67
65
|
class Instruction < FFI::Struct
|
@@ -84,8 +82,10 @@ module Crabstone
|
|
84
82
|
:eflags, :ulong,
|
85
83
|
:op_count, :uint8,
|
86
84
|
:operands, [Operand, 8],
|
87
|
-
:encoding,
|
85
|
+
:encoding, Encoding
|
88
86
|
)
|
87
|
+
|
88
|
+
include Crabstone::Extension::Instruction
|
89
89
|
end
|
90
90
|
end
|
91
91
|
end
|
data/lib/crabstone/error.rb
CHANGED
@@ -9,19 +9,33 @@ module Crabstone
|
|
9
9
|
class Error < StandardError; end
|
10
10
|
|
11
11
|
class ErrArch < Error; end
|
12
|
+
|
12
13
|
class ErrCsh < Error; end
|
14
|
+
|
13
15
|
class ErrHandle < Error; end
|
16
|
+
|
14
17
|
class ErrMem < Error; end
|
18
|
+
|
15
19
|
class ErrMode < Error; end
|
20
|
+
|
16
21
|
class ErrOK < Error; end
|
22
|
+
|
17
23
|
class ErrOption < Error; end
|
24
|
+
|
18
25
|
class ErrDetail < Error; end
|
26
|
+
|
19
27
|
class ErrMemSetup < Error; end
|
28
|
+
|
20
29
|
class ErrVersion < Error; end
|
30
|
+
|
21
31
|
class ErrDiet < Error; end
|
32
|
+
|
22
33
|
class ErrSkipData < Error; end
|
34
|
+
|
23
35
|
class ErrX86ATT < Error; end
|
36
|
+
|
24
37
|
class ErrX86Intel < Error; end
|
38
|
+
|
25
39
|
class ErrX86MASM < Error; end
|
26
40
|
|
27
41
|
class Error
|
data/lib/crabstone/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crabstone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Nagy
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-01-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
@@ -59,14 +59,14 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '1'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '1'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: simplecov
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,14 +184,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
184
184
|
requirements:
|
185
185
|
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '2.
|
187
|
+
version: '2.4'
|
188
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
189
|
requirements:
|
190
190
|
- - ">="
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: '0'
|
193
193
|
requirements: []
|
194
|
-
rubygems_version: 3.
|
194
|
+
rubygems_version: 3.1.2
|
195
195
|
signing_key:
|
196
196
|
specification_version: 4
|
197
197
|
summary: Ruby FFI bindings for the capstone disassembly engine
|