Jump to content

l0rdnic0

Active Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by l0rdnic0

  1. OK to get this to work when you press the reset button this is what you need to do. First you need to install the "hotplug2" package if its not installed...... Then create a file called /etc/hotplug.d/button/30-button-trigger in that file past this #!/bin/sh if [ "${ACTION}" == "released" ] then /sbin/woggle fi Now create a file called /sbin/woggle and paste the following... !/bin/sh KARMA_STATE=`iwpriv ath0 get_karma | cut -d ":" -f2` echo "KARMA_STATE=$KARMA_STATE" case "$KARMA_STATE" in # KARMA IS ON... 1* ) echo "Turning off Karma"; killall tcpdump; karma_cli -s off; hostapd -P /var/run/wifi-ath0.pid -B /var/run/hostapd-ath0.conf; ;; # KARMA IS OFF... 0* ) echo "Turning on Karma"; mv /mnt/mmc/tasty.tcpdump /mnt/mmc/tasty.tcpdump.old killall hostapd; karma_cli -s on; tcpdump -i ath0 -w /mnt/mmc/tasty.tcpdump & ;; *) echo "Umm do you have Karma installed?" esac OK to finish up lets make sure that the woggle script is executable. chmod +x /sbin/woggle SPECIAL THANKS TO 01706 and digininja!!!!! I have learned a bunch about this so if you have questions maybe I can help. Hope someone out there finds use in this....
  2. OK so like I mentioned the first time I run the script everything is fine. However the Second time I get an error (in bold). Now if I run the line "hostapd -P /var/run/wifi-ath0.pid -B /var/run/hostapd-ath0.conf" again it looks like it works fine... How should I restart the hostapd correctly? root@Jasager:/# woggle KARMA_STATE=0 Turning on Karma Turning Karma On root@Jasager:/# tcpdump: WARNING: ath0: no IPv4 address assigned tcpdump: listening on ath0, link-type EN10MB (Ethernet), capture size 96 bytes root@Jasager:/# woggle KARMA_STATE=1 Turning off Karma 45 packets captured 45 packets received by filter 0 packets dropped by kernel Turning Karma Off Configuration file: /var/run/hostapd-ath0.conf Using interface ath0 with hwaddr 00:18:84:27:86:11 and ssid 'default' bind(PF_UNIX): Address already in use Failed to setup control interface root@Jasager:/# Note the BOLD text above. Now if I run this part of the script a second time, as you can see below it works the way its intended. Can someone tell me why? root@Jasager:/# hostapd -P /var/run/wifi-ath0.pid -B /var/run/hostapd-ath0.conf Configuration file: /var/run/hostapd-ath0.conf Using interface ath0 with hwaddr 00:18:84:27:86:11 and ssid 'default' root@Jasager:/# Thanks again for the help..
  3. I'm at work now so I"ll try that as soon as I get home and let you all know... Thanks again!!! EDIT: OK so I tried this and had a lot of problems, but I was dead set on making it work so this is what I have so far... Note its still not 100% but its getting there... Mind you I am running Piranha 2.0 so the hostapd line may be different for you, but I'm not sure. Also right now I'm just focused on the script part and not so much the button part. When I execute the script it does everything 100% correctly. However when I run the script a second time to kill Karma, tcpdump and re-enable hostapd everything works except for the hostapd part. I'll provide the error that I'm getting in a little bit.. I know there is a fix for it but I didn't have time to work with it any more. root@Jasager:/sbin# vi woggle #!/bin/sh KARMA_STATE=`iwpriv ath0 get_karma | cut -d ":" -f2` echo "KARMA_STATE=$KARMA_STATE" case "$KARMA_STATE" in # KARMA IS ON... 1* ) echo "Turning off Karma"; killall tcpdump; karma_cli -s off; hostapd -P /var/run/wifi-ath0.pid -B /var/run/hostapd-ath0.conf; ;; # KARMA IS OFF... 0* ) echo "Turning on Karma"; killall -9 hostapd; karma_cli -s on; tcpdump -i ath0 -s 0 -U -w /mnt/mmc/tasty.tcpdump&; ;; *) echo "Umm do you have Karma installed?" esac ~
  4. EDIT: read my last comment, this is working now and if you want to do the same look at my last post. Can anyone help... I am a complete noob when it comes to scripting but if I can't get an answer from the community I'm not afraid of busting out good old Google and giving it a crack and then sharing it back to the community... So here's today's question. Has anyone used the GPIO pins for the reset button (or just the reset button for that matter) to control the wifi of the Fon? I found this LINK where it shows you how to do just that, but as always I'm looking for more. So from what I understand you can control the LED and the wifi gpio's by pressing the reset button. However I want it to do more. What I would like it to do is run a script that would do the following.. 1.) Not change the state of the wifi at all 2.) killall hostapd 3.) Start karma 4.) Start tcpdump and log all packets to my SDCard Anyone feel like helping out (I hate to say it a LAZY) noob?
  5. Hey Whig... as I know it ICS only gives 192.168.0.X the inside interface of your windows PC would be 192.168.0.1 The way I do it and if anyone has a better way I'm all ears.. I run Piranha 2.0 on my Fon 2100 and my Fon is configured with the following IP info IP Address 192.168.0.5 Mask 255.255.255.0 Gateway 192.168.0.1 DNS 198.6.1.122 My EEE pc is running ICS. My wireless card is the inside network interface.. and I use PDANET to my iPhone for Internet access. So here goes. 1.) After I boot the FON I connect to it using wifi with WPA. (its on by default) 2.) I kill the WPA with "killall hostapd" 3.) Then since I just killed the secure WPA process I reconnet my wifi to the Fon with an unsecured essid 4.) Once I'm reconnected to the Fon I fire up Jasager from the EEE and get to work.... If you haven't tried side jacking check it out... I know this seems like a lot of steps but it works well for me and only takes a min or two to set it all up. I hope this helps you..
  6. Hey all very simple noobish question here… I want to run my Fon Pineapple completely wireless. Powered by a battery pack, and not have an Ethernet cable connected to my PC, yet have it replicate the traffic that would be otherwise sent to the Ethernet port over wifi?? I have read you can create a private wifi connection while still running Jasager but not fully sure how. And yes I Googled and also searched the site to see if I could find anything. Can someone point me in the right direction or write up a little howto that the entire community can use? I find it hard to believe that I’m the first one asking for something like this, which makes me think that this is more of an impossible task. My Rig is this. Fon 2100 with MMC/SD card hack running Piranha 2.0 EEE 701 using nlited win XP and ICS, but able to dual boot to BT PDANet to my iPhone Thanks in advance
  7. I dont have one yet, but I would suspect since its a 300MHz Arm processer that you could maybe get dropbear on there and set up a little ssh server... it would be slow I would think.. Anyone else?
  8. OK digging this up and dusting it off. Sorry its old and stuff but Darren talked about airpwn today in the latest podcast and I figured I would look to see if you made progress on well, first sniffing and then injecting (STUFF) sorta like airpwn? Again thanks for your contributions to the scene.
  9. MUST KNOW??? Where can I get one of those stickers...... OMG COOL!!!!!
  10. Awesome thanks digininja. I can't wait to mess with the modules!
  11. ok so being the complete noob that I am, can someone point me to a howto inorder to make this work? Understanding that the host side and the client side will be competing for bandwith.. My hope is to configure the fon in advance with the client side wifi ssid/wep so that I can power the fon and walk away without a computer or other device connected to the fon.... just sitting there transparently answering and passing network traffic... I'm using the ever trusty google so if I find my own answer I'll post my process for others EDIT: would this be called repeater mode???
  12. Digininja, thanks for the fast reply. I'm looking fwd to learning more of this so that I can become less of a script kiddie. :P and become someone more informed (guess I'm not really a script kiddie, I'd have to be a kid for that... OH well I'm screwed). Seriously thanks and great work!!
  13. OK I'm a noob when it comes to linux, even though I have gone to classes for suse and run bt3 and mythtv..... so digininja, darren and all, how hard would it be to run airpwn on my fon with jasager?
×
×
  • Create New...