Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support python3 #2

Open
nixawk opened this issue Apr 5, 2018 · 5 comments
Open

support python3 #2

nixawk opened this issue Apr 5, 2018 · 5 comments

Comments

@nixawk
Copy link
Owner

nixawk commented Apr 5, 2018

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
@thapr0digy
Copy link

Is this project dead? Would love to see Python3 support as well.

@5z1punch
Copy link

5z1punch commented Jun 2, 2020

Any updates?

@nixawk
Copy link
Owner Author

nixawk commented Jun 8, 2020

I'll try it later.

@apanly
Copy link

apanly commented Dec 25, 2020

I'll try it later.

change Line 420

data += str(_, encoding="utf-8")

OK , support python3

@hamza-saeedCys
Copy link

try with these lines: (remove while loop)
_ = client.recv(SOCKET_READ_BUFFERSIZE)
_ = _.decode('utf-8')
if not _:
return
data+= _

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants