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 modified within 30 days. | |
find /home/mywebsite -type f -name "*.php" -ctime -30 | |
# find for suspicious strings | |
find ./ -name "*.php" -type f | xargs sed -i 's#<?php /\*\*/ eval(base64_decode("aWY.*?>##g' 2>&1 | |
find ./ -name "*.php" -type f | xargs sed -i '/./,$!d' 2>&1 | |
# grep for suspicious and very long strings | |
grep -R "document.write(unescape" * | |
grep -iR --include "*.js" "[a-zA-Z0-9\/\+]\{255,\}" * |
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
#!/usr/bin/env ruby | |
# USAGE: sudo ./newrepo.rb folder_name origin_url | |
# Give it exec permissions before running: chmod +x init.rb | |
# Protip: add it to your ~/.profile or ~/.bash_profile, copy it to your ~/Scripts and run it from anywhere: | |
# alias new_repo="~/Scripts/new_repo.rb" | |
require 'fileutils' |
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 | |
if [ ! -d $1 ]; then | |
echo "Not a directory: $1" | |
exit -1 | |
fi | |
while read line; do | |
filename="$(basename $line)" | |
if [ "${filename##*.}" == "less" ]; then |
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
node_modules | |
public/socket.io.min.js | |
public/jquery.js |
NewerOlder