Skip to content

Instantly share code, notes, and snippets.

View joelemanoel's full-sized avatar
💻
DevSecOps

Joel Emanoel joelemanoel

💻
DevSecOps
View GitHub Profile
@joelemanoel
joelemanoel / logout.php
Last active May 20, 2021 21:29
logout and terminal fix mk-auth
<script>alert('Terminal desativado. Contate a MKCloud para mais detalhes.'); location.href = '/admin/';</script>
@joelemanoel
joelemanoel / htaccess.sh
Last active May 19, 2021 01:48
create .htaccess and block curl user agent on MK-Auth
#!/bin/bash
for filename in /opt/mk-auth/*; do
echo 'BrowserMatchNoCase "curl" bots
Order Allow,Deny
Allow from All
Deny from env=bots' >> $filename'/.htaccess';
done
echo 'BrowserMatchNoCase "curl" bots
@joelemanoel
joelemanoel / gist:31ad08208d001ff83bafd73231cd49af
Created May 18, 2021 22:45
sources.list jessie solve mk-auth cloud
deb http://ftp.br.debian.org/debian jessie main non-free contrib
deb-src http://ftp.br.debian.org/debian jessie main non-free contrib
deb http://security.debian.org/debian-security jessie/updates main contrib non-free
deb-src http://security.debian.org/debian-security jessie/updates main contrib non-free
# jessie-updates, previously known as 'volatile'
deb http://ftp.br.debian.org/debian jessie-updates main contrib non-free
deb-src http://ftp.br.debian.org/debian jessie-updates main contrib non-free