Skip to content

Instantly share code, notes, and snippets.

@MisterDuval
MisterDuval / infectedFiles.md
Last active March 9, 2022 21:45 — forked from frosit/infectedFiles.md
Some commands for finding and clearing infected PHP files

Finding infected files with following bash commands

** Command to list all infected files:

  • grep -lr --include=*.php "eval(base64_decode" /path/to/webroot
  • grep -lr --include=*.php "eval" .
  • grep -lr --include=*.php "base64" .
  • grep -lr --include=*.php '@include "\\' .
  • grep -lr --include=*.php '@unserialize(@file_get_contents' .
  • grep -lr --include=*.php '($_COOKIE, $_POST) as ' .
  • find /path/to/webroot -type f -name '*.ico'
// ==UserScript==
// @name ReviewMeta Amazon Search
// @namespace http://tampermonkey.net/
// @version 0.1.2
// @description Modify star ratings on Amazon pages based on ReviewMeta scores
// @author bhughes339
// @include https://*.amazon.tld/*
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
@MisterDuval
MisterDuval / mysql_backup.sh
Created March 9, 2018 23:15 — forked from tleish/mysql_backup.sh
Bash Script to backup all MySQL databases
#!/bin/bash
#==============================================================================
#TITLE: mysql_backup.sh
#DESCRIPTION: script for automating the daily mysql backups on development computer
#AUTHOR: tleish
#DATE: 2013-12-20
#VERSION: 0.4
#USAGE: ./mysql_backup.sh
#CRON:
# example cron for daily db backup @ 9:15 am
@MisterDuval
MisterDuval / gwhitelist.sh
Created December 9, 2017 16:12 — forked from stevejenkins/gwhitelist.sh
Script for creating a Postfix whitelist for Gmail servers
#! /bin/sh
#
# Copyright (c) 2013 Mike Miller <mmiller@mgm51.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
@MisterDuval
MisterDuval / reclaimWindows10.ps1
Last active January 10, 2017 08:34 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1