p0mad Posted December 13, 2011 Share Posted December 13, 2011 (edited) Self-Removed Edited January 25, 2012 by p0mad Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted December 13, 2011 Share Posted December 13, 2011 (edited) This is what I would use to say forward all port 80 to a listening SSLStrip on 31337 iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination 127.0.0.1:31337 I would suggest getting the wp3.sh from the wiki quick start (wget wifipineapple.com/wp3.sh) and then do your custom forward to say a listening proxy like sslstrip if you need to. Otherwise all traffic will be passed through and off to the internet. Edited December 13, 2011 by Mr-Protocol Quote Link to comment Share on other sites More sharing options...
p0mad Posted December 13, 2011 Author Share Posted December 13, 2011 (edited) Self-Removed Edited January 25, 2012 by p0mad Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted December 13, 2011 Share Posted December 13, 2011 That rule needs something listening (sslstrip in that case). It's been a little time since i've played with IPTables, but why the need for this specific rule of forwarding one port to another locally to another program? Quote Link to comment Share on other sites More sharing options...
diggler Posted December 13, 2011 Share Posted December 13, 2011 What about after??? How would you refresh the IPTABLES back to "normal" after running SSLStrip and editing the IPTABLES? Just run the wp3.sh script again? Or is there a one liner that will reset BTR1 back to it's default state (which would be preferred). That rule needs something listening (sslstrip in that case). It's been a little time since i've played with IPTables, but why the need for this specific rule of forwarding one port to another locally to another program? Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted December 13, 2011 Share Posted December 13, 2011 What about after??? How would you refresh the IPTABLES back to "normal" after running SSLStrip and editing the IPTABLES? Just run the wp3.sh script again? Or is there a one liner that will reset BTR1 back to it's default state (which would be preferred). reboot the machine or run iptables -F to flush the settings. Quote Link to comment Share on other sites More sharing options...
p0mad Posted December 13, 2011 Author Share Posted December 13, 2011 (edited) Self-Removed Edited January 25, 2012 by p0mad Quote Link to comment Share on other sites More sharing options...
p0mad Posted December 13, 2011 Author Share Posted December 13, 2011 (edited) Self-Removed Edited January 25, 2012 by p0mad Quote Link to comment Share on other sites More sharing options...
itsm0ld Posted December 13, 2011 Share Posted December 13, 2011 Ok so replying to myself Tried iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-ports 31337 And it works .. My original was iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 31337 note the difference ... Anyway ... it works now Bleh I'm sure we have all done this from time to time, I know I have :) glad you got it working! Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted December 13, 2011 Share Posted December 13, 2011 Just got home, but glad it worked out for ya. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.