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 | |
| // Do NOT include the opening php tag. | |
| // Remove site footer. | |
| remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); | |
| remove_action( 'genesis_footer', 'genesis_do_footer' ); | |
| remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); | |
| // Customize site footer | |
| add_action( 'genesis_footer', 'sp_custom_footer' ); |
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 | |
| $sso_server = "http://chat.local:8080/api/clients/validateDb"; | |
| /* Need to have cookie visible from parent directory */ | |
| session_set_cookie_params(0, '/', '', true, true); | |
| /* Create signon session */ | |
| $session_name = 'SignonSession'; | |
| session_name($session_name); |
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 | |
| /** | |
| * @package Kinsta_users | |
| * @version 1.0 | |
| */ | |
| /* | |
| Plugin Name: Kinsta users | |
| Plugin URI: http://wordpress.org/extend/plugins/# | |
| Description: This is an example plugin | |
| Author: Carlo Daniele |
I spent the weekend meeting hackers in Vegas, and I got talking to one of them about CRLF Injection. They'd not seen many CRLF Injection vulnerabilities in the wild, so I thought I'd write up an example that's similar to something I found a few months ago.
If you're looking for bugs legally through a program like hackerone, or you're a programmer wanting to write secure PHP: this might be useful to you.
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 | |
| // This file demonstrates file upload to an S3 bucket. This is for using file upload via a | |
| // file compared to just having the link. If you are doing it via link, refer to this: | |
| // https://gist.github.com/keithweaver/08c1ab13b0cc47d0b8528f4bc318b49a | |
| // | |
| // You must setup your bucket to have the proper permissions. To learn how to do this | |
| // refer to: | |
| // https://github.com/keithweaver/python-aws-s3 | |
| // https://www.youtube.com/watch?v=v33Kl-Kx30o | |
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 | |
| // This file demonstrates file upload to an S3 bucket. This is for using file upload via a | |
| // link compared to actually having the image file content. If you are doing it via image | |
| // file upload, like getting the file from $_FILE, refer to this: | |
| // https://gist.github.com/keithweaver/70eb06d98b008113ce97f6148fbea83d | |
| // | |
| // You must setup your bucket to have the proper permissions. To learn how to do this | |
| // refer to: | |
| // https://github.com/keithweaver/python-aws-s3 | |
| // https://www.youtube.com/watch?v=v33Kl-Kx30o |
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 | |
| use Illuminate\Support\Facades\Schema; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Database\Migrations\Migration; | |
| class CreateUsersTable extends Migration { | |
| /** | |
| * Run the migrations. | |
| * |
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 | |
| // Installed the need packages with Composer by running: | |
| // $ composer require aws/aws-sdk-php | |
| $filePath = "https://example.com/test.png"; | |
| require 'vendor/autoload.php'; | |
| $bucketName = 'YOUR_BUCKET_NAME'; | |
| $filePath = './YOUR_FILE_NAME.png'; |
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 | |
| /* | |
| * simple HttpRequest example using PHP | |
| * tom slankard | |
| */ | |
| class HttpRequest { | |
| public $url = null; |