Skip to content

Commit 6b2a995

Browse files
committed
Revert AutoPublish, since it doesn't work
Apparently.
1 parent df38a91 commit 6b2a995

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

modules/auxiliary/scanner/http/wordpress_content_injection.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ def initialize(info = {})
4444

4545
register_advanced_options([
4646
OptInt.new('PostCount', [false, 'Number of posts to list', 100]),
47-
OptString.new('SearchTerm', [false, 'Search term when listing posts']),
48-
OptBool.new('AutoPublish', [false, 'Publish updated posts', true])
47+
OptString.new('SearchTerm', [false, 'Search term when listing posts'])
4948
])
5049
end
5150

@@ -129,8 +128,7 @@ def do_update
129128
res = update_post(post[:id],
130129
title: datastore['POST_TITLE'],
131130
content: datastore['POST_CONTENT'],
132-
password: datastore['POST_PASSWORD'],
133-
status: datastore['AutoPublish'] ? 'publish' : nil
131+
password: datastore['POST_PASSWORD']
134132
)
135133

136134
post_url = full_uri(wordpress_url_post(post[:id]))
@@ -182,7 +180,6 @@ def update_post(id, opts = {})
182180
payload[:title] = opts[:title] if opts[:title]
183181
payload[:content] = opts[:content] if opts[:content]
184182
payload[:password] = opts[:password] if opts[:password]
185-
payload[:status] = opts[:status] if opts[:status]
186183

187184
send_request_cgi({
188185
'method' => 'POST',

0 commit comments

Comments
 (0)