Just recently I found weird results when testing my RandIP on Aarch64 compared 
to Armv7l or even x86_64.

Every connection even if false comes out as true on aarch64 compared to any 
other Arch

nim '''

proc main(): string {.discardable.} =
    randomize()

var
    ip0 = rand(1..255) ip1 = rand(255) ip2 = rand(255) ip3 = rand(255) ipAddr = 
(join([$ip0, $ip1, $ip2, $ip3], ".")) sock = newSocket(AF_INET, SOCK_STREAM, 
IPPROTO_TCP)
try:
    echo "Connecting to " & ipAddr sock.connect(ipAddr, Port(80), 1500 * 1) 
green("[+]Success! n")
except:
    red("[-]Failed!n")
finally:
    sock.close()

'''

Reply via email to