FindWall 是一个 Python 脚本,用于判断你的网络提供商是否通过封锁任何 TCP/UDP 端口来限制你的互联网访问。为了执行此检查,FindWall 需要连接到你拥有的一台公共 VPS。FindWall 执行以下操作:
使用 FindWall,你只需在一个公共 VPS 上拥有一个帐户。如果要测试 1-1024 范围内的端口,该帐户必须具有 root 访问权限。root 帐户也是自动安装用于打开端口的工具 nc 所必需的。
$ pip install -r requirements
$ python findwall.py --help
=====================================================================================
███████╗██╗███╗ ██╗██████╗ ██╗ ██╗ █████╗ ██╗ ██╗
██╔════╝██║████╗ ██║██╔══██╗██║ ██║██╔══██╗██║ ██║
█████╗ ██║██╔██╗ ██║██║ ██║██║ █╗ ██║███████║██║ ██║
██╔══╝ ██║██║╚██╗██║██║ ██║██║███╗██║██╔══██║██║ ██║
██║ ██║██║ ╚████║██████╔╝╚███╔███╔╝██║ ██║███████╗███████╗
╚═╝ ╚═╝╚═╝ ╚═══╝╚═════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚══════╝╚══════╝
=====================================================================================
usage: findwall.py [-h] --ssh-host SSH_HOST [--ssh-port SSH_PORT] --ssh-username SSH_USERNAME [--ssh-password SSH_PASSWORD] [--ask-ssh-pass] [--ssh-key SSH_KEY] --ports PORTS [--udp]
[--threads THREADS]
检查是否有人封锁了你!
可选参数:
-h, --help 显示此帮助信息并退出
--ssh-host SSH_HOST 远程主机
--ssh-port SSH_PORT 远程 SSH 端口
--ssh-username SSH_USERNAME
远程 SSH 用户名
--ssh-password SSH_PASSWORD
远程 SSH 密码
--ask-ssh-pass 询问远程 SSH 密码
--ssh-key SSH_KEY 远程 SSH 私钥
--ports PORTS 要扫描的端口范围(默认: 1-1024)
--udp 以 UDP 方式扫描
--threads THREADS 线程数(默认: 1)
例如:
$ python findwall.py --ssh-host 172.17.0.2 --ssh-port 22 --ssh-username test --ssh-password test --ports 8000-8010 --threads 3
