File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
lib/msf/core/auxiliary/web Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ class Path < Fuzzable
22
22
# URL String to which to submit the params
23
23
attr_accessor :action
24
24
25
- # Injected value as a String
26
- attr_accessor :input
27
-
28
25
# Mdm::WebForm model if available
29
26
attr_accessor :model
30
27
@@ -48,8 +45,15 @@ def initialize( opts = {} )
48
45
def input = ( value )
49
46
@inputs = value . to_s . dup
50
47
end
48
+ def input
49
+ @inputs
50
+ end
51
51
alias :param :input
52
52
53
+ def method
54
+ 'GET'
55
+ end
56
+
53
57
#
54
58
# Examples
55
59
#
@@ -104,7 +108,7 @@ def empty?
104
108
#
105
109
def permutations
106
110
return [ ] if empty?
107
- seeds_for ( value ) . map { |seed | permutation_for ( nil , seed ) } . uniq
111
+ fuzzer . seeds_for ( altered_value ) . map { |seed | permutation_for ( nil , seed ) } . uniq
108
112
end
109
113
110
114
def permutation_for ( field_name , field_value )
@@ -118,7 +122,7 @@ def to_hash
118
122
end
119
123
120
124
def self . from_model ( form )
121
- e = new ( :action => "#{ form . path } ?#{ form . query } " , :input => form . inputs [ 0 ] [ 1 ] )
125
+ e = new ( :action => "#{ form . path } ?#{ form . query } " , :input => form . params [ 0 ] [ 1 ] )
122
126
e . model = form
123
127
e
124
128
end
You can’t perform that action at this time.
0 commit comments