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
# this command searches all PHP files in a directory for vulnerable shell functions | |
egrep -r --include "*.php" -e "(system|exec|popen|pcntl_exec|proc_open)\(" . | |
# this command searches all PHP files in a directory for certain vulnerable php execution functions | |
egrep -r --include "*.php" -e "(eval|assert|preg_replace)\(" . | |
# this command returns instances where variables are echoed out without htmlspecialchars() | |
# it can be useful for finding XSS vulnerabilities in PHP code | |
egrep -r --include "*.php" -e "echo\s*\\$.*;" . |
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
Some notes on remote debugging mac builds on Travisci. It's hard to tell when something hangs what the cause it. Trial and error via commits is tedious. And on Mac , sometimes it's the gui asking for input. So I worked my around to get the access I needed for faster debugging a build. | |
################################################# | |
# Enable remote ssh access to travisci build for debugging | |
################################################# | |
# Add a key so we can login to travisci vm | |
- cat ssh/travisci.pub >> ~/.ssh/authorized_keys | |
- chmod 600 ssh/travisci | |
# Install netcat |
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 | |
namespace Foo\Annotations; | |
/** | |
*@Annotation | |
*/ | |
class AnnotatedDescription | |
{ | |
public $value; |