Skip to content

support python3 #2

Open
Open
@nixawk

Description

@nixawk
01:24 $ ipy
Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from nmap_vscan import vscan

In [2]: nmap = vscan.ServiceScan('nmap-service-probes')

In [3]: nmap.scan('www.apache.org', 80, "tcp")
ERROR:nmap_vscan.vscan:www.apache.org : 80 - must be str, not bytes
Traceback (most recent call last):
  File "/Users/unix/Projects/nmap_vscan/nmap_vscan/vscan.py", line 420, in send_tcp_request
    data += _
TypeError: must be str, not bytes
ERROR:nmap_vscan.vscan:www.apache.org : 80 - must be str, not bytes
Traceback (most recent call last):
  File "/Users/unix/Projects/nmap_vscan/nmap_vscan/vscan.py", line 420, in send_tcp_request
    data += _
TypeError: must be str, not bytes
ERROR:nmap_vscan.vscan:www.apache.org : 80 - must be str, not bytes
Traceback (most recent call last):
  File "/Users/unix/Projects/nmap_vscan/nmap_vscan/vscan.py", line 420, in send_tcp_request
    data += _
TypeError: must be str, not bytes
ERROR:nmap_vscan.vscan:www.apache.org : 80 - must be str, not bytes
Traceback (most recent call last):
  File "/Users/unix/Projects/nmap_vscan/nmap_vscan/vscan.py", line 420, in send_tcp_request
    data += _
TypeError: must be str, not bytes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions