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
| # add sudo user to www-data group | |
| # usermod on your user. So that would be | |
| sudo usermod -aG www-data srinivas | |
| # set perms with sudo user in accordance with apache user | |
| sudo chown -R srinivas:www-data . | |
| # change group perms of storage and cache folder to exlcusively support only apache user | |
| sudo chgrp -R www-data storage bootstrap/cache | |
| # declare user and group permissions on the same | |
| sudo chmod -R ug+rwx storage bootstrap/cache | |
| # unmask hack to set www-data for newly created files |
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
| /*========== Mobile First Method ==========*/ | |
| /* Custom, iPhone Retina */ | |
| @media only screen and (min-width : 320px) { | |
| } | |
| /* Extra Small Devices, Phones */ | |
| @media only screen and (min-width : 480px) { |
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
| $(document).ready(function() { | |
| $("#contactForm").submit(function(e) { | |
| e.preventDefault(); | |
| var o = $(this).serializeArray(), | |
| t = $(this).attr("action"), | |
| i = $("#contactFormResponse"), | |
| n = $("#cfsubmit"); | |
| n.text(); | |
| return n.text("Sending..."), $.ajax({ | |
| url: t, |
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 | |
| /* | |
| The code below was found during a forensic investigation. It seems to be a mass mailer that is using the PHPMailer class to send mail | |
| from compromised web hosting providers. | |
| The "password" is 5307c392-ad5e-4909-adec-c9fd12572686, see below. | |
| Investigation was made by Jonas Lejon <jonas.githubgist at- triop.se> | |
| The signature for PHP.Trojan.Mailer-1 can only find the packed version of this file. |
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_VERSION=`ls /Applications/MAMP/bin/php/ | sort -n | tail -1` | |
| alias composer='php /Applications/MAMP/bin/php/${PHP_VERSION}/bin/composer.phar' | |
| export PATH=/Applications/MAMP/bin/php/${PHP_VERSION}/bin:$PATH export |
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
| <script> | |
| jQuery(document).ready(function() { | |
| jQuery("#proform").submit(function(e) { | |
| e.preventDefault(); | |
| var o = jQuery(this).serializeArray(), | |
| t = jQuery(this).attr("action"), | |
| i = jQuery("#formResponse"), | |
| n = jQuery("#cfsubmit"), | |
| form_data = new FormData(jQuery('#proform')[0]); | |
| n.text(); |
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
| #!/bin/bash -ex | |
| # SETUP PERMISSIONS | |
| VPATH=${1%/} | |
| GROUP_WEBWORK=${2} | |
| WEBSERVER="www-data" | |
| HELP="\nHelp: This script is used to fix permissions\nPlease provide the following arguments:\n\t 1) Path to web root\n\t 2) Shared workgroup of website. AKA group ownership\nNote: \"www-data\" (apache default) is assumed as the owner of the web files.\n\nUsage: [sudo] bash ${0##*/} [web_root_path] [group_name]\n" | |
| [ -z "$VPATH" ] && VPATH=`pwd` # is null, use present dir | |
| [ -z "$GROUP_WEBWORK" ] && GROUP_WEBWORK=webwork # is null, set default |
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
| var allowPaste = function(e){ | |
| e.stopImmediatePropagation(); | |
| return true; | |
| }; | |
| document.addEventListener('paste', allowPaste, true); |