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'
@MisterDuval
MisterDuval / get_monitor_info.ps1
Created February 15, 2019 17:58
Powershell / Get Monitor info
<#
# ORIGINAL FROM : https://github.com/MaxAnderson95/Get-Monitor-Information/blob/master/Get-Monitor.ps1
.SYNOPSIS
This powershell function gets information about the monitors attached to any computer. It uses EDID information provided by WMI. If this value is not specified it pulls the monitors of the computer that the script is being run on.
.DESCRIPTION
The function begins by looping through each computer specified. For each computer it gets a litst of monitors.
It then gets all of the necessary data from each monitor object and converts and cleans the data and places it in a custom PSObject. It then adds
the data to an array. At the end the array is displayed.
.PARAMETER ComputerName
Use this to specify the computer(s) which you'd like to retrieve information about monitors from.
@MisterDuval
MisterDuval / Atera_DeadClientRemoval.ps1
Created February 15, 2019 08:33
Atera : Dead client removal
#
## ORIGINAL POST : https://support.atera.com/hc/en-us/community/posts/360002992288-Atera-s-Support-Team-Hack-of-the-week-Delete-Offline-Agents-using-API-
#
####### Edit this section only ##########
$apiKey = "XX" # your API key , get it from: https://app.atera.com/Admin#/admin/api
$offlinePeriodIndays = 60
$deleteAgents = 0 # set to 1 only after you verify the list
####### edit this section only ##########
// ==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 / sellsy.user.js
Last active July 4, 2018 15:02
Script Tampermonkey for Sellsy
// ==UserScript==
// @name Sellsy
// @namespace http://tampermonkey.net/
// @version 0.1
// @author MisterDuval
// @description Sellsy visual improvements
// @updateURL https://gist.githubusercontent.com/MisterDuval/515e463fda334e9cf4e01a121f9cc6e2/raw/842a0f2f537781c72f13ca6af67490b88bf7d464/sellsy-tampermonkey.js
// @match https://www.sellsy.fr/*
// @grant none
// ==/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