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
| * Chrootkit && rkhunter -> To search for known trojans and common linux | |
| malware. | |
| * unhide (http://www.unhide-forensics.info/) -> to check for hidden | |
| processes and tcp sockets | |
| * rpm -Va -> To check binary integrity against installed rpms | |
| * If netstat binary looks to be sane, check listening sockets | |
| * If ps binary looks to be sane, check shown running processes | |
| * Check console connections with "last" and "lastb" commands | |
| * Tcpdump on network interfaces avoiding traffic for known running | |
| services (80, 25, 21, etc... depending on the role of the machine) to |
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
| svn diff --summarize --revision Rev1:Rev2 > filename.txt |
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
| Order deny,allow | |
| Deny from all | |
| Allow from xx.xx.xx.xx | |
| #range would be | |
| #Allow from xx.xx.xx.0/24 | |
| <Files admin-ajax.php> | |
| Order allow,deny | |
| Allow from all | |
| Satisfy any | |
| </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
| <Files wp-login.php> | |
| Order deny,allow | |
| Deny from all | |
| Allow from xx.xx.xx.0/24 | |
| #Another IP | |
| Allow from xx.xx.xx.xx | |
| </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
| //The 100 value can be anything, Facebook will detect the height of the body element | |
| FB.Canvas.setSize({height:100}); |
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
| svn merge -r rfrom:rto . |
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
| du -a /var | sort -n -r | head -n 10 |
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 | |
| require_once 'swiftmailer/lib/swift_required.php'; | |
| // Create the Transport | |
| $transport = Swift_SmtpTransport::newInstance ( 'smtp.mailgun.org', 25 ) | |
| ->setUsername ( '[email protected]' ) | |
| ->setPassword ( 'rand0mpa55' ); | |
| //Helps for sending mail locally during development |
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 | |
| //Using composer to get the Sabre lib | |
| require dirname ( __FILE__ ) . '/../vendor/autoload.php'; | |
| use Sabre\VObject\Component\VCalendar; | |
| // Create a message | |
| $message = Swift_Message::newInstance ( 'Message Title' ) | |
| ->setFrom ( array( '[email protected] ' => 'John Doe' ) ) | |
| ->setTo ( array( $email ) ) | |
| ->setSubject ( "Cool message subject" ) |