Jump to content

phibertap

Active Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by phibertap

  1. Hi sud0nick, Here are the steps in order and what the results were: 1) Factory Pineapple (I do this to test any infusion, gives me a baseline) 2) Connect to my local wifi via client mode through the web interface 3) Open Pineapple bar and install portalauth to the sd card 4) Open a ssh terminal session and run top (to watch the processes) 5) Refresh the browser and click on "Install Dependencies" 6) Wait - 5min (no change to the link, no mention that anything is being installed, top command in the terminal shows no new processes loading) Tried this with both Firefox and Safari. 7) execute /sd/infusions/portalauth/includes/scripts/check_depends.sh Not Installed 8) execute /sd/infusions/portalauth/includes/scripts/install_depends.sh Looks like it starts to install (takes a bit of time, but I think that is normal) Then I get the following output: zip_safe flag not set; analyzing archive contents... unable to execute mips-openwrt-linux-uclibc-gcc: No such file or directory no previously-included directories found matching 'docs/_build' unable to execute mips-openwrt-linux-uclibc-gcc: No such file or directory no previously-included directories found matching 'docs/_build' zip_safe flag not set; analyzing archive contents... tinycss.tests.speed: module references __file__ Complete 9) execute /sd/infusions/portalauth/includes/scripts/check_depends.sh Installed 10) refresh the web browser and see that the small tile no longer says "Install dependancies" but is now blank. 11) click to open the large tile and get the following error in large Red text: Test server must be configured! No other options are available on the large tile. Small tile shows no information. Thanks for looking into this for me. PT
  2. To test this new version, I did a factory restore on my pineapple. Then I installed the infusion from the bar. Clicking on the "Install dependancies" link in the small tile does nothing. Executing the following command via ssh gives the following error: # pineapple infusion portalauth Traceback (most recent call last): File "/pineapple/components/infusions/portalauth/executable/executable", line 6, in <module> import requests ImportError: No module named requests Continuing, I manually ran the check_depends.sh script, then the install_depends.sh script. root@Pineapple:/sd/infusions/portalauth/includes/scripts# ./check_depends.sh Not Installed root@Pineapple:/sd/infusions/portalauth/includes/scripts# ./install_depends.sh zip_safe flag not set; analyzing archive contents... unable to execute mips-openwrt-linux-uclibc-gcc: No such file or directory no previously-included directories found matching 'docs/_build' unable to execute mips-openwrt-linux-uclibc-gcc: No such file or directory no previously-included directories found matching 'docs/_build' zip_safe flag not set; analyzing archive contents... tinycss.tests.speed: module references __file__ Complete After that was complete, I tried the "pineapple infusion portalauth" command, this time a different error. root@Pineapple:/sd/infusions/portalauth/includes/scripts# pineapple infusion portalauth Traceback (most recent call last): File "/pineapple/components/infusions/portalauth/executable/executable", line 87, in <module> response = requests.get(settings['testSite'], verify=False) File "/usr/lib/python2.7/site-packages/requests-2.5.1-py2.7.egg/requests/api.py", line 65, in get return request('get', url, **kwargs) File "/usr/lib/python2.7/site-packages/requests-2.5.1-py2.7.egg/requests/api.py", line 49, in request response = session.request(method=method, url=url, **kwargs) File "/usr/lib/python2.7/site-packages/requests-2.5.1-py2.7.egg/requests/sessions.py", line 447, in request prep = self.prepare_request(req) File "/usr/lib/python2.7/site-packages/requests-2.5.1-py2.7.egg/requests/sessions.py", line 378, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File "/usr/lib/python2.7/site-packages/requests-2.5.1-py2.7.egg/requests/models.py", line 303, in prepare self.prepare_url(url, params) File "/usr/lib/python2.7/site-packages/requests-2.5.1-py2.7.egg/requests/models.py", line 360, in prepare_url "Perhaps you meant http://{0}?".format(url)) requests.exceptions.MissingSchema: Invalid URL u'': No schema supplied. Perhaps you meant http://? Am I missing something? Thanks! PT
  3. Awesome video, and I love the new features you added. I only wish to have the 2.8 update now :)
  4. Here is a quick an dirty script I wrote that turns off the lights Note: I still need electrical tape for the green LED :( Create the folder /boot Place this file within that folder Execute as /boot/godark Each time you run the script the lights will cycle from all off to normal mode. Add this to your boot DIP Switch boot mode Have fun, PT #!/bin/bash # GoDark # # v0.1 Phibertap # # for pineapple mk5 file="/boot/led.off" if [ -f $file ]; then pineapple led reset rm $file else pineapple led blue off pineapple led red off pineapple led amber off echo "yes" > $file fi
  5. If you were to put this into an infusion, you would have the options etc at the top of each section then have a link to execute the script based upon those options. Also you should have the output of the script located within the infusion. That said, your script, your choice. Have fun with it, that's the main thing.
  6. Hi Jesse, thanks for doing this. I wonder if you have plans to convert this into an Infusion. Most of the code you have is straight forward and having the system within the web interface goes along with the debs idea to keep things as simple as possible. I have mucked around with developing my own infusions with not bad luck. Open source is nice since we can look at how other (much better) debs do things within the interface. Anyway, keep it up, thanks for contributing. PT
  7. Foxtrot, I did notice that your logging function within your infusion seems to display the log as a run-on instead of each line being displayed one after another. When i watch the /pineapple/components/infusions/randomroll/assets/files/dnsspoof.log within the logs infusions, the log is displayed like this: Not sure if this is a bug or intended. PT
  8. Rodger that - and thanks for putting in the backup feature :)
  9. Awesome work Foxtrot, can I make a few suggestions? Great thanks! :P Change your functions.php to backup the current index.php, error.php and redirect.php during a start and restore these back during a stop. Also, you should change your dnsspoof command to use /tmp/dnsspoof.log incase anyone is watching that log. And finally :) Since your dnsspoof command uses its own spoofhost file. You don't need to echo 172.16.42.1 example.com back in during a stop. PT Check it my mods to your functions.php Edit:placed the proper dnsspoof.log back in, so it shows in the infusion's log window.
  10. Ya sweet idea, have the entries for two different ports one for the web and one for ssh etc. Okay I will try this, but I think since this is moding a system tile and not an infusion, I wonder if the devs could add this as an update :). In the background I will play with my own tile.
  11. Yes but this makes the command /etc/init.d/autossh enable | disable A click now :P
  12. Hey Guys, I wanted to have a way to make autossh autostart from the web interface so I found a few code modes that you can do to your Pineapple to allow for this. These are very simple and should not cause any problems to your device. I used the small_tile code from karma and its working great! Your web interface will add the following: Autostart Disabled | Enable Easy stuff! First thing is to modify the following file: /pineapple/components/system/autossh/small_tile.php to this: Then modify the following file: /pineapple/components/system/autossh/functions.php to this: Enjoy, PT
×
×
  • Create New...