About the book Cyber Security Programming

Asked 2 years ago, Updated 2 years ago, 22 views

I'm reading a book called Cyber Security Programming - Hacker Thinking in Python, but I'm stuck with NetCat Replacement.How should I try it on page 24?Also, I don't use KaliLinux because I use Pycharm.Is it still possible?

Additional
My environment is running python code with a software called Pycharm.

I can't say for sure because I don't understand how NetCat works, but what kind of software does NetCat do?After performing ./bhnet.py-1-p 9999-c operation at the terminal, I run /bhnet.py-t localhost-p 9999 at another terminal, but I'm having a hard time because it doesn't work.I'm posting on my smartphone, so I can't post the code right now, but is this the right information?

python

2022-09-30 19:33

1 Answers

The reason why it doesn't work is probably because -l should be -1, which stands for listen.

./bhnet.py-l-p 9999-c

As for my environment, there is no problem if socket works in Python, so I think there is no problem with using Linux, Mac, or Windows.There seems to be a Windows version of NetCat.However, I think it's easier to learn using linux to match the book because Windows has environmental differences. KaliLinux is Debian-based, so you can use Debian or Ubuntu instead of KaliLinux.Other linux have different package management, but once you get used to it, there should be no problem.

NetCat is software that allows you to read and write TCP and UDP packets, making it easy to create simple servers and clients.


2022-09-30 19:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.