Comments (15)
Unfortunately it looks like port redirection with netsh
is not possible, this doesn't work as expected as it just creates a local listener which redirects to 8080 but does not work on forwarded packets ... help ?
from bettercap.
mmm nope i did not, i will try to see if that changes anything, thanks
from bettercap.
From a conversation in our dev channel:
as u can see from the code i'm succesfully enabling incoming traffic on those ports
i also enabled routing with regedit
everything works, problem is:
that port redirection is fake
well, not fake fake, but it's basically a socks proxy tunnelling from ip A to ip B
so it does not forward connections at the packet level, like iptables does on linux
which is what we'd need in order for the proxy to work
from bettercap.
They are basically the same command, one set via netsh
and one via the registry. REF.
from bettercap.
So this should work, you have to have ipv6 libraries installed with netsh int ipv6 install
and then use netsh interface portproxy add v4tov4 listenport=<localport> listenaddress=<localaddress> connectport=<destport> connectaddress=<destaddress>
. It does create a local listener on the local port and forwards it to the dest port. Would you be able to explain a little more on what you mean by it "does not work on forwarded packets"?
from bettercap.
because it just creates a listener at application layer
from bettercap.
Just in case, did you add the rule to allow the incoming port?
netsh advfirewall firewall add rule name=”BetterCap-Ng” protocol=TCP dir=in localip=x.x.x.x localport=xxxx action=allow
from bettercap.
Good write up from someone who apparently has been here already :) http://woshub.com/port-forwarding-in-windows/
from bettercap.
@NxxN39 added the firewall rule to enable the port, which is working ( I can connect to the box port 80 which is redirected to 8080 ), but it's not routing others' connections
from bettercap.
Is routing enabled on your machine? I remember a specific reg key has to be enabled to turn on routing on some versions of win. Which one are you using?
from bettercap.
Yes I enabled routing via regedit ( \HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters\IPEnableRouter
-> 0x00000001 ).
from bettercap.
using windows 10
from bettercap.
Also this should enable forwarding too.
from bettercap.
Efforts are being made on this branch, removing from first milestone for now.
from bettercap.
Closing this issue as port forwarding is just not supported on Windows at the firewall level like it is on other OS, userland packet routing is needed which makes everything slow as hell.
from bettercap.
Related Issues (20)
- could not find spoof targets MacOS HOT 2
- Cannot set rfmon for this handle
- panis: runtime error: index out of range [0] with length 0 HOT 5
- When I lauch bettercap, there is an error. I try many solutions to fix this but they doesn't work.
- net probe on
- Where is precompiled binaries for v2.32.0 HOT 3
- TypeError: Cannot access member 'method' of undefined
- bettercap showing ip addresses "connected" and "disconnected" and net.sniff. not working
- BLE/GPS Plot to map caplet - Possible?
- IP address in bettercap shows in 10.0.0
- sha256sum fails on downloaded binaries
- So for flipper
- Could not inject WiFi packet error message due libpcap error send: Resource temporarily unavailable after issuing wifi.deauth all command (with logs!) HOT 13
- Bettercap net.probe not detecting all host, arp.spoof and net.sniff not working
- 4e860c73fe3d56939ff80d86eadf918c4e1bc35d
- PMKID attack doesn't work HOT 2
- Can't use "ble.recon on" on mac os
- Please update the URL to github.com/bettercap/bettercap/v2 for Golang servers to pick it up
- Please support FreeBSD
- Cryptominer caplet still being loaded when trying to use web UI. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bettercap.