modules/payloads/singles/osx/x64/shell_reverse_tcp.rb
Method generate
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def generate(_opts = {})
lhost = datastore['LHOST'] || '127.0.0.1'
# OptAddress allows either an IP or hostname, we only want IPv4
unless Rex::Socket.is_ipv4?(lhost)
raise ArgumentError, 'LHOST must be in IPv4 format.'