Making a honey pot and errors with nmap

2022-11-02 Thread Araq
Unreadable.

How to use multi-type parameters in the Nim

2022-11-02 Thread winger
It's a wise move. Tanks

How to use multi-type parameters in the Nim

2022-11-02 Thread winger
thanks

How to edit the wiki?

2022-11-02 Thread Yardanico
Maybe a better idea for the wiki would be using nimibook?

How to edit the wiki?

2022-11-02 Thread dlesnoff
I have generated 60 Nimibs from the wikis MDs .. image ::

Calc shellcode with nim?

2022-11-02 Thread calc
Wow, thanks for the answer! I have to admit, I have the links you provided but I am not sure whether I am a step further to the final goal. I have been looking at offensivenim as well, I don't think that is of use all these project seem to be using shellcode as input. What would you approach be

Making a honey pot and errors with nmap

2022-11-02 Thread blmvxer
Making a Telnet Honeypot and came up with this error while scanning with nmap Nmap output u0_a619@localhost ~> nmap -vvv -Pn -sV 127.0.0.1 Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times may be slower. Starting Nmap 7.92 ( ) at 2022-11-02 14:16

How to edit the wiki?

2022-11-02 Thread xflywind
Nice work!

How to edit the wiki?

2022-11-02 Thread dlesnoff
@xflywind I used @yardanico's command to fetch all the MD files and add them to your repo. I'll write a script that retrieve all nim markdown code blocks and split them into a nbCode:. If no change has been made since you opened back the edit button, no links should have been compromised. Otherw

NimEdit: can it be made compilable with Nim 1.6.8?

2022-11-02 Thread matkuki
🎉🎉🎉 On it!

Calc shellcode with nim?

2022-11-02 Thread mratsim
I have no idea how the calc.exe byte code is supposed to be generated but you can do everything in macros. Here is an x86-64 assembler I have written in Nim macros: And here is how to use it,

To sink or not to sink

2022-11-02 Thread Araq
But I see no need to support it yet. You still need to give me a use case.

To sink or not to sink

2022-11-02 Thread sls1005
If overloading with `sink T` is to be supported. The symbol resolving order should be: `sink T`/`=sink` > `var T` > `T` > `sink T`/`=copy` Making a copy should be the last option, as it's most inefficient.

How to edit the wiki?

2022-11-02 Thread xflywind
> Is it easier to make a private repository and then move to a nim-lang repo > (at the risk to have to change all urls after), or wait for the creation of a > nim-lang repo and add the makefiles through PRs ? I can create the repo, PRs are appreciated.

nim-gdb: Undefined command: "import"

2022-11-02 Thread emre
It seems I have come to the end of the road, no wiser, but with a certain disappointment over the state of nim's tooling. I was hoping to adopt it for a project but I will have to pass for now; this is not good enough.

NimEdit: can it be made compilable with Nim 1.6.8?

2022-11-02 Thread Araq
It compiles again and runs (sort of). Now fix the bugs please. :-)

How to edit the wiki?

2022-11-02 Thread dlesnoff
@xflywind with the edit button activated, it is easier for me to copy the markdown files into a separate repo. If you intend to do it, no problem. I'll probably make a second version of each md file into nimibs after this, to check code output and code compilation, and check all the links manual

How to edit the wiki?

2022-11-02 Thread Yardanico
You can just clone the wiki as a git repo: `git clone g...@github.com:nim-lang/nim.wiki.git`

Idea: Marketing Nim to Organizations

2022-11-02 Thread dlesnoff
And, Honestly, I don't like « marketing » companies that relies on bot/fake accounts and spammers to do their own advertisement. They should be ashamed. @narimiran Please remove this obvious advertisement spam.

How to use multi-type parameters in the Nim

2022-11-02 Thread Araq
proc test(domains: seq[string]) = # 1 echo domains proc test(domain: string) = test(@[domain]) # 2 test @["xxx.com"] # calls 1 test "yyy.com" # calls 2 Run You can use overloading here. But it is a bad idea for a beginner. If you deal with a list of

nimiSlides 🛷 Create beautiful slideshows in Nim 👑

2022-11-02 Thread hugogranstrom
That's a good point, will add it to the readme when I get home :) It's great to get feedback on things like this. I'm so used to nimib and nimiSlides so it's hard sometimes to get into the shoes of someone new to them.

To sink or not to sink

2022-11-02 Thread Araq
> The better question here is: "when would I not want to type sink for every > parameter?" Almost always since usually no ownership change is required. `sink T` propagates "need a copy here" up the call chain. If you don't need a copy (which is almost always), don't use `sink`. It's like in C++

To sink or not to sink

2022-11-02 Thread sls1005
> there's no case where I would not want to type sink because the non-sink > version is either worse or the same. I believe it wasn't true. If you look at the resulted C code, you'll see that `=copy` is called whenever a sink-proc is called, except being the last time a parameter is used. But w

nimiSlides 🛷 Create beautiful slideshows in Nim 👑

