Skip to content

Add adaptor-ip support to servers [test-code] - #92

Open
Jhangju wants to merge 2 commits into
qeeqbox:mainfrom
Jhangju:add-adaptor-ip-support
Open

Add adaptor-ip support to servers [test-code]#92
Jhangju wants to merge 2 commits into
qeeqbox:mainfrom
Jhangju:add-adaptor-ip-support

Conversation

@Jhangju

@Jhangju Jhangju commented Dec 3, 2025

Copy link
Copy Markdown

Add --adaptor-ip support to allow binding honeypots to a specific interface [test-code]

Description:
This pull request introduces support for an optional --adaptor-ip argument, enabling honeypot servers to bind to a specified network interface or IP address instead of the default. The change touches multiple server implementations to ensure consistent behavior across protocols.

Changes
Server initialization logic updated to read the adaptor_ip parameter when provided. Adjustments made across relevant modules so that the option applies uniformly to all supported services.

To Test
honeypots --setup http:2222 --adaptor-ip 192.168.1.129 --ip 192.168.1.129

Outcome will only come from one adaptor, because the server will only run one adaptor.

root@heonypot:/opt/honey/updated/honeypots# python3 -m honeypots --setup http:2222 --adaptor-ip 192.168.1.129 --ip 192.168.1.129
[INFO] For updates, check https://github.com/qeeqbox/honeypots
[INFO] Use [Enter] to exit or python3 -m honeypots --kill
[INFO] Parsing honeypot [normal]
{"action": "process", "dest_ip": "192.168.1.129", "dest_port": "2222", "server": "http_server", "src_ip": "192.168.1.129", "src_port": "2222", "status": "success", "timestamp": "2025-12-03T11:53:43.940244"}
[INFO] servers http running...
[INFO] Everything looks good!
{"action": "connection", "dest_ip": "192.168.1.129", "dest_port": "2222", "server": "http_server", "src_ip": "192.168.1.177", "src_port": "47634", "timestamp": "2025-12-03T11:53:53.647580"}
{"action": "GET", "dest_ip": "192.168.1.129", "dest_port": "2222", "server": "http_server", "src_ip": "192.168.1.177", "src_port": "47634", "timestamp": "2025-12-03T11:53:53.647764"}

@Jhangju Jhangju changed the title Add adaptor-ip support to servers Add adaptor-ip support to servers [test-code] Dec 9, 2025
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

Successfully merging this pull request may close these issues.

1 participant