Nmap Development mailing list archives

Re: Problems writing a nmap-service-probe for jdwp (Java debug wire protocol)


From: Brandon Enright <bmenrigh () ucsd edu>
Date: Tue, 16 Mar 2010 21:28:49 +0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 16 Mar 2010 22:22:56 +0100
Michael Schierl <schierlm () gmx de> wrote:

        local match = {string.match(result,
"^JDWP%-Handshake%z%z..%z%z%z\1\128%z%z%z%z..([^%z\n]*)\n([^%z]*)%z%z..%z%z..%z%z..([0-9._]+)%z%z..([^%z]*)")}


Michael,  I'm not intimately familiar with Lua's matching but you
should make sure that '.' can match whitespace like \x0a, \x0d, etc.

Brandon

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAkuf+BEACgkQqaGPzAsl94KV6QCgqlPONVzqoboiFJXPhfbyCJu4
omgAnRg2YZwRasAM947VFTEVK0EMQCUJ
=Y8UF
-----END PGP SIGNATURE-----
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: