Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code.
If you're working on a project that requires a version of PHP higher than the versions that MAMP comes with, you can easily add additional verions.
My version of MAMP came installed with PHP 7.4.21 and 8.0.8. I'm attempting to use MAMP to host a Laravel application which requires at least PHP 8.1.
The version of PHP MAMP uses is often different than the version you have installed. I have installed PHP using Brew. I'm currently running PHP 8.1.8. If you want to check your installed version of PHP, use the terminal and run the following command:
php --version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| load_module modules/ngx_rtmp_module.so; | |
| ... | |
| rtmp { | |
| server { | |
| listen 0.0.0.0:1935; | |
| # if you want to run all on one server, change port here, eg: | |
| # listen 127.0.0.1:1936; | |
| chunk_size 4000; | |
| notify_method get; | |
| interleave on; |
For those who deployed MusicPlayer, here are some Online Radio streams that you can use to stream in your Bot.
- Prambors fm : https://22283.live.streamtheworld.com:443/PRAMBORS_FM.mp3?dist=onlineradiobox
- i-radio : https://n03.radiojar.com/4ywdgup3bnzuv?rj-ttl=5&rj-tok=AAABe120nigAlANV6qVbAOh-ZQ
- Denger Music : http://stream.denger.in:8888/dmi
- HARD ROCK fm : https://n10.radiojar.com/7csmg90fuqruv?rj-ttl=5&rj-tok=AAABe147nwUAAzSNf0FALqXEig
- SkontoPlus : https://stream.radioskontoplus.lv:8443/st128
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Catch submission the before it's inserting in database | |
| * if you want to log the data in the database use hook: fluenform_before_submission_confirmation | |
| */ | |
| add_action('fluentform_before_insert_submission', function ($insertData, $data, $form) { | |
| if($form->id != 156) { // 156 is our target form id | |
| return; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Add Attachment to the email notification dynamically. | |
| * @param $attachments array - Array of the attachments. | |
| * @param $notification array - Email Notification array | |
| * @param $form object - The Form Object | |
| * @param $data array - The input submission data | |
| * @return array | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Function to prevent users mark more than expected items. | |
| * This code must need to be placed in custom JS of your form | |
| * @param: containerClass String - The contaner class of the target checkbox block. | |
| * You can add a custom container class in the form settings | |
| * | |
| * @param: maxChecked Integer - Max Number of items user can mark | |
| * @return: void | |
| * | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Event on form submission success | |
| // You can paste this script to Form's custom JS Box | |
| $form.on('fluentform_submission_success', function() { | |
| // You can run your own JS and will be run on successful form submission | |
| }); |
NewerOlder