Skip to content

Commit ece8013

Browse files
committed
Use #empty?
1 parent f048463 commit ece8013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/admin/mssql/mssql_escalate_execute_as_sqli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def run
5454
# Get list of users that can be impersonated
5555
print_status("#{peer} - Enumerating a list of users that can be impersonated...")
5656
imp_user_list = check_imp_users
57-
if imp_user_list.nil? || imp_user_list.length == 0
57+
if imp_user_list.nil? || imp_user_list.empty?
5858
print_error("#{peer} - Sorry, the current user doesnt have permissions to impersonate anyone.")
5959
return
6060
else

0 commit comments

Comments
 (0)