File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed
lib/msf/core/payload/windows Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def generate(opts={})
51
51
52
52
# Add extra options if we have enough space
53
53
unless self . available_space . nil? || required_space > self . available_space
54
-
54
+
55
55
conf [ :exitfunk ] = datastore [ 'EXITFUNC' ]
56
56
conf [ :ua ] = datastore [ 'MeterpreterUserAgent' ]
57
57
conf [ :proxy_host ] = datastore [ 'PayloadProxyHost' ]
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ def generate(opts={})
27
27
ssl : opts [ :ssl ] || false ,
28
28
host : datastore [ 'LHOST' ] ,
29
29
port : datastore [ 'LPORT' ] ,
30
- url : generate_small_uri ,
31
30
retry_count : datastore [ 'StagerRetryCount' ]
32
31
}
33
32
@@ -42,6 +41,9 @@ def generate(opts={})
42
41
conf [ :proxy_pass ] = datastore [ 'PayloadProxyPass' ]
43
42
conf [ :proxy_type ] = datastore [ 'PayloadProxyType' ]
44
43
conf [ :retry_count ] = datastore [ 'StagerRetryCount' ]
44
+ else
45
+ # Otherwise default to small URIs
46
+ conf [ :url ] = generate_small_uri
45
47
end
46
48
47
49
generate_reverse_winhttp ( conf )
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ def generate(opts={})
50
50
ssl : opts [ :ssl ] || false ,
51
51
host : datastore [ 'LHOST' ] ,
52
52
port : datastore [ 'LPORT' ] ,
53
- url : generate_small_uri ,
54
53
retry_count : datastore [ 'StagerRetryCount' ]
55
54
}
56
55
@@ -64,6 +63,9 @@ def generate(opts={})
64
63
conf [ :proxy_user ] = datastore [ 'PayloadProxyUser' ]
65
64
conf [ :proxy_pass ] = datastore [ 'PayloadProxyPass' ]
66
65
conf [ :proxy_type ] = datastore [ 'PayloadProxyType' ]
66
+ else
67
+ # Otherwise default to small URIs
68
+ conf [ :url ] = generate_small_uri
67
69
end
68
70
69
71
generate_reverse_http ( conf )
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ def generate(opts={})
24
24
ssl : opts [ :ssl ] || false ,
25
25
host : datastore [ 'LHOST' ] ,
26
26
port : datastore [ 'LPORT' ] ,
27
- url : generate_small_uri ,
28
27
retry_count : datastore [ 'StagerRetryCount' ]
29
28
}
30
29
@@ -38,6 +37,9 @@ def generate(opts={})
38
37
conf [ :proxy_user ] = datastore [ 'PayloadProxyUser' ]
39
38
conf [ :proxy_pass ] = datastore [ 'PayloadProxyPass' ]
40
39
conf [ :proxy_type ] = datastore [ 'PayloadProxyType' ]
40
+ else
41
+ # Otherwise default to small URIs
42
+ conf [ :url ] = generate_small_uri
41
43
end
42
44
43
45
generate_reverse_winhttp ( conf )
You can’t perform that action at this time.
0 commit comments