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

[RedirectAllTraffic test fails] Proper interception of TCP requests to Arbitrary/Named Host when RedirectAllTraffic is disabled #169

Open
7 tasks
3V3RYONE opened this issue Aug 27, 2023 · 0 comments

Comments

@3V3RYONE
Copy link
Contributor

3V3RYONE commented Aug 27, 2023

Bug

As per the test.py script, when RedirectAllTraffic option is disabled in the configs, the TCP socket requests to arbitrary host (e.g. - 8.8.8.8) and named host (e.g. - does-not-exist-amirite.fireeye.com) at a bound port should NOT be intercepted. In other words, the RawTCPListener should not respond to the TCP requests with host 8.8.8.8 or does-not-exist-amirite.fireeye.com for port 1337, when RedirectAllTraffic is disabled.

But in multihost operation mode, FakeNet on Linux responds to TCP traffic with arbitrary host or named host in bound port. Note that this behavior is only with multihost operation mode. In singlehost mode, FakeNet does not respond to arbitrary/named hosts in bound port.

Steps to reproduce

  • Setup multihost operation mode for FakeNet-NG. (I will be assuming FakeNet runs on Linux and traffic is initiated on Windows)
  • Set RedirectAllTraffic setting to No in fakenet/configs/default.ini on the Linux machine.
  • Start a FakeNet session on Linux machine.
  • On windows, use ncat 8.8.8.8 1337 to make TCP request to arbitrary host under bound port.
  • Upon execution, type any message and verify the same message is logged back from the server to console.
  • On windows, use ncat does-not-exist-amirite.fireeye.com 1337 to make TCP request to named host under bound port.
  • Upon execution, type any message and verify the same message is logged back from the server to console.

Additional Info

@3V3RYONE 3V3RYONE changed the title Proper interception of TCP requests to Arbitrary/Named Host when RedirectAllTraffic is disabled [RedirectAllTraffic test fails] Proper interception of TCP requests to Arbitrary/Named Host when RedirectAllTraffic is disabled Aug 27, 2023
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