Skip to content

Instantly share code, notes, and snippets.

View voidz0r's full-sized avatar
💻
pwning

Cristian 'void' Giustini voidz0r

💻
pwning
View GitHub Profile
@voidz0r
voidz0r / injected_object.xml
Created July 14, 2021 22:53
injected_object.xml
<saml:Assertion ID="_evil_assertion_ID" IssueInstant="2021-06-23T21:04:01.551Z" Version="2.0"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
<saml:Issuer>urn:miniorange-research.eu.auth0.com</saml:Issuer>
<saml:Subject>
<saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">admin</saml:NameID>
<saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
<saml:SubjectConfirmationData InResponseTo="_f1e26bb0bd40be366c543e2c3fe0215747f40dadbb" NotOnOrAfter="2021-06-23T22:04:01.551Z" Recipient="http://localhost:8080/samlassertion"/>
</saml:SubjectConfirmation>
</saml:Subject>
<saml:Conditions NotBefore="2021-06-23T21:04:01.551Z" NotOnOrAfter="2021-06-23T22:04:01.551Z">
@voidz0r
voidz0r / gist:a36e2a13947b7d7388e71472470f0062
Created November 4, 2019 15:09
VirtualBox - Set the bios time to -1y
VBoxManage modifyvm <vmname> --biossystemtimeoffset -31536000000
-XX:MaxPermSize=256M -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
chmod -R +r /opt/eclipse
touch /usr/bin/eclipse
chmod 755 /usr/bin/eclipse
## Open eclipse file with your favorite editor ##
nano -w /usr/bin/eclipse
sudo dnf -y install libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686 pulseaudio-libs.i686 pulseaudio-libs-glib2.i686 alsa-plugins-pulseaudio.i686
Download: http://get.skype.com/go/getskype-linux-beta-fc10
sudo dnf install skype*
# ls, the common ones I use a lot shortened for rapid fire usage
alias l='ls -lFh --color' #size,show type,human readable
alias la='ls -lAFh --color' #long list,show almost all,show type,human readable
alias lr='ls -tRFh --color' #sorted by date,recursive,show type,human readable
alias lt='ls -ltFh --color' #long list,sorted by date,show type,human readable
alias ll='ls -l --color' #long list
alias ldot='ls -ld --color.*'
alias lS='ls -1FSsh --color'
@voidz0r
voidz0r / config.php
Last active August 29, 2015 14:25
Simple function to flatten a configuration file with dotted notation. It can be used with get_config('my.sub.sub.array', 'another.sub.sub.array'); to fetch multiple keys and requires PHP 5.6 since variadic parameters has been used.
<?php
function get_config(...$keys) {
static $config;
if (empty($config)) {
$env = strtolower(APPLICATION_ENV);
$path = sprintf('%s/config_%s.php', APP_ROOT, $env);
if (!file_exists($path)) {
throw new \InvalidArgumentException("Invalid application environment, unable to load configuration file");
}