2022-11-02 Thread jmalima
If I may give a suggestion, in the 'API' section of it would be nice to indicate that a call to 'nbSave' is required in the end of the file. Anyone unfamiliar with nimib (like me) wouldn´t know that. After the initial struggle trying to get it to work,

To sink or not to sink

2022-11-02 Thread arnetheduck
> if a variable is passed to the proc that accepts a sink argument and it's not > the last use, Nim just makes a copy > > Overloading by sink T has been left out by design. What is your use case? The better question here is: "when would I not want to type `sink` for every parameter?" Since `si

nimiSlides 🛷 Create beautiful slideshows in Nim 👑

2022-11-02 Thread jmalima
I found what was the problem, and its solution. my file was missing the call to 'nbSave' nbSave (nimib API), as the name implies, saves the presentation to the html file

How to edit the wiki?

2022-11-02 Thread juancarlospaco
I think Wiki is disabled because of spam and phishing. I tried making an antispam bot for Wikis, but the Github API is very limited for Wikis. The problem is that it is not spam bots nowadays, but actually people posting spam, so captchas and the like wont work, how they make the economics of t

How to edit the wiki?

2022-11-02 Thread pietroppeter
this has been brought up a couple of times in unrelated threads, so it is worth making its own thread. Hopefully someone that knows the details will answer. * * some open questions: * to edit the wiki yo

To sink or not to sink

2022-11-02 Thread sls1005
Just have a feeling that a layer is missing. For example if you only need a part of data, taking the control of the buffer would be most efficient, while copying the data you need is less efficient, but still more efficient than copying the whole buffer. But with `sink T`, you'll either take th

How to edit the wiki?

2022-11-02 Thread xflywind
> to edit the wiki you need to be a contributor, correct? Sorry for the inconvenience. No, I simply disabled contributing to the wiki for a few times. Each time fishy cases like happened, I disable the wiki for some times. And after some time, I enable the Wi

Idea: Marketing Nim to Organizations

2022-11-02 Thread pietroppeter
the edit button is not visible for everyone, I think there is some setting that makes it visible only to (somewhat recent) contributors. I recently started seeing it after a documentation PR was made. Someone with more knowledge than me (when was this changed? I do remember this setup was diffe

nimiSlides 🛷 Create beautiful slideshows in Nim 👑

2022-11-02 Thread jmalima
It looks awesome indeed. However I tried without success to produce a presentation. I assume (although I didn´t find it written anywhere) that to produce the presentation one compiles the NIM file, which in turn can be run to generate an html... This didn´t work for me. Compilation succeeded, th

How to use multi-type parameters in the Nim

2022-11-02 Thread Stefan_Salewski
Nim is a statically typed language. So an instantiated proc has always well defined paramter types. What you can do, is to test with when which kind of proc was actually created by the compiler for the actual parameter. Replace your if test with when, like "when typeof(domains) is string:"

To sink or not to sink

2022-11-02 Thread Araq
Overloading by `sink T` has been left out by design. What is your use case?

nim-gdb: Undefined command: "import"

2022-11-02 Thread dlesnoff
> Where? Can you print the line as you would like to run it? Sorry, I just looked up the shebang correct usage on SO: I believed you had to point to the exact location of the Python

To sink or not to sink

2022-11-02 Thread sls1005
> if a variable is passed to the proc that accepts a sink argument and it's not > the last use, Nim just makes a copy That's what I want to prevent. How do I tell it to either take the ownership or to call it with an immutable argument, without making a copy?

Calc shellcode with nim?

2022-11-02 Thread calc
Hello! I am looking at the capabilities of Nim, coming from a python and bash background. I have been reading different tutorials and the great documentation. I saw nim is able to output assembly with the --asm flag, so I thought of trying to create small code to launch for example calc.exe. Do

To sink or not to sink

2022-11-02 Thread Yardanico
You don't need to do that because Nim already takes this into the account - if an immutable variable is passed to the proc that accepts a sink argument, Nim just makes a copy, so you don't need to have two separate implementations.

To sink or not to sink

2022-11-02 Thread sls1005
How do I overload a `proc` to take either an immutable `T` or a `sink T`? Something like proc f(s: string) = echo "s is immutable" proc f(s: sink string) = echo "control taken" discard move(s) Run current output: Error: ambigu

How to use multi-type parameters in the Nim

2022-11-02 Thread winger
test(domains:(string|seq[string])) = var domainseq:seq[string] if typeof(domains) is string: domainseq = @[domains] else: domainseq = @["abc"] echo domainseq test(@["xxx.com"]) Run `Error: type mismatch: got 'seq[seq[s

nim-gdb: Undefined command: "import"

2022-11-02 Thread emre
Then I get: > Python scripting is not supported in this copy of GDB. I think I need to build gdb with python support? This is more complicated that it ought to be.

nim-gdb: Undefined command: "import"

2022-11-02 Thread sls1005
> According to that blog post, running nim-gdb foo is equivalent to running > **gdb -eval-command "source {path-to-nim}toolsnim-gdb.py" test** \-- in > Windows. Then try: gdb -eval-command "python {path-to-nim}/tools/nim-gdb.py" test Run