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

im making a Reverse Shell. and in the server.py file i got this error. i has trying in de socket_bind() s.bind((host, port)) #158

Open
AlbertovanEckeveld opened this issue Sep 3, 2020 · 0 comments

Comments

@AlbertovanEckeveld
Copy link

My code:

def socket_bind():
try:
global host
global port
global s
print("Binding socket to port: " + str(port))
s.bind((host, port))
s.listen(5)
except socket.error as msg:
print("Socket binding error: " + str(msg) + "\n" + "retrying...")
socket_bind()

my error:

Binding socket to port: 90
Traceback (most recent call last):
File "c:/ReverseShell/server.py", line 50, in
main()
File "c:/ReverseShell/server.py", line 47, in main
socket_bind()
File "c:/ReverseShell/server.py", line 21, in socket_bind
s.bind((host, port))
TypeError: an integer is required (got type str)
error

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

1 participant