chiwill Posted June 14, 2012 Share Posted June 14, 2012 (edited) I made this program that makes your computer act as a wifi Pineapple. For wifi to wifi. #!/bin/bash airmon-ng stop mon0 airmon-ng start wlan0 airbase-ng -e "TEST" -c 9 mon0 & ifconfig at0 up ifconfig at0 192.168.2.129 netmask 255.255.255.128 route add -net 192.168.2.128 netmask 255.255.255.128 gw 192.168.2.129 dhcpd3 -cf /etc/dhcp3/dhcpd.conf -pf /var/run/dhcp3-server/dhcpd.pid at0 iptables --flush && iptables --table nat --flush && iptables --delete-chain && iptables --table nat --delete-chain && iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE && iptables --append FORWARD --in-interface at0 -j ACCEPT && echo 1 > /proc/sys/net/ipv4/ip_forward It works but It is set to use Wlan0 as both in and out interfaces because I only have one wifi card. From ethernet to wifi. #!/bin/bash airmon-ng stop mon0 airmon-ng start wlan0 airbase-ng -e "TEST" -c 9 mon0 & ifconfig at0 up ifconfig at0 192.168.2.129 netmask 255.255.255.128 route add -net 192.168.2.128 netmask 255.255.255.128 gw 192.168.2.129 dhcpd3 -cf /etc/dhcp3/dhcpd.conf -pf /var/run/dhcp3-server/dhcpd.pid at0 iptables --flush && iptables --table nat --flush && iptables --delete-chain && iptables --table nat --delete-chain && iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE && iptables --append FORWARD --in-interface at0 -j ACCEPT && echo 1 > /proc/sys/net/ipv4/ip_forward From wifi to ethernet. #!/bin/bash route add -net 192.168.2.128 netmask 255.255.255.128 gw 192.168.2.129 dhcpd3 -cf /etc/dhcp3/dhcpd.conf -pf /var/run/dhcp3-server/dhcpd.pid at0 iptables --flush && iptables --table nat --flush && iptables --delete-chain && iptables --table nat --delete-chain && iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE && iptables --append FORWARD --in-interface eth0 -j ACCEPT && echo 1 > /proc/sys/net/ipv4/ip_forward Thats All of them! Edited June 14, 2012 by chiwill Quote Link to comment Share on other sites More sharing options...
Anton Posted June 14, 2012 Share Posted June 14, 2012 I made this program that makes your computer act as a wifi Pineapple. For wifi to wifi. #!/bin/bash airmon-ng stop mon0 airmon-ng start wlan0 airbase-ng -e "TEST" -c 9 mon0 & ifconfig at0 up ifconfig at0 192.168.2.129 netmask 255.255.255.128 route add -net 192.168.2.128 netmask 255.255.255.128 gw 192.168.2.129 dhcpd3 -cf /etc/dhcp3/dhcpd.conf -pf /var/run/dhcp3-server/dhcpd.pid at0 iptables --flush && iptables --table nat --flush && iptables --delete-chain && iptables --table nat --delete-chain && iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE && iptables --append FORWARD --in-interface at0 -j ACCEPT && echo 1 > /proc/sys/net/ipv4/ip_forward It works but It is set to use Wlan0 as both in and out interfaces because I only have one wifi card. From ethernet to wifi. #!/bin/bash airmon-ng stop mon0 airmon-ng start wlan0 airbase-ng -e "TEST" -c 9 mon0 & ifconfig at0 up ifconfig at0 192.168.2.129 netmask 255.255.255.128 route add -net 192.168.2.128 netmask 255.255.255.128 gw 192.168.2.129 dhcpd3 -cf /etc/dhcp3/dhcpd.conf -pf /var/run/dhcp3-server/dhcpd.pid at0 iptables --flush && iptables --table nat --flush && iptables --delete-chain && iptables --table nat --delete-chain && iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE && iptables --append FORWARD --in-interface at0 -j ACCEPT && echo 1 > /proc/sys/net/ipv4/ip_forward From wifi to ethernet. #!/bin/bash route add -net 192.168.2.128 netmask 255.255.255.128 gw 192.168.2.129 dhcpd3 -cf /etc/dhcp3/dhcpd.conf -pf /var/run/dhcp3-server/dhcpd.pid at0 iptables --flush && iptables --table nat --flush && iptables --delete-chain && iptables --table nat --delete-chain && iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE && iptables --append FORWARD --in-interface eth0 -j ACCEPT && echo 1 > /proc/sys/net/ipv4/ip_forward Thats All of them! Nice Share! Thanks! Quote Link to comment Share on other sites More sharing options...
chiwill Posted June 14, 2012 Author Share Posted June 14, 2012 Your welcome. Quote Link to comment Share on other sites More sharing options...
combatwombat27 Posted June 15, 2012 Share Posted June 15, 2012 I was wondering if, just to make your post more like a dev post if you could add more details about what functionality of the pineapple you were bringing to the table. The Yasager portion? Just sharing out your internet as a wifi access-point named whatever you choose? etc. If you were into it you could also jump on something like github and then add to this seemingly great potential project. Good Luck either way! And Thanks! 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.