Skip to content

Commit bdeeb8e

Browse files
committed
Add a check
1 parent 85845b3 commit bdeeb8e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

modules/exploits/unix/webapp/wp_admin_shell_upload.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ def initialize(info = {})
4040
], self.class)
4141
end
4242

43+
def check
44+
cookie = wordpress_login(username, password)
45+
if cookie.nil?
46+
return CheckCode::Safe
47+
end
48+
49+
CheckCode::Appears
50+
end
51+
4352
def username
4453
datastore['USERNAME']
4554
end

0 commit comments

Comments
 (0)