miketracy-wwmd 0.2.17 → 0.2.19

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.
@@ -39,9 +39,9 @@ check the wiki regularly.
39
39
 
40
40
  * rubygems
41
41
  * ruby-debug
42
- * curb
43
- * nokogiri
44
- * hpricot (for the time being)
42
+ * curb (taf2-curb located here on github)
43
+ * nokogiri >= 1.3.2
44
+ * hpricot (not used by default)
45
45
  * htmlentities
46
46
 
47
47
  == INSTALL
@@ -15,7 +15,7 @@ require 'rexml/document'
15
15
  module WWMD
16
16
 
17
17
  # :stopdoc:
18
- VERSION = "0.2.17"
18
+ VERSION = "0.2.19"
19
19
  PARSER = :nokogiri # :nokogiri || :hpricot
20
20
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
21
21
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
@@ -40,6 +40,10 @@ module WWMD
40
40
  return self.get_attribute("action")
41
41
  end
42
42
 
43
+ def type
44
+ return self.get_attribute("method")
45
+ end
46
+
43
47
  end
44
48
 
45
49
  class Field < Form
@@ -14,6 +14,7 @@ right thing.
14
14
  module WWMD
15
15
  class FormArray < Array
16
16
  attr_accessor :action
17
+ attr_accessor :type
17
18
  attr_accessor :delimiter
18
19
  attr_accessor :equals
19
20
 
@@ -200,7 +200,7 @@ module WWMD
200
200
  self.submit(form)
201
201
  end
202
202
 
203
- # send arbitrary verb (only works with patch to taf2-curb
203
+ # send arbitrary verb (only works with patch to taf2-curb)
204
204
  def verb(verb,url=nil)
205
205
  return false if !@curl_object.respond_to?(:http_verb)
206
206
  self.url = url if url
@@ -15,9 +15,11 @@ module WWMD
15
15
  return nil if forms.empty? || !forms[id]
16
16
  f = @forms[id]
17
17
  url_action = @urlparse.parse(self.cur,f.action).to_s
18
+ type = f.type
18
19
  FormArray.new do |x|
19
20
  x.set_fields(f.fields)
20
21
  x.action = url_action
22
+ x.type = type
21
23
  end
22
24
  end
23
25
 
@@ -76,6 +76,7 @@ module WWMD
76
76
 
77
77
  alias_method :current, :current_url
78
78
  alias_method :cur, :current_url
79
+ alias_method :now, :current_url
79
80
 
80
81
  # the last http response code
81
82
  def code
@@ -23,8 +23,7 @@ module WWMD
23
23
 
24
24
  # pass me opts and an array of regexps to ignore
25
25
  # we have a set of sane(ish) defaults here
26
- def initialize(opts={},ignore=nil,&block)
27
- @block ||= block
26
+ def initialize(opts={},ignore=nil)
28
27
  @opts = opts
29
28
  @visited = []
30
29
  @queued = []
@@ -46,6 +45,7 @@ module WWMD
46
45
  @queued.push(url)
47
46
  true
48
47
  end
48
+ alias_method :push, :push_url
49
49
 
50
50
  # skip items in the queue
51
51
  def skip(tim=1)
@@ -44,10 +44,10 @@ module WWMD
44
44
  raise "Invalid ViewState" if not self.magic?
45
45
  @obj_queue << self.deserialize_value
46
46
  if @bufarr.size == 20 then
47
- @mac = bufarr.slice!(0..19).join("")
47
+ @mac = @bufarr.slice!(0..19).join("")
48
48
  dlog(0x00,"MAC = #{@mac.hexify}")
49
49
  end
50
- raise "Error Parsing Viewstate (left: #{@buffarr.size})" if not @bufarr.size == 0
50
+ raise "Error Parsing Viewstate (left: #{@bufarr.size})" if not @bufarr.size == 0
51
51
  return !self.raw.nil?
52
52
  end
53
53
 
@@ -41,7 +41,7 @@ module WWMD
41
41
  opts.on("--no_auth","no login before getting url") { |v| inopts[:use_auth] = false }
42
42
  opts.on("--debug","debugging really doesn't work") { |v| inopts[:debug] = true }
43
43
  opts.on_tail("-h", "--help", "Show this message") do
44
- putx opts
44
+ puts opts
45
45
  exit
46
46
  end
47
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miketracy-wwmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.17
4
+ version: 0.2.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael L. Tracy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-22 00:00:00 -07:00
12
+ date: 2009-08-13 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.9.1
33
+ version: 0.4.8.0
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: nokogiri
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 1.3.1
43
+ version: 1.3.2
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: bones
@@ -142,6 +142,7 @@ files:
142
142
  - tasks/zentest.rake
143
143
  has_rdoc: false
144
144
  homepage: http://github.com/miketracy/wwmd/tree/master
145
+ licenses:
145
146
  post_install_message:
146
147
  rdoc_options:
147
148
  - --main
@@ -165,7 +166,7 @@ requirements: []
165
166
  rubyforge_project: !binary |
166
167
  AA==
167
168
 
168
- rubygems_version: 1.2.0
169
+ rubygems_version: 1.3.5
169
170
  signing_key:
170
171
  specification_version: 3
171
172
  summary: WWMD was originally intended to provide a console helper tool for conducting web application security assessments (which is something I find myself doing alot of)