Skip to content

Instantly share code, notes, and snippets.

View afilina's full-sized avatar

Anna Filina afilina

View GitHub Profile
@afilina
afilina / obfuscate.php
Created August 18, 2023 22:16
Obfuscate an account number
<?php
$accountNumber = '222222222234';
$revealLength = 4;
$obfuscationChar = '*';
$obfuscatedAccountNumber = str_pad(
substr($accountNumber, -$revealLength, $revealLength),
strlen($accountNumber),
$obfuscationChar,
https://twitter.com
@afilina
afilina / deserialization.yaml
Last active August 21, 2018 19:31
Insecure deserialization
id: 1
name: !php/object O:49:"Symfony\Component\Cache\Adapter\FilesystemAdapter":1:{s:54:"Symfony\Component\Cache\Adapter\FilesystemAdaptertmp";s:14:"../config.yaml";}
(icode
Product
p0
(dp1
S'name'
p2
S'Skyrim'
p3
sb.
DEFACED!
&lt;script&gt;alert(&#39;hacked!&#39;)&lt;/script&gt;
Verifying that +afilina is my blockchain ID. https://onename.com/afilina
/*!
* Bootstrap v3.0.0
*
* Copyright 2013 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world by @mdo and @fat.
*//*! normalize.css v2.1.0 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{margin:.67em 0;font-size:2em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{height:0;-moz-box-sizing:content-box;box-sizing:content-box}mark{color:#000;background:#ff0}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{position:relativ