问题标签 [port-scanning]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - Update frame after each iteration
I am currently coding a port-scanner in Qt(C++) for Mac. The process of checking if a certain port is open or not works completely fine. But if the port range which the user wants to check is too big, every port will be checked but the output happens only after this process. The program actually should check for example port 1 and output the result. After that it should check the next and output and so on...
Have you got any advise how I could have an output after each iteration?
ruby - ruby-nmap 如何创建哈希输出而不是 xml
我想使用ruby-nmap gem 对多个实例进行端口扫描。这是我目前正在使用的:
它会创建一个 xml 文件,但是我希望它给我 json 或哈希作为输出,并且不将其写入文件。有没有简单的方法可以做到这一点,而不仅仅是读取它创建的 xml 文件?
python - port scanning an IP range in python
So I'm working on a simple port scanner in python for a class (not allowed to use the python-nmap library), and while I can get it to work when passing a single IP address, I can't get it to work using a range of IPs.
This is what I have:
So when I run the code, after adding print statements below
and then again after
I end up with the following output:
Thanks in advance everyone! I appreciate any help that I can get!
linux - The speed of port scan using nmap -sS and nmap -sT?
I am using nmap to do port scan for an experiment. The destination IP is 192.168.199.201. And I try the two commands below:
Using -sT:
Using -sS:
I am wondering why it takes more time to scan when using -sS parameter. Because using -sT needs to finish TCP’s three times handshake but using -sS will not establish a TCP connection. So using -sS must be faster, but the result is opposite, am I wrong?
python - 我的端口扫描程序挂在 connect_ex 上?
我正在为外部 IP 创建一个端口扫描程序,但socket.connect_ex
为什么会挂起?不久前我在这里学习了一个教程,然后将其修改为这个。我很困惑为什么它不起作用......
完整代码:
python - Python 端口扫描器卡在循环中
我一直在关注如何制作一个简单的端口扫描器的指南,我正在尝试扫描我自己的 IP,但它卡在一个循环中并且不打印任何端口。很难弄清楚它没有错误并陷入循环。
任何帮助将不胜感激。
python - Python TCP 端口扫描器
我正在尝试在 Python 中创建一个 TCP 端口扫描器,它接受多个参数(-all(显示目标的所有端口,包括打开和关闭的端口)、-open(仅显示目标上的打开端口)、-target (指定目标 IP、子网或主机名)和 -range(指定端口范围)。
目前我只设法对程序中使用的选项进行编码,我的代码如下:
我不确定如何继续使用该程序,特别是使用 -all / -open 选项,任何帮助将不胜感激。
python - 即使我将 str 转换为 int 它仍然说它是 str
我正在尝试制作一个端口扫描器,用户可以在其中键入一系列端口以在主机上进行扫描,我将输入从 str 转换为 int 以获取范围,但它仍然说它是一个 str。这是我的代码:
我的错误是:
python - Python 端口扫描器编辑
我一直在为一个信息安全项目编辑这个端口扫描器。该代码有效,但在第 63 行和第 34 行按顺序抛出错误(Pycharm Edu)。第 63 行的错误消息是:'第 63 行,在 checkhost(target) 中。我看过这个,不明白为什么这会抛出一个错误,因为它是在第 34 行定义的。第 34 行的错误消息是:'NameError: global name 'conf' is not defined'。也不清楚为什么这是一个问题。任何帮助深表感谢。Python代码环境为Python 2.7.10