Skip to content

Instantly share code, notes, and snippets.

View silversword411's full-sized avatar

silversword411

  • Atlanta, GA
  • 01:28 (UTC -04:00)
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Load URLs in iframes</title>
<script type="text/javascript">
window.onload = function() {
// Load the first URL immediately in the first iframe
// Note1: Make port numbers greater than 10000 so you're up in the random ranges
// Note2: Make first port bigger than 2nd port. So port scanners scanning 1-65535 don't hit them in sequence
document.getElementById('frame1').src = "https://myurl.com:32999";
@silversword411
silversword411 / gist:df8bd3adb199a013e1aa7e07c7a1ede3
Created March 18, 2024 11:42
php password page that redirects you different places based on password
<?php
session_start();
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 1;
$_SESSION['first'] = time();
} else {
// Increase the Count
$_SESSION['count']++;
#### Contents of the preconfiguration file (for buster)
### Localization
# Customized from https://www.debian.org/releases/buster/example-preseed.txt
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
# The values can also be preseeded individually for greater flexibility.
d-i debian-installer/language string en
#d-i debian-installer/country string NL
#d-i debian-installer/locale string en_GB.UTF-8

Keybase proof

I hereby claim:

  • I am silversword411 on github.
  • I am silversword (https://keybase.io/silversword) on keybase.
  • I have a public key ASDElmGcr9mjp8c8a07MmyJuXHbDPVguqsX64fp3JlOZtwo

To claim this, I am signing this object: