9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] tcp port scanner
@ 2014-12-11  6:56 mischief
  2014-12-11  7:53 ` mischief
  0 siblings, 1 reply; 4+ messages in thread
From: mischief @ 2014-12-11  6:56 UTC (permalink / raw)
  To: 9fans

hi 9fans,

i wrote a little tcp port scanner using libthread's ioprocs. i wasn't able to test ipv6. enjoy :)

http://9.offblast.org/stuff/netscan.c

who needs select(2) anyway?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] tcp port scanner
  2014-12-11  6:56 [9fans] tcp port scanner mischief
@ 2014-12-11  7:53 ` mischief
  2014-12-12  3:14   ` mischief
  0 siblings, 1 reply; 4+ messages in thread
From: mischief @ 2014-12-11  7:53 UTC (permalink / raw)
  To: mischief, 9fans

i just updated the code so that i can use a "meta-name" as described in dial(2), like:

8.out '$cpu'

but i'm not happy with how dnsresolve()/csresolve() functions turned out.

is there a better way?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] tcp port scanner
  2014-12-11  7:53 ` mischief
@ 2014-12-12  3:14   ` mischief
  2014-12-12  3:50     ` lucio
  0 siblings, 1 reply; 4+ messages in thread
From: mischief @ 2014-12-12  3:14 UTC (permalink / raw)
  To: mischief, 9fans

it turns out the right thing to do is to just consult cs directly, which can resolve any of 1.2.3.4, google.com, finn (where ndb has a sys=finn line), '$ipgw'.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] tcp port scanner
  2014-12-12  3:14   ` mischief
@ 2014-12-12  3:50     ` lucio
  0 siblings, 0 replies; 4+ messages in thread
From: lucio @ 2014-12-12  3:50 UTC (permalink / raw)
  To: 9fans

> it turns out the right thing to do is to just consult cs directly,
> which can resolve any of 1.2.3.4, google.com, finn (where ndb has a
> sys=finn line), '$ipgw'.

Ndb's only incurable problem (it may be curable, but it looks hard) is
that it is strictly case sensitive in places, like the ethernet
address, where it would be preferable if it wasn't.

I have yet to find a practical reason to disconnect domain names and
IP addresses, but that could be another stumbling block.

For the rest, I think the design is pretty sound, even remarkable.

Lucio.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-12  3:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-11  6:56 [9fans] tcp port scanner mischief
2014-12-11  7:53 ` mischief
2014-12-12  3:14   ` mischief
2014-12-12  3:50     ` lucio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).