Greetings fellow pineapple lovers!
I don’t know if it is any useful to you (I would love to have what I’m writing right now a few days ago anyways).
Before we start, know if you cannot undo changes you've done to your pineapple
consider reflashing it (reflash guide on the hak5.org homepage) or Here.
*Note :If you have changed your pineapple IP to something else than 192.168.1.1,
after the flashing utility closes, change the static ip of your Ethernet adapter to
IP : 192.168.1.(any value int that ip range not 0 not 255) ex: 192.168.1.113
Gateway: 192.168.1.1 (your pineapple IP)
since the default ip of the pineapple after reflash is 192.168.1.1
First of all, if you want to follow the tutorial, take note of the weird corruption inside wireless file.
Erase everything above this line
root@OpenWrt:/etc/config# cat wireless
Including the line ;)
if the wireless file looks like this:
config wifi-device wifi0
option type atheros
option channel 5
option mode '11bg'
option diversity '0'
option disabled '0'
option device wifi0
option network lan
option mode ap
option ssid 'Get RickRolld'
option encryption none
option hidden '0'
option isolate '0'
option txpower '0'
option bgscan '0'
option wds '0'
than no need to remove anything ;)
Secondly, the dhcp file doesn’t allow a client to acquire an IP adress...
So,I screwd it up a little … you can try this one :
option interface lan
option start 100
option limit 150
option leasetime '720m'
option interface wan
option ignore '1'
option start '100'
option limit '150'
option leasetime '720m'
option authoritative '1'
option domain 'lan'
option local '/lan/'
option boguspriv '0'
option filterwin2k '0'
option localise_queries '1'
option expandhosts '1'
option nonegcache '0'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
Thirdly, if you have webif, before moving Rick’s index.html into /www
Change webif’s index.html to any .html filename you like…. In case you need webif after…
Finally, take note,
https:// URLs from bookmarks and even “aaaa” typed in the browser will give an error,
wouldn’t it be nice to set 404 error to the /www/index.html?
echo "E404:/www/index.html" > /etc/rrhttpd.conf
open up /etc/init.d/httpd
above thos line:
eval "$HTTPD_BIN $args"
add the line
append args "-c /etc/rrhttpd.conf"
UPD: I think editing the httpd doesn't require system reboot,
Modified (a little)
Source for this final step are from guide :by Psychosis
Note: if you do this Webif will print out a page saying "Permission denied"
if you want to modify something using webif just comment the line
by adding a pound, like this:
#append args "-c /etc/rrhttpd.conf"
Note: everytime you modify the file you need to rebot or restart httpd
hope this would help n00bs just likemyself.