Skip to content

Commit 44bf40f

Browse files
committed
fix. use random on SSH_MSG_CHANNEL_REQUEST (pre-auth)
Signed-off-by: RAMELLA Sebastien <[email protected]>
1 parent 0a428b8 commit 44bf40f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/ssh/ssh_erlangotp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def run_host(target_host)
146146
sleep(0.5)
147147

148148
print_status(message('Sending SSH_MSG_CHANNEL_REQUEST (pre-auth)...'))
149-
chan_req = build_channel_request(0, 'blah')
149+
chan_req = build_channel_request(0, Rex::Text.rand_text_alpha(rand(4..8)).to_s)
150150
sock.put(pad_packet(chan_req, 8))
151151
sleep(0.5)
152152

0 commit comments

Comments
 (0)